Lines Matching refs:rtc
62 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()
216 rtc_class_close(rtc); in test_suspend()