Lines Matching refs:dmairq
109 static void dmabrg_disable_irq(unsigned int dmairq) in dmabrg_disable_irq() argument
113 dcr &= ~(1 << ((dmairq > 1) ? dmairq + 22 : dmairq + 8)); in dmabrg_disable_irq()
117 static void dmabrg_enable_irq(unsigned int dmairq) in dmabrg_enable_irq() argument
121 dcr |= (1 << ((dmairq > 1) ? dmairq + 22 : dmairq + 8)); in dmabrg_enable_irq()
125 int dmabrg_request_irq(unsigned int dmairq, void(*handler)(void*), in dmabrg_request_irq() argument
128 if ((dmairq > 9) || !handler) in dmabrg_request_irq()
130 if (dmabrg_handlers[dmairq].handler) in dmabrg_request_irq()
133 dmabrg_handlers[dmairq].handler = handler; in dmabrg_request_irq()
134 dmabrg_handlers[dmairq].data = data; in dmabrg_request_irq()
136 dmabrg_enable_irq(dmairq); in dmabrg_request_irq()
141 void dmabrg_free_irq(unsigned int dmairq) in dmabrg_free_irq() argument
143 if (likely(dmairq < 10)) { in dmabrg_free_irq()
144 dmabrg_disable_irq(dmairq); in dmabrg_free_irq()
145 dmabrg_handlers[dmairq].handler = NULL; in dmabrg_free_irq()
146 dmabrg_handlers[dmairq].data = NULL; in dmabrg_free_irq()