Lines Matching refs:hirq
115 struct hwbutton_interrupt *hirq = data; in hwbutton_handler() local
118 if (CIC_EXT_IS_ACTIVE_HI(cic_ext, hirq->eirq)) { in hwbutton_handler()
120 CIC_EXT_SET_ACTIVE_LO(cic_ext, hirq->eirq); in hwbutton_handler()
121 hirq->handle_hi(hirq->data); in hwbutton_handler()
124 CIC_EXT_SET_ACTIVE_HI(cic_ext, hirq->eirq); in hwbutton_handler()
125 hirq->handle_lo(hirq->data); in hwbutton_handler()
137 static int msp_hwbutton_register(struct hwbutton_interrupt *hirq) in msp_hwbutton_register() argument
141 if (hirq->handle_hi == NULL || hirq->handle_lo == NULL) in msp_hwbutton_register()
145 CIC_EXT_SET_TRIGGER_LEVEL(cic_ext, hirq->eirq); in msp_hwbutton_register()
146 if (hirq->initial_state == HWBUTTON_HI) in msp_hwbutton_register()
147 CIC_EXT_SET_ACTIVE_LO(cic_ext, hirq->eirq); in msp_hwbutton_register()
149 CIC_EXT_SET_ACTIVE_HI(cic_ext, hirq->eirq); in msp_hwbutton_register()
152 return request_irq(hirq->irq, hwbutton_handler, 0, in msp_hwbutton_register()
153 hirq->name, hirq); in msp_hwbutton_register()