Lines Matching refs:irq

75 void hw_irq_ctrl_prio_set(unsigned int irq, unsigned int prio)  in hw_irq_ctrl_prio_set()  argument
77 irq_prio[irq] = prio; in hw_irq_ctrl_prio_set()
80 uint8_t hw_irq_ctrl_get_prio(unsigned int irq) in hw_irq_ctrl_get_prio() argument
82 return irq_prio[irq]; in hw_irq_ctrl_get_prio()
151 void hw_irq_ctrl_disable_irq(unsigned int irq) in hw_irq_ctrl_disable_irq() argument
153 irq_mask &= ~((uint64_t)1<<irq); in hw_irq_ctrl_disable_irq()
156 int hw_irq_ctrl_is_irq_enabled(unsigned int irq) in hw_irq_ctrl_is_irq_enabled() argument
158 return (irq_mask & ((uint64_t)1 << irq))?1:0; in hw_irq_ctrl_is_irq_enabled()
166 void hw_irq_ctrl_clear_irq(unsigned int irq) in hw_irq_ctrl_clear_irq() argument
168 irq_status &= ~((uint64_t)1<<irq); in hw_irq_ctrl_clear_irq()
169 irq_premask &= ~((uint64_t)1<<irq); in hw_irq_ctrl_clear_irq()
181 void hw_irq_ctrl_enable_irq(unsigned int irq) in hw_irq_ctrl_enable_irq() argument
183 irq_mask |= ((uint64_t)1<<irq); in hw_irq_ctrl_enable_irq()
184 if (irq_premask & ((uint64_t)1<<irq)) { /* if IRQ is pending */ in hw_irq_ctrl_enable_irq()
185 hw_irq_ctrl_raise_im_from_sw(irq); in hw_irq_ctrl_enable_irq()
190 static inline void hw_irq_ctrl_irq_raise_prefix(unsigned int irq) in hw_irq_ctrl_irq_raise_prefix() argument
192 if (irq < N_IRQS) { in hw_irq_ctrl_irq_raise_prefix()
193 irq_premask |= ((uint64_t)1<<irq); in hw_irq_ctrl_irq_raise_prefix()
195 if (irq_mask & (1 << irq)) { in hw_irq_ctrl_irq_raise_prefix()
196 irq_status |= ((uint64_t)1<<irq); in hw_irq_ctrl_irq_raise_prefix()
198 } else if (irq == PHONY_HARD_IRQ) { in hw_irq_ctrl_irq_raise_prefix()
209 void hw_irq_ctrl_set_irq(unsigned int irq) in hw_irq_ctrl_set_irq() argument
211 hw_irq_ctrl_irq_raise_prefix(irq); in hw_irq_ctrl_set_irq()
247 void hw_irq_ctrl_raise_im(unsigned int irq) in hw_irq_ctrl_raise_im() argument
249 hw_irq_ctrl_irq_raise_prefix(irq); in hw_irq_ctrl_raise_im()
258 void hw_irq_ctrl_raise_im_from_sw(unsigned int irq) in hw_irq_ctrl_raise_im_from_sw() argument
260 hw_irq_ctrl_irq_raise_prefix(irq); in hw_irq_ctrl_raise_im_from_sw()