• Home
  • Raw
  • Download

Lines Matching refs:virq

530 static int msi_domain_alloc(struct irq_domain *domain, unsigned int virq,  in msi_domain_alloc()  argument
542 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in msi_domain_alloc()
548 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc()
552 ops->msi_free(domain, info, virq + i); in msi_domain_alloc()
554 irq_domain_free_irqs_top(domain, virq, nr_irqs); in msi_domain_alloc()
562 static void msi_domain_free(struct irq_domain *domain, unsigned int virq, in msi_domain_free() argument
570 info->ops->msi_free(domain, info, virq + i); in msi_domain_free()
572 irq_domain_free_irqs_top(domain, virq, nr_irqs); in msi_domain_free()
603 unsigned int virq, irq_hw_number_t hwirq, in msi_domain_ops_init() argument
606 irq_domain_set_hwirq_and_chip(domain, virq, hwirq, info->chip, in msi_domain_ops_init()
609 __irq_set_handler(virq, info->handler, 0, info->handler_name); in msi_domain_ops_init()
611 irq_set_handler_data(virq, info->handler_data); in msi_domain_ops_init()
718 int ret, virq; in msi_domain_populate_irqs() local
725 for (virq = virq_base; virq < virq_base + nvec; virq++) { in msi_domain_populate_irqs()
726 desc = xa_load(&dev->msi.data->__store, virq); in msi_domain_populate_irqs()
727 desc->irq = virq; in msi_domain_populate_irqs()
730 ret = irq_domain_alloc_irqs_hierarchy(domain, virq, 1, arg); in msi_domain_populate_irqs()
734 irq_set_msi_desc(virq, desc); in msi_domain_populate_irqs()
740 for (--virq; virq >= virq_base; virq--) in msi_domain_populate_irqs()
741 irq_domain_free_irqs_common(domain, virq, 1); in msi_domain_populate_irqs()
811 static int msi_init_virq(struct irq_domain *domain, int virq, unsigned int vflags) in msi_init_virq() argument
813 struct irq_data *irqd = irq_domain_get_irq_data(domain, virq); in msi_init_virq()
859 int i, ret, virq; in __msi_domain_alloc_irqs() local
883 virq = __irq_domain_alloc_irqs(domain, -1, desc->nvec_used, in __msi_domain_alloc_irqs()
886 if (virq < 0) in __msi_domain_alloc_irqs()
890 irq_set_msi_desc_off(virq, i, desc); in __msi_domain_alloc_irqs()
891 irq_debugfs_copy_devname(virq + i, dev); in __msi_domain_alloc_irqs()
892 ret = msi_init_virq(domain, virq + i, vflags); in __msi_domain_alloc_irqs()