Lines Matching refs:timer
19 struct mpic_timer *timer; member
33 if (wakeup->timer) { in fsl_free_resource()
34 disable_irq_wake(wakeup->timer->irq); in fsl_free_resource()
35 mpic_free_timer(wakeup->timer); in fsl_free_resource()
38 wakeup->timer = NULL; in fsl_free_resource()
48 return wakeup->timer ? IRQ_HANDLED : IRQ_NONE; in fsl_mpic_timer_irq()
58 if (fsl_wakeup->timer) { in fsl_timer_wakeup_show()
59 mpic_get_remain_time(fsl_wakeup->timer, &interval); in fsl_timer_wakeup_show()
80 if (fsl_wakeup->timer) { in fsl_timer_wakeup_store()
81 disable_irq_wake(fsl_wakeup->timer->irq); in fsl_timer_wakeup_store()
82 mpic_free_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
83 fsl_wakeup->timer = NULL; in fsl_timer_wakeup_store()
91 fsl_wakeup->timer = mpic_request_timer(fsl_mpic_timer_irq, in fsl_timer_wakeup_store()
93 if (!fsl_wakeup->timer) { in fsl_timer_wakeup_store()
98 ret = enable_irq_wake(fsl_wakeup->timer->irq); in fsl_timer_wakeup_store()
100 mpic_free_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
101 fsl_wakeup->timer = NULL; in fsl_timer_wakeup_store()
107 mpic_start_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
151 if (fsl_wakeup->timer) { in fsl_wakeup_sys_exit()
152 disable_irq_wake(fsl_wakeup->timer->irq); in fsl_wakeup_sys_exit()
153 mpic_free_timer(fsl_wakeup->timer); in fsl_wakeup_sys_exit()