Lines Matching refs:irqs
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()
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()
678 struct vmd_irq_list *irqs = data; in vmd_irq() local
682 idx = srcu_read_lock(&irqs->srcu); in vmd_irq()
683 list_for_each_entry_rcu(vmdirq, &irqs->irq_list, node) in vmd_irq()
685 srcu_read_unlock(&irqs->srcu, idx); in vmd_irq()
704 vmd->irqs = devm_kcalloc(&dev->dev, vmd->msix_count, sizeof(*vmd->irqs), in vmd_alloc_irqs()
706 if (!vmd->irqs) in vmd_alloc_irqs()
710 err = init_srcu_struct(&vmd->irqs[i].srcu); in vmd_alloc_irqs()
714 INIT_LIST_HEAD(&vmd->irqs[i].irq_list); in vmd_alloc_irqs()
715 vmd->irqs[i].virq = pci_irq_vector(dev, i); in vmd_alloc_irqs()
716 err = devm_request_irq(&dev->dev, vmd->irqs[i].virq, in vmd_alloc_irqs()
718 vmd->name, &vmd->irqs[i]); in vmd_alloc_irqs()
1038 cleanup_srcu_struct(&vmd->irqs[i].srcu); in vmd_cleanup_srcu()
1069 devm_free_irq(dev, vmd->irqs[i].virq, &vmd->irqs[i]); in vmd_suspend()
1086 err = devm_request_irq(dev, vmd->irqs[i].virq, in vmd_resume()
1088 vmd->name, &vmd->irqs[i]); in vmd_resume()