arch/alpha/kernel/core_marvel.c
1041
addr = (vuip)build_conf_addr(h, 0, PCI_DEVFN(5, 0), 0);
arch/alpha/kernel/core_marvel.c
524
if (devfn >= PCI_DEVFN(21, 0))
arch/alpha/kernel/sys_alcor.c
242
if (dev && dev->devfn == PCI_DEVFN(6,0)) {
arch/arm/mach-footbridge/dc21285.c
50
if (devfn < PCI_DEVFN(MAX_SLOTS, 0))
arch/mips/pci/fixup-cobalt.c
56
if (dev->devfn == PCI_DEVFN(0, 0) &&
arch/mips/pci/fixup-cobalt.c
93
if (dev->devfn != PCI_DEVFN(0, 0))
arch/mips/pci/fixup-sni.c
144
if (dev && dev->devfn >= PCI_DEVFN(4, 0))
arch/mips/pci/ops-bcm63xx.c
380
PCI_DEVFN(CARDBUS_PCI_IDSEL, 0),
arch/mips/pci/ops-bcm63xx.c
398
PCI_DEVFN(CARDBUS_PCI_IDSEL, 0),
arch/mips/pci/ops-gt64xxx_pci0.c
36
if ((busnum == 0) && (devfn >= PCI_DEVFN(31, 0)))
arch/mips/pci/ops-loongson2.c
187
u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0);
arch/mips/pci/ops-loongson2.c
203
u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0);
arch/mips/pci/ops-sni.c
29
if (busno == 0 && devfn >= PCI_DEVFN(8, 0))
arch/mips/pci/ops-tx4927.c
62
devfn >= PCI_DEVFN(TX4927_PCIC_MAX_DEVNU, 0))
arch/mips/pci/pci-ar2315.c
310
unsigned devfn = PCI_DEVFN(AR2315_PCI_HOST_SLOT, 0);
arch/mips/pci/pci-bcm1480.c
214
cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0),
arch/mips/pci/pci-bcm1480.c
226
cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40));
arch/mips/pci/pci-bcm1480.c
227
WRITECFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40),
arch/mips/pci/pci-bcm1480.c
229
cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40));
arch/mips/pci/pci-sb1250.c
225
(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0),
arch/mips/pci/pci-sb1250.c
254
cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(LDT_BRIDGE_DEVICE, 0),
arch/powerpc/kernel/pci-hotplug.c
107
pci_scan_slot(bus, PCI_DEVFN(slotno, 0));
arch/powerpc/kernel/pci-hotplug.c
120
pci_scan_slot(bus, PCI_DEVFN(slotno, 0));
arch/powerpc/platforms/fsl_uli1575.c
336
laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8);
arch/powerpc/sysdev/fsl_pci.c
930
PCI_DEVFN(0, 0), PCI_BASE_ADDRESS_0, &base);
arch/x86/events/intel/uncore.c
1118
devfn = PCI_DEVFN(UNCORE_PCI_DEV_DEV(data),
arch/x86/events/intel/uncore.c
1321
devfn = PCI_DEVFN(UNCORE_PCI_DEV_DEV(ids->driver_data),
arch/x86/events/intel/uncore_snb.c
1534
mc_dev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0));
arch/x86/events/intel/uncore_snbep.c
4278
devfn = PCI_DEVFN(SKX_UPI_REGS_ADDR_DEVICE_LINK0 + idx,
arch/x86/events/intel/uncore_snbep.c
5502
devfn = PCI_DEVFN(dev_link0 + idx, ICX_UPI_REGS_ADDR_FUNCTION);
arch/x86/kernel/amd_node.c
34
return pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(AMD_NODE0_PCI_SLOT + node, func));
arch/x86/kernel/quirks.c
38
pci_bus_read_config_word(dev->bus, PCI_DEVFN(8, 0), 0x4c, &word);
arch/x86/kernel/quirks.c
546
devfn = PCI_DEVFN(PCI_SLOT(dev->devfn), 0);
arch/x86/pci/ce4100.c
265
if (bus == 0 && (PCI_DEVFN(1, 0) == devfn) &&
arch/x86/pci/ce4100.c
300
if (bus == 0 && PCI_DEVFN(1, 0) == devfn &&
arch/x86/pci/ce4100.c
43
{ PCI_DEVFN(device, func), offset, init_op, read_op, write_op,\
arch/x86/pci/ce4100.c
68
pci_direct_conf1.read(0, 1, PCI_DEVFN(14, 0), 0x10, 4,
arch/x86/pci/fixup.c
669
pdev->bus->number != 0 || pdev->devfn != PCI_DEVFN(0x1c, 0))
arch/x86/pci/intel_mid.c
164
if (bus == 0 && (devfn == PCI_DEVFN(2, 0)
arch/x86/pci/intel_mid.c
165
|| devfn == PCI_DEVFN(0, 0)
arch/x86/pci/intel_mid.c
166
|| devfn == PCI_DEVFN(3, 0)))
arch/x86/pci/intel_mid.c
396
if (!offset || PCI_DEVFN(2, 0) == dev->devfn ||
arch/x86/pci/intel_mid.c
397
PCI_DEVFN(2, 2) == dev->devfn)
arch/x86/pci/mmconfig-shared.c
134
raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0xce, 2, &win);
arch/x86/pci/mmconfig-shared.c
150
raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0x48, 4, &pciexbar);
arch/x86/pci/mmconfig-shared.c
274
raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), 0, 4, &l);
arch/x86/pci/mmconfig-shared.c
281
raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), extcfg_regnum,
arch/x86/pci/mmconfig-shared.c
313
{ 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
arch/x86/pci/mmconfig-shared.c
315
{ 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
arch/x86/pci/mmconfig-shared.c
317
{ 0, PCI_DEVFN(0x18, 0), PCI_VENDOR_ID_AMD,
arch/x86/pci/mmconfig-shared.c
319
{ 0xff, PCI_DEVFN(0, 0), PCI_VENDOR_ID_AMD,
arch/x86/pci/mmconfig-shared.c
321
{ 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_NVIDIA,
arch/x86/pci/numachip.c
116
ret = raw_pci_read(0, 0, PCI_DEVFN(0x18, 0), 0x60, sizeof(val), &val);
arch/x86/pci/numachip.c
121
limit = PCI_DEVFN(0x18 + ((val >> 4) & 7) + 1, 0);
drivers/acpi/acpi_extlog.c
155
devfn = PCI_DEVFN(pcie_err->device_id.device,
drivers/acpi/apei/ghes.c
651
devfn = PCI_DEVFN(pcie_err->device_id.device,
drivers/acpi/osl.c
840
PCI_DEVFN(pci_id->device, pci_id->function),
drivers/acpi/osl.c
868
PCI_DEVFN(pci_id->device, pci_id->function),
drivers/acpi/reboot.c
21
devfn = PCI_DEVFN((rr->address >> 32) & 0xffff,
drivers/acpi/x86/utils.c
517
if (pdev->devfn == PCI_DEVFN(0x1e, 3))
drivers/acpi/x86/utils.c
519
else if (pdev->devfn == PCI_DEVFN(0x1e, 4))
drivers/ata/ahci.c
1165
if (pdev->bus->number == 0 && pdev->devfn == PCI_DEVFN(0x1f, 2) &&
drivers/ata/ahci.c
1298
if (pdev->bus->number != 0 || pdev->devfn != PCI_DEVFN(0x12, 0) ||
drivers/ata/ahci.c
1432
if (!dmi || pdev->bus->number || pdev->devfn != PCI_DEVFN(0x1f, 2))
drivers/ata/ahci.c
1524
(void *)(unsigned long)(((bus) << 8) | PCI_DEVFN((slot), (func)))
drivers/ata/pata_ali.c
470
PCI_DEVFN(0, 0));
drivers/ata/pata_sl82c105.c
272
PCI_DEVFN(PCI_SLOT(pdev->devfn), 0));
drivers/char/agp/amd64-agp.c
398
dev1 = pci_get_slot (pdev->bus,PCI_DEVFN(0,0));
drivers/char/agp/amd64-agp.c
461
dev1 = pci_get_slot(pdev->bus, PCI_DEVFN(11, 0));
drivers/char/agp/nvidia-agp.c
347
PCI_DEVFN(0, 1));
drivers/char/agp/nvidia-agp.c
351
PCI_DEVFN(0, 2));
drivers/char/agp/nvidia-agp.c
355
PCI_DEVFN(30, 0));
drivers/char/agp/sworks-agp.c
475
PCI_DEVFN(0, 1));
drivers/clk/x86/clk-fch.c
100
rdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0));
drivers/clk/x86/clk-fch.c
54
rdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0));
drivers/cxl/core/ras.c
69
unsigned int devfn = PCI_DEVFN(data->prot_err.agent_addr.device,
drivers/cxl/pci.c
1088
devfn = PCI_DEVFN(device_id->device_num, device_id->func_num);
drivers/edac/e752x_edac.c
1182
PCI_DEVFN(0, 1));
drivers/edac/i10nm_base.c
404
pdev = pci_get_domain_bus_and_slot(dom, bus, PCI_DEVFN(dev, fun));
drivers/edac/i82875p_edac.c
288
dev = pci_scan_single_device(pdev->bus, PCI_DEVFN(6, 0));
drivers/edac/pnd2_edac.c
135
#define P2SB_DEVFN PCI_DEVFN(0xd, 0)
drivers/edac/skx_base.c
78
{ 0x2040, { PCI_DEVFN(10, 0), PCI_DEVFN(12, 0) }, 2, 2, CHAN0 },
drivers/edac/skx_base.c
79
{ 0x2044, { PCI_DEVFN(10, 4), PCI_DEVFN(12, 4) }, 2, 2, CHAN1 },
drivers/edac/skx_base.c
80
{ 0x2048, { PCI_DEVFN(11, 0), PCI_DEVFN(13, 0) }, 2, 2, CHAN2 },
drivers/edac/skx_base.c
81
{ 0x2043, { PCI_DEVFN(10, 3), PCI_DEVFN(12, 3) }, 2, 2, ERRCHAN0 },
drivers/edac/skx_base.c
82
{ 0x2047, { PCI_DEVFN(10, 7), PCI_DEVFN(12, 7) }, 2, 2, ERRCHAN1 },
drivers/edac/skx_base.c
83
{ 0x204b, { PCI_DEVFN(11, 3), PCI_DEVFN(13, 3) }, 2, 2, ERRCHAN2 },
drivers/firmware/edd.c
656
PCI_DEVFN(info->params.interface_path.pci.slot,
drivers/firmware/efi/dev-path-parser.c
67
devfn = PCI_DEVFN(node->pci.dev, node->pci.fn);
drivers/gpu/drm/gma500/mid_bios.c
101
pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(2, 0));
drivers/gpu/drm/gma500/mid_bios.c
280
0, PCI_DEVFN(2, 0));
drivers/gpu/drm/gma500/psb_drv.c
272
PCI_DEVFN(3, 0));
drivers/gpu/drm/gma500/psb_drv.c
294
PCI_DEVFN(31, 0));
drivers/gpu/drm/i915/display/intel_cdclk.c
249
PCI_DEVFN(0, 3), HPLLCC, &hpllcc);
drivers/gpu/drm/i915/display/intel_overlay.c
227
PCI_DEVFN(0, 0), I830_CLOCK_GATE, &val);
drivers/gpu/drm/i915/display/intel_overlay.c
233
PCI_DEVFN(0, 0), I830_CLOCK_GATE, val);
drivers/gpu/drm/i915/display/intel_vga.c
104
if (pci_bus_read_config_word(pdev->bus, PCI_DEVFN(0, 0), reg, &gmch_ctrl)) {
drivers/gpu/drm/i915/display/intel_vga.c
117
if (pci_bus_write_config_word(pdev->bus, PCI_DEVFN(0, 0), reg, gmch_ctrl)) {
drivers/gpu/drm/i915/i915_gmch.c
22
i915->gmch.pdev = pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 0));
drivers/gpu/drm/i915/vlv_iosf_sb.c
142
return PCI_DEVFN(0, 0);
drivers/gpu/drm/loongson/lsdc_drv.c
172
PCI_DEVFN(6, 0));
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c
40
bridge = pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 1));
drivers/gpu/drm/xe/xe_configfs.c
345
pdev = pci_get_domain_bus_and_slot(domain, bus, PCI_DEVFN(slot, function));
drivers/gpu/drm/xe/xe_configfs.c
964
PCI_SLOT(PCI_DEVFN(slot, function)),
drivers/gpu/drm/xe/xe_configfs.c
965
PCI_FUNC(PCI_DEVFN(slot, function)));
drivers/gpu/drm/xe/xe_configfs.c
969
pdev = pci_get_domain_bus_and_slot(domain, bus, PCI_DEVFN(slot, function));
drivers/gpu/drm/xe/xe_configfs.c
974
pdev = pci_get_domain_bus_and_slot(domain, bus, PCI_DEVFN(slot, 0));
drivers/gpu/drm/xe/xe_configfs.c
976
pdev = pci_get_domain_bus_and_slot(domain, bus, PCI_DEVFN(0, 0));
drivers/gpu/drm/xe/xe_configfs.c
980
if (PCI_DEVFN(slot, function) != pdev->devfn) {
drivers/gpu/drm/xe/xe_configfs.c
982
vfnumber = PCI_DEVFN(slot, function) - pdev->devfn;
drivers/hwmon/coretemp.c
174
u16 devfn = PCI_DEVFN(0, 0);
drivers/hwmon/fam15h_power.c
332
pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 3),
drivers/hwmon/fam15h_power.c
363
PCI_DEVFN(PCI_SLOT(pdev->devfn), 5),
drivers/hwmon/fam15h_power.c
371
PCI_DEVFN(PCI_SLOT(pdev->devfn), 5),
drivers/hwmon/fam15h_power.c
395
pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5),
drivers/hwmon/fam15h_power.c
80
pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5),
drivers/hwmon/fam15h_power.c
97
pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5),
drivers/hwmon/k10temp.c
151
amd_nb_index_read(pdev, PCI_DEVFN(0, 0), 0xb8,
drivers/hwmon/k10temp.c
157
amd_nb_index_read(pdev, PCI_DEVFN(0, 0), 0xb8,
drivers/hwmon/k10temp.c
353
PCI_DEVFN(PCI_SLOT(pdev->devfn), 2),
drivers/i2c/busses/i2c-designware-amdpsp.c
287
rdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0));
drivers/i2c/busses/i2c-piix4.c
1049
pci_bus_read_config_byte(dev->bus, PCI_DEVFN(0x14, 3),
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
706
PCI_DEVFN(slot, 0));
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
942
pdev_net = pci_get_slot(pdev->bus, PCI_DEVFN(PCI_SLOT(pdev->devfn), 0));
drivers/iommu/amd/debugfs.c
167
devid = PCI_DEVID(bus, PCI_DEVFN(slot, func));
drivers/iommu/amd/init.c
2212
PCI_DEVFN(0, 0));
drivers/iommu/amd/init.c
3097
#define IOAPIC_SB_DEVID ((0x00 << 8) | PCI_DEVFN(0x14, 0))
drivers/iommu/intel/dmar.c
758
dmaru->devices[i].devfn = PCI_DEVFN(path->device,
drivers/iommu/intel/iommu.c
421
rc = pci_bus_read_config_dword(pdev->bus, PCI_DEVFN(0, 0), 0xb0, &vtbar);
drivers/iommu/intel/irq_remapping.c
866
ir_hpet[free].devfn = PCI_DEVFN(path->device, path->function);
drivers/iommu/intel/irq_remapping.c
909
ir_ioapic[free].devfn = PCI_DEVFN(path->device, path->function);
drivers/message/fusion/mptbase.c
2650
peer = pci_get_slot(pdev->bus, PCI_DEVFN(slot,func-1));
drivers/message/fusion/mptbase.c
2652
peer = pci_get_slot(pdev->bus, PCI_DEVFN(slot,func+1));
drivers/mfd/lpc_ich.c
1305
return lpc_ich_set_writeable(pdev->bus, PCI_DEVFN(13, 2));
drivers/mfd/lpc_ich.c
1351
ret = p2sb_bar(dev->bus, PCI_DEVFN(13, 2), res);
drivers/misc/cb710/core.c
31
unsigned int devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
drivers/misc/mei/hw-me.c
1508
devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
drivers/misc/mei/hw-me.c
1534
devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
drivers/misc/mei/hw-me.c
1559
devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
drivers/misc/ocxl/config.c
71
unsigned int devfn = PCI_DEVFN(PCI_SLOT(dev->devfn), 0);
drivers/net/ethernet/amd/xgbe/xgbe-pci.c
168
rdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0));
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
927
devfn = PCI_DEVFN(0, 4);
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
930
devfn = PCI_DEVFN(24, 0);
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
933
devfn = PCI_DEVFN(0, 1);
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
1003
func0_pdev = ixgbe_get_first_secondary_devfn(PCI_DEVFN(0x16, 0));
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
1009
func0_pdev = ixgbe_get_first_secondary_devfn(PCI_DEVFN(0x17, 0));
drivers/net/ethernet/marvell/octeon_ep/octep_cn9k_pf.c
252
link = PCI_DEVFN(PCI_SLOT(oct->pdev->devfn), link);
drivers/net/ethernet/marvell/octeon_ep/octep_cnxk_pf.c
273
link = PCI_DEVFN(PCI_SLOT(oct->pdev->devfn), link);
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
2525
PCI_DEVFN(12, 4));
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
3744
PCI_DEVFN(PCI_SLOT(pdev->devfn), val));
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
2208
bt = pci_get_slot(bus, PCI_DEVFN(slot, 1));
drivers/pci/controller/pci-hyperv.c
1093
return PCI_DEVFN(slot_no.bits.dev, slot_no.bits.func);
drivers/pci/controller/pcie-hisi-error.c
163
devfn = PCI_DEVFN(port_id, 0);
drivers/pci/controller/vmd.c
530
PCI_DEVFN(dev, 0), 0);
drivers/pci/controller/vmd.c
537
PCI_DEVFN(dev, fn), 0);
drivers/pci/hotplug/acpiphp_glue.c
332
if (pci_bus_read_dev_vendor_id(pbus, PCI_DEVFN(device, function),
drivers/pci/hotplug/acpiphp_glue.c
441
return pci_scan_slot(slot->bus, PCI_DEVFN(slot->device, 0));
drivers/pci/hotplug/acpiphp_glue.c
537
dev = pci_get_slot(bus, PCI_DEVFN(slot->device,
drivers/pci/hotplug/acpiphp_glue.c
615
PCI_DEVFN(slot->device, func->function),
drivers/pci/hotplug/acpiphp_glue.c
630
PCI_DEVFN(slot->device, 0), &dvid, 0)) {
drivers/pci/hotplug/cpci_hotplug_core.c
200
slot->devfn = PCI_DEVFN(i, 0);
drivers/pci/hotplug/cpci_hotplug_core.c
298
dev = pci_get_slot(slot->bus, PCI_DEVFN(slot->number, 0));
drivers/pci/hotplug/cpcihp_generic.c
139
PCI_DEVFN(bridge_slot, 0));
drivers/pci/hotplug/cpqphp_core.c
339
pci_bus_read_config_dword(bus, PCI_DEVFN(tdevice, 0),
drivers/pci/hotplug/cpqphp_core.c
344
PCI_DEVFN(tdevice, 0),
drivers/pci/hotplug/cpqphp_ctrl.c
1505
rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(func->device, func->function), PCI_VENDOR_ID, &temp_register);
drivers/pci/hotplug/cpqphp_ctrl.c
2045
devfn = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/cpqphp_ctrl.c
2224
rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(func->device, func->function), 0x0E, &temp_byte);
drivers/pci/hotplug/cpqphp_ctrl.c
2262
pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(func->device, function), 0x00, &ID);
drivers/pci/hotplug/cpqphp_ctrl.c
2338
devfn = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/cpqphp_ctrl.c
2505
pci_bus_read_config_dword(pci_bus, PCI_DEVFN(device, 0), 0x00, &ID);
drivers/pci/hotplug/cpqphp_pci.c
1034
devfn = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/cpqphp_pci.c
127
PCI_DEVFN(func->device,
drivers/pci/hotplug/cpqphp_pci.c
327
rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID);
drivers/pci/hotplug/cpqphp_pci.c
348
rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), 0x0B, &class_code);
drivers/pci/hotplug/cpqphp_pci.c
352
rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_HEADER_TYPE, &header_type);
drivers/pci/hotplug/cpqphp_pci.c
370
rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &secondary_bus);
drivers/pci/hotplug/cpqphp_pci.c
411
rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(new_slot->config_space[cloop]));
drivers/pci/hotplug/cpqphp_pci.c
426
rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_VENDOR_ID, &ID);
drivers/pci/hotplug/cpqphp_pci.c
431
rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), 0x0B, &class_code);
drivers/pci/hotplug/cpqphp_pci.c
435
rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_HEADER_TYPE, &header_type);
drivers/pci/hotplug/cpqphp_pci.c
473
pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_VENDOR_ID, &ID);
drivers/pci/hotplug/cpqphp_pci.c
478
pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), 0x0B, &class_code);
drivers/pci/hotplug/cpqphp_pci.c
479
pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_HEADER_TYPE, &header_type);
drivers/pci/hotplug/cpqphp_pci.c
489
pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, &secondary_bus);
drivers/pci/hotplug/cpqphp_pci.c
506
pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) &(new_slot->config_space[cloop]));
drivers/pci/hotplug/cpqphp_pci.c
516
pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID);
drivers/pci/hotplug/cpqphp_pci.c
521
pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code);
drivers/pci/hotplug/cpqphp_pci.c
522
pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &header_type);
drivers/pci/hotplug/cpqphp_pci.c
560
devfn = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/cpqphp_pci.c
705
devfn = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/cpqphp_pci.c
82
PCI_DEVFN(func->device,
drivers/pci/hotplug/cpqphp_pci.c
89
num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function));
drivers/pci/hotplug/cpqphp_pci.c
94
PCI_DEVFN(func->device,
drivers/pci/hotplug/cpqphp_pci.c
952
devfn = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/ibmphp_core.c
673
PCI_DEVFN(func->device, func->function));
drivers/pci/hotplug/ibmphp_core.c
681
PCI_DEVFN(func->device, func->function));
drivers/pci/hotplug/ibmphp_core.c
686
PCI_DEVFN(func->device, func->function));
drivers/pci/hotplug/ibmphp_pci.c
1078
devfn = PCI_DEVFN(device, function);
drivers/pci/hotplug/ibmphp_pci.c
1213
devfn = PCI_DEVFN(device, function);
drivers/pci/hotplug/ibmphp_pci.c
1320
devfn = PCI_DEVFN(device, function);
drivers/pci/hotplug/ibmphp_pci.c
1435
devfn = PCI_DEVFN(device, function);
drivers/pci/hotplug/ibmphp_pci.c
352
devfn = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/ibmphp_pci.c
394
io[count]->devfunc = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/ibmphp_pci.c
430
pfmem[count]->devfunc = PCI_DEVFN(func->device,
drivers/pci/hotplug/ibmphp_pci.c
494
mem[count]->devfunc = PCI_DEVFN(func->device,
drivers/pci/hotplug/ibmphp_pci.c
579
devfn = PCI_DEVFN(func->function, func->device);
drivers/pci/hotplug/ibmphp_pci.c
659
bus_io[count]->devfunc = PCI_DEVFN(func->device,
drivers/pci/hotplug/ibmphp_pci.c
690
bus_pfmem[count]->devfunc = PCI_DEVFN(func->device,
drivers/pci/hotplug/ibmphp_pci.c
745
bus_mem[count]->devfunc = PCI_DEVFN(func->device,
drivers/pci/hotplug/ibmphp_pci.c
815
io->devfunc = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/ibmphp_pci.c
836
mem->devfunc = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/ibmphp_pci.c
857
pfmem->devfunc = PCI_DEVFN(func->device, func->function);
drivers/pci/hotplug/ibmphp_pci.c
93
unsigned int devfn = PCI_DEVFN(device, function);
drivers/pci/hotplug/ibmphp_res.c
1929
devfn = PCI_DEVFN(device, function);
drivers/pci/hotplug/pciehp_hpc.c
1088
pdev = pci_get_slot(subordinate, PCI_DEVFN(0, 0));
drivers/pci/hotplug/pciehp_hpc.c
306
PCI_DEVFN(0, 0));
drivers/pci/hotplug/pciehp_hpc.c
575
pdev = pci_get_slot(ctrl->pcie->port->subordinate, PCI_DEVFN(0, 0));
drivers/pci/hotplug/pciehp_pci.c
41
dev = pci_get_slot(parent, PCI_DEVFN(0, 0));
drivers/pci/hotplug/pciehp_pci.c
54
num = pci_scan_slot(parent, PCI_DEVFN(0, 0));
drivers/pci/hotplug/pciehp_pci.c
75
dev = pci_get_slot(parent, PCI_DEVFN(0, 0));
drivers/pci/hotplug/shpchp_pci.c
33
dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0));
drivers/pci/hotplug/shpchp_pci.c
43
num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0));
drivers/pci/iov.c
891
iov->link = PCI_DEVFN(PCI_SLOT(dev->devfn), iov->link);
drivers/pci/p2pdma.c
581
if (root->devfn == PCI_DEVFN(0, 0))
drivers/pci/pci.c
303
if (dev->devfn != PCI_DEVFN(slot, func)) {
drivers/pci/pci.c
336
dev->devfn == PCI_DEVFN(slot, func));
drivers/pci/pcie/aer_cxl_rch.c
17
if (dev->devfn != PCI_DEVFN(0, 0))
drivers/pci/pcie/aer_inject.c
327
unsigned int devfn = PCI_DEVFN(einj->dev, einj->fn);
drivers/pci/probe.c
3095
pci_scan_slot(bus, PCI_DEVFN(devnr, 0));
drivers/pci/quirks.c
2745
apc_bridge = pci_get_slot(host_bridge->bus, PCI_DEVFN(1, 0));
drivers/pci/quirks.c
2989
dev = pci_get_slot(host_bridge->bus, PCI_DEVFN(i, 0));
drivers/pci/quirks.c
3047
host_bridge = pci_get_slot(dev->bus, PCI_DEVFN(i, 0));
drivers/pci/quirks.c
3118
PCI_DEVFN(0, 0));
drivers/pci/quirks.c
4299
pci_add_dma_alias(dev, PCI_DEVFN(PCI_SLOT(dev->devfn), 0), 1);
drivers/pci/quirks.c
4317
pci_add_dma_alias(dev, PCI_DEVFN(PCI_SLOT(dev->devfn), 1), 1);
drivers/pci/quirks.c
4397
.driver_data = PCI_DEVFN(1, 0) },
drivers/pci/quirks.c
4400
.driver_data = PCI_DEVFN(1, 0) },
drivers/pci/quirks.c
4451
pci_add_dma_alias(pdev, PCI_DEVFN(0x10, 0x0), 1);
drivers/pci/quirks.c
4452
pci_add_dma_alias(pdev, PCI_DEVFN(0x11, 0x0), 1);
drivers/pci/quirks.c
4453
pci_add_dma_alias(pdev, PCI_DEVFN(0x12, 0x3), 1);
drivers/pci/quirks.c
4478
pci_add_dma_alias(pdev, PCI_DEVFN(slot, 0x0), 5);
drivers/pci/quirks.c
5325
pci_bus_read_config_dword(dev->bus, PCI_DEVFN(31, 0),
drivers/pci/quirks.c
5746
PCI_DEVFN(PCI_SLOT(pdev->devfn), supplier));
drivers/pci/search.c
107
PCI_DEVFN(0, 0)), data);
drivers/pci/search.c
93
PCI_DEVFN(0, 0)), data);
drivers/pci/tsm.c
130
pdev->bus, PCI_DEVFN(PCI_SLOT(pdev->devfn), i));
drivers/pci/tsm.c
86
pdev->bus, PCI_DEVFN(PCI_SLOT(pdev->devfn), i));
drivers/pci/vgaarb.c
1056
*devfn = PCI_DEVFN(slot, func);
drivers/pci/vpd.c
45
return pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0));
drivers/pci/xen-pcifront.c
970
PCI_DEVFN(slot, func));
drivers/pcmcia/cardbus.c
74
s->functions = pci_scan_slot(bus, PCI_DEVFN(0, 0));
drivers/peci/request.c
296
return reg | PCI_DEVID(bus, PCI_DEVFN(dev, func)) << 12;
drivers/peci/request.c
379
req->tx.buf[8] = PCI_DEVFN(dev, func);
drivers/platform/chrome/chromeos_laptop.c
437
.pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x2)),
drivers/platform/chrome/chromeos_laptop.c
449
.pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x1)),
drivers/platform/chrome/chromeos_laptop.c
459
.pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x1)),
drivers/platform/chrome/chromeos_laptop.c
468
.pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x2)),
drivers/platform/x86/amd/pmc/pmc.c
738
rdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0));
drivers/platform/x86/amd/pmf/core.c
574
rdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0));
drivers/platform/x86/intel/pmc/core.c
1330
pcidev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(10, 0));
drivers/platform/x86/intel/pmc/core.c
1589
pcidev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(20, pmc_dev_info->pci_func));
drivers/platform/x86/intel/speed_select_if/isst_if_common.c
313
_pci_dev->devfn != PCI_DEVFN(dev, fn))
drivers/platform/x86/intel/speed_select_if/isst_if_common.c
377
if (pci_dev && pci_dev->devfn == PCI_DEVFN(dev, fn))
drivers/platform/x86/p2sb.c
22
#define P2SB_DEVFN_DEFAULT PCI_DEVFN(31, 1)
drivers/platform/x86/p2sb.c
23
#define P2SB_DEVFN_GOLDMONT PCI_DEVFN(13, 0)
drivers/platform/x86/p2sb.c
24
#define SPI_DEVFN_GOLDMONT PCI_DEVFN(13, 2)
drivers/platform/x86/x86-android-tablets/other.c
695
.ctrl.pci.devfn = PCI_DEVFN(0x1e, 3),
drivers/platform/x86/x86-android-tablets/other.c
713
pdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0x11, 0));
drivers/platform/x86/x86-android-tablets/other.c
715
pr_warn("Could not get PCI SDIO at devfn 0x%02x\n", PCI_DEVFN(0x11, 0));
drivers/power/reset/piix4-poweroff.c
53
spec_devid = PCI_DEVID(0, PCI_DEVFN(0x1f, 0x7));
drivers/scsi/aic7xxx/aic79xx_osm_pci.c
122
unsigned int master_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
161
unsigned int master_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
drivers/scsi/qla4xxx/ql4_os.c
8918
ha->pdev->bus->number, PCI_DEVFN(PCI_SLOT(ha->pdev->devfn),
drivers/scsi/qla4xxx/ql4_os.c
9688
PCI_DEVFN(PCI_SLOT(ha->pdev->devfn),
drivers/spi/spi-pxa2xx-pci.c
152
dma_dev = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0));
drivers/spi/spi-pxa2xx-pci.c
228
dma_dev = pci_get_slot(dev->bus, PCI_DEVFN(21, 0));
drivers/spi/spi-topcliff-pch.c
839
PCI_DEVFN(PCI_SLOT(data->board_dat->pdev->devfn), 0));
drivers/tty/serial/8250/8250_lpss.c
139
dma_dev = pci_get_slot(pdev->bus, PCI_DEVFN(PCI_SLOT(pdev->devfn), 0));
drivers/tty/serial/8250/8250_mid.c
125
mid->dma_dev = pci_get_slot(pdev->bus, PCI_DEVFN(5, 0));
drivers/tty/serial/8250/8250_mid.c
71
PCI_DEVFN(PCI_SLOT(pdev->devfn), 3));
drivers/tty/serial/pch_uart.c
680
PCI_DEVFN(PCI_SLOT(priv->pdev->devfn), 0));
drivers/usb/host/ohci-pci.c
77
b = pci_get_slot (pdev->bus, PCI_DEVFN (PCI_SLOT (pdev->devfn), 1));
drivers/vfio/pci/vfio_pci_igd.c
395
host_bridge = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0));
drivers/vfio/pci/vfio_pci_igd.c
415
lpc_bridge = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0x1f, 0));
drivers/xen/xen-pciback/pci_stub.c
1107
int rc = 0, devfn = PCI_DEVFN(slot, func);
drivers/xen/xen-pciback/vpci.c
142
err = publish_cb(pdev, 0, 0, PCI_DEVFN(slot, func), devid);
drivers/xen/xen-pciback/vpci.c
250
*devfn = PCI_DEVFN(slot,
drivers/xen/xen-pciback/xenbus.c
282
dev = xen_pcibk_get_pci_dev(pdev, domain, bus, PCI_DEVFN(slot, func));