/Linux-v4.19/drivers/xen/xen-pciback/ |
D | vpci.c | 48 if (PCI_FUNC(entry->dev->devfn) == PCI_FUNC(devfn)) { in __xen_pcibk_get_pci_dev() 110 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 | 164 && func == PCI_FUNC(psdev->dev->devfn)) { in pcistub_device_find_locked() 783 PCI_FUNC(dev->devfn)); in xen_pcibk_slot_reset() 841 PCI_FUNC(dev->devfn)); in xen_pcibk_mmio_enabled() 899 PCI_FUNC(dev->devfn)); in xen_pcibk_error_detected() 953 PCI_FUNC(dev->devfn)); in xen_pcibk_error_resume() 1089 || PCI_FUNC(devfn) != func) in pcistub_device_id_add() 1115 && (func < 0 || PCI_FUNC(pci_dev_id->devfn) == func)) { in pcistub_device_id_remove() 1228 PCI_FUNC(pci_dev_id->devfn)); in slots_show() 1342 PCI_FUNC(quirk->pdev->devfn), in quirks_show()
|
/Linux-v4.19/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-v4.19/arch/mips/pci/ |
D | ops-emma2rh.c | 101 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_read() 146 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_write() 167 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_write()
|
D | ops-bridge.c | 49 int fn = PCI_FUNC(devfn); in pci_conf0_read_config() 110 int fn = PCI_FUNC(devfn); in pci_conf1_read_config() 182 int fn = PCI_FUNC(devfn); in pci_conf0_write_config() 248 int fn = PCI_FUNC(devfn); in pci_conf1_write_config()
|
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 | 40 return internal_func_irqs[PCI_FUNC(dev->devfn)]; in pcibios_map_irq()
|
D | pci-rt2880.c | 74 PCI_FUNC(devfn), where); in rt2880_pci_config_read() 104 PCI_FUNC(devfn), where); in rt2880_pci_config_write()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
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()
|
/Linux-v4.19/drivers/infiniband/hw/nes/ |
D | nes.c | 161 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), 0); in nes_inetaddr_event() 193 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), in nes_inetaddr_event() 544 nesdev->index_reg = 0x50 + (PCI_FUNC(pcidev->devfn)*8) + mmio_regs; in nes_probe() 581 switch (PCI_FUNC(nesdev->pcidev->devfn) % in nes_probe() 597 nesdev->mac_index = PCI_FUNC(nesdev->pcidev->devfn) % in nes_probe() 623 PCI_FUNC(nesdev->pcidev->devfn)); in nes_probe() 627 nesdev->int_req = (0x101 << PCI_FUNC(nesdev->pcidev->devfn)) | in nes_probe() 628 (1 << (PCI_FUNC(nesdev->pcidev->devfn)+16)); in nes_probe() 629 if (PCI_FUNC(nesdev->pcidev->devfn) < 4) { in nes_probe() 630 nesdev->int_req |= (1 << (PCI_FUNC(nesdev->mac_index)+24)); in nes_probe() [all …]
|
/Linux-v4.19/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 | 153 if (PCI_FUNC(dev->devfn) == 1) in init_iops_cy82c693() 185 PCI_FUNC(dev->devfn) == 1) { in cy82c693_init_one()
|
D | serverworks.c | 192 if (!(PCI_FUNC(dev->devfn) & 1)) { in init_chipset_svwks() 244 if (!(PCI_FUNC(dev->devfn) & 1)) in init_chipset_svwks() 404 if ((PCI_FUNC(dev->devfn) & 1) == 0) { in svwks_init_one()
|
/Linux-v4.19/arch/xtensa/lib/ |
D | pci-auto.c | 257 if (PCI_FUNC(pci_devfn) && !found_multi) in pciauto_bus_scan() 267 if (!PCI_FUNC(pci_devfn)) in pciauto_bus_scan() 314 current_bus, PCI_SLOT(pci_devfn), PCI_FUNC(pci_devfn)); in pciauto_bus_scan()
|
/Linux-v4.19/arch/arm/mach-ixp4xx/ |
D | common-pci.c | 174 addr = BIT(32-PCI_SLOT(devfn)) | ((PCI_FUNC(devfn)) << 8) | in ixp4xx_config_addr() 179 ((PCI_FUNC(devfn)) << 8) | (where & ~3) | 1; in ixp4xx_config_addr() 248 bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn)); in ixp4xx_pci_read_config() 271 size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn)); in ixp4xx_pci_write_config()
|
/Linux-v4.19/arch/arm/mach-iop32x/ |
D | iq31244.c | 122 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in ep80219_pci_map_irq() 157 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in iq31244_pci_map_irq()
|
/Linux-v4.19/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu_helper.c | 553 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process() 558 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process() 563 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process() 569 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process() 574 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process() 579 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process()
|
/Linux-v4.19/include/uapi/linux/ |
D | pci.h | 33 #define PCI_FUNC(devfn) ((devfn) & 0x07) macro
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | eeh_pe.c | 368 PCI_FUNC(pdn->devfn), in eeh_add_to_parent_pe() 391 PCI_FUNC(pdn->devfn), in eeh_add_to_parent_pe() 439 PCI_FUNC(pdn->devfn), in eeh_add_to_parent_pe() 465 PCI_FUNC(pdn->devfn)); in eeh_rmv_from_parent_pe() 725 PCI_FUNC(pdn->devfn)); in eeh_bridge_check_link()
|
/Linux-v4.19/arch/x86/platform/intel-mid/device_libs/ |
D | platform_mrfld_sd.c | 31 unsigned int func = PCI_FUNC(pdev->devfn); in mrfld_sdhci_pci_get_data()
|
/Linux-v4.19/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-v4.19/arch/arm/mach-footbridge/ |
D | ebsa285-pci.c | 23 switch (PCI_FUNC(dev->devfn)) { in ebsa285_map_irq()
|
/Linux-v4.19/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-v4.19/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-v4.19/drivers/iommu/ |
D | amd_iommu_init.c | 1190 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1202 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1216 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1220 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi() 1235 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1239 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi() 1253 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1266 PCI_FUNC(e->devid), in init_iommu_from_acpi() 1279 PCI_FUNC(e->devid)); in init_iommu_from_acpi() 1313 PCI_FUNC(devid)); in init_iommu_from_acpi() [all …]
|