Lines Matching refs:irq
22 unsigned int irq = idata->irq; in ia64_set_msi_irq_affinity() local
24 if (irq_prepare_move(irq, cpu)) in ia64_set_msi_irq_affinity()
36 data |= MSI_DATA_VECTOR(irq_to_vector(irq)); in ia64_set_msi_irq_affinity()
39 pci_write_msi_msg(irq, &msg); in ia64_set_msi_irq_affinity()
50 int irq, vector; in arch_setup_msi_irq() local
52 irq = create_irq(); in arch_setup_msi_irq()
53 if (irq < 0) in arch_setup_msi_irq()
54 return irq; in arch_setup_msi_irq()
56 irq_set_msi_desc(irq, desc); in arch_setup_msi_irq()
57 dest_phys_id = cpu_physical_id(cpumask_any_and(&(irq_to_domain(irq)), in arch_setup_msi_irq()
59 vector = irq_to_vector(irq); in arch_setup_msi_irq()
74 pci_write_msi_msg(irq, &msg); in arch_setup_msi_irq()
75 irq_set_chip_and_handler(irq, &ia64_msi_chip, handle_edge_irq); in arch_setup_msi_irq()
80 void arch_teardown_msi_irq(unsigned int irq) in arch_teardown_msi_irq() argument
82 destroy_irq(irq); in arch_teardown_msi_irq()
87 irq_complete_move(data->irq); in ia64_ack_msi_irq()
94 unsigned int vector = irq_to_vector(data->irq); in ia64_msi_retrigger_irq()
119 unsigned int irq = data->irq; in dmar_msi_set_affinity() local
120 struct irq_cfg *cfg = irq_cfg + irq; in dmar_msi_set_affinity()
124 if (irq_prepare_move(irq, cpu)) in dmar_msi_set_affinity()
127 dmar_msi_read(irq, &msg); in dmar_msi_set_affinity()
134 dmar_msi_write(irq, &msg); in dmar_msi_set_affinity()
153 msi_compose_msg(struct pci_dev *pdev, unsigned int irq, struct msi_msg *msg) in msi_compose_msg() argument
155 struct irq_cfg *cfg = irq_cfg + irq; in msi_compose_msg()
158 dest = cpu_physical_id(cpumask_first_and(&(irq_to_domain(irq)), in msi_compose_msg()
177 int irq; in dmar_alloc_hwirq() local
180 irq = create_irq(); in dmar_alloc_hwirq()
181 if (irq > 0) { in dmar_alloc_hwirq()
182 irq_set_handler_data(irq, arg); in dmar_alloc_hwirq()
183 irq_set_chip_and_handler_name(irq, &dmar_msi_type, in dmar_alloc_hwirq()
185 msi_compose_msg(NULL, irq, &msg); in dmar_alloc_hwirq()
186 dmar_msi_write(irq, &msg); in dmar_alloc_hwirq()
189 return irq; in dmar_alloc_hwirq()
192 void dmar_free_hwirq(int irq) in dmar_free_hwirq() argument
194 irq_set_handler_data(irq, NULL); in dmar_free_hwirq()
195 destroy_irq(irq); in dmar_free_hwirq()