Lines Matching refs:irq
138 void arch_irq_enable(unsigned int irq);
146 void arch_irq_disable(unsigned int irq);
154 int arch_irq_is_enabled(unsigned int irq);
161 void arch_irq_enable(unsigned int irq) in arch_irq_enable() argument
163 if (IRQ_IS_COMMON(irq)) { in arch_irq_enable()
164 z_arc_connect_idu_set_mask(IRQ_NUM_TO_IDU_NUM(irq), 0x0); in arch_irq_enable()
166 z_arc_v2_irq_unit_int_enable(irq); in arch_irq_enable()
170 void arch_irq_disable(unsigned int irq) in arch_irq_disable() argument
172 if (IRQ_IS_COMMON(irq)) { in arch_irq_disable()
173 z_arc_connect_idu_set_mask(IRQ_NUM_TO_IDU_NUM(irq), 0x1); in arch_irq_disable()
175 z_arc_v2_irq_unit_int_disable(irq); in arch_irq_disable()
179 int arch_irq_is_enabled(unsigned int irq) in arch_irq_is_enabled() argument
181 if (IRQ_IS_COMMON(irq)) { in arch_irq_is_enabled()
182 return !z_arc_connect_idu_read_mask(IRQ_NUM_TO_IDU_NUM(irq)); in arch_irq_is_enabled()
184 return z_arc_v2_irq_unit_int_enabled(irq); in arch_irq_is_enabled()
188 void arch_irq_enable(unsigned int irq) in arch_irq_enable() argument
190 z_arc_v2_irq_unit_int_enable(irq); in arch_irq_enable()
193 void arch_irq_disable(unsigned int irq) in arch_irq_disable() argument
195 z_arc_v2_irq_unit_int_disable(irq); in arch_irq_disable()
198 int arch_irq_is_enabled(unsigned int irq) in arch_irq_is_enabled() argument
200 return z_arc_v2_irq_unit_int_enabled(irq); in arch_irq_is_enabled()
216 void z_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_irq_priority_set() argument
221 "invalid priority %d for irq %d", prio, irq); in z_irq_priority_set()
232 z_arc_v2_irq_unit_prio_set(irq, prio); in z_irq_priority_set()
249 int arch_irq_connect_dynamic(unsigned int irq, unsigned int priority, in arch_irq_connect_dynamic() argument
253 z_isr_install(irq, routine, parameter); in arch_irq_connect_dynamic()
254 z_irq_priority_set(irq, priority, flags); in arch_irq_connect_dynamic()
255 return irq; in arch_irq_connect_dynamic()