Lines Matching full:hwirq

59 	u32 reg_idx = SEI_IRQ_REG_IDX(d->hwirq);  in mvebu_sei_ack_irq()
61 writel_relaxed(BIT(SEI_IRQ_REG_BIT(d->hwirq)), in mvebu_sei_ack_irq()
68 u32 reg, reg_idx = SEI_IRQ_REG_IDX(d->hwirq); in mvebu_sei_mask_irq()
74 reg |= BIT(SEI_IRQ_REG_BIT(d->hwirq)); in mvebu_sei_mask_irq()
82 u32 reg, reg_idx = SEI_IRQ_REG_IDX(d->hwirq); in mvebu_sei_unmask_irq()
88 reg &= ~BIT(SEI_IRQ_REG_BIT(d->hwirq)); in mvebu_sei_unmask_irq()
144 msg->data = data->hwirq + sei->caps->cp_range.first; in mvebu_sei_cp_compose_msi_msg()
199 unsigned long *hwirq, in mvebu_sei_ap_translate() argument
202 *hwirq = fwspec->param[0]; in mvebu_sei_ap_translate()
213 unsigned long hwirq; in mvebu_sei_ap_alloc() local
217 mvebu_sei_ap_translate(domain, arg, &hwirq, &type); in mvebu_sei_ap_alloc()
221 fwspec.param[0] = hwirq + sei->caps->ap_range.first; in mvebu_sei_ap_alloc()
227 irq_domain_set_info(domain, virq, hwirq, in mvebu_sei_ap_alloc()
241 static void mvebu_sei_cp_release_irq(struct mvebu_sei *sei, unsigned long hwirq) in mvebu_sei_cp_release_irq() argument
244 clear_bit(hwirq, sei->cp_msi_bitmap); in mvebu_sei_cp_release_irq()
254 unsigned long hwirq; in mvebu_sei_cp_domain_alloc() local
262 hwirq = find_first_zero_bit(sei->cp_msi_bitmap, in mvebu_sei_cp_domain_alloc()
264 if (hwirq < sei->caps->cp_range.size) in mvebu_sei_cp_domain_alloc()
265 set_bit(hwirq, sei->cp_msi_bitmap); in mvebu_sei_cp_domain_alloc()
268 if (hwirq == sei->caps->cp_range.size) in mvebu_sei_cp_domain_alloc()
273 fwspec.param[0] = hwirq + sei->caps->cp_range.first; in mvebu_sei_cp_domain_alloc()
279 irq_domain_set_info(domain, virq, hwirq, in mvebu_sei_cp_domain_alloc()
286 mvebu_sei_cp_release_irq(sei, hwirq); in mvebu_sei_cp_domain_alloc()
296 if (nr_irqs != 1 || d->hwirq >= sei->caps->cp_range.size) { in mvebu_sei_cp_domain_free()
297 dev_err(sei->dev, "Invalid hwirq %lu\n", d->hwirq); in mvebu_sei_cp_domain_free()
301 mvebu_sei_cp_release_irq(sei, d->hwirq); in mvebu_sei_cp_domain_free()
339 unsigned long hwirq; in mvebu_sei_handle_cascade_irq() local
342 hwirq = idx * SEI_IRQ_COUNT_PER_REG + bit; in mvebu_sei_handle_cascade_irq()
343 err = generic_handle_domain_irq(sei->sei_domain, hwirq); in mvebu_sei_handle_cascade_irq()
345 dev_warn(sei->dev, "Spurious IRQ detected (hwirq %lu)\n", hwirq); in mvebu_sei_handle_cascade_irq()