Home
last modified time | relevance | path

Searched refs:rtc (Results 1 – 3 of 3) sorted by relevance

/kernel/power/
Dsuspend_test.c62 static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state) in test_wakealarm() argument
79 status = rtc_read_time(rtc, &alm.time); in test_wakealarm()
81 printk(err_readtime, dev_name(&rtc->dev), status); in test_wakealarm()
90 status = rtc_set_alarm(rtc, &alm); in test_wakealarm()
92 printk(err_wakealarm, dev_name(&rtc->dev), status); in test_wakealarm()
125 rtc_set_alarm(rtc, &alm); in test_wakealarm()
184 struct rtc_device *rtc = NULL; in test_suspend() local
206 rtc = rtc_class_open(dev_name(dev)); in test_suspend()
209 if (!rtc) { in test_suspend()
215 test_wakealarm(rtc, test_state); in test_suspend()
[all …]
/kernel/time/
Dalarmtimer.c88 struct rtc_device *rtc = to_rtc_device(dev); in alarmtimer_rtc_add_device() local
95 if (!test_bit(RTC_FEATURE_ALARM, rtc->features)) in alarmtimer_rtc_add_device()
97 if (!device_may_wakeup(rtc->dev.parent)) in alarmtimer_rtc_add_device()
107 if (!try_module_get(rtc->owner)) { in alarmtimer_rtc_add_device()
112 rtcdev = rtc; in alarmtimer_rtc_add_device()
246 struct rtc_device *rtc; in alarmtimer_suspend() local
257 rtc = alarmtimer_get_rtcdev(); in alarmtimer_suspend()
259 if (!rtc) in alarmtimer_suspend()
291 rtc_timer_cancel(rtc, &rtctimer); in alarmtimer_suspend()
292 rtc_read_time(rtc, &tm); in alarmtimer_suspend()
[all …]
Dntp.c583 struct rtc_device *rtc; in update_rtc() local
587 rtc = rtc_class_open(CONFIG_RTC_SYSTOHC_DEVICE); in update_rtc()
588 if (!rtc) in update_rtc()
591 if (!rtc->ops || !rtc->ops->set_time) in update_rtc()
595 if (*offset_nsec == rtc->set_offset_nsec) { in update_rtc()
597 err = rtc_set_time(rtc, &tm); in update_rtc()
600 *offset_nsec = rtc->set_offset_nsec; in update_rtc()
604 rtc_class_close(rtc); in update_rtc()