Lines Matching refs:current_tm

2550     struct tm current_tm;  member
2581 return to_bcd(s->current_tm.tm_sec); in omap_rtc_read()
2584 return to_bcd(s->current_tm.tm_min); in omap_rtc_read()
2588 return ((s->current_tm.tm_hour > 11) << 7) | in omap_rtc_read()
2589 to_bcd(((s->current_tm.tm_hour - 1) % 12) + 1); in omap_rtc_read()
2591 return to_bcd(s->current_tm.tm_hour); in omap_rtc_read()
2594 return to_bcd(s->current_tm.tm_mday); in omap_rtc_read()
2597 return to_bcd(s->current_tm.tm_mon + 1); in omap_rtc_read()
2600 return to_bcd(s->current_tm.tm_year % 100); in omap_rtc_read()
2603 return s->current_tm.tm_wday; in omap_rtc_read()
2665 s->ti -= s->current_tm.tm_sec; in omap_rtc_write()
2670 s->ti -= s->current_tm.tm_min * 60; in omap_rtc_write()
2675 s->ti -= s->current_tm.tm_hour * 3600; in omap_rtc_write()
2684 s->ti -= s->current_tm.tm_mday * 86400; in omap_rtc_write()
2689 memcpy(&new_tm, &s->current_tm, sizeof(new_tm)); in omap_rtc_write()
2691 ti[0] = mktimegm(&s->current_tm); in omap_rtc_write()
2699 s->ti -= s->current_tm.tm_mon * 2592000; in omap_rtc_write()
2705 memcpy(&new_tm, &s->current_tm, sizeof(new_tm)); in omap_rtc_write()
2707 ti[0] = mktimegm(&s->current_tm); in omap_rtc_write()
2715 s->ti -= (time_t)(s->current_tm.tm_year % 100) * 31536000; in omap_rtc_write()
2804 if (s->current_tm.tm_sec < 30) in omap_rtc_tick()
2805 s->ti -= s->current_tm.tm_sec; in omap_rtc_tick()
2807 s->ti += 60 - s->current_tm.tm_sec; in omap_rtc_tick()
2812 localtime_r(&s->ti, &s->current_tm); in omap_rtc_tick()
2826 if (s->current_tm.tm_sec) in omap_rtc_tick()
2832 if (s->current_tm.tm_sec || s->current_tm.tm_min) in omap_rtc_tick()
2838 if (s->current_tm.tm_sec || in omap_rtc_tick()
2839 s->current_tm.tm_min || s->current_tm.tm_hour) in omap_rtc_tick()
2855 if (s->auto_comp && !s->current_tm.tm_sec && !s->current_tm.tm_min) in omap_rtc_tick()