Lines Matching refs:irq
9 bool intc_mtk_adsp_get_enable(const struct device *dev, int irq);
10 void intc_mtk_adsp_set_enable(const struct device *dev, int irq, bool val);
44 void z_soc_irq_enable(unsigned int irq) in z_soc_irq_enable() argument
47 if (irq < 32) { in z_soc_irq_enable()
48 xtensa_irq_enable(irq); in z_soc_irq_enable()
50 const struct device *dev = irq_dev(&irq); in z_soc_irq_enable()
52 intc_mtk_adsp_set_enable(dev, irq, true); in z_soc_irq_enable()
56 void z_soc_irq_disable(unsigned int irq) in z_soc_irq_disable() argument
58 if (irq < 32) { in z_soc_irq_disable()
59 xtensa_irq_disable(irq); in z_soc_irq_disable()
61 const struct device *dev = irq_dev(&irq); in z_soc_irq_disable()
63 intc_mtk_adsp_set_enable(dev, irq, false); in z_soc_irq_disable()
67 int z_soc_irq_is_enabled(unsigned int irq) in z_soc_irq_is_enabled() argument
69 if (irq < 32) { in z_soc_irq_is_enabled()
70 return xtensa_irq_is_enabled(irq); in z_soc_irq_is_enabled()
72 return intc_mtk_adsp_get_enable(irq_dev(&irq), irq); in z_soc_irq_is_enabled()