Lines Matching defs:current_time
119 u32 current_time, alarm_offset;
126 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, ¤t_time);
138 rtc_time64_to_tm(current_time + alarm_offset, &alrm->time);
150 u32 current_time, alarm_offset;
158 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, ¤t_time);
178 if ((u32)alarm_time <= current_time)
181 alarm_offset = (u32)alarm_time - current_time;
206 u32 current_time, alarm_offset, alarm_value;
208 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, ¤t_time);
216 if (cros_ec_rtc->saved_alarm < current_time)
219 alarm_offset = cros_ec_rtc->saved_alarm - current_time;
236 alarm_value = current_time + alarm_offset;
243 if (alarm_value < current_time)