Lines Matching refs:alm
136 struct rtc_wkalrm alm; in rtc_sysfs_show_wakealarm() local
146 retval = rtc_read_alarm(to_rtc_device(dev), &alm); in rtc_sysfs_show_wakealarm()
147 if (retval == 0 && alm.enabled) { in rtc_sysfs_show_wakealarm()
148 rtc_tm_to_time(&alm.time, &alarm); in rtc_sysfs_show_wakealarm()
161 struct rtc_wkalrm alm; in rtc_sysfs_set_wakealarm() local
169 retval = rtc_read_time(rtc, &alm.time); in rtc_sysfs_set_wakealarm()
172 rtc_tm_to_time(&alm.time, &now); in rtc_sysfs_set_wakealarm()
188 retval = rtc_read_alarm(rtc, &alm); in rtc_sysfs_set_wakealarm()
191 if (alm.enabled) in rtc_sysfs_set_wakealarm()
194 alm.enabled = 1; in rtc_sysfs_set_wakealarm()
196 alm.enabled = 0; in rtc_sysfs_set_wakealarm()
203 rtc_time_to_tm(alarm, &alm.time); in rtc_sysfs_set_wakealarm()
205 retval = rtc_set_alarm(rtc, &alm); in rtc_sysfs_set_wakealarm()