Lines Matching refs:alarm
252 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local
263 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
266 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
267 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
269 alarm.enabled = 1; in TEST_F()
271 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
278 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
282 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F()
283 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F()
284 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
362 struct rtc_wkalrm alarm = { 0 }; variable
373 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
376 secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec;
377 gmtime_r(&secs, (struct tm *)&alarm.time);
379 alarm.enabled = 1;
381 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
388 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
392 alarm.time.tm_mday, alarm.time.tm_mon + 1,
393 alarm.time.tm_year + 1900, alarm.time.tm_hour,
394 alarm.time.tm_min, alarm.time.tm_sec);