Home
last modified time | relevance | path

Searched refs:alarm_time (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.10/drivers/rtc/
Drtc-meson-vrtc.c17 unsigned long alarm_time; member
44 vrtc->alarm_time = rtc_tm_to_time64(&alarm->time); in meson_vrtc_set_alarm()
46 vrtc->alarm_time = 0; in meson_vrtc_set_alarm()
94 if (vrtc->alarm_time) { in meson_vrtc_suspend()
103 vrtc->alarm_time, local_time); in meson_vrtc_suspend()
104 alarm_secs = vrtc->alarm_time - local_time; in meson_vrtc_suspend()
124 vrtc->alarm_time = 0; in meson_vrtc_resume()
Drtc-cros-ec.c156 time64_t alarm_time; in cros_ec_rtc_set_alarm() local
171 alarm_time = rtc_tm_to_time64(&alrm->time); in cros_ec_rtc_set_alarm()
173 if (alarm_time < 0 || alarm_time > U32_MAX) in cros_ec_rtc_set_alarm()
182 cros_ec_rtc->saved_alarm = (u32)alarm_time; in cros_ec_rtc_set_alarm()
185 if ((u32)alarm_time <= current_time) in cros_ec_rtc_set_alarm()
188 alarm_offset = (u32)alarm_time - current_time; in cros_ec_rtc_set_alarm()
Drtc-digicolor.c136 time64_t alarm_time; in dc_rtc_set_alarm() local
139 alarm_time = rtc_tm_to_time64(&alarm->time); in dc_rtc_set_alarm()
142 writel_relaxed(alarm_time - reference, rtc->regs + DC_RTC_ALARM); in dc_rtc_set_alarm()
Drtc-da9063.c67 struct rtc_time alarm_time; member
243 al_secs = rtc_tm_to_time64(&rtc->alarm_time); in da9063_rtc_read_time()
247 memcpy(tm, &rtc->alarm_time, sizeof(struct rtc_time)); in da9063_rtc_read_time()
329 da9063_data_to_tm(data, &rtc->alarm_time, rtc); in da9063_rtc_set_alarm()
475 da9063_data_to_tm(data, &rtc->alarm_time, rtc); in da9063_rtc_probe()
Drtc-zynqmp.c157 unsigned long alarm_time; in xlnx_rtc_set_alarm() local
159 alarm_time = rtc_tm_to_time64(&alrm->time); in xlnx_rtc_set_alarm()
161 writel((u32)alarm_time, (xrtcdev->reg_base + RTC_ALRM)); in xlnx_rtc_set_alarm()
Drtc-rx8025.c334 time64_t alarm_time = rtc_tm_to_time64(&t->time); in rx8025_set_alarm() local
336 alarm_time += 60 - t->time.tm_sec; in rx8025_set_alarm()
337 rtc_time64_to_tm(alarm_time, &t->time); in rx8025_set_alarm()
Drtc-pcf8563.c335 time64_t alarm_time = rtc_tm_to_time64(&tm->time); in pcf8563_rtc_set_alarm() local
337 alarm_time += 60 - tm->time.tm_sec; in pcf8563_rtc_set_alarm()
338 rtc_time64_to_tm(alarm_time, &tm->time); in pcf8563_rtc_set_alarm()
Drtc-rv8803.c315 time64_t alarm_time = rtc_tm_to_time64(&alrm->time); in rv8803_set_alarm() local
317 alarm_time += 60 - alrm->time.tm_sec; in rv8803_set_alarm()
318 rtc_time64_to_tm(alarm_time, &alrm->time); in rv8803_set_alarm()
Drtc-rv3028.c402 time64_t alarm_time = rtc_tm_to_time64(&alrm->time); in rv3028_set_alarm() local
404 alarm_time += 60 - alrm->time.tm_sec; in rv3028_set_alarm()
405 rtc_time64_to_tm(alarm_time, &alrm->time); in rv3028_set_alarm()
Drtc-rv3032.c315 time64_t alarm_time = rtc_tm_to_time64(&alrm->time); in rv3032_set_alarm() local
317 alarm_time += 60 - alrm->time.tm_sec; in rv3032_set_alarm()
318 rtc_time64_to_tm(alarm_time, &alrm->time); in rv3032_set_alarm()
/Linux-v5.10/arch/arm/mach-pxa/
Dsharpsl_pm.c599 static void corgi_goto_sleep(unsigned long alarm_time, unsigned int alarm_enable, suspend_state_t s… in corgi_goto_sleep() argument
618 …if ((sharpsl_pm.charge_mode == CHRG_ON) && ((alarm_enable && ((alarm_time - RCNR) > (SHARPSL_BATCH… in corgi_goto_sleep()
625 RTAR = alarm_time; in corgi_goto_sleep()
638 static int corgi_enter_suspend(unsigned long alarm_time, unsigned int alarm_enable, suspend_state_t… in corgi_enter_suspend() argument
643 corgi_goto_sleep(alarm_time, alarm_enable, state); in corgi_enter_suspend()
648 corgi_goto_sleep(alarm_time, alarm_enable, state); in corgi_enter_suspend()
657 corgi_goto_sleep(alarm_time, alarm_enable, state); in corgi_enter_suspend()
666 unsigned long alarm_time = RTAR; in corgi_pxa_pm_enter() local
671 corgi_goto_sleep(alarm_time, alarm_status, state); in corgi_pxa_pm_enter()
673 while (corgi_enter_suspend(alarm_time, alarm_status, state)) in corgi_pxa_pm_enter()
/Linux-v5.10/drivers/misc/
Dds1682.c138 static SENSOR_DEVICE_ATTR_2(alarm_time, S_IRUGO | S_IWUSR, ds1682_show,