/openbmc/linux/drivers/xen/xen-pciback/ |
H A D | vpci.c | 49 if (PCI_FUNC(entry->dev->devfn) == PCI_FUNC(devfn)) { in __xen_pcibk_get_pci_dev() 73 int err = 0, slot, func = PCI_FUNC(dev->devfn); in __xen_pcibk_add_pci_dev() 109 if (t->dev->is_virtfn && !PCI_FUNC(t->dev->devfn)) in __xen_pcibk_add_pci_dev() 251 PCI_FUNC(pcidev->devfn)); in __xen_pcibk_get_pcifront_dev()
|
H A D | pci_stub.c | 167 && func == PCI_FUNC(psdev->dev->devfn)) { in pcistub_device_find_locked() 784 PCI_FUNC(dev->devfn)); in xen_pcibk_slot_reset() 841 PCI_FUNC(dev->devfn)); in xen_pcibk_mmio_enabled() 898 PCI_FUNC(dev->devfn)); in xen_pcibk_error_detected() 951 PCI_FUNC(dev->devfn)); in xen_pcibk_error_resume() 1086 || PCI_FUNC(devfn) != func) in pcistub_device_id_add() 1112 && (func < 0 || PCI_FUNC(pci_dev_id->devfn) == func)) { in pcistub_device_id_remove() 1225 PCI_FUNC(pci_dev_id->devfn)); in slots_show() 1339 PCI_FUNC(quirk->pdev->devfn), in quirks_show()
|
/openbmc/linux/arch/arm/plat-orion/ |
H A D | pcie.c | 213 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | in orion_pcie_rd_conf() 232 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | in orion_pcie_rd_conf_tlp() 239 PCI_FUNC(devfn) != 0) in orion_pcie_rd_conf_tlp() 255 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | in orion_pcie_rd_conf_wa() 273 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | in orion_pcie_wr_conf()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | ocxl.c | 195 link->fn_desired_actags[PCI_FUNC(dev->devfn)] = 0; in pnv_ocxl_fixup_actag() 204 link->fn_desired_actags[PCI_FUNC(dev->devfn)] += actag; in pnv_ocxl_fixup_actag() 207 link->fn_desired_actags[PCI_FUNC(dev->devfn)]); in pnv_ocxl_fixup_actag() 273 *base = link->fn_actags[PCI_FUNC(dev->devfn)].start; in pnv_ocxl_get_actag() 274 *enabled = link->fn_actags[PCI_FUNC(dev->devfn)].count; in pnv_ocxl_get_actag() 275 *supported = link->fn_desired_actags[PCI_FUNC(dev->devfn)]; in pnv_ocxl_get_actag() 306 if (link->fn_desired_actags[i] && (i == PCI_FUNC(dev->devfn))) { in pnv_ocxl_get_pasid_count()
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_gt64120.c | 49 unsigned int devfn = PCI_DEV(bdf) << 3 | PCI_FUNC(bdf); in gt_config_access() 61 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf), where, *data); in gt_config_access() 110 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf), where, *data); in gt_config_access()
|
H A D | pcie_intel_fpga.c | 96 PCI_FUNC(bdf) == 0 && offset == PCI_BASE_ADDRESS_0) in intel_fpga_pcie_hide_rc_bar() 203 headers[2] = TLP_CFG_DW2(busno, PCI_DEV(bdf), PCI_FUNC(bdf), offset); in tlp_cfg_dword_read() 218 headers[2] = TLP_CFG_DW2(busno, PCI_DEV(bdf), PCI_FUNC(bdf), offset); in tlp_cfg_dword_write() 309 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in _pcie_intel_fpga_write_config() 332 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_intel_fpga_read_config()
|
H A D | pci_indirect.c | 26 b = PCI_BUS(dev); d = PCI_DEV(dev); f = PCI_FUNC(dev); \ 41 b = PCI_BUS(dev); d = PCI_DEV(dev); f = PCI_FUNC(dev); \
|
H A D | pci.c | 358 if (PCI_FUNC(dev) && !found_multi) in pci_hose_scan_bus() 368 if (!PCI_FUNC(dev)) in pci_hose_scan_bus() 372 PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev)); in pci_hose_scan_bus() 389 PCI_BUS(dev), PCI_DEV(dev), 6 - indent, PCI_FUNC(dev), in pci_hose_scan_bus() 399 PCI_BUS(dev), PCI_DEV(dev), PCI_FUNC(dev)); in pci_hose_scan_bus()
|
H A D | pcie_aspeed.c | 115 (PCI_FUNC(bdf) << 16) | in aspeed_pcie_cfg_read() 247 (PCI_FUNC(bdf) << 16) | in aspeed_pcie_cfg_write() 308 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_aspeed_read_config() 346 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_aspeed_write_config()
|
/openbmc/linux/drivers/platform/x86/ |
H A D | p2sb.c | 85 struct p2sb_res_cache *cache = &p2sb_resources[PCI_FUNC(devfn)]; in p2sb_scan_and_cache_devfn() 115 if (!p2sb_valid_resource(&p2sb_resources[PCI_FUNC(devfn)].res)) in p2sb_scan_and_cache() 181 struct p2sb_res_cache *cache = &p2sb_resources[PCI_FUNC(devfn)]; in p2sb_read_from_cache()
|
/openbmc/u-boot/drivers/bios_emulator/ |
H A D | atibios.c | 254 (int)PCI_DEV(bdf) << 3 | (int)PCI_FUNC(bdf); in PCI_doBIOSPOST() 257 ((int)PCI_DEV(pcidev) << 3) | (int)PCI_FUNC(pcidev); in PCI_doBIOSPOST() 525 vga_info->function = PCI_FUNC(bdf); in PCI_postController() 529 vga_info->function = PCI_FUNC(pcidev); in PCI_postController() 561 PCI_BUS(bdf), PCI_FUNC(bdf), PCI_DEV(bdf)); in biosemu_setup() 564 PCI_BUS(pcidev), PCI_FUNC(pcidev), PCI_DEV(pcidev)); in biosemu_setup()
|
/openbmc/linux/arch/xtensa/lib/ |
H A D | pci-auto.c | 253 if (PCI_FUNC(pci_devfn) && !found_multi) in pciauto_bus_scan() 263 if (!PCI_FUNC(pci_devfn)) in pciauto_bus_scan() 310 current_bus, PCI_SLOT(pci_devfn), PCI_FUNC(pci_devfn)); in pciauto_bus_scan()
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-ftpci100.c | 186 PCI_FUNC(fn), config), in faraday_raw_pci_read_config() 206 PCI_SLOT(fn), PCI_FUNC(fn), config, size, *value); in faraday_pci_read_config() 218 PCI_FUNC(fn), config), in faraday_raw_pci_write_config() 245 PCI_SLOT(fn), PCI_FUNC(fn), config, size, value); in faraday_pci_write_config()
|
H A D | pci-ixp4xx.c | 191 return (PCI_CONF1_ADDRESS(0, 0, PCI_FUNC(devfn), where) & in ixp4xx_config_addr() 196 PCI_FUNC(devfn), where) & in ixp4xx_config_addr() 310 where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_read_config() 358 value, where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_write_config()
|
/openbmc/qemu/hw/riscv/ |
H A D | riscv-iommu-pci.c | 94 pci_dev_bus_num(dev), PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in riscv_iommu_pci_realize() 132 PCI_FUNC(dev->devfn)); in riscv_iommu_pci_realize()
|
/openbmc/linux/drivers/ata/ |
H A D | ata_generic.c | 186 (!(PCI_FUNC(dev->devfn) & 1))) in ata_generic_init_one() 191 (!(PCI_FUNC(dev->devfn) & 1))) in ata_generic_init_one()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_pci.c | 67 PCI_FUNC(pdev->devfn)); in drm_pci_set_busid() 83 p->devnum != PCI_SLOT(pdev->devfn) || p->funcnum != PCI_FUNC(pdev->devfn)) in drm_legacy_pci_irq_by_busid()
|
/openbmc/linux/include/uapi/linux/ |
H A D | pci.h | 33 #define PCI_FUNC(devfn) ((devfn) & 0x07) macro
|
/openbmc/qemu/include/hw/xen/ |
H A D | xen_native.h | 443 PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn)); in xen_map_pcidev() 447 PCI_FUNC(pci_dev->devfn)); in xen_map_pcidev() 459 PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn)); in xen_unmap_pcidev() 463 PCI_FUNC(pci_dev->devfn)); in xen_unmap_pcidev()
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | i40iw_if.c | 63 pr_debug("INIT: Gen1 PF[%d] close complete\n", PCI_FUNC(cdev_info->pcidev->devfn)); in i40iw_close() 155 PCI_FUNC(rf->pcidev->devfn)); in i40iw_open()
|
/openbmc/linux/arch/x86/pci/ |
H A D | direct.c | 108 fn = PCI_FUNC(devfn); in pci_conf2_read() 148 fn = PCI_FUNC(devfn); in pci_conf2_write()
|
/openbmc/linux/arch/mips/pci/ |
H A D | pci-rt2880.c | 68 PCI_FUNC(devfn), where); in rt2880_pci_config_read() 95 PCI_FUNC(devfn), where); in rt2880_pci_config_write()
|
/openbmc/qemu/hw/pci/ |
H A D | pcie_sriov.c | 186 PCI_FUNC(dev->devfn), num_vfs); in register_vfs() 205 PCI_FUNC(dev->devfn), num_vfs); in unregister_vfs() 235 PCI_FUNC(dev->devfn), off, val, len); in pcie_sriov_config_write()
|
H A D | pci_host.c | 95 PCI_FUNC(pci_dev->devfn), addr, val); in pci_host_config_write_common() 121 PCI_FUNC(pci_dev->devfn), addr, ret); in pci_host_config_read_common()
|
/openbmc/linux/arch/arm/mach-footbridge/ |
H A D | ebsa285-pci.c | 23 switch (PCI_FUNC(dev->devfn)) { in ebsa285_map_irq()
|