Lines Matching refs:time
85 * This function is used to obtain the RTC time or the alarm value in
114 * This function sets the RTC alarm value or the time value.
116 static void set_alarm_or_time(struct device *dev, int time_alarm, time64_t time)
122 day = div_s64_rem(time, 86400, &tod);
124 /* time is within a day now */
128 /* time is within an hour now */
154 time64_t time;
158 time = rtc_tm_to_time64(alrm);
162 set_alarm_or_time(dev, MXC_RTC_ALARM, time);
222 * This function reads the current RTC time into tm in Gregorian date.
239 * This function sets the internal RTC time based on tm in Gregorian date.
243 time64_t time = rtc_tm_to_time64(tm);
247 set_alarm_or_time(dev, MXC_RTC_TIME, time);
248 } while (time != get_alarm_or_time(dev, MXC_RTC_TIME));
263 rtc_time64_to_tm(get_alarm_or_time(dev, MXC_RTC_ALARM), &alrm->time);
276 rtc_update_alarm(dev, &alrm->time);
278 memcpy(&pdata->g_rtc_alarm, &alrm->time, sizeof(struct rtc_time));