Searched refs:rtc (Results 1 – 1 of 1) sorted by relevance
627 static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state) in test_wakealarm() argument643 status = rtc_read_time(rtc, &alm.time); in test_wakealarm()645 printk(err_readtime, dev_name(&rtc->dev), status); in test_wakealarm()654 status = rtc_set_alarm(rtc, &alm); in test_wakealarm()656 printk(err_wakealarm, dev_name(&rtc->dev), status); in test_wakealarm()678 rtc_set_alarm(rtc, &alm); in test_wakealarm()729 struct rtc_device *rtc = NULL; in test_suspend() local742 rtc = rtc_class_open(pony); in test_suspend()743 if (!rtc) { in test_suspend()749 test_wakealarm(rtc, test_state); in test_suspend()[all …]