Home
last modified time | relevance | path

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

/linux/drivers/rtc/
H A Drtc-cros-ec.c119 u32 current_time, alarm_offset; in cros_ec_rtc_read_alarm() local
132 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_ALARM, &alarm_offset); in cros_ec_rtc_read_alarm()
138 rtc_time64_to_tm(current_time + alarm_offset, &alrm->time); in cros_ec_rtc_read_alarm()
150 u32 current_time, alarm_offset; in cros_ec_rtc_set_alarm() local
174 alarm_offset = EC_RTC_ALARM_CLEAR; in cros_ec_rtc_set_alarm()
181 alarm_offset = (u32)alarm_time - current_time; in cros_ec_rtc_set_alarm()
184 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_ALARM, alarm_offset); in cros_ec_rtc_set_alarm()
187 alarm_offset, ret); 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()
[all …]