Home
last modified time | relevance | path

Searched refs:alarm_offset (Results 1 – 1 of 1) sorted by relevance

/kernel/linux/linux-5.10/drivers/rtc/
Drtc-cros-ec.c126 u32 current_time, alarm_offset; in cros_ec_rtc_read_alarm() local
139 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_ALARM, &alarm_offset); in cros_ec_rtc_read_alarm()
145 rtc_time64_to_tm(current_time + alarm_offset, &alrm->time); in cros_ec_rtc_read_alarm()
157 u32 current_time, alarm_offset; in cros_ec_rtc_set_alarm() local
181 alarm_offset = EC_RTC_ALARM_CLEAR; in cros_ec_rtc_set_alarm()
188 alarm_offset = (u32)alarm_time - current_time; in cros_ec_rtc_set_alarm()
191 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_ALARM, alarm_offset); in cros_ec_rtc_set_alarm()
206 u32 current_time, alarm_offset, alarm_value; in cros_ec_rtc_alarm_irq_enable() local
217 alarm_offset = EC_RTC_ALARM_CLEAR; in cros_ec_rtc_alarm_irq_enable()
219 alarm_offset = cros_ec_rtc->saved_alarm - current_time; in cros_ec_rtc_alarm_irq_enable()
[all …]