Lines Matching full:irqs
111 * struct vmd_irq_list - list of driver requested IRQs mapping to a VMD vector
114 * @count: number of child IRQs assigned to this vector; used to track
132 struct vmd_irq_list *irqs; member
150 struct vmd_irq_list *irqs) in index_from_irqs() argument
152 return irqs - vmd->irqs; in index_from_irqs()
156 * Drivers managing a device in a VMD domain allocate their own IRQs as before,
241 return &vmd->irqs[vmd->first_vec]; in vmd_next_irq()
251 return &vmd->irqs[vmd->first_vec]; in vmd_next_irq()
257 if (vmd->irqs[i].count < vmd->irqs[best].count) in vmd_next_irq()
259 vmd->irqs[best].count++; in vmd_next_irq()
262 return &vmd->irqs[best]; in vmd_next_irq()
679 struct vmd_irq_list *irqs = data; in vmd_irq() local
683 idx = srcu_read_lock(&irqs->srcu); in vmd_irq()
684 list_for_each_entry_rcu(vmdirq, &irqs->irq_list, node) in vmd_irq()
686 srcu_read_unlock(&irqs->srcu, idx); in vmd_irq()
705 vmd->irqs = devm_kcalloc(&dev->dev, vmd->msix_count, sizeof(*vmd->irqs), in vmd_alloc_irqs()
707 if (!vmd->irqs) in vmd_alloc_irqs()
711 err = init_srcu_struct(&vmd->irqs[i].srcu); in vmd_alloc_irqs()
715 INIT_LIST_HEAD(&vmd->irqs[i].irq_list); in vmd_alloc_irqs()
716 vmd->irqs[i].virq = pci_irq_vector(dev, i); in vmd_alloc_irqs()
717 err = devm_request_irq(&dev->dev, vmd->irqs[i].virq, in vmd_alloc_irqs()
719 vmd->name, &vmd->irqs[i]); in vmd_alloc_irqs()
1039 cleanup_srcu_struct(&vmd->irqs[i].srcu); in vmd_cleanup_srcu()
1070 devm_free_irq(dev, vmd->irqs[i].virq, &vmd->irqs[i]); in vmd_suspend()
1087 err = devm_request_irq(dev, vmd->irqs[i].virq, in vmd_resume()
1089 vmd->name, &vmd->irqs[i]); in vmd_resume()