Lines Matching refs:rtc
18 #include <linux/rtc.h>
61 /* rtc timer and device for setting alarm wakeups at suspend */
69 * This function returns the rtc device to use for wakealarms.
87 struct rtc_device *rtc = to_rtc_device(dev);
94 if (!test_bit(RTC_FEATURE_ALARM, rtc->features))
96 if (!device_may_wakeup(rtc->dev.parent))
106 if (!try_module_get(rtc->owner)) {
111 rtcdev = rtc;
238 * set an rtc timer to fire that far into the future, which
245 struct rtc_device *rtc;
256 rtc = alarmtimer_get_rtcdev();
258 if (!rtc)
289 /* Setup an rtc timer to fire that far in the future */
290 rtc_timer_cancel(rtc, &rtctimer);
291 rtc_read_time(rtc, &tm);
299 * the alarmtimer exceeds the time that the rtc device can be programmed
302 min = rtc_bound_alarmtime(rtc, min);
307 ret = rtc_timer_start(rtc, &rtctimer, now, 0);
315 struct rtc_device *rtc;
317 rtc = alarmtimer_get_rtcdev();
318 if (rtc)
319 rtc_timer_cancel(rtc, &rtctimer);