Lines Matching refs:current_time
130 u32 current_time, alarm_offset; in cros_ec_rtc_read_alarm() local
137 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, ¤t_time); in cros_ec_rtc_read_alarm()
149 rtc_time64_to_tm(current_time + alarm_offset, &alrm->time); in cros_ec_rtc_read_alarm()
161 u32 current_time, alarm_offset; in cros_ec_rtc_set_alarm() local
169 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, ¤t_time); in cros_ec_rtc_set_alarm()
189 if ((u32)alarm_time <= current_time) in cros_ec_rtc_set_alarm()
192 alarm_offset = (u32)alarm_time - current_time; in cros_ec_rtc_set_alarm()
210 u32 current_time, alarm_offset, alarm_value; in cros_ec_rtc_alarm_irq_enable() local
212 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, ¤t_time); in cros_ec_rtc_alarm_irq_enable()
220 if (cros_ec_rtc->saved_alarm < current_time) in cros_ec_rtc_alarm_irq_enable()
223 alarm_offset = cros_ec_rtc->saved_alarm - current_time; in cros_ec_rtc_alarm_irq_enable()
240 alarm_value = current_time + alarm_offset; in cros_ec_rtc_alarm_irq_enable()
247 if (alarm_value < current_time) in cros_ec_rtc_alarm_irq_enable()