Lines Matching refs:fsl_wakeup
27 static struct fsl_mpic_timer_wakeup *fsl_wakeup; variable
63 if (fsl_wakeup->timer) { in fsl_timer_wakeup_show()
64 mpic_get_remain_time(fsl_wakeup->timer, &interval); in fsl_timer_wakeup_show()
86 if (fsl_wakeup->timer) { in fsl_timer_wakeup_store()
87 disable_irq_wake(fsl_wakeup->timer->irq); in fsl_timer_wakeup_store()
88 mpic_free_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
89 fsl_wakeup->timer = NULL; in fsl_timer_wakeup_store()
97 fsl_wakeup->timer = mpic_request_timer(fsl_mpic_timer_irq, in fsl_timer_wakeup_store()
98 fsl_wakeup, &interval); in fsl_timer_wakeup_store()
99 if (!fsl_wakeup->timer) { in fsl_timer_wakeup_store()
104 ret = enable_irq_wake(fsl_wakeup->timer->irq); in fsl_timer_wakeup_store()
106 mpic_free_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
107 fsl_wakeup->timer = NULL; in fsl_timer_wakeup_store()
113 mpic_start_timer(fsl_wakeup->timer); in fsl_timer_wakeup_store()
127 fsl_wakeup = kzalloc(sizeof(struct fsl_mpic_timer_wakeup), GFP_KERNEL); in fsl_wakeup_sys_init()
128 if (!fsl_wakeup) in fsl_wakeup_sys_init()
131 INIT_WORK(&fsl_wakeup->free_work, fsl_free_resource); in fsl_wakeup_sys_init()
135 kfree(fsl_wakeup); in fsl_wakeup_sys_init()
146 if (fsl_wakeup->timer) { in fsl_wakeup_sys_exit()
147 disable_irq_wake(fsl_wakeup->timer->irq); in fsl_wakeup_sys_exit()
148 mpic_free_timer(fsl_wakeup->timer); in fsl_wakeup_sys_exit()
151 kfree(fsl_wakeup); in fsl_wakeup_sys_exit()