Searched refs:alarm_offset (Results 1 – 1 of 1) sorted by relevance
131 u32 current_time, alarm_offset; in cros_ec_rtc_read_alarm() local144 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_ALARM, &alarm_offset); in cros_ec_rtc_read_alarm()150 rtc_time64_to_tm(current_time + alarm_offset, &alrm->time); in cros_ec_rtc_read_alarm()162 u32 current_time, alarm_offset; in cros_ec_rtc_set_alarm() local186 alarm_offset = EC_RTC_ALARM_CLEAR; in cros_ec_rtc_set_alarm()193 alarm_offset = (u32)alarm_time - current_time; in cros_ec_rtc_set_alarm()196 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_ALARM, alarm_offset); in cros_ec_rtc_set_alarm()211 u32 current_time, alarm_offset, alarm_value; in cros_ec_rtc_alarm_irq_enable() local222 alarm_offset = EC_RTC_ALARM_CLEAR; in cros_ec_rtc_alarm_irq_enable()224 alarm_offset = cros_ec_rtc->saved_alarm - current_time; in cros_ec_rtc_alarm_irq_enable()[all …]