Lines Matching refs:enabled
141 uie = rtc->uie_rtctimer.enabled || rtc->uie_irq_active; in rtc_set_time()
143 uie = rtc->uie_rtctimer.enabled; in rtc_set_time()
192 alarm->enabled = 0; in rtc_read_alarm_internal()
379 if (err && alarm->enabled) in __rtc_read_alarm()
399 alarm->enabled = rtc->aie_timer.enabled; in rtc_read_alarm()
470 if (rtc->aie_timer.enabled) in rtc_set_alarm()
483 if (alarm->enabled) in rtc_set_alarm()
514 if (alarm->enabled && (rtc_tm_to_ktime(now) < in rtc_initialize_alarm()
516 rtc->aie_timer.enabled = 1; in rtc_initialize_alarm()
525 int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled) in rtc_alarm_irq_enable() argument
533 if (rtc->aie_timer.enabled != enabled) { in rtc_alarm_irq_enable()
534 if (enabled) in rtc_alarm_irq_enable()
547 err = rtc->ops->alarm_irq_enable(rtc->dev.parent, enabled); in rtc_alarm_irq_enable()
551 trace_rtc_alarm_irq_enable(enabled, err); in rtc_alarm_irq_enable()
556 int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled) in rtc_update_irq_enable() argument
565 if (enabled == 0 && rtc->uie_irq_active) { in rtc_update_irq_enable()
571 if (rtc->uie_rtctimer.enabled == enabled) in rtc_update_irq_enable()
578 return rtc_dev_update_irq_enable_emul(rtc, enabled); in rtc_update_irq_enable()
584 if (enabled) { in rtc_update_irq_enable()
721 static int rtc_update_hrtimer(struct rtc_device *rtc, int enabled) in rtc_update_hrtimer() argument
736 if (enabled) { in rtc_update_hrtimer()
753 int rtc_irq_set_state(struct rtc_device *rtc, int enabled) in rtc_irq_set_state() argument
757 while (rtc_update_hrtimer(rtc, enabled) < 0) in rtc_irq_set_state()
760 rtc->pie_enabled = enabled; in rtc_irq_set_state()
762 trace_rtc_irq_set_state(enabled, err); in rtc_irq_set_state()
813 timer->enabled = 1; in rtc_timer_enqueue()
829 alarm.enabled = 1; in rtc_timer_enqueue()
837 timer->enabled = 0; in rtc_timer_enqueue()
871 timer->enabled = 0; in rtc_timer_remove()
882 alarm.enabled = 1; in rtc_timer_remove()
922 timer->enabled = 0; in rtc_timer_do_work()
931 timer->enabled = 1; in rtc_timer_do_work()
944 alarm.enabled = 1; in rtc_timer_do_work()
956 timer->enabled = 0; in rtc_timer_do_work()
979 timer->enabled = 0; in rtc_timer_init()
998 if (timer->enabled) in rtc_timer_start()
1019 if (timer->enabled) in rtc_timer_cancel()