| /linux/arch/alpha/kernel/ |
| H A D | sys_miata.c | 208 slot = PCI_SLOT(dev->devfn); in miata_swizzle() 211 else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 212 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 213 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle() 219 if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 220 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 221 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle() 229 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
|
| H A D | sys_ruffian.c | 149 slot = PCI_SLOT(dev->devfn); in ruffian_swizzle() 152 else if (PCI_SLOT(dev->bus->self->devfn) == 13) { in ruffian_swizzle() 153 slot = PCI_SLOT(dev->devfn) + 10; in ruffian_swizzle() 159 if (PCI_SLOT(dev->bus->self->devfn) == 13) { in ruffian_swizzle() 160 slot = PCI_SLOT(dev->devfn) + 10; in ruffian_swizzle() 168 slot = PCI_SLOT(dev->devfn); in ruffian_swizzle()
|
| H A D | sys_noritake.c | 229 slot = PCI_SLOT(dev->devfn); in noritake_swizzle() 232 else if (PCI_SLOT(dev->bus->self->devfn) == 8) { in noritake_swizzle() 233 slot = PCI_SLOT(dev->devfn) + 15; /* WAG! */ in noritake_swizzle() 239 if (PCI_SLOT(dev->bus->self->devfn) == 8) { in noritake_swizzle() 240 slot = PCI_SLOT(dev->devfn) + 15; in noritake_swizzle() 248 slot = PCI_SLOT(dev->devfn); in noritake_swizzle()
|
| H A D | sys_eiger.c | 180 slot = PCI_SLOT(dev->devfn); in eiger_swizzle() 184 && (PCI_SLOT(dev->bus->self->devfn) in eiger_swizzle() 186 slot = PCI_SLOT(dev->devfn); in eiger_swizzle()
|
| H A D | sys_dp264.c | 433 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()
|
| H A D | sys_takara.c | 183 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()
|
| /linux/arch/mips/pci/ |
| H A D | ops-bcm63xx.c | 70 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()
|
| H A D | fixup-rc32434.c | 43 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()
|
| H A D | fixup-lemote2f.c | 54 if ((PCI_SLOT(dev->devfn) != PCI_IDSEL_CS5536) in pcibios_map_irq() 55 && (PCI_SLOT(dev->devfn) < 32)) { in pcibios_map_irq() 63 } else if (PCI_SLOT(dev->devfn) == PCI_IDSEL_CS5536) { /* cs5536 */ in pcibios_map_irq()
|
| H A D | ops-gt64xxx_pci0.c | 51 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access() 60 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access()
|
| H A D | fixup-malta.c | 93 if (PCI_SLOT(pdev->devfn) == 10) { in malta_piix_func0_fixup() 127 if (PCI_SLOT(pdev->devfn) == 10) { in malta_piix_func1_fixup()
|
| /linux/drivers/pci/hotplug/ |
| H A D | cpci_hotplug_pci.c | 247 slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn)); in cpci_configure_slot() 272 if (PCI_SLOT(dev->devfn) == PCI_SLOT(slot->devfn)) in cpci_configure_slot() 299 if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) in cpci_unconfigure_slot()
|
| H A D | shpchp_pci.c | 51 if (PCI_SLOT(dev->devfn) == p_slot->device) in shpchp_configure_device() 76 if (PCI_SLOT(dev->devfn) != p_slot->device) in shpchp_unconfigure_device()
|
| /linux/drivers/pci/controller/dwc/ |
| H A D | pcie-tegra194-acpi.c | 78 if (PCI_SLOT(devfn) == 0) in tegra194_map_bus() 84 busdev = PCIE_ATU_BUS(bus->number) | PCIE_ATU_DEV(PCI_SLOT(devfn)) | in tegra194_map_bus() 88 if (PCI_SLOT(devfn) == 0) in tegra194_map_bus()
|
| H A D | pcie-hisi.c | 30 int dev = PCI_SLOT(devfn); in hisi_pcie_rd_conf() 48 int dev = PCI_SLOT(devfn); in hisi_pcie_wr_conf()
|
| /linux/arch/arm/mach-orion5x/ |
| H A D | pci.c | 79 if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf() 96 if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf_wa() 123 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/drivers/xen/xen-pciback/ |
| H A D | vpci.c | 43 if (PCI_SLOT(devfn) < PCI_SLOT_MAX) { in __xen_pcibk_get_pci_dev() 47 &vpci_dev->dev_list[PCI_SLOT(devfn)], in __xen_pcibk_get_pci_dev() 63 && l->bus == r->bus && PCI_SLOT(l->devfn) == PCI_SLOT(r->devfn)) in match_slot()
|
| /linux/arch/arm/plat-orion/ |
| H A D | pcie.c | 212 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/arch/xtensa/lib/ |
| H A D | pci-auto.c | 135 irq = pci_ctrl->map_irq(dev, PCI_SLOT(devfn), pin); in pciauto_setup_irq() 281 PCI_SLOT(pci_devfn)); in pciauto_bus_scan() 312 current_bus, PCI_SLOT(pci_devfn), PCI_FUNC(pci_devfn)); in pciauto_bus_scan()
|
| /linux/drivers/iommu/amd/ |
| H A D | debugfs.c | 204 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid)); in devid_show() 230 PCI_SLOT(devid), PCI_FUNC(devid)); in dump_dte() 303 pci_seg->id, PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid)); in dump_irte() 324 PCI_SLOT(devid), PCI_FUNC(devid)); in dump_irte()
|
| /linux/arch/powerpc/kernel/ |
| H A D | pci-hotplug.c | 106 slotno = PCI_SLOT(PCI_DN(start->child)->devfn); in traverse_siblings_and_scan_slot() 119 slotno = PCI_SLOT(PCI_DN(dn)->devfn); in traverse_siblings_and_scan_slot()
|
| /linux/drivers/pci/controller/ |
| H A D | pci-ftpci100.c | 185 writel(PCI_CONF1_ADDRESS(bus_number, PCI_SLOT(fn), in faraday_raw_pci_read_config() 206 PCI_SLOT(fn), PCI_FUNC(fn), config, size, *value); in faraday_pci_read_config() 217 writel(PCI_CONF1_ADDRESS(bus_number, PCI_SLOT(fn), in faraday_raw_pci_write_config() 245 PCI_SLOT(fn), PCI_FUNC(fn), config, size, value); in faraday_pci_write_config()
|
| /linux/include/uapi/linux/ |
| H A D | pci.h | 32 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) macro
|
| /linux/drivers/pci/ |
| H A D | irq.c | 100 slot = PCI_SLOT(dev->devfn); in pci_swizzle_interrupt_pin() 138 return PCI_SLOT(dev->devfn); in pci_common_swizzle()
|
| /linux/arch/m68k/coldfire/ |
| H A D | pci.c | 66 if (mcf_host_slot2sid[PCI_SLOT(devfn)] == 0) in mcf_pci_readconfig() 98 if (mcf_host_slot2sid[PCI_SLOT(devfn)] == 0) in mcf_pci_writeconfig()
|