Lines Matching refs:alarm
167 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local
174 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
177 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
178 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
180 alarm.enabled = 1; in TEST_F()
182 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
189 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
193 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F()
194 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F()
195 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
269 struct rtc_wkalrm alarm = { 0 }; variable
276 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
279 secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec;
280 gmtime_r(&secs, (struct tm *)&alarm.time);
282 alarm.enabled = 1;
284 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
291 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
295 alarm.time.tm_mday, alarm.time.tm_mon + 1,
296 alarm.time.tm_year + 1900, alarm.time.tm_hour,
297 alarm.time.tm_min, alarm.time.tm_sec);