Lines Matching full:alarm
31 * @alarm_ctrl: base address of alarm control register
32 * @alarm_ctrl2: base address of alarm control2 register
33 * @alarm_rw: base address of alarm read-write register
34 * @alarm_en: alarm enable mask
51 * @rtc_alarm_irq: rtc alarm irq number.
68 * 1. Disable alarm if enabled.
73 * 6. Enable alarm if disabled in step 1.
107 dev_err(dev, "Write to RTC Alarm control register failed\n"); in pm8xxx_rtc_set_time()
163 dev_err(dev, "Write to RTC Alarm control register failed\n"); in pm8xxx_rtc_set_time()
218 static int pm8xxx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in pm8xxx_rtc_set_alarm() argument
227 secs = rtc_tm_to_time64(&alarm->time); in pm8xxx_rtc_set_alarm()
239 dev_err(dev, "Write to RTC ALARM register failed\n"); in pm8xxx_rtc_set_alarm()
247 if (alarm->enabled) in pm8xxx_rtc_set_alarm()
254 dev_err(dev, "Write to RTC alarm control register failed\n"); in pm8xxx_rtc_set_alarm()
258 dev_dbg(dev, "Alarm Set for h:m:s=%ptRt, y-m-d=%ptRdr\n", in pm8xxx_rtc_set_alarm()
259 &alarm->time, &alarm->time); in pm8xxx_rtc_set_alarm()
265 static int pm8xxx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in pm8xxx_rtc_read_alarm() argument
276 dev_err(dev, "RTC alarm time read failed\n"); in pm8xxx_rtc_read_alarm()
283 rtc_time64_to_tm(secs, &alarm->time); in pm8xxx_rtc_read_alarm()
285 dev_dbg(dev, "Alarm set for - h:m:s=%ptRt, y-m-d=%ptRdr\n", in pm8xxx_rtc_read_alarm()
286 &alarm->time, &alarm->time); in pm8xxx_rtc_read_alarm()
317 /* Clear Alarm register */ in pm8xxx_rtc_alarm_irq_enable()
322 dev_err(dev, "Clear RTC ALARM register failed\n"); in pm8xxx_rtc_alarm_irq_enable()
352 /* Clear the alarm enable bit */ in pm8xxx_alarm_trigger()
365 "Write to alarm control register failed\n"); in pm8xxx_alarm_trigger()
371 /* Clear RTC alarm register */ in pm8xxx_alarm_trigger()
375 "RTC Alarm control2 register read failed\n"); in pm8xxx_alarm_trigger()
383 "Write to RTC Alarm control2 register failed\n"); in pm8xxx_alarm_trigger()
501 /* Request the alarm IRQ */ in pm8xxx_rtc_probe()