/openbmc/linux/arch/alpha/kernel/ |
H 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()
|
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 | 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()
|
H 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()
|
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()
|
/openbmc/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 | pci-rt2880.c | 67 address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), in rt2880_pci_config_read() 94 address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), in rt2880_pci_config_write() 174 switch (PCI_SLOT(dev->devfn)) { 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()
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | vhost-user-blk.c | 29 #define PCI_SLOT 0x04 macro 105 PCI_SLOT, PCI_FN); in vhost_user_blk_register_nodes() 108 .devfn = QPCI_DEVFN(PCI_SLOT, PCI_FN), in vhost_user_blk_register_nodes()
|
H A D | virtio-blk.c | 26 #define PCI_SLOT 0x04 macro 101 PCI_SLOT, PCI_FN); in virtio_blk_register_nodes() 104 .devfn = QPCI_DEVFN(PCI_SLOT, PCI_FN), in virtio_blk_register_nodes()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/hwmon/ |
H 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()
|
/openbmc/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()
|
/openbmc/qemu/hw/acpi/ |
H A D | pcihp.c | 202 if (PCI_SLOT(dev->devfn) == slot) { in acpi_pcihp_eject_slot() 248 int slot = PCI_SLOT(pdev->devfn); in acpi_pcihp_update_hotplug_bus() 289 int slot = PCI_SLOT(pdev->devfn); in acpi_pcihp_device_plug_cb() 332 trace_acpi_pci_unplug(PCI_SLOT(pdev->devfn), in acpi_pcihp_device_unplug_cb() 343 int slot = PCI_SLOT(pdev->devfn); in acpi_pcihp_device_unplug_request_cb() 465 if (PCI_SLOT(dev->devfn) == slot) { in pci_write()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/arch/xtensa/lib/ |
H 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()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | amd_nb.h | 94 PCI_SLOT(misc->devfn) == PCI_SLOT(pdev->devfn)) in amd_pci_dev_to_node_id()
|