Lines Matching refs:hwirq
61 static u64 find_ht_magic_addr(struct pci_dev *pdev, unsigned int hwirq) in find_ht_magic_addr() argument
75 static u64 find_u4_magic_addr(struct pci_dev *pdev, unsigned int hwirq) in find_u4_magic_addr() argument
97 return 0xf8004000 | (hwirq << 4); in find_u4_magic_addr()
105 irq_hw_number_t hwirq; in u3msi_teardown_msi_irqs() local
111 hwirq = virq_to_hw(entry->irq); in u3msi_teardown_msi_irqs()
114 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, 1); in u3msi_teardown_msi_irqs()
126 int hwirq; in u3msi_setup_msi_irqs() local
140 hwirq = msi_bitmap_alloc_hwirqs(&msi_mpic->msi_bitmap, 1); in u3msi_setup_msi_irqs()
141 if (hwirq < 0) { in u3msi_setup_msi_irqs()
143 return hwirq; in u3msi_setup_msi_irqs()
146 addr = find_ht_magic_addr(pdev, hwirq); in u3msi_setup_msi_irqs()
148 addr = find_u4_magic_addr(pdev, hwirq); in u3msi_setup_msi_irqs()
152 virq = irq_create_mapping(msi_mpic->irqhost, hwirq); in u3msi_setup_msi_irqs()
154 pr_debug("u3msi: failed mapping hwirq 0x%x\n", hwirq); in u3msi_setup_msi_irqs()
155 msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, 1); in u3msi_setup_msi_irqs()
164 virq, hwirq, (unsigned long)addr); in u3msi_setup_msi_irqs()
167 virq, hwirq, (unsigned long)addr); in u3msi_setup_msi_irqs()
168 msg.data = hwirq; in u3msi_setup_msi_irqs()
171 hwirq++; in u3msi_setup_msi_irqs()