Home
last modified time | relevance | path

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

/linux-6.6.21/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-sunplus.c103 unsigned long alarm_time; in sp_rtc_set_alarm() local
105 alarm_time = rtc_tm_to_time64(&alrm->time); in sp_rtc_set_alarm()
106 dev_dbg(dev, "%s, alarm_time: %u\n", __func__, (u32)(alarm_time)); in sp_rtc_set_alarm()
107 writel((u32)alarm_time, sp_rtc->reg_base + RTC_ALARM_SET); in sp_rtc_set_alarm()
115 unsigned int alarm_time; in sp_rtc_read_alarm() local
117 alarm_time = readl(sp_rtc->reg_base + RTC_ALARM_SET); in sp_rtc_read_alarm()
118 dev_dbg(dev, "%s, alarm_time: %u\n", __func__, alarm_time); in sp_rtc_read_alarm()
120 if (alarm_time == 0) in sp_rtc_read_alarm()
125 rtc_time64_to_tm((unsigned long)(alarm_time), &alrm->time); in sp_rtc_read_alarm()
Drtc-cros-ec.c148 time64_t alarm_time; in cros_ec_rtc_set_alarm() local
163 alarm_time = rtc_tm_to_time64(&alrm->time); in cros_ec_rtc_set_alarm()
165 if (alarm_time < 0 || alarm_time > U32_MAX) in cros_ec_rtc_set_alarm()
174 cros_ec_rtc->saved_alarm = (u32)alarm_time; in cros_ec_rtc_set_alarm()
177 if ((u32)alarm_time <= current_time) in cros_ec_rtc_set_alarm()
180 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.c68 struct rtc_time alarm_time; member
244 al_secs = rtc_tm_to_time64(&rtc->alarm_time); in da9063_rtc_read_time()
248 memcpy(tm, &rtc->alarm_time, sizeof(struct rtc_time)); in da9063_rtc_read_time()
330 da9063_data_to_tm(data, &rtc->alarm_time, rtc); in da9063_rtc_set_alarm()
476 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()
Dinterface.c451 ktime_t alarm_time; in rtc_set_alarm() local
473 alarm_time = rtc_tm_to_ktime(alarm->time); in rtc_set_alarm()
479 alarm_time = ktime_sub_ns(alarm_time, (u64)alarm->time.tm_sec * NSEC_PER_SEC); in rtc_set_alarm()
481 rtc->aie_timer.node.expires = alarm_time; in rtc_set_alarm()
Drtc-rv8803.c399 time64_t alarm_time = rtc_tm_to_time64(&alrm->time); in rv8803_set_alarm() local
401 alarm_time += 60 - alrm->time.tm_sec; in rv8803_set_alarm()
402 rtc_time64_to_tm(alarm_time, &alrm->time); in rv8803_set_alarm()
Drtc-rv3028.c404 time64_t alarm_time = rtc_tm_to_time64(&alrm->time); in rv3028_set_alarm() local
406 alarm_time += 60 - alrm->time.tm_sec; in rv3028_set_alarm()
407 rtc_time64_to_tm(alarm_time, &alrm->time); in rv3028_set_alarm()
/linux-6.6.21/arch/arm/mach-pxa/
Dsharpsl_pm.c593 static void corgi_goto_sleep(unsigned long alarm_time, unsigned int alarm_enable, suspend_state_t s… in corgi_goto_sleep() argument
612 …if ((sharpsl_pm.charge_mode == CHRG_ON) && ((alarm_enable && ((alarm_time - RCNR) > (SHARPSL_BATCH… in corgi_goto_sleep()
619 RTAR = alarm_time; in corgi_goto_sleep()
632 static int corgi_enter_suspend(unsigned long alarm_time, unsigned int alarm_enable, suspend_state_t… in corgi_enter_suspend() argument
637 corgi_goto_sleep(alarm_time, alarm_enable, state); in corgi_enter_suspend()
642 corgi_goto_sleep(alarm_time, alarm_enable, state); in corgi_enter_suspend()
651 corgi_goto_sleep(alarm_time, alarm_enable, state); in corgi_enter_suspend()
660 unsigned long alarm_time = RTAR; in corgi_pxa_pm_enter() local
665 corgi_goto_sleep(alarm_time, alarm_status, state); in corgi_pxa_pm_enter()
667 while (corgi_enter_suspend(alarm_time, alarm_status, state)) in corgi_pxa_pm_enter()
/linux-6.6.21/drivers/misc/
Dds1682.c138 static SENSOR_DEVICE_ATTR_2(alarm_time, S_IRUGO | S_IWUSR, ds1682_show,