Lines Matching refs:time

236 		dev_err_ratelimited(dev, "unable to read current time\n");
254 struct rtc_time *time;
263 struct rtc_time *time = p->time;
265 time->tm_sec = CMOS_READ(RTC_SECONDS_ALARM);
266 time->tm_min = CMOS_READ(RTC_MINUTES_ALARM);
267 time->tm_hour = CMOS_READ(RTC_HOURS_ALARM);
271 time->tm_mday = CMOS_READ(p->cmos->day_alrm) & 0x3f;
272 if (!time->tm_mday)
273 time->tm_mday = -1;
276 time->tm_mon = CMOS_READ(p->cmos->mon_alrm);
277 if (!time->tm_mon)
278 time->tm_mon = -1;
290 .time = &t->time,
303 * update is in progress - during this time reads return bogus values
314 if (((unsigned)t->time.tm_sec) < 0x60)
315 t->time.tm_sec = bcd2bin(t->time.tm_sec);
317 t->time.tm_sec = -1;
318 if (((unsigned)t->time.tm_min) < 0x60)
319 t->time.tm_min = bcd2bin(t->time.tm_min);
321 t->time.tm_min = -1;
322 if (((unsigned)t->time.tm_hour) < 0x24)
323 t->time.tm_hour = bcd2bin(t->time.tm_hour);
325 t->time.tm_hour = -1;
328 if (((unsigned)t->time.tm_mday) <= 0x31)
329 t->time.tm_mday = bcd2bin(t->time.tm_mday);
331 t->time.tm_mday = -1;
334 if (((unsigned)t->time.tm_mon) <= 0x12)
335 t->time.tm_mon = bcd2bin(t->time.tm_mon)-1;
337 t->time.tm_mon = -1;
419 t_alrm = rtc_tm_to_time64(&t->time);
443 t_alrm = rtc_tm_to_time64(&t->time);
462 t_alrm = rtc_tm_to_time64(&t->time);
508 hpet_set_alarm_time(p->t->time.tm_hour, p->t->time.tm_min,
509 p->t->time.tm_sec);
534 p.mon = t->time.tm_mon + 1;
535 p.mday = t->time.tm_mday;
536 p.hrs = t->time.tm_hour;
537 p.min = t->time.tm_min;
538 p.sec = t->time.tm_sec;
555 * update is in progress - during this time writes fail silently.
562 cmos->alarm_expires = rtc_tm_to_time64(&t->time);
1211 * time is larger than now+1 seconds.
1213 * If the alarm time is equal to now+1 seconds, the issue can be
1219 /* Cancel the AIE timer by configuring the past time. */
1220 rtc_time64_to_tm(t_now - 1, &alarm.time);
1314 t_current_expires = rtc_tm_to_time64(&current_alarm.time);
1315 t_saved_expires = rtc_tm_to_time64(&cmos->saved_wkalrm.time);