Lines Matching refs:entry_nr
322 static int xen_pt_msix_update_one(XenPCIPassthroughState *s, int entry_nr, in xen_pt_msix_update_one() argument
329 if (entry_nr < 0 || entry_nr >= s->msix->total_entries) { in xen_pt_msix_update_one()
333 entry = &s->msix->msix_entry[entry_nr]; in xen_pt_msix_update_one()
354 rc = msi_msix_setup(s, entry->addr, entry->data, &pirq, true, entry_nr, in xen_pt_msix_update_one()
364 entry_nr, &entry->pirq, in xen_pt_msix_update_one()
445 unsigned int entry_nr, offset; in pci_msix_write() local
447 entry_nr = addr / PCI_MSIX_ENTRY_SIZE; in pci_msix_write()
448 if (entry_nr >= msix->total_entries) { in pci_msix_write()
451 entry = &msix->msix_entry[entry_nr]; in pci_msix_write()
469 vec_ctrl = s->msix->phys_iomem_base + entry_nr * PCI_MSIX_ENTRY_SIZE in pci_msix_write()
471 xen_pt_msix_update_one(s, entry_nr, *vec_ctrl); in pci_msix_write()
482 int entry_nr, offset; in pci_msix_read() local
484 entry_nr = addr / PCI_MSIX_ENTRY_SIZE; in pci_msix_read()
485 if (entry_nr < 0) { in pci_msix_read()
486 XEN_PT_ERR(&s->dev, "asked MSI-X entry '%i' invalid!\n", entry_nr); in pci_msix_read()
493 return get_entry_value(&msix->msix_entry[entry_nr], offset); in pci_msix_read()