Lines Matching full:alarm

96 	/* Validate kernel reflects unsupported RTC alarm state */  in get_rtc_alarm_state()
243 * Report error if rtc alarm was enabled. Fallback to check ioctl in TEST_F()
244 * error number if rtc alarm state is unknown. in TEST_F()
255 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F()
258 /* Enable alarm interrupts */ in TEST_F()
269 /* Disable alarm interrupts */ in TEST_F()
286 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local
302 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
305 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
306 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
308 alarm.enabled = 1; in TEST_F()
310 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
313 * Report error if rtc alarm was enabled. Fallback to check ioctl in TEST_F()
314 * error number if rtc alarm state is unknown. in TEST_F()
322 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
325 TH_LOG("Alarm time now set to %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F()
326 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F()
327 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F()
328 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
373 * Report error if rtc alarm was enabled. Fallback to check ioctl
374 * error number if rtc alarm state is unknown.
385 TH_LOG("Alarm time now set to %02d:%02d:%02d.",
388 /* Enable alarm interrupts */
399 /* Disable alarm interrupts */
416 struct rtc_wkalrm alarm = { 0 }; variable
432 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
435 secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec;
436 gmtime_r(&secs, (struct tm *)&alarm.time);
438 alarm.enabled = 1;
440 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
443 * Report error if rtc alarm was enabled. Fallback to check ioctl
444 * error number if rtc alarm state is unknown.
452 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
455 TH_LOG("Alarm time now set to %02d/%02d/%02d %02d:%02d:%02d.",
456 alarm.time.tm_mday, alarm.time.tm_mon + 1,
457 alarm.time.tm_year + 1900, alarm.time.tm_hour,
458 alarm.time.tm_min, alarm.time.tm_sec);