Lines Matching refs:alm
132 struct rtc_wkalrm alm; in wakealarm_show() local
142 retval = rtc_read_alarm(to_rtc_device(dev), &alm); in wakealarm_show()
143 if (retval == 0 && alm.enabled) { in wakealarm_show()
144 alarm = rtc_tm_to_time64(&alm.time); in wakealarm_show()
158 struct rtc_wkalrm alm; in wakealarm_store() local
166 retval = rtc_read_time(rtc, &alm.time); in wakealarm_store()
169 now = rtc_tm_to_time64(&alm.time); in wakealarm_store()
191 retval = rtc_read_alarm(rtc, &alm); in wakealarm_store()
194 if (alm.enabled) { in wakealarm_store()
196 push = rtc_tm_to_time64(&alm.time); in wakealarm_store()
202 alm.enabled = 1; in wakealarm_store()
204 alm.enabled = 0; in wakealarm_store()
211 rtc_time64_to_tm(alarm, &alm.time); in wakealarm_store()
213 retval = rtc_set_alarm(rtc, &alm); in wakealarm_store()