Lines Matching refs:fsl_wakeup
27 static struct fsl_mpic_timer_wakeup *fsl_wakeup; variable
62 if (fsl_wakeup->timer) { in fsl_timer_wakeup_show()
63 mpic_get_remain_time(fsl_wakeup->timer, &interval); in fsl_timer_wakeup_show()
84 if (fsl_wakeup->timer) { in fsl_timer_wakeup_store()
85 disable_irq_wake(fsl_wakeup->timer->irq); in fsl_timer_wakeup_store()
86 mpic_free_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
87 fsl_wakeup->timer = NULL; in fsl_timer_wakeup_store()
95 fsl_wakeup->timer = mpic_request_timer(fsl_mpic_timer_irq, in fsl_timer_wakeup_store()
96 fsl_wakeup, interval); in fsl_timer_wakeup_store()
97 if (!fsl_wakeup->timer) { in fsl_timer_wakeup_store()
102 ret = enable_irq_wake(fsl_wakeup->timer->irq); in fsl_timer_wakeup_store()
104 mpic_free_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
105 fsl_wakeup->timer = NULL; in fsl_timer_wakeup_store()
111 mpic_start_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
125 fsl_wakeup = kzalloc(sizeof(struct fsl_mpic_timer_wakeup), GFP_KERNEL); in fsl_wakeup_sys_init()
126 if (!fsl_wakeup) in fsl_wakeup_sys_init()
129 INIT_WORK(&fsl_wakeup->free_work, fsl_free_resource); in fsl_wakeup_sys_init()
133 kfree(fsl_wakeup); in fsl_wakeup_sys_init()
144 if (fsl_wakeup->timer) { in fsl_wakeup_sys_exit()
145 disable_irq_wake(fsl_wakeup->timer->irq); in fsl_wakeup_sys_exit()
146 mpic_free_timer(fsl_wakeup->timer); in fsl_wakeup_sys_exit()
149 kfree(fsl_wakeup); in fsl_wakeup_sys_exit()