Lines Matching refs:virq
138 static int msi_domain_alloc(struct irq_domain *domain, unsigned int virq, in msi_domain_alloc() argument
150 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in msi_domain_alloc()
156 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc()
160 ops->msi_free(domain, info, virq + i); in msi_domain_alloc()
162 irq_domain_free_irqs_top(domain, virq, nr_irqs); in msi_domain_alloc()
170 static void msi_domain_free(struct irq_domain *domain, unsigned int virq, in msi_domain_free() argument
178 info->ops->msi_free(domain, info, virq + i); in msi_domain_free()
180 irq_domain_free_irqs_top(domain, virq, nr_irqs); in msi_domain_free()
211 unsigned int virq, irq_hw_number_t hwirq, in msi_domain_ops_init() argument
214 irq_domain_set_hwirq_and_chip(domain, virq, hwirq, info->chip, in msi_domain_ops_init()
217 __irq_set_handler(virq, info->handler, 0, info->handler_name); in msi_domain_ops_init()
219 irq_set_handler_data(virq, info->handler_data); in msi_domain_ops_init()
319 int virq, int nvec, msi_alloc_info_t *arg) in msi_domain_populate_irqs() argument
333 if (!(desc->irq >= virq && desc->irq < (virq + nvec))) in msi_domain_populate_irqs()
349 if (!(desc->irq >= virq && desc->irq < (virq + nvec))) in msi_domain_populate_irqs()
406 int i, ret, virq; in __msi_domain_alloc_irqs() local
416 virq = __irq_domain_alloc_irqs(domain, -1, desc->nvec_used, in __msi_domain_alloc_irqs()
419 if (virq < 0) { in __msi_domain_alloc_irqs()
429 irq_set_msi_desc_off(virq, i, desc); in __msi_domain_alloc_irqs()
430 irq_debugfs_copy_devname(virq + i, dev); in __msi_domain_alloc_irqs()
449 virq = desc->irq; in __msi_domain_alloc_irqs()
451 virq, virq + desc->nvec_used - 1); in __msi_domain_alloc_irqs()