Lines Matching refs:alm
136 struct rtc_wkalrm alm; in wakealarm_show() local
146 retval = rtc_read_alarm(to_rtc_device(dev), &alm); in wakealarm_show()
147 if (retval == 0 && alm.enabled) { in wakealarm_show()
148 rtc_tm_to_time(&alm.time, &alarm); in wakealarm_show()
162 struct rtc_wkalrm alm; in wakealarm_store() local
170 retval = rtc_read_time(rtc, &alm.time); in wakealarm_store()
173 rtc_tm_to_time(&alm.time, &now); in wakealarm_store()
195 retval = rtc_read_alarm(rtc, &alm); in wakealarm_store()
198 if (alm.enabled) { in wakealarm_store()
200 rtc_tm_to_time(&alm.time, &push); in wakealarm_store()
206 alm.enabled = 1; in wakealarm_store()
208 alm.enabled = 0; in wakealarm_store()
215 rtc_time_to_tm(alarm, &alm.time); in wakealarm_store()
217 retval = rtc_set_alarm(rtc, &alm); in wakealarm_store()