Lines Matching defs:enabled

141 	uie = rtc->uie_rtctimer.enabled || rtc->uie_irq_active;
143 uie = rtc->uie_rtctimer.enabled;
192 alarm->enabled = 0;
379 if (err && alarm->enabled)
399 alarm->enabled = rtc->aie_timer.enabled;
470 if (rtc->aie_timer.enabled)
483 if (alarm->enabled)
513 /* Alarm has to be enabled & in the future for us to enqueue it */
514 if (alarm->enabled && (rtc_tm_to_ktime(now) <
516 rtc->aie_timer.enabled = 1;
525 int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled)
533 if (rtc->aie_timer.enabled != enabled) {
534 if (enabled)
547 err = rtc->ops->alarm_irq_enable(rtc->dev.parent, enabled);
551 trace_rtc_alarm_irq_enable(enabled, err);
556 int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled)
565 if (enabled == 0 && rtc->uie_irq_active) {
571 if (rtc->uie_rtctimer.enabled == enabled)
578 return rtc_dev_update_irq_enable_emul(rtc, enabled);
584 if (enabled) {
721 static int rtc_update_hrtimer(struct rtc_device *rtc, int enabled)
736 if (enabled) {
747 * @enabled: true to enable periodic IRQs
753 int rtc_irq_set_state(struct rtc_device *rtc, int enabled)
757 while (rtc_update_hrtimer(rtc, enabled) < 0)
760 rtc->pie_enabled = enabled;
762 trace_rtc_irq_set_state(enabled, err);
798 * Sets the enabled bit on the added timer.
813 timer->enabled = 1;
829 alarm.enabled = 1;
837 timer->enabled = 0;
861 * Clears the enabled bit on the removed timer.
871 timer->enabled = 0;
882 alarm.enabled = 1;
922 timer->enabled = 0;
931 timer->enabled = 1;
944 alarm.enabled = 1;
956 timer->enabled = 0;
979 timer->enabled = 0;
998 if (timer->enabled)
1019 if (timer->enabled)