/xen/xen/drivers/passthrough/x86/ |
A D | ats.c | 36 seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in enable_ats_device() 68 seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn), in enable_ats_device() 90 seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in disable_ats_device()
|
/xen/xen/drivers/passthrough/ |
A D | pci.c | 245 u8 func = PCI_FUNC(pdev->devfn); in check_pdev() 405 if ( PCI_FUNC(devfn) >= pdev->phantom_stride ) in alloc_pdev() 416 phantom_devs[i].stride > PCI_FUNC(devfn) ) in alloc_pdev() 695 unsigned int slot = PCI_SLOT(devfn), func = PCI_FUNC(devfn); in pci_add_device() 852 seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in pci_remove_device() 1007 u8 d = PCI_SLOT(devfn), f = PCI_FUNC(devfn); in pdev_type() 1228 PCI_SLOT(devfn), PCI_FUNC(devfn)); in _setup_hwdom_pci_devices() 1269 p->function == PCI_FUNC(pdev->devfn); in hest_match_pci() 1277 PCI_FUNC(pdev->devfn), in hest_match_type() 1554 d, seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn), rc); in assign_device() [all …]
|
A D | io.c | 613 PCI_FUNC(digl->device), digl->intx); in pt_irq_create_bind() 651 PCI_SLOT(device), PCI_FUNC(device), intx); in pt_irq_destroy_bind() 768 PCI_FUNC(device), pt_irq_bind->u.pci.intx); in pt_irq_destroy_bind()
|
/xen/xen/drivers/vpci/ |
A D | msix.c | 45 uint8_t slot = PCI_SLOT(pdev->devfn), func = PCI_FUNC(pdev->devfn); in update_entry() 75 uint8_t slot = PCI_SLOT(pdev->devfn), func = PCI_FUNC(pdev->devfn); in control_write() 184 pdev->seg, pdev->bus, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in access_allowed() 437 PCI_FUNC(pdev->devfn), mfn_x(mfn), t, start); in vpci_make_msix_hole() 450 uint8_t slot = PCI_SLOT(pdev->devfn), func = PCI_FUNC(pdev->devfn); in init_msix()
|
A D | msi.c | 188 uint8_t slot = PCI_SLOT(pdev->devfn), func = PCI_FUNC(pdev->devfn); in init_msi() 293 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in vpci_dump_msi() 311 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in vpci_dump_msi()
|
A D | header.c | 358 uint8_t slot = PCI_SLOT(pdev->devfn), func = PCI_FUNC(pdev->devfn); in bar_write() 405 uint8_t slot = PCI_SLOT(pdev->devfn), func = PCI_FUNC(pdev->devfn); in rom_write()
|
/xen/xen/drivers/passthrough/amd/ |
A D | pci_amd_iommu.c | 41 unsigned int bd0 = bdf & ~PCI_FUNC(~0); in find_iommu_for_device() 54 seg, PCI_BUS(bdf), PCI_SLOT(bdf), PCI_FUNC(bdf)); in find_iommu_for_device() 337 pdev->seg, pdev->bus, PCI_SLOT(devfn), PCI_FUNC(devfn), in reassign_device() 356 pdev->seg, pdev->bus, PCI_SLOT(devfn), PCI_FUNC(devfn), in reassign_device() 467 PCI_FUNC(devfn)); in amd_iommu_add_device() 472 pdev->seg, pdev->bus, PCI_SLOT(devfn), PCI_FUNC(devfn), in amd_iommu_add_device() 530 pdev->seg, pdev->bus, PCI_SLOT(devfn), PCI_FUNC(devfn), in amd_iommu_remove_device()
|
A D | iommu_acpi.c | 97 PCI_FUNC(alias_id)); in add_ivrs_mapping_entry() 742 seg, PCI_BUS(bdf), PCI_SLOT(bdf), PCI_FUNC(bdf), in parse_ivhd_device_special() 769 PCI_BUS(bdf), PCI_SLOT(bdf), PCI_FUNC(bdf)); in parse_ivhd_device_special() 841 PCI_SLOT(bdf), PCI_FUNC(bdf)); in parse_ivhd_device_special() 1253 return ret < 0 ? ret : (ret | PCI_FUNC(~0)) + 1; in amd_iommu_get_ivrs_dev_entries()
|
A D | iommu_detect.c | 172 func = PCI_FUNC(iommu->bdf); in amd_iommu_detect_one_acpi()
|
A D | iommu_intr.c | 614 seg, PCI_BUS(bdf), PCI_SLOT(bdf), PCI_FUNC(bdf)); in _find_iommu_for_device() 718 for ( i = 1; PCI_FUNC(bdf + i) && bdf + i < ivrs_bdf_entries; ++i ) in amd_iommu_free_intremap_table() 869 PCI_FUNC(ivrs_mapping->dte_requestor_id)); in dump_intremap_table()
|
A D | iommu_init.c | 409 PCI_FUNC(iommu->bdf), iommu->msi.msi_attrib.pos, flag); in amd_iommu_msi_enable() 564 PCI_FUNC(device_id), domain_id, addr, flags, in parse_event_log_entry() 758 PCI_SLOT(iommu->bdf), PCI_FUNC(iommu->bdf)); in set_iommu_interrupt_handler() 846 u8 func = PCI_FUNC(iommu->bdf); in amd_iommu_erratum_746_workaround()
|
A D | iommu_cmd.c | 294 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in amd_iommu_flush_iotlb()
|
/xen/xen/arch/x86/ |
A D | msi.c | 287 u8 func = PCI_FUNC(dev->devfn); in msi_set_enable() 300 u8 func = PCI_FUNC(dev->devfn); in msix_set_enable() 334 func = PCI_FUNC(pdev->devfn); in msi_set_mask_bit() 617 u8 func = PCI_FUNC(dev->devfn); in msi_capability_init() 780 u8 func = PCI_FUNC(dev->devfn); in msix_capability_init() 844 pfunc = PCI_FUNC(dev->info.physfn.devfn); in msix_capability_init() 1015 PCI_SLOT(msi->devfn), PCI_FUNC(msi->devfn)); in __pci_enable_msi() 1024 PCI_SLOT(msi->devfn), PCI_FUNC(msi->devfn)); in __pci_enable_msi() 1062 u8 func = PCI_FUNC(msi->devfn); in __pci_enable_msix() 1116 u8 func = PCI_FUNC(dev->devfn); in __pci_disable_msix() [all …]
|
/xen/xen/drivers/passthrough/vtd/ |
A D | iommu.c | 880 PCI_FUNC(source_id), addr); in iommu_page_fault_do_one() 888 PCI_FUNC(source_id), addr >> 48); in iommu_page_fault_do_one() 896 PCI_FUNC(source_id), addr); in iommu_page_fault_do_one() 1495 PCI_SLOT(devfn), PCI_FUNC(devfn)); in domain_context_mapping() 1509 PCI_SLOT(devfn), PCI_FUNC(devfn)); in domain_context_mapping() 1521 PCI_SLOT(devfn), PCI_FUNC(devfn)); in domain_context_mapping() 1559 seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in domain_context_mapping() 1656 PCI_SLOT(devfn), PCI_FUNC(devfn)); in domain_context_unmap() 1670 PCI_SLOT(devfn), PCI_FUNC(devfn)); in domain_context_unmap() 1707 seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in domain_context_unmap() [all …]
|
A D | utils.c | 100 PCI_SLOT(devfn), PCI_FUNC(devfn), gmfn); in print_vtd_entries()
|
A D | quirks.c | 417 int func = PCI_FUNC(pdev->devfn); in pci_vtd_quirk()
|
A D | intremap.c | 526 seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in set_msi_source_id() 533 seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in set_msi_source_id()
|
A D | dmar.c | 524 f = PCI_FUNC(dmaru->scope.devices[i]); in acpi_parse_one_drhd() 560 u8 f = PCI_FUNC(rmrru->scope.devices[i]); in register_one_rmrr()
|
/xen/xen/drivers/video/ |
A D | vga.c | 157 bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in video_endboot()
|
/xen/xen/drivers/pci/ |
A D | pci.c | 167 func != PCI_FUNC(PCI_DEVFN(0, func)) ) in parse_pci_seg()
|
/xen/xen/include/xen/ |
A D | pci.h | 32 #define PCI_FUNC(bdf) ((bdf) & 0x07) macro
|
/xen/xen/arch/x86/hvm/ |
A D | vmsi.c | 703 PCI_FUNC(pdev->devfn), pirq + i, rc); in vpci_msi_update() 759 PCI_FUNC(pdev->devfn), rc); in vpci_msi_enable()
|
/xen/tools/libxl/ |
A D | libxl_pci.c | 1170 PCI_FUNC(pcidev->vdevfn)); in pci_add_qmp_device_add()
|
A D | libxl_internal.h | 761 #define PCI_FUNC(devfn) ((devfn) & 0x07) macro
|