Lines Matching refs:time
99 /* timeout of synchronizing time and alarm registers (us) */
113 * The Spreadtrum RTC controller has 3 groups registers, including time, normal
114 * alarm and auxiliary alarm. The time group registers are used to set RTC time,
230 /* convert seconds to RTC time format */
283 * Since the time and normal alarm registers are put in always-power-on
284 * region supplied by VDDRTC, then these registers changing time will
294 dev_err(rtc->dev, "set time/alarm values timeout\n");
313 rtc_time64_to_tm(secs, &alrm->time);
332 time64_t secs = rtc_tm_to_time64(&alrm->time);
396 * Set RTC power status to indicate now RTC has valid time
420 * alarm at this time.
422 * Or if aie_timer is enabled, we should get the normal alarm time.
423 * Otherwise we should get auxiliary alarm time.
432 rtc_time64_to_tm(secs, &alrm->time);
451 time64_t secs = rtc_tm_to_time64(&alrm->time);
465 * So here we check if the alarm time is set by aie_timer, if yes, we
469 if (!rtc->rtc->aie_timer.enabled || rtc_tm_sub(&aie_time, &alrm->time))
563 * means the RTC has been powered down, so the RTC time values are
585 * always-power-on region, that means we have set one alarm last time,
634 /* check if RTC time values are valid */
637 dev_err(&pdev->dev, "failed to check RTC time values\n");