Lines Matching full:alarm
23 * @saved_alarm: Alarm to restore when interrupts are reenabled
49 command == EC_CMD_RTC_GET_VALUE ? "time" : "alarm", in cros_ec_rtc_get()
76 command == EC_CMD_RTC_SET_VALUE ? "time" : "alarm", in cros_ec_rtc_set()
120 /* Read alarm time from RTC. */
129 * The EC host command for getting the alarm is relative (i.e. 5 in cros_ec_rtc_read_alarm()
141 dev_err(dev, "error getting alarm: %d\n", ret); in cros_ec_rtc_read_alarm()
150 /* Set the EC's RTC alarm. */
160 * The EC host command for setting the alarm is relative in cros_ec_rtc_set_alarm()
178 * If the alarm is being disabled, send an alarm in cros_ec_rtc_set_alarm()
184 /* Don't set an alarm in the past. */ in cros_ec_rtc_set_alarm()
193 dev_err(dev, "error setting alarm: %d\n", ret); in cros_ec_rtc_set_alarm()
215 /* Restore saved alarm if it's still in the future. */ in cros_ec_rtc_alarm_irq_enable()
224 dev_err(dev, "error restoring alarm: %d\n", ret); in cros_ec_rtc_alarm_irq_enable()
228 /* Disable alarm, saving the old alarm value. */ in cros_ec_rtc_alarm_irq_enable()
232 dev_err(dev, "error saving alarm: %d\n", ret); in cros_ec_rtc_alarm_irq_enable()
239 * If the current EC alarm is already past, we don't want in cros_ec_rtc_alarm_irq_enable()
240 * to set an alarm when we go through the alarm irq enable in cros_ec_rtc_alarm_irq_enable()
252 dev_err(dev, "error disabling alarm: %d\n", ret); in cros_ec_rtc_alarm_irq_enable()