Lines Matching defs:time
101 * This function is used to obtain the RTC time or the alarm value in
130 * This function sets the RTC alarm value or the time value.
132 static void set_alarm_or_time(struct device *dev, int time_alarm, time64_t time)
138 day = div_s64_rem(time, 86400, &tod);
140 /* time is within a day now */
144 /* time is within an hour now */
170 time64_t time;
174 time = rtc_tm_to_time64(alrm);
178 set_alarm_or_time(dev, MXC_RTC_ALARM, time);
239 * This function reads the current RTC time into tm in Gregorian date.
256 * This function sets the internal RTC time based on tm in Gregorian date.
260 time64_t time = rtc_tm_to_time64(tm);
264 set_alarm_or_time(dev, MXC_RTC_TIME, time);
265 } while (time != get_alarm_or_time(dev, MXC_RTC_TIME));
280 rtc_time64_to_tm(get_alarm_or_time(dev, MXC_RTC_ALARM), &alrm->time);
293 rtc_update_alarm(dev, &alrm->time);
295 memcpy(&pdata->g_rtc_alarm, &alrm->time, sizeof(struct rtc_time));