/Linux-v5.10/drivers/xen/xen-pciback/ |
D | vpci.c | 49 if (PCI_FUNC(entry->dev->devfn) == PCI_FUNC(devfn)) { in __xen_pcibk_get_pci_dev() 110 slot, PCI_FUNC(dev->devfn)); in __xen_pcibk_add_pci_dev() 113 func = PCI_FUNC(dev->devfn); in __xen_pcibk_add_pci_dev() 126 func = dev->is_virtfn ? 0 : PCI_FUNC(dev->devfn); in __xen_pcibk_add_pci_dev() 254 PCI_FUNC(pcidev->devfn)); in __xen_pcibk_get_pcifront_dev()
|
D | pci_stub.c | 166 && func == PCI_FUNC(psdev->dev->devfn)) { in pcistub_device_find_locked() 785 PCI_FUNC(dev->devfn)); in xen_pcibk_slot_reset() 842 PCI_FUNC(dev->devfn)); in xen_pcibk_mmio_enabled() 899 PCI_FUNC(dev->devfn)); in xen_pcibk_error_detected() 952 PCI_FUNC(dev->devfn)); in xen_pcibk_error_resume() 1087 || PCI_FUNC(devfn) != func) in pcistub_device_id_add() 1113 && (func < 0 || PCI_FUNC(pci_dev_id->devfn) == func)) { in pcistub_device_id_remove() 1226 PCI_FUNC(pci_dev_id->devfn)); in slots_show() 1340 PCI_FUNC(quirk->pdev->devfn), in quirks_show()
|
/Linux-v5.10/arch/powerpc/platforms/powernv/ |
D | ocxl.c | 194 link->fn_desired_actags[PCI_FUNC(dev->devfn)] = 0; in pnv_ocxl_fixup_actag() 203 link->fn_desired_actags[PCI_FUNC(dev->devfn)] += actag; in pnv_ocxl_fixup_actag() 206 link->fn_desired_actags[PCI_FUNC(dev->devfn)]); in pnv_ocxl_fixup_actag() 272 *base = link->fn_actags[PCI_FUNC(dev->devfn)].start; in pnv_ocxl_get_actag() 273 *enabled = link->fn_actags[PCI_FUNC(dev->devfn)].count; in pnv_ocxl_get_actag() 274 *supported = link->fn_desired_actags[PCI_FUNC(dev->devfn)]; in pnv_ocxl_get_actag() 305 if (link->fn_desired_actags[i] && (i == PCI_FUNC(dev->devfn))) { in pnv_ocxl_get_pasid_count()
|
/Linux-v5.10/arch/arm/plat-orion/ |
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()
|
/Linux-v5.10/drivers/ide/ |
D | ide-pci-generic.c | 118 !(PCI_FUNC(dev->devfn) & 1)) in generic_init_one() 123 !(PCI_FUNC(dev->devfn) & 1)) in generic_init_one() 128 PCI_FUNC(dev->devfn) != 1) in generic_init_one()
|
D | cy82c693.c | 154 if (PCI_FUNC(dev->devfn) == 1) in init_iops_cy82c693() 186 PCI_FUNC(dev->devfn) == 1) { in cy82c693_init_one()
|
D | serverworks.c | 199 if (!(PCI_FUNC(dev->devfn) & 1)) { in init_chipset_svwks() 251 if (!(PCI_FUNC(dev->devfn) & 1)) in init_chipset_svwks() 411 if ((PCI_FUNC(dev->devfn) & 1) == 0) { in svwks_init_one()
|
/Linux-v5.10/arch/xtensa/lib/ |
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()
|
/Linux-v5.10/arch/arm/mach-ixp4xx/ |
D | common-pci.c | 170 addr = BIT(32-PCI_SLOT(devfn)) | ((PCI_FUNC(devfn)) << 8) | in ixp4xx_config_addr() 175 ((PCI_FUNC(devfn)) << 8) | (where & ~3) | 1; in ixp4xx_config_addr() 244 bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn)); in ixp4xx_pci_read_config() 267 size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn)); in ixp4xx_pci_write_config()
|
/Linux-v5.10/arch/mips/pci/ |
D | pci-xlp.c | 75 !nlm_node_present(PCI_FUNC(devfn))) in pci_cfg_read_32bit() 203 return PCI_FUNC(lnkdev->bus->self->devfn); in xlp_socdev_to_node() 221 lnkfunc = PCI_FUNC(lnkdev->devfn); in pcibios_map_irq()
|
D | fixup-mpc30x.c | 27 return internal_func_irqs[PCI_FUNC(dev->devfn)]; in pcibios_map_irq()
|
D | pci-rt2880.c | 71 PCI_FUNC(devfn), where); in rt2880_pci_config_read() 101 PCI_FUNC(devfn), where); in rt2880_pci_config_write()
|
/Linux-v5.10/arch/arm/mach-iop32x/ |
D | iq31244.c | 119 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in ep80219_pci_map_irq() 154 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in iq31244_pci_map_irq()
|
/Linux-v5.10/include/uapi/linux/ |
D | pci.h | 33 #define PCI_FUNC(devfn) ((devfn) & 0x07) macro
|
/Linux-v5.10/arch/x86/platform/intel-mid/device_libs/ |
D | platform_mrfld_sd.c | 27 unsigned int func = PCI_FUNC(pdev->devfn); in mrfld_sdhci_pci_get_data()
|
/Linux-v5.10/drivers/ata/ |
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()
|
/Linux-v5.10/drivers/pci/controller/ |
D | pci-ftpci100.c | 195 PCI_CONF_FUNCTION(PCI_FUNC(fn)) | in faraday_raw_pci_read_config() 217 PCI_SLOT(fn), PCI_FUNC(fn), config, size, *value); in faraday_pci_read_config() 230 PCI_CONF_FUNCTION(PCI_FUNC(fn)) | in faraday_raw_pci_write_config() 259 PCI_SLOT(fn), PCI_FUNC(fn), config, size, value); in faraday_pci_write_config()
|
/Linux-v5.10/arch/arm/mach-footbridge/ |
D | ebsa285-pci.c | 23 switch (PCI_FUNC(dev->devfn)) { in ebsa285_map_irq()
|
/Linux-v5.10/arch/x86/pci/ |
D | direct.c | 108 fn = PCI_FUNC(devfn); in pci_conf2_read() 148 fn = PCI_FUNC(devfn); in pci_conf2_write()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | devlink.c | 13 attrs.phys.port_number = PCI_FUNC(priv->mdev->pdev->devfn); in mlx5e_devlink_port_register()
|
/Linux-v5.10/drivers/gpu/drm/ |
D | drm_pci.c | 119 PCI_FUNC(dev->pdev->devfn)); in drm_pci_set_busid() 131 p->devnum != PCI_SLOT(dev->pdev->devfn) || p->funcnum != PCI_FUNC(dev->pdev->devfn)) in drm_pci_irq_by_busid()
|
/Linux-v5.10/drivers/iommu/amd/ |
D | init.c | 1217 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1229 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1243 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1247 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi() 1262 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1266 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi() 1280 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1293 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1306 PCI_FUNC(e->devid)); in init_iommu_from_acpi() 1340 PCI_FUNC(devid)); in init_iommu_from_acpi() [all …]
|
/Linux-v5.10/arch/powerpc/platforms/ |
D | fsl_uli1575.c | 348 if ((PCI_SLOT(devfn) == 29) && (PCI_FUNC(devfn) == 1)) in uli_exclude_device() 352 if ((PCI_SLOT(devfn) == 29) && (PCI_FUNC(devfn) == 2)) in uli_exclude_device()
|
/Linux-v5.10/arch/powerpc/platforms/pasemi/ |
D | misc.c | 80 i2c_register_board_info(PCI_FUNC(pdev->devfn), &info, in pasemi_register_i2c_devices()
|
/Linux-v5.10/drivers/misc/ocxl/ |
D | config.c | 116 if (!pos && PCI_FUNC(dev->devfn) == 0) { in read_dvsec_tl() 120 if (pos && PCI_FUNC(dev->devfn) != 0) { in read_dvsec_tl() 186 if (PCI_FUNC(dev->devfn) != 0) in read_dvsec_vendor() 212 if (PCI_FUNC(dev->devfn) != 0) { in get_dvsec_vendor0() 793 if (PCI_FUNC(dev->devfn) != 0) in ocxl_config_set_TL()
|