Lines Matching refs:now

215 	struct rtc_time before, now;  in __rtc_read_alarm()  local
268 memcpy(&before, &now, sizeof(struct rtc_time)); in __rtc_read_alarm()
282 err = rtc_read_time(rtc, &now); in __rtc_read_alarm()
287 } while (before.tm_min != now.tm_min || in __rtc_read_alarm()
288 before.tm_hour != now.tm_hour || in __rtc_read_alarm()
289 before.tm_mon != now.tm_mon || in __rtc_read_alarm()
290 before.tm_year != now.tm_year); in __rtc_read_alarm()
296 alarm->time.tm_sec = now.tm_sec; in __rtc_read_alarm()
298 alarm->time.tm_min = now.tm_min; in __rtc_read_alarm()
300 alarm->time.tm_hour = now.tm_hour; in __rtc_read_alarm()
304 alarm->time.tm_mday = now.tm_mday; in __rtc_read_alarm()
308 alarm->time.tm_mon = now.tm_mon; in __rtc_read_alarm()
313 alarm->time.tm_year = now.tm_year; in __rtc_read_alarm()
326 t_now = rtc_tm_to_time64(&now); in __rtc_read_alarm()
413 time64_t now, scheduled; in __rtc_set_alarm() local
426 now = rtc_tm_to_time64(&tm); in __rtc_set_alarm()
428 if (scheduled <= now) in __rtc_set_alarm()
497 struct rtc_time now; in rtc_initialize_alarm() local
503 err = rtc_read_time(rtc, &now); in rtc_initialize_alarm()
515 if (alarm->enabled && (rtc_tm_to_ktime(now) < in rtc_initialize_alarm()
587 ktime_t now, onesec; in rtc_update_irq_enable() local
593 now = rtc_tm_to_ktime(tm); in rtc_update_irq_enable()
594 rtc->uie_rtctimer.node.expires = ktime_add(now, onesec); in rtc_update_irq_enable()
807 ktime_t now; in rtc_timer_enqueue() local
815 now = rtc_tm_to_ktime(tm); in rtc_timer_enqueue()
819 if (next->expires >= now) in rtc_timer_enqueue()
905 ktime_t now; in rtc_timer_do_work() local
919 now = rtc_tm_to_ktime(tm); in rtc_timer_do_work()
921 if (next->expires > now) in rtc_timer_do_work()