Lines Matching refs:msidesc
170 struct msi_desc *msidesc; in xen_setup_msi_irqs() local
187 msi_for_each_desc(msidesc, &dev->dev, MSI_DESC_NOTASSOCIATED) { in xen_setup_msi_irqs()
188 irq = xen_bind_pirq_msi_to_irq(dev, msidesc, v[i], in xen_setup_msi_irqs()
232 struct msi_desc *msidesc; in xen_hvm_setup_msi_irqs() local
238 msi_for_each_desc(msidesc, &dev->dev, MSI_DESC_NOTASSOCIATED) { in xen_hvm_setup_msi_irqs()
239 pirq = xen_allocate_pirq_msi(dev, msidesc); in xen_hvm_setup_msi_irqs()
245 __pci_write_msi_msg(msidesc, &msg); in xen_hvm_setup_msi_irqs()
247 irq = xen_bind_pirq_msi_to_irq(dev, msidesc, pirq, in xen_hvm_setup_msi_irqs()
271 struct msi_desc *msidesc; in xen_initdom_setup_msi_irqs() local
273 msi_for_each_desc(msidesc, &dev->dev, MSI_DESC_NOTASSOCIATED) { in xen_initdom_setup_msi_irqs()
309 map_irq.entry_nr = msidesc->msi_index; in xen_initdom_setup_msi_irqs()
342 ret = xen_bind_pirq_msi_to_irq(dev, msidesc, map_irq.pirq, in xen_initdom_setup_msi_irqs()
389 struct msi_desc *msidesc; in xen_teardown_msi_irqs() local
392 msi_for_each_desc(msidesc, &dev->dev, MSI_DESC_ASSOCIATED) { in xen_teardown_msi_irqs()
393 for (i = 0; i < msidesc->nvec_used; i++) in xen_teardown_msi_irqs()
394 xen_destroy_irq(msidesc->irq + i); in xen_teardown_msi_irqs()
395 msidesc->irq = 0; in xen_teardown_msi_irqs()