Home
last modified time | relevance | path

Searched refs:PCI_SLOT (Results 1 – 200 of 244) sorted by relevance

12

/linux-4.1.27/arch/alpha/kernel/
Dsys_miata.c205 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
208 else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle()
209 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle()
210 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle()
216 if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle()
217 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle()
218 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle()
226 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
Dsys_ruffian.c148 slot = PCI_SLOT(dev->devfn); in ruffian_swizzle()
151 else if (PCI_SLOT(dev->bus->self->devfn) == 13) { in ruffian_swizzle()
152 slot = PCI_SLOT(dev->devfn) + 10; in ruffian_swizzle()
158 if (PCI_SLOT(dev->bus->self->devfn) == 13) { in ruffian_swizzle()
159 slot = PCI_SLOT(dev->devfn) + 10; in ruffian_swizzle()
167 slot = PCI_SLOT(dev->devfn); in ruffian_swizzle()
Dsys_noritake.c230 slot = PCI_SLOT(dev->devfn); in noritake_swizzle()
233 else if (PCI_SLOT(dev->bus->self->devfn) == 8) { in noritake_swizzle()
234 slot = PCI_SLOT(dev->devfn) + 15; /* WAG! */ in noritake_swizzle()
240 if (PCI_SLOT(dev->bus->self->devfn) == 8) { in noritake_swizzle()
241 slot = PCI_SLOT(dev->devfn) + 15; in noritake_swizzle()
249 slot = PCI_SLOT(dev->devfn); in noritake_swizzle()
Dsys_sable.c413 slot = PCI_SLOT(dev->devfn); in lynx_swizzle()
416 else if (PCI_SLOT(dev->bus->self->devfn) == 3) { in lynx_swizzle()
417 slot = PCI_SLOT(dev->devfn) + 11; in lynx_swizzle()
423 if (PCI_SLOT(dev->bus->self->devfn) == 3) { in lynx_swizzle()
424 slot = PCI_SLOT(dev->devfn) + 11; in lynx_swizzle()
432 slot = PCI_SLOT(dev->devfn); in lynx_swizzle()
Dsys_eiger.c181 slot = PCI_SLOT(dev->devfn); in eiger_swizzle()
185 && (PCI_SLOT(dev->bus->self->devfn) in eiger_swizzle()
187 slot = PCI_SLOT(dev->devfn); in eiger_swizzle()
Dsys_takara.c183 unsigned int busslot = PCI_SLOT(dev->bus->self->devfn); in takara_map_irq_srm()
216 int slot = PCI_SLOT(dev->devfn); in takara_swizzle()
224 busslot = PCI_SLOT(dev->bus->self->devfn); in takara_swizzle()
Dsys_dp264.c433 slot = PCI_SLOT(dev->devfn); in monet_swizzle()
436 else if (hose->index == 1 && PCI_SLOT(dev->bus->self->devfn) == 8) { in monet_swizzle()
437 slot = PCI_SLOT(dev->devfn); in monet_swizzle()
443 PCI_SLOT(dev->bus->self->devfn) == 8) { in monet_swizzle()
444 slot = PCI_SLOT(dev->devfn); in monet_swizzle()
452 slot = PCI_SLOT(dev->devfn); in monet_swizzle()
Dsys_marvel.c351 PCI_SLOT(dev->devfn), in marvel_map_irq()
/linux-4.1.27/arch/arm/mach-iop32x/
Dn2100.c83 if (PCI_SLOT(dev->devfn) == 1) { in n2100_pci_map_irq()
86 } else if (PCI_SLOT(dev->devfn) == 2) { in n2100_pci_map_irq()
89 } else if (PCI_SLOT(dev->devfn) == 3) { in n2100_pci_map_irq()
92 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 1) { in n2100_pci_map_irq()
95 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 2) { in n2100_pci_map_irq()
98 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 3) { in n2100_pci_map_irq()
101 } else if (PCI_SLOT(dev->devfn) == 5) { in n2100_pci_map_irq()
107 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in n2100_pci_map_irq()
Diq31244.c122 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()
Diq80321.c93 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in iq80321_pci_map_irq()
/linux-4.1.27/drivers/hwmon/
Dfam15h_power.c60 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in show_power()
66 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in show_power()
124 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 3), in fam15h_power_is_internal_node0()
155 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), in tweak_runavg_range()
163 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), in tweak_runavg_range()
187 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in fam15h_power_init_data()
Dk10temp.c171 PCI_DEVFN(PCI_SLOT(pdev->devfn), 2), in has_erratum_319()
/linux-4.1.27/arch/mips/pci/
Dops-bcm63xx.c70 slot = PCI_SLOT(devfn); in bcm63xx_setup_cfg_access()
154 if (type == 0 && PCI_SLOT(devfn) == CARDBUS_PCI_IDSEL) in bcm63xx_pci_read()
168 if (type == 0 && PCI_SLOT(devfn) == CARDBUS_PCI_IDSEL) in bcm63xx_pci_write()
367 if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { in bcm63xx_cb_read()
378 PCI_SLOT(devfn) == 0) in bcm63xx_cb_read()
389 if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { in bcm63xx_cb_write()
396 PCI_SLOT(devfn) == 0) in bcm63xx_cb_write()
438 PCI_SLOT(dev->devfn) == 0) in bcm63xx_fixup()
472 return PCI_SLOT(devfn) == 0; in bcm63xx_pcie_can_access()
474 if (PCI_SLOT(devfn) == 0) in bcm63xx_pcie_can_access()
Dfixup-rc32434.c43 if (dev->bus->number < 2 && PCI_SLOT(dev->devfn) < 12) in pcibios_map_irq()
44 irq = irq_map[dev->bus->number][PCI_SLOT(dev->devfn)]; in pcibios_map_irq()
51 if (PCI_SLOT(dev->devfn) == 6 && dev->bus->number == 0) { in rc32434_pci_early_fixup()
Dops-emma2rh.c51 if (PCI_SLOT(devfn) >= 10) in check_args()
55 if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) in check_args()
71 config_win0 = (1 << (22 + PCI_SLOT(devfn))) | (5 << 9); in set_pci_configuration_address()
76 config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | in set_pci_configuration_address()
Dfixup-lemote2f.c58 if ((PCI_SLOT(dev->devfn) != PCI_IDSEL_CS5536) in pcibios_map_irq()
59 && (PCI_SLOT(dev->devfn) < 32)) { in pcibios_map_irq()
67 } else if (PCI_SLOT(dev->devfn) == PCI_IDSEL_CS5536) { /* cs5536 */ in pcibios_map_irq()
Dfixup-emma2rh.c57 if (PCI_SLOT(dev->devfn) == EMMA2RH_USB_SLOT) in nec_usb_controller_fixup()
74 if (PCI_SLOT(dev->devfn) == EMMA2RH_PCI_HOST_SLOT) { in emma2rh_pci_host_fixup()
Dops-vr41xx.c42 if (PCI_SLOT(devfn) < 11 || where > 0xff) in set_pci_configuration_address()
45 writel((1U << PCI_SLOT(devfn)) | (PCI_FUNC(devfn) << 8) | in set_pci_configuration_address()
Dpci-xlp.c74 if (PCI_SLOT(devfn) != 0 || in pci_cfg_read_32bit()
78 if (PCI_SLOT(devfn) == 0) /* b.0.0 hangs */ in pci_cfg_read_32bit()
83 } else if (bus->number == 0 && PCI_SLOT(devfn) == 1 && where == 0x954) { in pci_cfg_read_32bit()
205 return PCI_SLOT(lnkdev->devfn) / 8; in xlp_socdev_to_node()
Dpci-ip27.c165 int slot = PCI_SLOT(rdev->devfn); in pcibios_plat_dev_init()
196 int slot = PCI_SLOT(dev->devfn); in pci_disable_swapping()
207 int slot = PCI_SLOT(dev->devfn); in pci_enable_swapping()
Dops-gt64xxx_pci0.c63 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access()
72 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access()
Dops-bridge.c48 int slot = PCI_SLOT(devfn); in pci_conf0_read_config()
109 int slot = PCI_SLOT(devfn); in pci_conf1_read_config()
181 int slot = PCI_SLOT(devfn); in pci_conf0_write_config()
247 int slot = PCI_SLOT(devfn); in pci_conf1_write_config()
Dpci-rt2880.c73 address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), in rt2880_pci_config_read()
103 address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), in rt2880_pci_config_write()
192 switch (PCI_SLOT(dev->devfn)) { in pcibios_map_irq()
Dops-nile4.c22 if ((busnum == 0) && (PCI_SLOT(devfn) > 8)) in nile4_pcibios_config_access()
51 ((1 << (PCI_SLOT(devfn) + 15)) | (PCI_FUNC(devfn) << 8) in nile4_pcibios_config_access()
Dfixup-malta.c92 if (PCI_SLOT(pdev->devfn) == 10) { in malta_piix_func0_fixup()
126 if (PCI_SLOT(pdev->devfn) == 10) { in malta_piix_func1_fixup()
Dops-rc32434.c50 unsigned int slot = PCI_SLOT(devfn); in config_access()
104 if (bus->number == 0 && PCI_SLOT(devfn) > 21) in read_config_dword()
Dfixup-tb0287.c43 switch (PCI_SLOT(dev->devfn)) { in pcibios_map_irq()
Dpci-bcm47xx.c50 slot = PCI_SLOT(dev->devfn); in bcm47xx_pcibios_plat_dev_init_ssb()
Dpci-ar2315.c202 int dev = PCI_SLOT(devfn); in ar2315_pci_cfg_access()
272 if (PCI_SLOT(devfn) == AR2315_PCI_HOST_SLOT) in ar2315_pci_cfg_read()
283 if (PCI_SLOT(devfn) == AR2315_PCI_HOST_SLOT) in ar2315_pci_cfg_write()
Dops-msc.c58 (PCI_SLOT(devfn) << MSC01_PCI_CFGADDR_DNUM_SHF) | in msc_pcibios_config_access()
Dops-loongson3.c22 int device = PCI_SLOT(devfn); in loongson3_pci_config_access()
Dops-bonito64.c45 int device = PCI_SLOT(devfn); in bonito64_pcibios_config_access()
Dpci-rt3883.c247 address = rt3883_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), in rt3883_pci_config_read()
281 address = rt3883_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), in rt3883_pci_config_write()
480 switch (PCI_SLOT(devfn)) { in rt3883_pci_probe()
Dpci-bcm1480ht.c96 devno = PCI_SLOT(devfn); in bcm1480ht_can_access()
Dfixup-fuloong2e.c67 sb_slot = PCI_SLOT(pdev->devfn); in loongson2e_686b_func0_fixup()
Dpci-ar71xx.c90 ret = (1 << PCI_SLOT(devfn)) | (PCI_FUNC(devfn) << 8) | in ar71xx_pci_bus_addr()
94 ret = (bus->number << 16) | (PCI_SLOT(devfn) << 11) | in ar71xx_pci_bus_addr()
Dops-loongson2.c44 int device = PCI_SLOT(devfn); in loongson_pcibios_config_access()
Dpci-sb1250.c112 devno = PCI_SLOT(devfn); in sb1250_pci_can_access()
Dpci-bcm1480.c105 devno = PCI_SLOT(devfn); in bcm1480_pci_can_access()
Dpci-xlr.c212 link = PCI_SLOT(lnk->devfn); in get_irq_vector()
Dmsi-xlp.c455 slot = PCI_SLOT(lnkdev->devfn); in arch_setup_msi_irq()
Dpci-alchemy.c102 unsigned int device = PCI_SLOT(dev_fn); in config_access()
/linux-4.1.27/drivers/pci/hotplug/
Dcpci_hotplug_pci.c265 slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn)); in cpci_configure_slot()
290 if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) in cpci_configure_slot()
320 if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) in cpci_unconfigure_slot()
Dshpchp_pci.c65 if (PCI_SLOT(dev->devfn) != p_slot->device) in shpchp_configure_device()
94 if (PCI_SLOT(dev->devfn) != p_slot->device) in shpchp_unconfigure_device()
Dacpiphp_glue.c495 if (PCI_SLOT(dev->devfn) != slot->device) in enable_slot()
553 if (PCI_SLOT(dev->devfn) == slot->device) in disable_slot()
568 if (PCI_SLOT(dev->devfn) == slot->device && dev->ignore_hotplug) in slot_no_hotplug()
689 if (PCI_SLOT(dev->devfn) == slot->device) in acpiphp_check_bridge()
Drpaphp_slot.c134 slotno = PCI_SLOT(PCI_DN(slot->dn->child)->devfn); in rpaphp_register_slot()
Dcpqphp_nvram.c288 rc = add_byte(&pFill, PCI_SLOT(ctrl->pci_dev->devfn), &usedbytes, &available); in store_HRT()
483 (device != PCI_SLOT(ctrl->pci_dev->devfn)) || in compaq_nvram_load()
Dsgi_hotplug.c380 if (PCI_SLOT(dev->devfn) != slot->device_num + 1) in enable_slot()
539 if (PCI_SLOT(dev->devfn) != slot->device_num + 1) in disable_slot()
Dpciehp_hpc.c284 pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), in pci_bus_check_dev()
Dibmphp_core.c159 (*cur_slot)->device = PCI_SLOT(rtable->slots[loop].devfn); in ibmphp_init_devno()
Dcpqphp_core.c1092 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev); in cpqhpc_probe()
/linux-4.1.27/arch/arm/mach-orion5x/
Dpci.c82 if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf()
99 if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf_wa()
126 if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) in pcie_wr_conf()
328 if (PCI_SLOT(devfn) == 0 && PCI_FUNC(devfn) != 0) in orion5x_pci_valid_config()
335 if (orion5x_pci_cardbus_mode && PCI_SLOT(devfn) > 1) in orion5x_pci_valid_config()
350 return orion5x_pci_hw_rd_conf(bus->number, PCI_SLOT(devfn), in orion5x_pci_rd_conf()
360 return orion5x_pci_hw_wr_conf(bus->number, PCI_SLOT(devfn), in orion5x_pci_wr_conf()
/linux-4.1.27/arch/sh/drivers/pci/
Dfixups-cayman.c39 slot = path[i].slot = PCI_SLOT(dev->devfn); in pcibios_map_platform_irq()
46 slot = PCI_SLOT(dev->devfn); in pcibios_map_platform_irq()
Dops-sh7786.c28 dev = PCI_SLOT(devfn); in sh7786_pcie_config_access()
/linux-4.1.27/drivers/xen/xen-pciback/
Dvpci.c41 if (PCI_SLOT(devfn) < PCI_SLOT_MAX) { in __xen_pcibk_get_pci_dev()
45 &vpci_dev->dev_list[PCI_SLOT(devfn)], in __xen_pcibk_get_pci_dev()
61 && l->bus == r->bus && PCI_SLOT(l->devfn) == PCI_SLOT(r->devfn)) in match_slot()
Dpci_stub.c164 && slot == PCI_SLOT(psdev->dev->devfn) in pcistub_device_find()
214 && slot == PCI_SLOT(psdev->dev->devfn) in pcistub_get_pci_dev_by_slot()
730 PCI_SLOT(dev->devfn), in xen_pcibk_slot_reset()
788 PCI_SLOT(dev->devfn), in xen_pcibk_mmio_enabled()
846 PCI_SLOT(dev->devfn), in xen_pcibk_error_detected()
900 PCI_SLOT(dev->devfn), in xen_pcibk_error_resume()
1037 || PCI_SLOT(devfn) != slot in pcistub_device_id_add()
1069 && (slot < 0 || PCI_SLOT(pci_dev_id->devfn) == slot) in pcistub_device_id_remove()
1182 PCI_SLOT(pci_dev_id->devfn), in pcistub_slot_show()
1298 PCI_SLOT(quirk->pdev->devfn), in pcistub_quirk_show()
Dxenbus.c218 PCI_SLOT(devfn), PCI_FUNC(devfn)); in xen_pcibk_publish_pci_dev()
/linux-4.1.27/arch/arm/plat-orion/
Dpcie.c212 PCIE_CONF_DEV(PCI_SLOT(devfn)) | in orion_pcie_rd_conf()
231 PCIE_CONF_DEV(PCI_SLOT(devfn)) | in orion_pcie_rd_conf_tlp()
254 PCIE_CONF_DEV(PCI_SLOT(devfn)) | in orion_pcie_rd_conf_wa()
272 PCIE_CONF_DEV(PCI_SLOT(devfn)) | in orion_pcie_wr_conf()
/linux-4.1.27/arch/x86/include/asm/
Damd_nb.h93 PCI_SLOT(misc->devfn) == PCI_SLOT(pdev->devfn)) in amd_get_node_id()
/linux-4.1.27/arch/arm/plat-iop/
Dpci.c45 addr = 1 << (PCI_SLOT(devfn) + 16) | (PCI_SLOT(devfn) << 11); in iop3xx_cfg_address()
47 addr = bus->number << 16 | PCI_SLOT(devfn) << 11 | 1; in iop3xx_cfg_address()
/linux-4.1.27/arch/xtensa/lib/
Dpci-auto.c148 irq = pci_ctrl->map_irq(dev, PCI_SLOT(devfn), pin); in pciauto_setup_irq()
293 PCI_SLOT(pci_devfn)); in pciauto_bus_scan()
341 current_bus, PCI_SLOT(pci_devfn), PCI_FUNC(pci_devfn) ); in pciauto_bus_scan()
/linux-4.1.27/arch/arm/mach-ixp4xx/
Dcommon-pci.c174 addr = BIT(32-PCI_SLOT(devfn)) | ((PCI_FUNC(devfn)) << 8) | in ixp4xx_config_addr()
178 addr = (bus_num << 16) | ((PCI_SLOT(devfn)) << 11) | 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-4.1.27/arch/x86/pci/
Dolpc.c179 return (!bus && ((PCI_SLOT(devfn) == NB_SLOT) || in is_simulated()
180 (PCI_SLOT(devfn) == SB_SLOT))); in is_simulated()
Ddirect.c106 dev = PCI_SLOT(devfn); in pci_conf2_read()
146 dev = PCI_SLOT(devfn); in pci_conf2_write()
Dirq.c873 PCI_SLOT(info->devfn) == PCI_SLOT(dev->devfn)) in pirq_get_info()
1208 PCI_SLOT(dev->devfn), pin - 1); in pirq_enable_irq()
1221 PCI_SLOT(bridge->devfn), in pirq_enable_irq()
Dcommon.c661 (PCI_SLOT(dev->devfn) == rom->device) && in pcibios_add_device()
/linux-4.1.27/drivers/iommu/
Damd_iommu_init.c440 PCI_SLOT(h->devid), in find_last_devid_from_ivhd()
844 PCI_SLOT(iommu->first_device), in init_iommu_from_acpi()
847 PCI_SLOT(iommu->last_device), in init_iommu_from_acpi()
861 PCI_SLOT(e->devid), in init_iommu_from_acpi()
873 PCI_SLOT(e->devid), in init_iommu_from_acpi()
887 PCI_SLOT(e->devid), in init_iommu_from_acpi()
891 PCI_SLOT(e->ext >> 8), in init_iommu_from_acpi()
906 PCI_SLOT(e->devid), in init_iommu_from_acpi()
910 PCI_SLOT(e->ext >> 8), in init_iommu_from_acpi()
924 PCI_SLOT(e->devid), in init_iommu_from_acpi()
[all …]
Damd_iommu.c341 "%02x:%02x.%d\n", PCI_BUS_NUM(ivrs_alias), PCI_SLOT(ivrs_alias), in get_alias()
343 PCI_BUS_NUM(pci_alias), PCI_SLOT(pci_alias), in get_alias()
355 PCI_SLOT(ivrs_alias), PCI_FUNC(ivrs_alias), in get_alias()
613 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in iommu_print_event()
620 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in iommu_print_event()
626 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in iommu_print_event()
632 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in iommu_print_event()
646 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in iommu_print_event()
652 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid), in iommu_print_event()
Diommu.c553 PCI_SLOT(tmp->devfn) != PCI_SLOT(pdev->devfn) || in get_pci_function_alias_group()
Ddmar.c168 info->path[level].device = PCI_SLOT(tmp->devfn); in dmar_alloc_pci_notify_info()
1558 (source_id >> 8), PCI_SLOT(source_id & 0xFF), in dmar_fault_do_one()
1566 (source_id >> 8), PCI_SLOT(source_id & 0xFF), in dmar_fault_do_one()
/linux-4.1.27/arch/arm/mach-versatile/
Dpci.c94 (PCI_SLOT(devfn) << 11) | (PCI_FUNC(devfn) << 8) | offset); in __pci_addr()
102 int slot = PCI_SLOT(devfn); in versatile_read_config()
145 int slot = PCI_SLOT(devfn); in versatile_write_config()
/linux-4.1.27/include/uapi/linux/
Dpci.h31 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) macro
/linux-4.1.27/arch/arm/mach-iop13xx/
Dpci.c187 addr = 1 << (PCI_SLOT(devfn) + 16) | (PCI_SLOT(devfn) << 11); in iop13xx_atux_cfg_address()
189 addr = bus->number << 16 | PCI_SLOT(devfn) << 11 | 1; in iop13xx_atux_cfg_address()
210 bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); in iop13xx_atue_cfg_address()
212 ((u32) PCI_SLOT(devfn)) << IOP13XX_ATUE_OCCAR_DEV_NUM | in iop13xx_atue_cfg_address()
426 if (!PCI_SLOT(devfn) || (addr & 1)) { in iop13xx_atue_read_config()
/linux-4.1.27/arch/powerpc/kernel/
Deeh_pe.c355 PCI_SLOT(edev->config_addr & 0xFF), in eeh_add_to_parent_pe()
378 PCI_SLOT(edev->config_addr & 0xFF), in eeh_add_to_parent_pe()
423 PCI_SLOT(edev->config_addr & 0xFF), in eeh_add_to_parent_pe()
448 PCI_SLOT(edev->config_addr & 0xFF), in eeh_rmv_from_parent_pe()
688 PCI_SLOT(edev->config_addr & 0xFF), in eeh_bridge_check_link()
Dpci-hotplug.c98 slotno = PCI_SLOT(PCI_DN(dn->child)->devfn); in pcibios_add_pci_devices()
Dpci_of_scan.c149 if (PCI_SLOT(dev->devfn) == slot->number) in of_create_pci_dev()
160 dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); in of_create_pci_dev()
Deeh.c175 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in eeh_dump_dev_log()
178 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in eeh_dump_dev_log()
/linux-4.1.27/arch/powerpc/platforms/pasemi/
Dpci.c59 ((PCI_SLOT(devfn) == 16) || (PCI_SLOT(devfn) == 17))); in is_root_port()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_pci.c137 PCI_SLOT(dev->pdev->devfn), in drm_pci_set_busid()
181 (slot != PCI_SLOT(dev->pdev->devfn)) || in drm_pci_set_unique()
195 p->devnum != PCI_SLOT(dev->pdev->devfn) || p->funcnum != PCI_FUNC(dev->pdev->devfn)) in drm_pci_irq_by_busid()
/linux-4.1.27/arch/sparc/kernel/
Dpci_common.c128 if (!bus_dev->number && !PCI_SLOT(devfn)) in sun4u_read_pci_cfg()
218 if (!bus_dev->number && !PCI_SLOT(devfn)) in sun4u_write_pci_cfg()
262 unsigned int device = PCI_SLOT(devfn); in sun4v_read_pci_cfg()
295 unsigned int device = PCI_SLOT(devfn); in sun4v_write_pci_cfg()
Dleon_pci_grpci1.c245 if (PCI_SLOT(devfn) > 15 || busno > 15) { in grpci1_read_config()
268 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, *val, size); in grpci1_read_config()
283 if (PCI_SLOT(devfn) > 15 || busno > 15) in grpci1_write_config()
289 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); in grpci1_write_config()
Dleon_pci_grpci2.c382 if (PCI_SLOT(devfn) > 15 || busno > 255) { in grpci2_read_config()
404 "size=%d\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, in grpci2_read_config()
420 if (PCI_SLOT(devfn) > 15 || busno > 255) in grpci2_write_config()
425 "val=%x\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), in grpci2_write_config()
Dpci.c294 if (PCI_SLOT(dev->devfn) == slot->number) in of_create_pci_dev()
317 dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); in of_create_pci_dev()
/linux-4.1.27/arch/frv/mb93090-mb00/
Dpci-irq.c51 dev->irq = pci_bus0_irq_routing[PCI_SLOT(dev->devfn)][pin - 1]; in pcibios_fixup_irqs()
/linux-4.1.27/drivers/xen/
Dpci.c66 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device()
127 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { in xen_add_device()
/linux-4.1.27/arch/powerpc/platforms/85xx/
Dmpc85xx_cds.c78 if ((bus == 1) && (PCI_SLOT(devfn) == ARCADIA_2ND_BRIDGE_IDSEL)) in mpc85xx_exclude_device()
80 if ((bus == 0) && (PCI_SLOT(devfn) == ARCADIA_2ND_BRIDGE_IDSEL)) in mpc85xx_exclude_device()
Dmpc85xx_ads.c43 if (bus == 0 && PCI_SLOT(devfn) == 0) in mpc85xx_exclude_device()
/linux-4.1.27/arch/arm/mach-dove/
Dpcie.c103 if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf()
123 if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) in pcie_wr_conf()
/linux-4.1.27/arch/powerpc/platforms/82xx/
Dpq2.c41 if (bus == 0 && PCI_SLOT(devfn) == 0) in pq2_pci_exclude_device()
/linux-4.1.27/drivers/bcma/
Ddriver_pci_host.c243 err = bcma_extpci_read_config(pc, PCI_SLOT(devfn), in bcma_core_pci_hostmode_read_config()
263 err = bcma_extpci_write_config(pc, PCI_SLOT(devfn), in bcma_core_pci_hostmode_write_config()
536 if (PCI_SLOT(dev->devfn) != 0) in bcma_core_pci_fixup_pcibridge()
563 if (PCI_SLOT(dev->devfn) == 0) in bcma_core_pci_fixup_addresses()
/linux-4.1.27/arch/mn10300/include/asm/
Dpci.h26 PCI_SLOT(DEVFN), \
/linux-4.1.27/arch/powerpc/platforms/
Dfsl_uli1575.c352 if ((PCI_SLOT(devfn) == 29) && (PCI_FUNC(devfn) == 1)) in uli_exclude_device()
356 if ((PCI_SLOT(devfn) == 29) && (PCI_FUNC(devfn) == 2)) in uli_exclude_device()
/linux-4.1.27/arch/m68k/coldfire/
Dpci.c83 if (mcf_host_slot2sid[PCI_SLOT(devfn)] == 0) in mcf_pci_readconfig()
115 if (mcf_host_slot2sid[PCI_SLOT(devfn)] == 0) in mcf_pci_writeconfig()
/linux-4.1.27/arch/mips/ath79/
Dmach-ubnt-xm.c87 switch (PCI_SLOT(dev->devfn)) { in ubnt_xm_pci_plat_dev_init()
Dmach-db120.c98 switch (PCI_SLOT(dev->devfn)) { in db120_pci_plat_dev_init()
Dmach-ap136.c120 if (dev->bus->number == 1 && (PCI_SLOT(dev->devfn)) == 0) in ap136_pci_plat_dev_init()
/linux-4.1.27/drivers/parisc/
Diosapic.c481 pcidev->slot_name, PCI_SLOT(pcidev->devfn), intr_pin); in iosapic_xlate_pin()
530 intr_slot = PCI_SLOT(p->self->devfn); in iosapic_xlate_pin()
532 intr_slot = PCI_SLOT(pcidev->devfn); in iosapic_xlate_pin()
808 PCI_SLOT(pcidev->devfn), PCI_FUNC(pcidev->devfn), in iosapic_fixup_irq()
/linux-4.1.27/arch/arm/mach-iop33x/
Diq80331.c75 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in iq80331_pci_map_irq()
Diq80332.c75 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in iq80332_pci_map_irq()
/linux-4.1.27/arch/arm/mach-mv78xx0/
Dpcie.c145 if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf()
165 if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) in pcie_wr_conf()
/linux-4.1.27/arch/arm/mach-cns3xxx/
Dpcie.c59 int slot = PCI_SLOT(devfn); in cns3xxx_pci_map_bus()
136 pci_domain_nr(dev->bus), dev->bus->number, PCI_SLOT(dev->devfn), in cns3xxx_pcie_map_irq()
/linux-4.1.27/drivers/ssb/
Ddriver_gige.c116 if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0)) in ssb_gige_pci_read_config()
146 if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0)) in ssb_gige_pci_write_config()
Ddriver_pcicore.c211 err = ssb_extpci_read_config(extpci_core, bus->number, PCI_SLOT(devfn), in ssb_pcicore_read_config()
225 err = ssb_extpci_write_config(extpci_core, bus->number, PCI_SLOT(devfn), in ssb_pcicore_write_config()
284 if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) != 0) in ssb_pcicore_fixup_pcibridge()
/linux-4.1.27/drivers/pci/
Dslot.c110 if (PCI_SLOT(dev->devfn) == slot->number) in pci_slot_release()
305 if (PCI_SLOT(dev->devfn) == slot_nr) in pci_create_slot()
Dquirks.c882 via_vlink_dev_lo = PCI_SLOT(dev->devfn); in quirk_via_bridge()
883 via_vlink_dev_hi = PCI_SLOT(dev->devfn); in quirk_via_bridge()
937 if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) > via_vlink_dev_hi || in quirk_via_vlink()
938 PCI_SLOT(dev->devfn) < via_vlink_dev_lo) in quirk_via_vlink()
1930 f0 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in quirk_f0_vpd_link()
3588 dev->dma_alias_devfn = PCI_DEVFN(PCI_SLOT(dev->devfn), 0); in quirk_dma_func0_alias()
3604 dev->dma_alias_devfn = PCI_DEVFN(PCI_SLOT(dev->devfn), 1); in quirk_dma_func1_alias()
3670 PCI_SLOT(dev->dma_alias_devfn), in quirk_fixed_dma_alias()
Daccess.c446 PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in pci_vpd_f0_read()
461 PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in pci_vpd_f0_write()
Dxen-pcifront.c197 pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), in pcifront_bus_read()
238 PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); in pcifront_bus_write()
441 PCI_SLOT(devfn), PCI_FUNC(devfn)); in pcifront_scan_bus()
Dproc.c397 sprintf(name, "%02x.%x", PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in pci_proc_attach_device()
Dprobe.c1141 if (PCI_SLOT(dev->devfn) == slot->number) in pci_setup_device()
1149 dev->bus->number, PCI_SLOT(dev->devfn), in pci_setup_device()
1478 pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), in pci_bus_read_dev_vendor_id()
Dpci-acpi.c589 addr = (PCI_SLOT(pci_dev->devfn) << 16) | PCI_FUNC(pci_dev->devfn); in acpi_pci_find_companion()
Diov.c466 iov->link = PCI_DEVFN(PCI_SLOT(dev->devfn), iov->link); in sriov_init()
Dpci.c2459 slot = PCI_SLOT(dev->devfn); in pci_swizzle_interrupt_pin()
2497 return PCI_SLOT(dev->devfn); in pci_common_swizzle()
4379 slot == PCI_SLOT(dev->devfn) && in pci_specified_resource_alignment()
/linux-4.1.27/arch/parisc/kernel/
Ddrivers.c300 path->bc[i--] = PCI_SLOT(devfn); in get_node_path()
307 path->bc[i--] = PCI_SLOT(devfn) | (PCI_FUNC(devfn)<< 5); in get_node_path()
647 return ((modpath->bc[5] == PCI_SLOT(devfn)) && in match_pci_device()
651 id = PCI_SLOT(pdev->devfn) | (PCI_FUNC(pdev->devfn) << 5); in match_pci_device()
/linux-4.1.27/drivers/pci/pcie/aer/
Daerdrv_acpi.c28 p->device == PCI_SLOT(pci->devfn) && in hest_match_pci()
Daerdrv_core.c580 domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in aer_recover_queue()
596 PCI_SLOT(entry.devfn), PCI_FUNC(entry.devfn)); in aer_recover_work_func()
/linux-4.1.27/arch/powerpc/platforms/embedded6xx/
Dmpc7448_hpc2.c59 if (bus == 0 && PCI_SLOT(devfn) == 0) in mpc7448_hpc2_exclude_device()
Dholly.c49 if (bus == 0 && PCI_SLOT(devfn) == 0) in holly_exclude_device()
/linux-4.1.27/arch/powerpc/platforms/maple/
Dpci.c86 return (1 << (unsigned long)PCI_SLOT(devfn)) | in u3_agp_cfa0()
202 if (PCI_SLOT(devfn) == 0) in u3_ht_cfg_access()
340 return (1 << PCI_SLOT(devfn)) | in u4_pcie_cfa0()
/linux-4.1.27/drivers/misc/
Dioc4.c244 3 == PCI_SLOT(pdev->devfn)) in ioc4_variant()
259 3 == PCI_SLOT(pdev->devfn)) in ioc4_variant()
/linux-4.1.27/drivers/media/pci/mantis/
Dmantis_pci.c60 PCI_SLOT(mantis->pdev->devfn), in mantis_pci_init()
Dmantis_core.c121 mantis->pdev->bus->number, PCI_SLOT(mantis->pdev->devfn), PCI_FUNC(mantis->pdev->devfn)); in mantis_core_init()
/linux-4.1.27/drivers/edac/
Di7core_edac.c884 dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn), in write_and_test()
899 dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn), in write_and_test()
1250 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in i7core_put_devices()
1389 if (unlikely(PCI_SLOT(pdev->devfn) != dev_descr->dev || in i7core_get_onedevice()
1395 bus, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), in i7core_get_onedevice()
1473 slot = PCI_SLOT(pdev->devfn); in mci_bind_devs()
1516 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), in mci_bind_devs()
1519 if (PCI_SLOT(pdev->devfn) == 3 && in mci_bind_devs()
Dsb_edac.c1469 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in sbridge_put_devices()
1756 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), in ibridge_mci_bind_devs()
1863 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), in haswell_mci_bind_devs()
1939 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), in broadwell_mci_bind_devs()
Di7300_edac.c1038 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in i7300_init_one()
Di5400_edac.c1272 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in i5400_probe1()
Damd64_edac.c977 (PCI_SLOT(dev->devfn) == PCI_SLOT(related->devfn))) in pci_get_related_function()
Di5000_edac.c1372 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in i5000_probe1()
/linux-4.1.27/drivers/ide/
Dpdc202xx_new.c429 dev2 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn) + 1, in pdc20270_get_dev2()
492 if (PCI_SLOT(dev->devfn) & 2) in pdc202new_init_one()
Dsl82c105.c243 PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in sl82c105_bridge_revision()
Dns87415.c310 if (PCI_SLOT(dev->devfn) == 0xE) { in ns87415_init_one()
Dide-acpi.c133 devnum = PCI_SLOT(pdev->devfn); in ide_get_dev_handle()
/linux-4.1.27/drivers/pci/host/
Dpcie-designware.c586 busdev = PCIE_ATU_BUS(bus->number) | PCIE_ATU_DEV(PCI_SLOT(devfn)) | in dw_pcie_rd_other_conf()
611 busdev = PCIE_ATU_BUS(bus->number) | PCIE_ATU_DEV(PCI_SLOT(devfn)) | in dw_pcie_wr_other_conf()
659 if (dw_pcie_valid_config(pp, bus, PCI_SLOT(devfn)) == 0) { in dw_pcie_rd_conf()
683 if (dw_pcie_valid_config(pp, bus, PCI_SLOT(devfn)) == 0) in dw_pcie_wr_conf()
Dpci-mvebu.c48 (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \
663 PCI_SLOT(devfn) != 0) in mvebu_pcie_wr_conf()
704 PCI_SLOT(devfn) != 0) { in mvebu_pcie_rd_conf()
878 if (slot == PCI_SLOT(devfn) && type == rtype) { in mvebu_get_tgt_attr()
Dpci-versatile.c59 if (pci_slot_ignore & (1 << PCI_SLOT(devfn))) in versatile_map_bus()
Dpcie-iproc.c76 unsigned slot = PCI_SLOT(devfn); in iproc_pcie_map_cfg_bus()
Dpci-rcar-gen2.c119 slot = PCI_SLOT(devfn); in rcar_pci_cfg_base()
Dpci-keystone-dw.c376 u8 device = PCI_SLOT(devfn), function = PCI_FUNC(devfn); in ks_pcie_cfg_setup()
Dpci-tegra.c378 return ((where & 0xf00) << 8) | (PCI_SLOT(devfn) << 11) | in tegra_pcie_conf_offset()
459 unsigned int slot = PCI_SLOT(devfn); in tegra_pcie_conf_address()
1684 index = PCI_SLOT(err); in tegra_pcie_parse_dt()
Dpci-xgene.c102 d = PCI_SLOT(devfn); in xgene_pcie_set_rtdid_reg()
Dpcie-rcar.c185 dev = PCI_SLOT(devfn); in rcar_pcie_config_access()
/linux-4.1.27/drivers/usb/host/
Dohci-pci.c76 b = pci_get_slot (pdev->bus, PCI_DEVFN (PCI_SLOT (pdev->devfn), 1)); in ohci_quirk_ns()
/linux-4.1.27/drivers/usb/core/
Dhcd-pci.c65 unsigned int slot = PCI_SLOT(pdev->devfn); in for_each_companion()
75 PCI_SLOT(companion->devfn) != slot) in for_each_companion()
/linux-4.1.27/arch/arm/mach-ks8695/
Dpci.c47 pbca |= PCI_SLOT(devfn) << 11 ; in ks8695_pci_setupconfig()
/linux-4.1.27/drivers/spi/
Dspi-pxa2xx-pci.c130 dma_dev = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in pxa2xx_spi_pci_probe()
/linux-4.1.27/drivers/ata/
Dpata_sl82c105.c272 PCI_DEVFN(PCI_SLOT(pdev->devfn), 0)); in sl82c105_bridge_revision()
Dpata_ns87415.c368 if (PCI_SLOT(pdev->devfn) == 0x0E) in ns87415_init_one()
Dsata_sil.c727 return slot == PCI_SLOT(pdev->devfn); in sil_broken_system_poweroff()
Data_piix.c1580 return slot == PCI_SLOT(pdev->devfn); in piix_broken_system_poweroff()
Dahci.c1139 return slot == PCI_SLOT(pdev->devfn); in ahci_broken_system_poweroff()
/linux-4.1.27/arch/arm/mach-footbridge/
Ddc21285.c45 if (PCI_SLOT(devfn) == 0) in dc21285_base_address()
/linux-4.1.27/drivers/gpu/vga/
Dvga_switcheroo.c678 if (PCI_SLOT(client->pdev->devfn) == PCI_SLOT(pdev->devfn) && client_is_vga(client)) { in vga_switcheroo_runtime_resume_hdmi_audio()
Dvgaarb.c1079 domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in vga_arb_write()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_drm.c87 name |= PCI_SLOT(pdev->devfn) << 8; in nouveau_pci_name()
354 PCI_DEVFN(PCI_SLOT(pdev->devfn), 1)); in nouveau_get_hdmi_dev()
357 NV_DEBUG(drm, "hdmi device not found %d %d %d\n", pdev->bus->number, PCI_SLOT(pdev->devfn), 1); in nouveau_get_hdmi_dev()
/linux-4.1.27/arch/ia64/sn/pci/pcibr/
Dpcibr_dma.c51 u8 internal_device = (PCI_SLOT(pcidev_info->pdi_host_pcidev_info-> in pcibr_dmamap_ate32()
/linux-4.1.27/drivers/misc/cb710/
Dcore.c35 unsigned int devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); in cb710_pci_configure()
/linux-4.1.27/drivers/scsi/aic7xxx/
Daic79xx_osm_pci.c142 unsigned int master_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); in ahd_linux_pci_inherit_flags()
Daic7xxx_osm_pci.c185 unsigned int master_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); in ahc_linux_pci_inherit_flags()
Daic7xxx_osm.h492 return (PCI_SLOT(pci->devfn)); in ahc_get_pci_slot()
Daic79xx_osm.h489 return (PCI_SLOT(pci->devfn)); in ahd_get_pci_slot()
/linux-4.1.27/drivers/isdn/hysdn/
Dhysdn_procconf.c277 PCI_SLOT(card->devfn), in hysdn_conf_open()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_sysfs.c98 PCI_SLOT(us_ibdev->pdev->devfn), in usnic_ib_show_config()
/linux-4.1.27/arch/tile/kernel/
Dpci.c350 (PCI_SLOT(dev->devfn) == 0)) { in pcibios_init()
Dpci_gx.c1215 int device = PCI_SLOT(devfn); in tile_cfg_read()
1338 int device = PCI_SLOT(devfn); in tile_cfg_write()
/linux-4.1.27/drivers/pci/pcie/
Dpme.c209 busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); in pcie_pme_handle_request()
/linux-4.1.27/arch/mips/txx9/generic/
Dpci.c277 irq = pcibios_map_irq(dev, PCI_SLOT(dev->devfn), 1); /* INTA */ in quirk_slc90e66_bridge()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dadf_ctl_drv.c416 dev_info.dev = PCI_SLOT(accel_to_pci_dev(accel_dev)->devfn); in adf_ctl_ioctl_get_status()
/linux-4.1.27/drivers/acpi/
Dpci_irq.c166 int device = PCI_SLOT(dev->devfn); in acpi_pci_irq_check_entry()
/linux-4.1.27/drivers/staging/i2o/
Dpci.c374 PCI_DEVFN(PCI_SLOT(c->pdev->devfn), 0)); in i2o_pci_probe()
/linux-4.1.27/arch/x86/kernel/
Dquirks.c544 devfn = PCI_DEVFN(PCI_SLOT(dev->devfn), 0); in quirk_amd_nb_node()
/linux-4.1.27/drivers/net/can/sja1000/
Dplx_pci.c525 ci->name, PCI_SLOT(pdev->devfn)); in plx_pci_add_card()
/linux-4.1.27/drivers/media/pci/bt8xx/
Ddvb-bt8xx.c116 (PCI_SLOT(adev->devfn) == PCI_SLOT(bdev->devfn))) in is_pci_slot_eq()
Dbt878.c457 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in bt878_probe()
Dbttv-cards.c4311 if ((PCI_SLOT(btv->c.pci->devfn) & ~3) != 0xC) { in init_PCI8604PW()
4316 if (PCI_SLOT(btv->c.pci->devfn) != 0xD) in init_PCI8604PW()
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dpci.c128 ((1 << (unsigned int)PCI_SLOT(dev_fn)) \
387 ((1 << ((unsigned int)PCI_SLOT(dev_fn))) \
/linux-4.1.27/drivers/scsi/csiostor/
Dcsio_hw.h540 #define CSIO_PCI_DEV(hw) (PCI_SLOT((hw)->pdev->devfn))
/linux-4.1.27/arch/arm/mach-integrator/
Dpci_v3.c378 int slot = PCI_SLOT(devfn); in v3_open_config_window()
/linux-4.1.27/drivers/staging/dgnc/
Ddgnc_driver.c402 brd->pci_slot = PCI_SLOT(pdev->devfn); in dgnc_found_board()
/linux-4.1.27/arch/powerpc/platforms/pseries/
Deeh_pseries.c269 __func__, pdn->busno, PCI_SLOT(pdn->devfn), in pseries_eeh_probe()
/linux-4.1.27/arch/mips/bcm47xx/
Dsprom.c656 PCI_SLOT(bus->host_pci->devfn)); in bcm47xx_get_sprom_ssb()
709 PCI_SLOT(bus->host_pci->devfn)); in bcm47xx_get_sprom_bcma()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-driver.c417 int pci_slot = PCI_SLOT(itv->pdev->devfn); in ivtv_process_eeprom()
902 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), in ivtv_setup_pci()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_bios.c627 vhdr->PCIDevice != PCI_SLOT(rdev->pdev->devfn) || in radeon_acpi_vfct_bios()
/linux-4.1.27/drivers/mmc/host/
Dsdhci-pci.c421 if ((PCI_SLOT(chip->pdev->devfn) == in jmicron_probe()
422 PCI_SLOT(sd_dev->devfn)) && in jmicron_probe()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_hw.c280 PCI_SLOT(nesadapter->devfn), in nes_init_adapter()
282 PCI_SLOT(nesdev->pcidev->devfn), in nes_init_adapter()
284 if ((PCI_SLOT(nesadapter->devfn) == PCI_SLOT(nesdev->pcidev->devfn)) && in nes_init_adapter()
628 PCI_DEVFN(PCI_SLOT(nesdev->pcidev->devfn), in nes_init_adapter()
/linux-4.1.27/drivers/scsi/aacraid/
Dcommctrl.c844 pci_info.slot = PCI_SLOT(dev->pdev->devfn); in aac_get_pci_info()
/linux-4.1.27/drivers/scsi/esas2r/
Desas2r_ioctl.c453 gcc->pci_addr.device_num = PCI_SLOT(a->pcid->devfn); in csmi_ioctl_callback()
784 gai->pci.dev_num = PCI_SLOT(a->pcid->devfn); in hba_ioctl_callback()
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-core.c1018 if (PCI_SLOT(pci->devfn) != core->pci_slot) in cx88_core_get()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Dtulip_core.c1570 ((PCI_SLOT(pdev->devfn) == 7) || in tulip_init_one()
1571 (PCI_SLOT(pdev->devfn) == 12))) { in tulip_init_one()
/linux-4.1.27/drivers/scsi/
Dfdomain.c849 PCI_SLOT(pdev->devfn), in fdomain_pci_bios_detect()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Deeh-powernv.c426 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn), ret); in pnv_eeh_probe()
Dpci-ioda.c72 PCI_SLOT(pe->rid), PCI_FUNC(pe->rid)); in pe_level_printk()
1452 PCI_SLOT(pci_iov_virtfn_devfn(pdev, vf_index)), in pnv_ioda_setup_vf_PE()
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-driver.c850 PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn), in cx18_setup_pci()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dpci.c2046 pcipriv->ndis_adapter.devnumber = PCI_SLOT(pdev->devfn); in _rtl_pci_find_adapter()
2073 PCI_SLOT(bridge_pdev->devfn); in _rtl_pci_find_adapter()
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_mbox.c430 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn))); in megaraid_probe_one()
3810 hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn); in gather_hbainfo()
/linux-4.1.27/drivers/message/fusion/
Dmptctl.c1319 karg->pciInfo.u.bits.deviceNumber = PCI_SLOT( pdev->devfn ); in mptctl_getiocinfo()
1325 karg->pciInfo.u.bits.deviceNumber = PCI_SLOT( pdev->devfn ); in mptctl_getiocinfo()
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821-core.c897 dev->pci_slot = PCI_SLOT(dev->pci->devfn); in cx25821_dev_setup()
/linux-4.1.27/drivers/media/pci/saa7164/
Dsaa7164-core.c988 dev->pci_slot = PCI_SLOT(dev->pci->devfn); in saa7164_dev_setup()
/linux-4.1.27/drivers/staging/comedi/drivers/
Dadl_pci9118.c1473 PCI_SLOT(pcidev->devfn) != slot) in pci9118_find_pci()
/linux-4.1.27/drivers/net/ethernet/sgi/
Dioc3-eth.c1182 if (ioc3_is_menet(pdev) && PCI_SLOT(pdev->devfn) == 3) in ioc3_serial_probe()
/linux-4.1.27/drivers/video/fbdev/
Dtgafb.c1509 PCI_SLOT(to_pci_dev(dev)->devfn),

12