Lines Matching refs:hwirq
67 static inline unsigned int get_mbigen_vec_reg(irq_hw_number_t hwirq) in get_mbigen_vec_reg() argument
71 hwirq -= RESERVED_IRQ_PER_MBIGEN_CHIP; in get_mbigen_vec_reg()
72 nid = hwirq / IRQS_PER_MBIGEN_NODE + 1; in get_mbigen_vec_reg()
73 pin = hwirq % IRQS_PER_MBIGEN_NODE; in get_mbigen_vec_reg()
79 static inline void get_mbigen_type_reg(irq_hw_number_t hwirq, in get_mbigen_type_reg() argument
84 hwirq -= RESERVED_IRQ_PER_MBIGEN_CHIP; in get_mbigen_type_reg()
85 nid = hwirq / IRQS_PER_MBIGEN_NODE + 1; in get_mbigen_type_reg()
86 irq_ofst = hwirq % IRQS_PER_MBIGEN_NODE; in get_mbigen_type_reg()
95 static inline void get_mbigen_clear_reg(irq_hw_number_t hwirq, in get_mbigen_clear_reg() argument
98 unsigned int ofst = (hwirq / 32) * 4; in get_mbigen_clear_reg()
100 *mask = 1 << (hwirq % 32); in get_mbigen_clear_reg()
109 get_mbigen_clear_reg(data->hwirq, &mask, &addr); in mbigen_eoi_irq()
124 get_mbigen_type_reg(data->hwirq, &mask, &addr); in mbigen_set_type()
156 base += get_mbigen_vec_reg(d->hwirq); in mbigen_write_msg()
170 unsigned long *hwirq, in mbigen_domain_translate() argument
181 *hwirq = fwspec->param[0]; in mbigen_domain_translate()
201 irq_hw_number_t hwirq; in mbigen_irq_domain_alloc() local
206 err = mbigen_domain_translate(domain, fwspec, &hwirq, &type); in mbigen_irq_domain_alloc()
217 irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, in mbigen_irq_domain_alloc()