Lines Matching full:irq

11 #include <zephyr/arch/arm/irq.h>
26 /* Reading IRQVEC register, ACTIRQ gets loaded with valid IRQ values */ in z_vim_irq_get_active()
32 /* Check if the irq number is valid, else return invalid irq number. in z_vim_irq_get_active()
52 void z_vim_irq_eoi(unsigned int irq) in z_vim_irq_eoi() argument
64 void z_vim_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_vim_irq_priority_set() argument
68 if (irq > CONFIG_NUM_IRQS || prio > VIM_PRI_INT_MAX || in z_vim_irq_priority_set()
70 LOG_ERR("%s: Invalid argument irq = %u prio = %u flags = %u\n", in z_vim_irq_priority_set()
71 __func__, irq, prio, flags); in z_vim_irq_priority_set()
75 sys_write8(prio, VIM_PRI_INT(irq)); in z_vim_irq_priority_set()
77 irq_group_num = VIM_GET_IRQ_GROUP_NUM(irq); in z_vim_irq_priority_set()
78 irq_bit_num = VIM_GET_IRQ_BIT_NUM(irq); in z_vim_irq_priority_set()
91 void z_vim_irq_enable(unsigned int irq) in z_vim_irq_enable() argument
95 if (irq > CONFIG_NUM_IRQS) { in z_vim_irq_enable()
96 LOG_ERR("%s: Invalid irq number = %u\n", __func__, irq); in z_vim_irq_enable()
100 irq_group_num = VIM_GET_IRQ_GROUP_NUM(irq); in z_vim_irq_enable()
101 irq_bit_num = VIM_GET_IRQ_BIT_NUM(irq); in z_vim_irq_enable()
106 void z_vim_irq_disable(unsigned int irq) in z_vim_irq_disable() argument
110 if (irq > CONFIG_NUM_IRQS) { in z_vim_irq_disable()
111 LOG_ERR("%s: Invalid irq number = %u\n", __func__, irq); in z_vim_irq_disable()
115 irq_group_num = VIM_GET_IRQ_GROUP_NUM(irq); in z_vim_irq_disable()
116 irq_bit_num = VIM_GET_IRQ_BIT_NUM(irq); in z_vim_irq_disable()
121 int z_vim_irq_is_enabled(unsigned int irq) in z_vim_irq_is_enabled() argument
125 if (irq > CONFIG_NUM_IRQS) { in z_vim_irq_is_enabled()
126 LOG_ERR("%s: Invalid irq number = %u\n", __func__, irq); in z_vim_irq_is_enabled()
130 irq_group_num = VIM_GET_IRQ_GROUP_NUM(irq); in z_vim_irq_is_enabled()
131 irq_bit_num = VIM_GET_IRQ_BIT_NUM(irq); in z_vim_irq_is_enabled()
138 void z_vim_arm_enter_irq(int irq) in z_vim_arm_enter_irq() argument
142 if (irq > CONFIG_NUM_IRQS) { in z_vim_arm_enter_irq()
143 LOG_ERR("%s: Invalid irq number = %u\n", __func__, irq); in z_vim_arm_enter_irq()
147 irq_group_num = VIM_GET_IRQ_GROUP_NUM(irq); in z_vim_arm_enter_irq()
148 irq_bit_num = VIM_GET_IRQ_BIT_NUM(irq); in z_vim_arm_enter_irq()