/linux/arch/alpha/kernel/ |
A D | sys_miata.c | 207 slot = PCI_SLOT(dev->devfn); in miata_swizzle() 210 else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 211 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 212 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle() 218 if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 219 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 220 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle() 228 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
|
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()
|
A D | sys_noritake.c | 230 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()
|
A D | sys_sable.c | 413 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()
|
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()
|
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()
|
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/arm/mach-iop32x/ |
A D | n2100.c | 79 if (PCI_SLOT(dev->devfn) == 1) { in n2100_pci_map_irq() 82 } else if (PCI_SLOT(dev->devfn) == 2) { in n2100_pci_map_irq() 85 } else if (PCI_SLOT(dev->devfn) == 3) { in n2100_pci_map_irq() 88 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 1) { in n2100_pci_map_irq() 91 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 2) { in n2100_pci_map_irq() 94 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 3) { in n2100_pci_map_irq() 97 } else if (PCI_SLOT(dev->devfn) == 5) { in n2100_pci_map_irq() 103 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); in n2100_pci_map_irq()
|
A D | pci.c | 42 addr = 1 << (PCI_SLOT(devfn) + 16) | (PCI_SLOT(devfn) << 11); in iop3xx_cfg_address() 44 addr = bus->number << 16 | PCI_SLOT(devfn) << 11 | 1; in iop3xx_cfg_address()
|
/linux/arch/mips/pci/ |
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()
|
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()
|
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()
|
A D | ops-vr41xx.c | 29 if (PCI_SLOT(devfn) < 11 || where > 0xff) in set_pci_configuration_address() 32 writel((1U << PCI_SLOT(devfn)) | (PCI_FUNC(devfn) << 8) | in set_pci_configuration_address()
|
A D | pci-rt2880.c | 68 address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), in rt2880_pci_config_read() 95 address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), in rt2880_pci_config_write() 175 switch (PCI_SLOT(dev->devfn)) { in pcibios_map_irq()
|
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()
|
/linux/drivers/pci/hotplug/ |
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()
|
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/arch/arm/mach-orion5x/ |
A D | pci.c | 82 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/drivers/hwmon/ |
A D | fam15h_power.c | 79 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show() 96 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show() 333 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 3), in should_load_on_this_node() 364 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), in tweak_runavg_range() 372 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), in tweak_runavg_range() 397 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in fam15h_power_init_data()
|
/linux/drivers/pci/controller/dwc/ |
A D | pcie-tegra194-acpi.c | 77 if (PCI_SLOT(devfn) == 0) in tegra194_map_bus() 83 busdev = PCIE_ATU_BUS(bus->number) | PCIE_ATU_DEV(PCI_SLOT(devfn)) | in tegra194_map_bus() 87 if (PCI_SLOT(devfn) == 0) in tegra194_map_bus()
|
/linux/drivers/xen/xen-pciback/ |
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/ |
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/arm/mach-ixp4xx/ |
A D | common-pci.c | 170 addr = BIT(32-PCI_SLOT(devfn)) | ((PCI_FUNC(devfn)) << 8) | in ixp4xx_config_addr() 174 addr = (bus_num << 16) | ((PCI_SLOT(devfn)) << 11) | 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/arch/xtensa/lib/ |
A D | pci-auto.c | 134 irq = pci_ctrl->map_irq(dev, PCI_SLOT(devfn), pin); in pciauto_setup_irq() 279 PCI_SLOT(pci_devfn)); in pciauto_bus_scan() 310 current_bus, PCI_SLOT(pci_devfn), PCI_FUNC(pci_devfn)); in pciauto_bus_scan()
|
/linux/arch/x86/include/asm/ |
A D | amd_nb.h | 96 PCI_SLOT(misc->devfn) == PCI_SLOT(pdev->devfn)) in amd_pci_dev_to_node_id()
|