devfn 275 arch/alpha/kernel/core_apecs.c apecs_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 283 arch/alpha/kernel/core_apecs.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) devfn 294 arch/alpha/kernel/core_apecs.c apecs_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 301 arch/alpha/kernel/core_apecs.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) devfn 209 arch/alpha/kernel/core_cia.c cia_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, devfn 217 arch/alpha/kernel/core_cia.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) devfn 228 arch/alpha/kernel/core_cia.c cia_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, devfn 235 arch/alpha/kernel/core_cia.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) devfn 103 arch/alpha/kernel/core_irongate.c irongate_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 109 arch/alpha/kernel/core_irongate.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 128 arch/alpha/kernel/core_irongate.c irongate_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 134 arch/alpha/kernel/core_irongate.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 202 arch/alpha/kernel/core_lca.c lca_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 209 arch/alpha/kernel/core_lca.c if (mk_conf_addr(bus, devfn, where, &pci_addr)) devfn 220 arch/alpha/kernel/core_lca.c lca_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, devfn 226 arch/alpha/kernel/core_lca.c if (mk_conf_addr(bus, devfn, where, &pci_addr)) devfn 507 arch/alpha/kernel/core_marvel.c unsigned int devfn, int where) devfn 509 arch/alpha/kernel/core_marvel.c return (hose->config_space_base | (bus << 16) | (devfn << 8) | where); devfn 513 arch/alpha/kernel/core_marvel.c mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where) devfn 530 arch/alpha/kernel/core_marvel.c if (devfn >= PCI_DEVFN(21, 0)) devfn 535 arch/alpha/kernel/core_marvel.c addr = build_conf_addr(hose, bus, devfn, where); devfn 542 arch/alpha/kernel/core_marvel.c marvel_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 547 arch/alpha/kernel/core_marvel.c if (0 == (addr = mk_conf_addr(bus, devfn, where))) devfn 568 arch/alpha/kernel/core_marvel.c marvel_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 573 arch/alpha/kernel/core_marvel.c if (0 == (addr = mk_conf_addr(bus, devfn, where))) devfn 170 arch/alpha/kernel/core_mcpcia.c mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where, devfn 179 arch/alpha/kernel/core_mcpcia.c bus, devfn, hose->index, where, pci_addr, type1)); devfn 186 arch/alpha/kernel/core_mcpcia.c addr = (bus << 16) | (devfn << 8) | (where); devfn 196 arch/alpha/kernel/core_mcpcia.c mcpcia_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 203 arch/alpha/kernel/core_mcpcia.c if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) devfn 223 arch/alpha/kernel/core_mcpcia.c mcpcia_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 230 arch/alpha/kernel/core_mcpcia.c if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) devfn 84 arch/alpha/kernel/core_polaris.c polaris_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 90 arch/alpha/kernel/core_polaris.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 110 arch/alpha/kernel/core_polaris.c polaris_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 116 arch/alpha/kernel/core_polaris.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 284 arch/alpha/kernel/core_t2.c t2_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 292 arch/alpha/kernel/core_t2.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) devfn 303 arch/alpha/kernel/core_t2.c t2_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, devfn 310 arch/alpha/kernel/core_t2.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) devfn 140 arch/alpha/kernel/core_titan.c titan_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 146 arch/alpha/kernel/core_titan.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 165 arch/alpha/kernel/core_titan.c titan_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 171 arch/alpha/kernel/core_titan.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 116 arch/alpha/kernel/core_tsunami.c tsunami_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 122 arch/alpha/kernel/core_tsunami.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 141 arch/alpha/kernel/core_tsunami.c tsunami_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 147 arch/alpha/kernel/core_tsunami.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 382 arch/alpha/kernel/core_wildfire.c wildfire_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 388 arch/alpha/kernel/core_wildfire.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 407 arch/alpha/kernel/core_wildfire.c wildfire_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 413 arch/alpha/kernel/core_wildfire.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) devfn 81 arch/alpha/kernel/pci.c if (PCI_FUNC(dev->devfn) == 2) { devfn 242 arch/alpha/kernel/sys_alcor.c if (dev && dev->devfn == PCI_DEVFN(6,0)) { devfn 434 arch/alpha/kernel/sys_dp264.c slot = PCI_SLOT(dev->devfn); devfn 437 arch/alpha/kernel/sys_dp264.c else if (hose->index == 1 && PCI_SLOT(dev->bus->self->devfn) == 8) { devfn 438 arch/alpha/kernel/sys_dp264.c slot = PCI_SLOT(dev->devfn); devfn 444 arch/alpha/kernel/sys_dp264.c PCI_SLOT(dev->bus->self->devfn) == 8) { devfn 445 arch/alpha/kernel/sys_dp264.c slot = PCI_SLOT(dev->devfn); devfn 453 arch/alpha/kernel/sys_dp264.c slot = PCI_SLOT(dev->devfn); devfn 181 arch/alpha/kernel/sys_eiger.c slot = PCI_SLOT(dev->devfn); devfn 185 arch/alpha/kernel/sys_eiger.c && (PCI_SLOT(dev->bus->self->devfn) devfn 187 arch/alpha/kernel/sys_eiger.c slot = PCI_SLOT(dev->devfn); devfn 352 arch/alpha/kernel/sys_marvel.c PCI_SLOT(dev->devfn), devfn 353 arch/alpha/kernel/sys_marvel.c PCI_FUNC(dev->devfn), devfn 184 arch/alpha/kernel/sys_miata.c if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) { devfn 186 arch/alpha/kernel/sys_miata.c struct pci_dev *pdev = pci_get_slot(dev->bus, dev->devfn & ~7); devfn 206 arch/alpha/kernel/sys_miata.c slot = PCI_SLOT(dev->devfn); devfn 209 arch/alpha/kernel/sys_miata.c else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || devfn 210 arch/alpha/kernel/sys_miata.c (PCI_SLOT(dev->bus->self->devfn) == 20)) { devfn 211 arch/alpha/kernel/sys_miata.c slot = PCI_SLOT(dev->devfn) + 9; devfn 217 arch/alpha/kernel/sys_miata.c if ((PCI_SLOT(dev->bus->self->devfn) == 8) || devfn 218 arch/alpha/kernel/sys_miata.c (PCI_SLOT(dev->bus->self->devfn) == 20)) { devfn 219 arch/alpha/kernel/sys_miata.c slot = PCI_SLOT(dev->devfn) + 9; devfn 227 arch/alpha/kernel/sys_miata.c slot = PCI_SLOT(dev->devfn); devfn 231 arch/alpha/kernel/sys_noritake.c slot = PCI_SLOT(dev->devfn); devfn 234 arch/alpha/kernel/sys_noritake.c else if (PCI_SLOT(dev->bus->self->devfn) == 8) { devfn 235 arch/alpha/kernel/sys_noritake.c slot = PCI_SLOT(dev->devfn) + 15; /* WAG! */ devfn 241 arch/alpha/kernel/sys_noritake.c if (PCI_SLOT(dev->bus->self->devfn) == 8) { devfn 242 arch/alpha/kernel/sys_noritake.c slot = PCI_SLOT(dev->devfn) + 15; devfn 250 arch/alpha/kernel/sys_noritake.c slot = PCI_SLOT(dev->devfn); devfn 149 arch/alpha/kernel/sys_ruffian.c slot = PCI_SLOT(dev->devfn); devfn 152 arch/alpha/kernel/sys_ruffian.c else if (PCI_SLOT(dev->bus->self->devfn) == 13) { devfn 153 arch/alpha/kernel/sys_ruffian.c slot = PCI_SLOT(dev->devfn) + 10; devfn 159 arch/alpha/kernel/sys_ruffian.c if (PCI_SLOT(dev->bus->self->devfn) == 13) { devfn 160 arch/alpha/kernel/sys_ruffian.c slot = PCI_SLOT(dev->devfn) + 10; devfn 168 arch/alpha/kernel/sys_ruffian.c slot = PCI_SLOT(dev->devfn); devfn 414 arch/alpha/kernel/sys_sable.c slot = PCI_SLOT(dev->devfn); devfn 417 arch/alpha/kernel/sys_sable.c else if (PCI_SLOT(dev->bus->self->devfn) == 3) { devfn 418 arch/alpha/kernel/sys_sable.c slot = PCI_SLOT(dev->devfn) + 11; devfn 424 arch/alpha/kernel/sys_sable.c if (PCI_SLOT(dev->bus->self->devfn) == 3) { devfn 425 arch/alpha/kernel/sys_sable.c slot = PCI_SLOT(dev->devfn) + 11; devfn 433 arch/alpha/kernel/sys_sable.c slot = PCI_SLOT(dev->devfn); devfn 184 arch/alpha/kernel/sys_takara.c unsigned int busslot = PCI_SLOT(dev->bus->self->devfn); devfn 217 arch/alpha/kernel/sys_takara.c int slot = PCI_SLOT(dev->devfn); devfn 225 arch/alpha/kernel/sys_takara.c busslot = PCI_SLOT(dev->bus->self->devfn); devfn 161 arch/arm/common/it8152.c unsigned int devfn) devfn 166 arch/arm/common/it8152.c if (devfn < PCI_DEVFN(MAX_SLOTS, 0)) devfn 167 arch/arm/common/it8152.c addr = (devfn << 8); devfn 169 arch/arm/common/it8152.c addr = (bus->number << 16) | (devfn << 8); devfn 175 arch/arm/common/it8152.c unsigned int devfn, int where, devfn 178 arch/arm/common/it8152.c unsigned long addr = it8152_pci_dev_base_address(bus, devfn); devfn 193 arch/arm/common/it8152.c unsigned int devfn, int where, devfn 196 arch/arm/common/it8152.c unsigned long addr = it8152_pci_dev_base_address(bus, devfn); devfn 37 arch/arm/kernel/bios32.c if (dev->bus->number == 0 && dev->devfn == 0) devfn 147 arch/arm/kernel/bios32.c if (dev->devfn == 0) { devfn 230 arch/arm/kernel/bios32.c } else if (PCI_FUNC(dev->devfn) == 0) { devfn 52 arch/arm/mach-cns3xxx/pcie.c unsigned int devfn, int where) devfn 56 arch/arm/mach-cns3xxx/pcie.c int slot = PCI_SLOT(devfn); devfn 70 arch/arm/mach-cns3xxx/pcie.c if (devfn == 0) /* device# and function# are ignored by hw */ devfn 83 arch/arm/mach-cns3xxx/pcie.c return base + where + (devfn << 12); devfn 86 arch/arm/mach-cns3xxx/pcie.c static int cns3xxx_pci_read_config(struct pci_bus *bus, unsigned int devfn, devfn 93 arch/arm/mach-cns3xxx/pcie.c ret = pci_generic_config_read(bus, devfn, where, size, val); devfn 95 arch/arm/mach-cns3xxx/pcie.c if (ret == PCIBIOS_SUCCESSFUL && !bus->number && !devfn && devfn 134 arch/arm/mach-cns3xxx/pcie.c pci_domain_nr(dev->bus), dev->bus->number, PCI_SLOT(dev->devfn), devfn 135 arch/arm/mach-cns3xxx/pcie.c PCI_FUNC(dev->devfn), slot, pin, irq); devfn 95 arch/arm/mach-dove/pcie.c static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, devfn 103 arch/arm/mach-dove/pcie.c if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) { devfn 109 arch/arm/mach-dove/pcie.c ret = orion_pcie_rd_conf(pp->base, bus, devfn, where, size, val); devfn 115 arch/arm/mach-dove/pcie.c static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, devfn 123 arch/arm/mach-dove/pcie.c if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) devfn 127 arch/arm/mach-dove/pcie.c ret = orion_pcie_wr_conf(pp->base, bus, devfn, where, size, val); devfn 143 arch/arm/mach-dove/pcie.c if (dev->bus->parent == NULL && dev->devfn == 0) { devfn 38 arch/arm/mach-footbridge/cats-pci.c dev->bus->number, dev->devfn, dev->irq); devfn 37 arch/arm/mach-footbridge/dc21285.c dc21285_base_address(struct pci_bus *bus, unsigned int devfn) devfn 42 arch/arm/mach-footbridge/dc21285.c if (PCI_SLOT(devfn) == 0) devfn 48 arch/arm/mach-footbridge/dc21285.c devfn -= 1 << 3; devfn 50 arch/arm/mach-footbridge/dc21285.c if (devfn < PCI_DEVFN(MAX_SLOTS, 0)) devfn 51 arch/arm/mach-footbridge/dc21285.c addr = PCICFG0_BASE | 0xc00000 | (devfn << 8); devfn 54 arch/arm/mach-footbridge/dc21285.c addr = PCICFG1_BASE | (bus->number << 16) | (devfn << 8); devfn 60 arch/arm/mach-footbridge/dc21285.c dc21285_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 63 arch/arm/mach-footbridge/dc21285.c unsigned long addr = dc21285_base_address(bus, devfn); devfn 94 arch/arm/mach-footbridge/dc21285.c dc21285_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 97 arch/arm/mach-footbridge/dc21285.c unsigned long addr = dc21285_base_address(bus, devfn); devfn 23 arch/arm/mach-footbridge/ebsa285-pci.c switch (PCI_FUNC(dev->devfn)) { devfn 88 arch/arm/mach-imx/mach-imx6q.c if (dev->devfn != 0) devfn 120 arch/arm/mach-iop32x/iq31244.c PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); devfn 155 arch/arm/mach-iop32x/iq31244.c PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); devfn 91 arch/arm/mach-iop32x/iq80321.c PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); devfn 80 arch/arm/mach-iop32x/n2100.c if (PCI_SLOT(dev->devfn) == 1) { devfn 83 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 2) { devfn 86 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 3) { devfn 89 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 4 && pin == 1) { devfn 92 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 4 && pin == 2) { devfn 95 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 4 && pin == 3) { devfn 98 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 5) { devfn 104 arch/arm/mach-iop32x/n2100.c PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); devfn 127 arch/arm/mach-iop32x/n2100.c (dev->devfn == PCI_DEVFN(1, 0) || devfn 128 arch/arm/mach-iop32x/n2100.c dev->devfn == PCI_DEVFN(2, 0))) devfn 36 arch/arm/mach-iop32x/pci.c static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where) devfn 42 arch/arm/mach-iop32x/pci.c addr = 1 << (PCI_SLOT(devfn) + 16) | (PCI_SLOT(devfn) << 11); devfn 44 arch/arm/mach-iop32x/pci.c addr = bus->number << 16 | PCI_SLOT(devfn) << 11 | 1; devfn 46 arch/arm/mach-iop32x/pci.c addr |= PCI_FUNC(devfn) << 8 | (where & ~3); devfn 110 arch/arm/mach-iop32x/pci.c iop3xx_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 113 arch/arm/mach-iop32x/pci.c unsigned long addr = iop3xx_cfg_address(bus, devfn, where); devfn 125 arch/arm/mach-iop32x/pci.c iop3xx_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 128 arch/arm/mach-iop32x/pci.c unsigned long addr = iop3xx_cfg_address(bus, devfn, where); devfn 165 arch/arm/mach-ixp4xx/common-pci.c static u32 ixp4xx_config_addr(u8 bus_num, u16 devfn, int where) devfn 170 arch/arm/mach-ixp4xx/common-pci.c addr = BIT(32-PCI_SLOT(devfn)) | ((PCI_FUNC(devfn)) << 8) | devfn 174 arch/arm/mach-ixp4xx/common-pci.c addr = (bus_num << 16) | ((PCI_SLOT(devfn)) << 11) | devfn 175 arch/arm/mach-ixp4xx/common-pci.c ((PCI_FUNC(devfn)) << 8) | (where & ~3) | 1; devfn 238 arch/arm/mach-ixp4xx/common-pci.c static int ixp4xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) devfn 244 arch/arm/mach-ixp4xx/common-pci.c bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 252 arch/arm/mach-ixp4xx/common-pci.c addr = ixp4xx_config_addr(bus_num, devfn, where); devfn 261 arch/arm/mach-ixp4xx/common-pci.c static int ixp4xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) devfn 267 arch/arm/mach-ixp4xx/common-pci.c size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 274 arch/arm/mach-ixp4xx/common-pci.c addr = ixp4xx_config_addr(bus_num, devfn, where); devfn 137 arch/arm/mach-mv78xx0/pcie.c static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, devfn 145 arch/arm/mach-mv78xx0/pcie.c if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) { devfn 151 arch/arm/mach-mv78xx0/pcie.c ret = orion_pcie_rd_conf(pp->base, bus, devfn, where, size, val); devfn 157 arch/arm/mach-mv78xx0/pcie.c static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, devfn 165 arch/arm/mach-mv78xx0/pcie.c if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) devfn 169 arch/arm/mach-mv78xx0/pcie.c ret = orion_pcie_wr_conf(pp->base, bus, devfn, where, size, val); devfn 185 arch/arm/mach-mv78xx0/pcie.c if (dev->bus->parent == NULL && dev->devfn == 0) { devfn 76 arch/arm/mach-orion5x/pci.c static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, devfn 82 arch/arm/mach-orion5x/pci.c if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { devfn 88 arch/arm/mach-orion5x/pci.c ret = orion_pcie_rd_conf(PCIE_BASE, bus, devfn, where, size, val); devfn 94 arch/arm/mach-orion5x/pci.c static int pcie_rd_conf_wa(struct pci_bus *bus, u32 devfn, devfn 99 arch/arm/mach-orion5x/pci.c if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { devfn 115 arch/arm/mach-orion5x/pci.c bus, devfn, where, size, val); devfn 120 arch/arm/mach-orion5x/pci.c static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, devfn 126 arch/arm/mach-orion5x/pci.c if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) devfn 130 arch/arm/mach-orion5x/pci.c ret = orion_pcie_wr_conf(PCIE_BASE, bus, devfn, where, size, val); devfn 322 arch/arm/mach-orion5x/pci.c static int orion5x_pci_valid_config(int bus, u32 devfn) devfn 328 arch/arm/mach-orion5x/pci.c if (PCI_SLOT(devfn) == 0 && PCI_FUNC(devfn) != 0) devfn 335 arch/arm/mach-orion5x/pci.c if (orion5x_pci_cardbus_mode && PCI_SLOT(devfn) > 1) devfn 342 arch/arm/mach-orion5x/pci.c static int orion5x_pci_rd_conf(struct pci_bus *bus, u32 devfn, devfn 345 arch/arm/mach-orion5x/pci.c if (!orion5x_pci_valid_config(bus->number, devfn)) { devfn 350 arch/arm/mach-orion5x/pci.c return orion5x_pci_hw_rd_conf(bus->number, PCI_SLOT(devfn), devfn 351 arch/arm/mach-orion5x/pci.c PCI_FUNC(devfn), where, size, val); devfn 354 arch/arm/mach-orion5x/pci.c static int orion5x_pci_wr_conf(struct pci_bus *bus, u32 devfn, devfn 357 arch/arm/mach-orion5x/pci.c if (!orion5x_pci_valid_config(bus->number, devfn)) devfn 360 arch/arm/mach-orion5x/pci.c return orion5x_pci_hw_wr_conf(bus->number, PCI_SLOT(devfn), devfn 361 arch/arm/mach-orion5x/pci.c PCI_FUNC(devfn), where, size, val); devfn 517 arch/arm/mach-orion5x/pci.c if (dev->bus->parent == NULL && dev->devfn == 0) { devfn 20 arch/arm/mach-sa1100/pci-nanoengine.c unsigned int devfn, int where) devfn 22 arch/arm/mach-sa1100/pci-nanoengine.c if (bus->number != 0 || (devfn >> 3) != 0) devfn 26 arch/arm/mach-sa1100/pci-nanoengine.c ((bus->number << 16) | (devfn << 8) | (where & ~3)); devfn 25 arch/arm/plat-orion/include/plat/pcie.h u32 devfn, int where, int size, u32 *val); devfn 27 arch/arm/plat-orion/include/plat/pcie.h u32 devfn, int where, int size, u32 *val); devfn 29 arch/arm/plat-orion/include/plat/pcie.h u32 devfn, int where, int size, u32 *val); devfn 31 arch/arm/plat-orion/include/plat/pcie.h u32 devfn, int where, int size, u32 val); devfn 209 arch/arm/plat-orion/pcie.c u32 devfn, int where, int size, u32 *val) devfn 212 arch/arm/plat-orion/pcie.c PCIE_CONF_DEV(PCI_SLOT(devfn)) | devfn 213 arch/arm/plat-orion/pcie.c PCIE_CONF_FUNC(PCI_FUNC(devfn)) | devfn 228 arch/arm/plat-orion/pcie.c u32 devfn, int where, int size, u32 *val) devfn 231 arch/arm/plat-orion/pcie.c PCIE_CONF_DEV(PCI_SLOT(devfn)) | devfn 232 arch/arm/plat-orion/pcie.c PCIE_CONF_FUNC(PCI_FUNC(devfn)) | devfn 239 arch/arm/plat-orion/pcie.c PCI_FUNC(devfn) != 0) devfn 251 arch/arm/plat-orion/pcie.c u32 devfn, int where, int size, u32 *val) devfn 254 arch/arm/plat-orion/pcie.c PCIE_CONF_DEV(PCI_SLOT(devfn)) | devfn 255 arch/arm/plat-orion/pcie.c PCIE_CONF_FUNC(PCI_FUNC(devfn)) | devfn 267 arch/arm/plat-orion/pcie.c u32 devfn, int where, int size, u32 val) devfn 272 arch/arm/plat-orion/pcie.c PCIE_CONF_DEV(PCI_SLOT(devfn)) | devfn 273 arch/arm/plat-orion/pcie.c PCIE_CONF_FUNC(PCI_FUNC(devfn)) | devfn 38 arch/arm64/kernel/pci.c unsigned int devfn, int reg, int len, u32 *val) devfn 44 arch/arm64/kernel/pci.c return b->ops->read(b, devfn, reg, len, val); devfn 48 arch/arm64/kernel/pci.c unsigned int devfn, int reg, int len, u32 val) devfn 54 arch/arm64/kernel/pci.c return b->ops->write(b, devfn, reg, len, val); devfn 40 arch/ia64/pci/pci.c #define PCI_SAL_ADDRESS(seg, bus, devfn, reg) \ devfn 41 arch/ia64/pci/pci.c (((u64) seg << 24) | (bus << 16) | (devfn << 8) | (reg)) devfn 45 arch/ia64/pci/pci.c #define PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg) \ devfn 46 arch/ia64/pci/pci.c (((u64) seg << 28) | (bus << 20) | (devfn << 12) | (reg)) devfn 48 arch/ia64/pci/pci.c int raw_pci_read(unsigned int seg, unsigned int bus, unsigned int devfn, devfn 54 arch/ia64/pci/pci.c if (!value || (seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095)) devfn 58 arch/ia64/pci/pci.c addr = PCI_SAL_ADDRESS(seg, bus, devfn, reg); devfn 61 arch/ia64/pci/pci.c addr = PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg); devfn 75 arch/ia64/pci/pci.c int raw_pci_write(unsigned int seg, unsigned int bus, unsigned int devfn, devfn 81 arch/ia64/pci/pci.c if ((seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095)) devfn 85 arch/ia64/pci/pci.c addr = PCI_SAL_ADDRESS(seg, bus, devfn, reg); devfn 88 arch/ia64/pci/pci.c addr = PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg); devfn 99 arch/ia64/pci/pci.c static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 103 arch/ia64/pci/pci.c devfn, where, size, value); devfn 106 arch/ia64/pci/pci.c static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 110 arch/ia64/pci/pci.c devfn, where, size, value); devfn 53 arch/m68k/coldfire/pci.c static unsigned long mcf_mk_pcicar(int bus, unsigned int devfn, int where) devfn 55 arch/m68k/coldfire/pci.c return (bus << PCICAR_BUSN) | (devfn << PCICAR_DEVFNN) | (where & 0xfc); devfn 58 arch/m68k/coldfire/pci.c static int mcf_pci_readconfig(struct pci_bus *bus, unsigned int devfn, devfn 66 arch/m68k/coldfire/pci.c if (mcf_host_slot2sid[PCI_SLOT(devfn)] == 0) devfn 70 arch/m68k/coldfire/pci.c addr = mcf_mk_pcicar(bus->number, devfn, where); devfn 92 arch/m68k/coldfire/pci.c static int mcf_pci_writeconfig(struct pci_bus *bus, unsigned int devfn, devfn 98 arch/m68k/coldfire/pci.c if (mcf_host_slot2sid[PCI_SLOT(devfn)] == 0) devfn 102 arch/m68k/coldfire/pci.c addr = mcf_mk_pcicar(bus->number, devfn, where); devfn 18 arch/microblaze/pci/indirect_pci.c indirect_read_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 29 arch/microblaze/pci/indirect_pci.c if (devfn != 0) devfn 47 arch/microblaze/pci/indirect_pci.c (devfn << 8) | reg | cfg_type)); devfn 50 arch/microblaze/pci/indirect_pci.c (devfn << 8) | reg | cfg_type)); devfn 72 arch/microblaze/pci/indirect_pci.c indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 83 arch/microblaze/pci/indirect_pci.c if (devfn != 0) devfn 101 arch/microblaze/pci/indirect_pci.c (devfn << 8) | reg | cfg_type)); devfn 104 arch/microblaze/pci/indirect_pci.c (devfn << 8) | reg | cfg_type)); devfn 1031 arch/microblaze/pci/pci-common.c long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn) devfn 1068 arch/microblaze/pci/pci-common.c null_read_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 1075 arch/microblaze/pci/pci-common.c null_write_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 1106 arch/microblaze/pci/pci-common.c int devfn, int offset, type value) \ devfn 1109 arch/microblaze/pci/pci-common.c devfn, offset, value); \ devfn 1119 arch/microblaze/pci/pci-common.c int early_find_capability(struct pci_controller *hose, int bus, int devfn, devfn 1122 arch/microblaze/pci/pci-common.c return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); devfn 43 arch/microblaze/pci/xilinx_pci.c if (dev->devfn || dev->bus->self) devfn 75 arch/microblaze/pci/xilinx_pci.c xilinx_pci_exclude_device(struct pci_controller *hose, u_char bus, u8 devfn) devfn 254 arch/mips/netlogic/xlp/usb-init-xlp2.c switch (dev->devfn) { devfn 272 arch/mips/netlogic/xlp/usb-init-xlp2.c switch (dev->devfn) { devfn 125 arch/mips/netlogic/xlp/usb-init.c switch (dev->devfn) { devfn 41 arch/mips/pci/fixup-cobalt.c if (dev->devfn == PCI_DEVFN(0, 0) && devfn 78 arch/mips/pci/fixup-cobalt.c if (dev->devfn != PCI_DEVFN(0, 0)) devfn 44 arch/mips/pci/fixup-emma2rh.c if (PCI_SLOT(dev->devfn) == EMMA2RH_USB_SLOT) devfn 61 arch/mips/pci/fixup-emma2rh.c if (PCI_SLOT(dev->devfn) == EMMA2RH_PCI_HOST_SLOT) { devfn 23 arch/mips/pci/fixup-fuloong2e.c switch (PCI_FUNC(dev->devfn)) { devfn 63 arch/mips/pci/fixup-fuloong2e.c sb_slot = PCI_SLOT(pdev->devfn); devfn 54 arch/mips/pci/fixup-lemote2f.c if ((PCI_SLOT(dev->devfn) != PCI_IDSEL_CS5536) devfn 55 arch/mips/pci/fixup-lemote2f.c && (PCI_SLOT(dev->devfn) < 32)) { devfn 63 arch/mips/pci/fixup-lemote2f.c } else if (PCI_SLOT(dev->devfn) == PCI_IDSEL_CS5536) { /* cs5536 */ devfn 64 arch/mips/pci/fixup-lemote2f.c switch (PCI_FUNC(dev->devfn)) { devfn 93 arch/mips/pci/fixup-malta.c if (PCI_SLOT(pdev->devfn) == 10) { devfn 127 arch/mips/pci/fixup-malta.c if (PCI_SLOT(pdev->devfn) == 10) { devfn 27 arch/mips/pci/fixup-mpc30x.c return internal_func_irqs[PCI_FUNC(dev->devfn)]; devfn 43 arch/mips/pci/fixup-rc32434.c if (dev->bus->number < 2 && PCI_SLOT(dev->devfn) < 12) devfn 44 arch/mips/pci/fixup-rc32434.c irq = irq_map[dev->bus->number][PCI_SLOT(dev->devfn)]; devfn 51 arch/mips/pci/fixup-rc32434.c if (PCI_SLOT(dev->devfn) == 6 && dev->bus->number == 0) { devfn 144 arch/mips/pci/fixup-sni.c if (dev && dev->devfn >= PCI_DEVFN(4, 0)) devfn 30 arch/mips/pci/fixup-tb0287.c switch (PCI_SLOT(dev->devfn)) { devfn 455 arch/mips/pci/msi-xlp.c slot = PCI_SLOT(lnkdev->devfn); devfn 456 arch/mips/pci/msi-xlp.c link = PCI_FUNC(lnkdev->devfn); devfn 65 arch/mips/pci/ops-bcm63xx.c unsigned int devfn, int where) devfn 70 arch/mips/pci/ops-bcm63xx.c slot = PCI_SLOT(devfn); devfn 71 arch/mips/pci/ops-bcm63xx.c func = PCI_FUNC(devfn); devfn 101 arch/mips/pci/ops-bcm63xx.c unsigned int devfn, int where, int size, devfn 109 arch/mips/pci/ops-bcm63xx.c if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) devfn 122 arch/mips/pci/ops-bcm63xx.c unsigned int devfn, int where, int size, devfn 130 arch/mips/pci/ops-bcm63xx.c if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) devfn 147 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, devfn 154 arch/mips/pci/ops-bcm63xx.c if (type == 0 && PCI_SLOT(devfn) == CARDBUS_PCI_IDSEL) devfn 157 arch/mips/pci/ops-bcm63xx.c return bcm63xx_do_cfg_read(type, bus->number, devfn, devfn 161 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pci_write(struct pci_bus *bus, unsigned int devfn, devfn 168 arch/mips/pci/ops-bcm63xx.c if (type == 0 && PCI_SLOT(devfn) == CARDBUS_PCI_IDSEL) devfn 171 arch/mips/pci/ops-bcm63xx.c return bcm63xx_do_cfg_write(type, bus->number, devfn, devfn 362 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_cb_read(struct pci_bus *bus, unsigned int devfn, devfn 367 arch/mips/pci/ops-bcm63xx.c if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { devfn 378 arch/mips/pci/ops-bcm63xx.c PCI_SLOT(devfn) == 0) devfn 386 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_cb_write(struct pci_bus *bus, unsigned int devfn, devfn 389 arch/mips/pci/ops-bcm63xx.c if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { devfn 396 arch/mips/pci/ops-bcm63xx.c PCI_SLOT(devfn) == 0) devfn 438 arch/mips/pci/ops-bcm63xx.c PCI_SLOT(dev->devfn) == 0) devfn 468 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn) devfn 472 arch/mips/pci/ops-bcm63xx.c return PCI_SLOT(devfn) == 0; devfn 474 arch/mips/pci/ops-bcm63xx.c if (PCI_SLOT(devfn) == 0) devfn 483 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pcie_read(struct pci_bus *bus, unsigned int devfn, devfn 489 arch/mips/pci/ops-bcm63xx.c if (!bcm63xx_pcie_can_access(bus, devfn)) devfn 503 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pcie_write(struct pci_bus *bus, unsigned int devfn, devfn 509 arch/mips/pci/ops-bcm63xx.c if (!bcm63xx_pcie_can_access(bus, devfn)) devfn 26 arch/mips/pci/ops-bonito64.c unsigned int devfn, int where, devfn 33 arch/mips/pci/ops-bonito64.c int device = PCI_SLOT(devfn); devfn 34 arch/mips/pci/ops-bonito64.c int function = PCI_FUNC(devfn); devfn 89 arch/mips/pci/ops-bonito64.c static int bonito64_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 99 arch/mips/pci/ops-bonito64.c if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, devfn 113 arch/mips/pci/ops-bonito64.c static int bonito64_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 126 arch/mips/pci/ops-bonito64.c if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 138 arch/mips/pci/ops-bonito64.c if (bonito64_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, devfn 26 arch/mips/pci/ops-emma2rh.c static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) devfn 36 arch/mips/pci/ops-emma2rh.c if (PCI_SLOT(devfn) >= 10) devfn 40 arch/mips/pci/ops-emma2rh.c if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) devfn 47 arch/mips/pci/ops-emma2rh.c unsigned int devfn, int where) devfn 56 arch/mips/pci/ops-emma2rh.c config_win0 = (1 << (22 + PCI_SLOT(devfn))) | (5 << 9); devfn 61 arch/mips/pci/ops-emma2rh.c config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | devfn 69 arch/mips/pci/ops-emma2rh.c static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 79 arch/mips/pci/ops-emma2rh.c if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) devfn 84 arch/mips/pci/ops-emma2rh.c if (set_pci_configuration_address(bus_num, devfn, where) < 0) devfn 88 arch/mips/pci/ops-emma2rh.c *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + devfn 114 arch/mips/pci/ops-emma2rh.c static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 123 arch/mips/pci/ops-emma2rh.c if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) devfn 128 arch/mips/pci/ops-emma2rh.c if (set_pci_configuration_address(bus_num, devfn, where) < 0) devfn 133 arch/mips/pci/ops-emma2rh.c *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + devfn 154 arch/mips/pci/ops-emma2rh.c *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + devfn 31 arch/mips/pci/ops-gt64xxx_pci0.c struct pci_bus *bus, unsigned int devfn, int where, u32 * data) devfn 36 arch/mips/pci/ops-gt64xxx_pci0.c if ((busnum == 0) && (devfn >= PCI_DEVFN(31, 0))) devfn 46 arch/mips/pci/ops-gt64xxx_pci0.c (devfn << GT_PCI0_CFGADDR_FUNCTNUM_SHF) | devfn 51 arch/mips/pci/ops-gt64xxx_pci0.c if (busnum == 0 && PCI_SLOT(devfn) == 0) { devfn 60 arch/mips/pci/ops-gt64xxx_pci0.c if (busnum == 0 && PCI_SLOT(devfn) == 0) { devfn 91 arch/mips/pci/ops-gt64xxx_pci0.c static int gt64xxx_pci0_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 96 arch/mips/pci/ops-gt64xxx_pci0.c if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 110 arch/mips/pci/ops-gt64xxx_pci0.c static int gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 119 arch/mips/pci/ops-gt64xxx_pci0.c devfn, where, &data)) devfn 130 arch/mips/pci/ops-gt64xxx_pci0.c if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, devfn 27 arch/mips/pci/ops-lantiq.c unsigned int devfn, unsigned int where, u32 *data) devfn 35 arch/mips/pci/ops-lantiq.c if ((bus->number != 0) || ((devfn & 0xf8) > 0x78) devfn 36 arch/mips/pci/ops-lantiq.c || ((devfn & 0xf8) == 0) || ((devfn & 0xf8) == 0x68)) devfn 42 arch/mips/pci/ops-lantiq.c cfg_base |= (bus->number << LTQ_PCI_CFG_BUSNUM_SHF) | (devfn << devfn 71 arch/mips/pci/ops-lantiq.c int ltq_pci_read_config_dword(struct pci_bus *bus, unsigned int devfn, devfn 76 arch/mips/pci/ops-lantiq.c if (ltq_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) devfn 89 arch/mips/pci/ops-lantiq.c int ltq_pci_write_config_dword(struct pci_bus *bus, unsigned int devfn, devfn 98 arch/mips/pci/ops-lantiq.c devfn, where, &data)) devfn 109 arch/mips/pci/ops-lantiq.c if (ltq_pci_config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) devfn 34 arch/mips/pci/ops-loongson2.c unsigned int devfn, int where, devfn 41 arch/mips/pci/ops-loongson2.c int device = PCI_SLOT(devfn); devfn 42 arch/mips/pci/ops-loongson2.c int function = PCI_FUNC(devfn); devfn 118 arch/mips/pci/ops-loongson2.c static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 128 arch/mips/pci/ops-loongson2.c if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, devfn 142 arch/mips/pci/ops-loongson2.c static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 155 arch/mips/pci/ops-loongson2.c if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 167 arch/mips/pci/ops-loongson2.c if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, devfn 187 arch/mips/pci/ops-loongson2.c u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); devfn 191 arch/mips/pci/ops-loongson2.c loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr); devfn 192 arch/mips/pci/ops-loongson2.c loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_LO, 4, lo); devfn 193 arch/mips/pci/ops-loongson2.c loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_HI, 4, hi); devfn 203 arch/mips/pci/ops-loongson2.c u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); devfn 207 arch/mips/pci/ops-loongson2.c loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr); devfn 208 arch/mips/pci/ops-loongson2.c loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_LO, 4, lo); devfn 209 arch/mips/pci/ops-loongson2.c loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_HI, 4, hi); devfn 17 arch/mips/pci/ops-loongson3.c struct pci_bus *bus, unsigned int devfn, devfn 21 arch/mips/pci/ops-loongson3.c int function = PCI_FUNC(devfn); devfn 22 arch/mips/pci/ops-loongson3.c int device = PCI_SLOT(devfn); devfn 65 arch/mips/pci/ops-loongson3.c static int loongson3_pci_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 70 arch/mips/pci/ops-loongson3.c bus, devfn, where, &data); devfn 85 arch/mips/pci/ops-loongson3.c static int loongson3_pci_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 95 arch/mips/pci/ops-loongson3.c bus, devfn, where, &data); devfn 108 arch/mips/pci/ops-loongson3.c bus, devfn, where, &data); devfn 30 arch/mips/pci/ops-mace.c static inline int mkaddr(struct pci_bus *bus, unsigned int devfn, devfn 34 arch/mips/pci/ops-mace.c ((devfn & 0xff) << 8) | devfn 40 arch/mips/pci/ops-mace.c mace_pci_read_config(struct pci_bus *bus, unsigned int devfn, devfn 47 arch/mips/pci/ops-mace.c mace->pci.config_addr = mkaddr(bus, devfn, reg); devfn 67 arch/mips/pci/ops-mace.c (devfn == (1 << 3) || devfn == (2 << 3))) devfn 76 arch/mips/pci/ops-mace.c mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, devfn 79 arch/mips/pci/ops-mace.c mace->pci.config_addr = mkaddr(bus, devfn, reg); devfn 34 arch/mips/pci/ops-msc.c struct pci_bus *bus, unsigned int devfn, int where, u32 * data) devfn 45 arch/mips/pci/ops-msc.c (PCI_SLOT(devfn) << MSC01_PCI_CFGADDR_DNUM_SHF) | devfn 46 arch/mips/pci/ops-msc.c (PCI_FUNC(devfn) << MSC01_PCI_CFGADDR_FNUM_SHF) | devfn 75 arch/mips/pci/ops-msc.c static int msc_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 85 arch/mips/pci/ops-msc.c if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, devfn 99 arch/mips/pci/ops-msc.c static int msc_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 112 arch/mips/pci/ops-msc.c if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 124 arch/mips/pci/ops-msc.c if (msc_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, devfn 18 arch/mips/pci/ops-nile4.c struct pci_bus *bus, unsigned int devfn, int where, u32 *val) devfn 23 arch/mips/pci/ops-nile4.c if ((busnum == 0) && (PCI_SLOT(devfn) > 8)) devfn 29 arch/mips/pci/ops-nile4.c if ((busnum == 0) && (devfn == PCI_DEVFN(0, 0))) { devfn 52 arch/mips/pci/ops-nile4.c ((1 << (PCI_SLOT(devfn) + 15)) | (PCI_FUNC(devfn) << 8) devfn 55 arch/mips/pci/ops-nile4.c adr = KSEG1ADDR(PCI_WINDOW1) | (busnum << 16) | (devfn << 8) | devfn 75 arch/mips/pci/ops-nile4.c static int nile4_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 86 arch/mips/pci/ops-nile4.c err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, devfn 101 arch/mips/pci/ops-nile4.c static int nile4_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 112 arch/mips/pci/ops-nile4.c err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, devfn 127 arch/mips/pci/ops-nile4.c (PCI_ACCESS_WRITE, bus, devfn, where, &data)) devfn 333 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 339 arch/mips/pci/ops-pmcmsp.c unsigned char dev_fn = (unsigned char)devfn; devfn 462 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 473 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 510 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 532 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 567 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 584 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 620 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 627 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 636 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, devfn 669 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 680 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, devfn 689 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, devfn 721 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 730 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, devfn 763 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 769 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_read_config_byte(bus, devfn, where, val)) { devfn 773 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_read_config_word(bus, devfn, where, val)) { devfn 777 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_read_config_dword(bus, devfn, where, val)) { devfn 814 arch/mips/pci/ops-pmcmsp.c unsigned int devfn, devfn 820 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_write_config_byte(bus, devfn, devfn 825 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_write_config_word(bus, devfn, devfn 830 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_write_config_dword(bus, devfn, where, val)) { devfn 47 arch/mips/pci/ops-rc32434.c struct pci_bus *bus, unsigned int devfn, devfn 50 arch/mips/pci/ops-rc32434.c unsigned int slot = PCI_SLOT(devfn); devfn 51 arch/mips/pci/ops-rc32434.c u8 func = PCI_FUNC(devfn); devfn 72 arch/mips/pci/ops-rc32434.c static int read_config_byte(struct pci_bus *bus, unsigned int devfn, devfn 78 arch/mips/pci/ops-rc32434.c ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); devfn 83 arch/mips/pci/ops-rc32434.c static int read_config_word(struct pci_bus *bus, unsigned int devfn, devfn 89 arch/mips/pci/ops-rc32434.c ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); devfn 94 arch/mips/pci/ops-rc32434.c static int read_config_dword(struct pci_bus *bus, unsigned int devfn, devfn 104 arch/mips/pci/ops-rc32434.c if (bus->number == 0 && PCI_SLOT(devfn) > 21) devfn 108 arch/mips/pci/ops-rc32434.c ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val); devfn 129 arch/mips/pci/ops-rc32434.c write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, devfn 134 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) devfn 140 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) devfn 148 arch/mips/pci/ops-rc32434.c write_config_word(struct pci_bus *bus, unsigned int devfn, int where, devfn 153 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) devfn 159 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) devfn 168 arch/mips/pci/ops-rc32434.c write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, devfn 171 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val)) devfn 177 arch/mips/pci/ops-rc32434.c static int pci_config_read(struct pci_bus *bus, unsigned int devfn, devfn 182 arch/mips/pci/ops-rc32434.c return read_config_byte(bus, devfn, where, (u8 *) val); devfn 184 arch/mips/pci/ops-rc32434.c return read_config_word(bus, devfn, where, (u16 *) val); devfn 186 arch/mips/pci/ops-rc32434.c return read_config_dword(bus, devfn, where, val); devfn 190 arch/mips/pci/ops-rc32434.c static int pci_config_write(struct pci_bus *bus, unsigned int devfn, devfn 195 arch/mips/pci/ops-rc32434.c return write_config_byte(bus, devfn, where, (u8) val); devfn 197 arch/mips/pci/ops-rc32434.c return write_config_word(bus, devfn, where, (u16) val); devfn 199 arch/mips/pci/ops-rc32434.c return write_config_dword(bus, devfn, where, val); devfn 24 arch/mips/pci/ops-sni.c static int set_config_address(unsigned int busno, unsigned int devfn, int reg) devfn 26 arch/mips/pci/ops-sni.c if ((devfn > 255) || (reg > 255)) devfn 29 arch/mips/pci/ops-sni.c if (busno == 0 && devfn >= PCI_DEVFN(8, 0)) devfn 34 arch/mips/pci/ops-sni.c ((devfn & 0xff) << 8) | devfn 40 arch/mips/pci/ops-sni.c static int pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, devfn 45 arch/mips/pci/ops-sni.c if ((res = set_config_address(bus->number, devfn, reg))) devfn 63 arch/mips/pci/ops-sni.c static int pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, devfn 68 arch/mips/pci/ops-sni.c if ((res = set_config_address(bus->number, devfn, reg))) devfn 91 arch/mips/pci/ops-sni.c static int pcit_set_config_address(unsigned int busno, unsigned int devfn, int reg) devfn 93 arch/mips/pci/ops-sni.c if ((devfn > 255) || (reg > 255) || (busno > 255)) devfn 96 arch/mips/pci/ops-sni.c outl((1 << 31) | ((busno & 0xff) << 16) | ((devfn & 0xff) << 8) | (reg & 0xfc), 0xcf8); devfn 100 arch/mips/pci/ops-sni.c static int pcit_read(struct pci_bus *bus, unsigned int devfn, int reg, devfn 113 arch/mips/pci/ops-sni.c if ((res = pcit_set_config_address(0, devfn, 0))) devfn 120 arch/mips/pci/ops-sni.c if ((res = pcit_set_config_address(bus->number, devfn, reg))) devfn 137 arch/mips/pci/ops-sni.c static int pcit_write(struct pci_bus *bus, unsigned int devfn, int reg, devfn 142 arch/mips/pci/ops-sni.c if ((res = pcit_set_config_address(bus->number, devfn, reg))) devfn 48 arch/mips/pci/ops-tx3927.c static int mkaddr(struct pci_bus *bus, unsigned char devfn, unsigned char where) devfn 51 arch/mips/pci/ops-tx3927.c devfn >= PCI_DEVFN(TX3927_PCIC_MAX_DEVNU, 0)) devfn 55 arch/mips/pci/ops-tx3927.c ((devfn & 0xff) << 0x08) | devfn 76 arch/mips/pci/ops-tx3927.c static int tx3927_pci_read_config(struct pci_bus *bus, unsigned int devfn, devfn 79 arch/mips/pci/ops-tx3927.c if (mkaddr(bus, devfn, where)) { devfn 101 arch/mips/pci/ops-tx3927.c static int tx3927_pci_write_config(struct pci_bus *bus, unsigned int devfn, devfn 104 arch/mips/pci/ops-tx3927.c if (mkaddr(bus, devfn, where)) devfn 58 arch/mips/pci/ops-tx4927.c static int mkaddr(struct pci_bus *bus, unsigned int devfn, int where, devfn 62 arch/mips/pci/ops-tx4927.c devfn >= PCI_DEVFN(TX4927_PCIC_MAX_DEVNU, 0)) devfn 65 arch/mips/pci/ops-tx4927.c | ((devfn & 0xff) << 0x08) | (where & 0xfc) devfn 139 arch/mips/pci/ops-tx4927.c static int tx4927_pci_config_read(struct pci_bus *bus, unsigned int devfn, devfn 144 arch/mips/pci/ops-tx4927.c if (mkaddr(bus, devfn, where, pcicptr)) { devfn 161 arch/mips/pci/ops-tx4927.c static int tx4927_pci_config_write(struct pci_bus *bus, unsigned int devfn, devfn 166 arch/mips/pci/ops-tx4927.c if (mkaddr(bus, devfn, where, pcicptr)) devfn 23 arch/mips/pci/ops-vr41xx.c unsigned int devfn, int where) devfn 29 arch/mips/pci/ops-vr41xx.c if (PCI_SLOT(devfn) < 11 || where > 0xff) devfn 32 arch/mips/pci/ops-vr41xx.c writel((1U << PCI_SLOT(devfn)) | (PCI_FUNC(devfn) << 8) | devfn 41 arch/mips/pci/ops-vr41xx.c writel(((uint32_t)number << 16) | ((devfn & 0xff) << 8) | devfn 48 arch/mips/pci/ops-vr41xx.c static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 54 arch/mips/pci/ops-vr41xx.c if (set_pci_configuration_address(bus->number, devfn, where) < 0) devfn 76 arch/mips/pci/ops-vr41xx.c static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 82 arch/mips/pci/ops-vr41xx.c if (set_pci_configuration_address(bus->number, devfn, where) < 0) devfn 188 arch/mips/pci/pci-alchemy.c static int read_config_byte(struct pci_bus *bus, unsigned int devfn, devfn 192 arch/mips/pci/pci-alchemy.c int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); devfn 202 arch/mips/pci/pci-alchemy.c static int read_config_word(struct pci_bus *bus, unsigned int devfn, devfn 206 arch/mips/pci/pci-alchemy.c int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); devfn 214 arch/mips/pci/pci-alchemy.c static int read_config_dword(struct pci_bus *bus, unsigned int devfn, devfn 217 arch/mips/pci/pci-alchemy.c return config_access(PCI_ACCESS_READ, bus, devfn, where, val); devfn 220 arch/mips/pci/pci-alchemy.c static int write_config_byte(struct pci_bus *bus, unsigned int devfn, devfn 225 arch/mips/pci/pci-alchemy.c if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) devfn 231 arch/mips/pci/pci-alchemy.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) devfn 237 arch/mips/pci/pci-alchemy.c static int write_config_word(struct pci_bus *bus, unsigned int devfn, devfn 242 arch/mips/pci/pci-alchemy.c if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) devfn 248 arch/mips/pci/pci-alchemy.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) devfn 254 arch/mips/pci/pci-alchemy.c static int write_config_dword(struct pci_bus *bus, unsigned int devfn, devfn 257 arch/mips/pci/pci-alchemy.c return config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val); devfn 260 arch/mips/pci/pci-alchemy.c static int alchemy_pci_read(struct pci_bus *bus, unsigned int devfn, devfn 266 arch/mips/pci/pci-alchemy.c int rc = read_config_byte(bus, devfn, where, &_val); devfn 273 arch/mips/pci/pci-alchemy.c int rc = read_config_word(bus, devfn, where, &_val); devfn 279 arch/mips/pci/pci-alchemy.c return read_config_dword(bus, devfn, where, val); devfn 283 arch/mips/pci/pci-alchemy.c static int alchemy_pci_write(struct pci_bus *bus, unsigned int devfn, devfn 288 arch/mips/pci/pci-alchemy.c return write_config_byte(bus, devfn, where, (u8) val); devfn 290 arch/mips/pci/pci-alchemy.c return write_config_word(bus, devfn, where, (u16) val); devfn 292 arch/mips/pci/pci-alchemy.c return write_config_dword(bus, devfn, where, val); devfn 211 arch/mips/pci/pci-ar2315.c static int ar2315_pci_cfg_access(struct ar2315_pci_ctrl *apc, unsigned devfn, devfn 214 arch/mips/pci/pci-ar2315.c int func = PCI_FUNC(devfn); devfn 215 arch/mips/pci/pci-ar2315.c int dev = PCI_SLOT(devfn); devfn 267 arch/mips/pci/pci-ar2315.c unsigned devfn, int where, u32 *val) devfn 269 arch/mips/pci/pci-ar2315.c return ar2315_pci_cfg_access(apc, devfn, where, sizeof(u32), val, devfn 274 arch/mips/pci/pci-ar2315.c unsigned devfn, int where, u32 val) devfn 276 arch/mips/pci/pci-ar2315.c return ar2315_pci_cfg_access(apc, devfn, where, sizeof(u32), &val, devfn 280 arch/mips/pci/pci-ar2315.c static int ar2315_pci_cfg_read(struct pci_bus *bus, unsigned devfn, int where, devfn 285 arch/mips/pci/pci-ar2315.c if (PCI_SLOT(devfn) == AR2315_PCI_HOST_SLOT) devfn 288 arch/mips/pci/pci-ar2315.c return ar2315_pci_cfg_access(apc, devfn, where, size, value, false); devfn 291 arch/mips/pci/pci-ar2315.c static int ar2315_pci_cfg_write(struct pci_bus *bus, unsigned devfn, int where, devfn 296 arch/mips/pci/pci-ar2315.c if (PCI_SLOT(devfn) == AR2315_PCI_HOST_SLOT) devfn 299 arch/mips/pci/pci-ar2315.c return ar2315_pci_cfg_access(apc, devfn, where, size, &value, true); devfn 309 arch/mips/pci/pci-ar2315.c unsigned devfn = PCI_DEVFN(AR2315_PCI_HOST_SLOT, 0); devfn 313 arch/mips/pci/pci-ar2315.c res = ar2315_pci_local_cfg_rd(apc, devfn, PCI_VENDOR_ID, &id); devfn 318 arch/mips/pci/pci-ar2315.c ar2315_pci_local_cfg_wr(apc, devfn, PCI_BASE_ADDRESS_0, devfn 320 arch/mips/pci/pci-ar2315.c ar2315_pci_local_cfg_wr(apc, devfn, PCI_BASE_ADDRESS_1, devfn 322 arch/mips/pci/pci-ar2315.c ar2315_pci_local_cfg_wr(apc, devfn, PCI_BASE_ADDRESS_2, devfn 326 arch/mips/pci/pci-ar2315.c ar2315_pci_local_cfg_wr(apc, devfn, PCI_COMMAND, PCI_COMMAND_MEMORY | devfn 80 arch/mips/pci/pci-ar71xx.c static inline u32 ar71xx_pci_bus_addr(struct pci_bus *bus, unsigned int devfn, devfn 87 arch/mips/pci/pci-ar71xx.c ret = (1 << PCI_SLOT(devfn)) | (PCI_FUNC(devfn) << 8) | devfn 91 arch/mips/pci/pci-ar71xx.c ret = (bus->number << 16) | (PCI_SLOT(devfn) << 11) | devfn 92 arch/mips/pci/pci-ar71xx.c (PCI_FUNC(devfn) << 8) | (where & ~3) | 1; devfn 160 arch/mips/pci/pci-ar71xx.c unsigned int devfn, devfn 167 arch/mips/pci/pci-ar71xx.c addr = ar71xx_pci_bus_addr(bus, devfn, where); devfn 176 arch/mips/pci/pci-ar71xx.c static int ar71xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, devfn 188 arch/mips/pci/pci-ar71xx.c err = ar71xx_pci_set_cfgaddr(bus, devfn, where, size, devfn 200 arch/mips/pci/pci-ar71xx.c static int ar71xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, devfn 211 arch/mips/pci/pci-ar71xx.c err = ar71xx_pci_set_cfgaddr(bus, devfn, where, size, devfn 113 arch/mips/pci/pci-ar724x.c static int ar724x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 124 arch/mips/pci/pci-ar724x.c if (devfn) devfn 160 arch/mips/pci/pci-ar724x.c static int ar724x_pci_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 172 arch/mips/pci/pci-ar724x.c if (devfn) devfn 40 arch/mips/pci/pci-bcm1480.c #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) devfn 41 arch/mips/pci/pci-bcm1480.c #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) devfn 84 arch/mips/pci/pci-bcm1480.c static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn) devfn 92 arch/mips/pci/pci-bcm1480.c devno = PCI_SLOT(devfn); devfn 107 arch/mips/pci/pci-bcm1480.c static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 117 arch/mips/pci/pci-bcm1480.c if (bcm1480_pci_can_access(bus, devfn)) devfn 118 arch/mips/pci/pci-bcm1480.c data = READCFG32(CFGADDR(bus, devfn, where)); devfn 132 arch/mips/pci/pci-bcm1480.c static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 135 arch/mips/pci/pci-bcm1480.c u32 cfgaddr = CFGADDR(bus, devfn, where); devfn 143 arch/mips/pci/pci-bcm1480.c if (!bcm1480_pci_can_access(bus, devfn)) devfn 38 arch/mips/pci/pci-bcm1480ht.c #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) devfn 39 arch/mips/pci/pci-bcm1480ht.c #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) devfn 75 arch/mips/pci/pci-bcm1480ht.c static int bcm1480ht_can_access(struct pci_bus *bus, int devfn) devfn 83 arch/mips/pci/pci-bcm1480ht.c devno = PCI_SLOT(devfn); devfn 96 arch/mips/pci/pci-bcm1480ht.c static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 106 arch/mips/pci/pci-bcm1480ht.c if (bcm1480ht_can_access(bus, devfn)) devfn 107 arch/mips/pci/pci-bcm1480ht.c data = READCFG32(CFGADDR(bus, devfn, where)); devfn 121 arch/mips/pci/pci-bcm1480ht.c static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 124 arch/mips/pci/pci-bcm1480ht.c u32 cfgaddr = CFGADDR(bus, devfn, where); devfn 132 arch/mips/pci/pci-bcm1480ht.c if (!bcm1480ht_can_access(bus, devfn)) devfn 50 arch/mips/pci/pci-bcm47xx.c slot = PCI_SLOT(dev->devfn); devfn 12 arch/mips/pci/pci-lantiq.h unsigned int devfn, int where, int size, u32 *val); devfn 14 arch/mips/pci/pci-lantiq.h unsigned int devfn, int where, int size, u32 val); devfn 136 arch/mips/pci/pci-mt7620.c static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 139 arch/mips/pci/pci-mt7620.c unsigned int slot = PCI_SLOT(devfn); devfn 140 arch/mips/pci/pci-mt7620.c u8 func = PCI_FUNC(devfn); devfn 168 arch/mips/pci/pci-mt7620.c static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 171 arch/mips/pci/pci-mt7620.c unsigned int slot = PCI_SLOT(devfn); devfn 172 arch/mips/pci/pci-mt7620.c u8 func = PCI_FUNC(devfn); devfn 244 arch/mips/pci/pci-octeon.c dev_num = dev->devfn >> 3; devfn 257 arch/mips/pci/pci-octeon.c static int octeon_read_config(struct pci_bus *bus, unsigned int devfn, devfn 269 arch/mips/pci/pci-octeon.c pci_addr.s.dev = devfn >> 3; devfn 270 arch/mips/pci/pci-octeon.c pci_addr.s.func = devfn & 0x7; devfn 291 arch/mips/pci/pci-octeon.c static int octeon_write_config(struct pci_bus *bus, unsigned int devfn, devfn 303 arch/mips/pci/pci-octeon.c pci_addr.s.dev = devfn >> 3; devfn 304 arch/mips/pci/pci-octeon.c pci_addr.s.func = devfn & 0x7; devfn 63 arch/mips/pci/pci-rt2880.c static int rt2880_pci_config_read(struct pci_bus *bus, unsigned int devfn, devfn 70 arch/mips/pci/pci-rt2880.c address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), devfn 71 arch/mips/pci/pci-rt2880.c PCI_FUNC(devfn), where); devfn 93 arch/mips/pci/pci-rt2880.c static int rt2880_pci_config_write(struct pci_bus *bus, unsigned int devfn, devfn 100 arch/mips/pci/pci-rt2880.c address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), devfn 101 arch/mips/pci/pci-rt2880.c PCI_FUNC(devfn), where); devfn 189 arch/mips/pci/pci-rt2880.c switch (PCI_SLOT(dev->devfn)) { devfn 228 arch/mips/pci/pci-rt3883.c static int rt3883_pci_config_read(struct pci_bus *bus, unsigned int devfn, devfn 241 arch/mips/pci/pci-rt3883.c address = rt3883_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), devfn 242 arch/mips/pci/pci-rt3883.c PCI_FUNC(devfn), where); devfn 262 arch/mips/pci/pci-rt3883.c static int rt3883_pci_config_write(struct pci_bus *bus, unsigned int devfn, devfn 275 arch/mips/pci/pci-rt3883.c address = rt3883_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), devfn 276 arch/mips/pci/pci-rt3883.c PCI_FUNC(devfn), where); devfn 461 arch/mips/pci/pci-rt3883.c int devfn; devfn 466 arch/mips/pci/pci-rt3883.c devfn = of_pci_get_devfn(child); devfn 467 arch/mips/pci/pci-rt3883.c if (devfn < 0) devfn 470 arch/mips/pci/pci-rt3883.c switch (PCI_SLOT(devfn)) { devfn 40 arch/mips/pci/pci-sb1250.c #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where)) devfn 41 arch/mips/pci/pci-sb1250.c #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) devfn 91 arch/mips/pci/pci-sb1250.c static int sb1250_pci_can_access(struct pci_bus *bus, int devfn) devfn 99 arch/mips/pci/pci-sb1250.c devno = PCI_SLOT(devfn); devfn 116 arch/mips/pci/pci-sb1250.c static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 126 arch/mips/pci/pci-sb1250.c if (sb1250_pci_can_access(bus, devfn)) devfn 127 arch/mips/pci/pci-sb1250.c data = READCFG32(CFGADDR(bus, devfn, where)); devfn 141 arch/mips/pci/pci-sb1250.c static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 144 arch/mips/pci/pci-sb1250.c u32 cfgaddr = CFGADDR(bus, devfn, where); devfn 152 arch/mips/pci/pci-sb1250.c if (!sb1250_pci_can_access(bus, devfn)) devfn 44 arch/mips/pci/pci-virtio-guest.c unsigned int devfn, int reg) devfn 49 arch/mips/pci/pci-virtio-guest.c pca.devfn_number = devfn; devfn 57 arch/mips/pci/pci-virtio-guest.c unsigned int devfn, int reg, int size, u32 val) devfn 59 arch/mips/pci/pci-virtio-guest.c pci_virtio_guest_write_config_addr(bus, devfn, reg); devfn 76 arch/mips/pci/pci-virtio-guest.c static int pci_virtio_guest_read_config(struct pci_bus *bus, unsigned int devfn, devfn 79 arch/mips/pci/pci-virtio-guest.c pci_virtio_guest_write_config_addr(bus, devfn, reg); devfn 60 arch/mips/pci/pci-xlp.c #define pci_cfg_addr(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) devfn 63 arch/mips/pci/pci-xlp.c static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, devfn 74 arch/mips/pci/pci-xlp.c if (PCI_SLOT(devfn) != 0 || devfn 75 arch/mips/pci/pci-xlp.c !nlm_node_present(PCI_FUNC(devfn))) devfn 78 arch/mips/pci/pci-xlp.c if (PCI_SLOT(devfn) == 0) /* b.0.0 hangs */ devfn 80 arch/mips/pci/pci-xlp.c if (devfn == 44) /* b.5.4 hangs */ devfn 83 arch/mips/pci/pci-xlp.c } else if (bus->number == 0 && PCI_SLOT(devfn) == 1 && where == 0x954) { devfn 87 arch/mips/pci/pci-xlp.c pci_cfg_addr(bus->number, devfn, where)); devfn 92 arch/mips/pci/pci-xlp.c static inline void pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, devfn 98 arch/mips/pci/pci-xlp.c pci_cfg_addr(bus->number, devfn, where & ~3)); devfn 102 arch/mips/pci/pci-xlp.c static int nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 112 arch/mips/pci/pci-xlp.c data = pci_cfg_read_32bit(bus, devfn, where); devfn 125 arch/mips/pci/pci-xlp.c static int nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 135 arch/mips/pci/pci-xlp.c data = pci_cfg_read_32bit(bus, devfn, where); devfn 146 arch/mips/pci/pci-xlp.c pci_cfg_write_32bit(bus, devfn, where, data); devfn 203 arch/mips/pci/pci-xlp.c return PCI_FUNC(lnkdev->bus->self->devfn); devfn 205 arch/mips/pci/pci-xlp.c return PCI_SLOT(lnkdev->devfn) / 8; devfn 221 arch/mips/pci/pci-xlp.c lnkfunc = PCI_FUNC(lnkdev->devfn); devfn 59 arch/mips/pci/pci-xlr.c #define pci_cfg_addr(bus, devfn, off) (((bus) << 16) | ((devfn) << 8) | (off)) devfn 62 arch/mips/pci/pci-xlr.c static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, devfn 69 arch/mips/pci/pci-xlr.c pci_cfg_addr(bus->number, devfn, where & ~3)); devfn 74 arch/mips/pci/pci-xlr.c static inline void pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, devfn 80 arch/mips/pci/pci-xlr.c pci_cfg_addr(bus->number, devfn, where & ~3)); devfn 84 arch/mips/pci/pci-xlr.c static int nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn, devfn 94 arch/mips/pci/pci-xlr.c data = pci_cfg_read_32bit(bus, devfn, where); devfn 107 arch/mips/pci/pci-xlr.c static int nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn, devfn 117 arch/mips/pci/pci-xlr.c data = pci_cfg_read_32bit(bus, devfn, where); devfn 128 arch/mips/pci/pci-xlr.c pci_cfg_write_32bit(bus, devfn, where, data); devfn 212 arch/mips/pci/pci-xlr.c link = PCI_SLOT(lnk->devfn); devfn 72 arch/mips/pci/pci-xtalk-bridge.c int slot = PCI_SLOT(dev->devfn); devfn 93 arch/mips/pci/pci-xtalk-bridge.c static int pci_conf0_read_config(struct pci_bus *bus, unsigned int devfn, devfn 98 arch/mips/pci/pci-xtalk-bridge.c int slot = PCI_SLOT(devfn); devfn 99 arch/mips/pci/pci-xtalk-bridge.c int fn = PCI_FUNC(devfn); devfn 129 arch/mips/pci/pci-xtalk-bridge.c static int pci_conf1_read_config(struct pci_bus *bus, unsigned int devfn, devfn 135 arch/mips/pci/pci-xtalk-bridge.c int slot = PCI_SLOT(devfn); devfn 136 arch/mips/pci/pci-xtalk-bridge.c int fn = PCI_FUNC(devfn); devfn 167 arch/mips/pci/pci-xtalk-bridge.c static int pci_read_config(struct pci_bus *bus, unsigned int devfn, devfn 171 arch/mips/pci/pci-xtalk-bridge.c return pci_conf1_read_config(bus, devfn, where, size, value); devfn 173 arch/mips/pci/pci-xtalk-bridge.c return pci_conf0_read_config(bus, devfn, where, size, value); devfn 176 arch/mips/pci/pci-xtalk-bridge.c static int pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn, devfn 181 arch/mips/pci/pci-xtalk-bridge.c int slot = PCI_SLOT(devfn); devfn 182 arch/mips/pci/pci-xtalk-bridge.c int fn = PCI_FUNC(devfn); devfn 215 arch/mips/pci/pci-xtalk-bridge.c static int pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, devfn 220 arch/mips/pci/pci-xtalk-bridge.c int slot = PCI_SLOT(devfn); devfn 221 arch/mips/pci/pci-xtalk-bridge.c int fn = PCI_FUNC(devfn); devfn 256 arch/mips/pci/pci-xtalk-bridge.c static int pci_write_config(struct pci_bus *bus, unsigned int devfn, devfn 260 arch/mips/pci/pci-xtalk-bridge.c return pci_conf1_write_config(bus, devfn, where, size, value); devfn 262 arch/mips/pci/pci-xtalk-bridge.c return pci_conf0_write_config(bus, devfn, where, size, value); devfn 1538 arch/mips/pci/pcie-octeon.c unsigned int devfn, int reg, int size, devfn 1578 arch/mips/pci/pcie-octeon.c if ((bus->parent == NULL) && (devfn >> 3 != 0)) devfn 1596 arch/mips/pci/pcie-octeon.c if ((bus->parent == NULL) && (devfn >= 2)) devfn 1612 arch/mips/pci/pcie-octeon.c if ((bus_number == 2) && (devfn >> 3 != 2)) devfn 1619 arch/mips/pci/pcie-octeon.c if ((bus_number == 2) && (devfn >> 3 != 3)) devfn 1624 arch/mips/pci/pcie-octeon.c !((devfn == (2 << 3)) || (devfn == (3 << 3)))) devfn 1635 arch/mips/pci/pcie-octeon.c !((devfn >> 3 >= 1) && (devfn >> 3 <= 4))) devfn 1638 arch/mips/pci/pcie-octeon.c if ((bus_number == 5) && (devfn >> 3 != 0)) devfn 1641 arch/mips/pci/pcie-octeon.c if ((bus_number == 6) && (devfn >> 3 != 0)) devfn 1644 arch/mips/pci/pcie-octeon.c if ((bus_number == 7) && (devfn >> 3 != 0)) devfn 1647 arch/mips/pci/pcie-octeon.c if ((bus_number == 8) && (devfn >> 3 != 0)) devfn 1668 arch/mips/pci/pcie-octeon.c " size=%d ", pcie_port, bus_number, devfn, reg, size); devfn 1673 arch/mips/pci/pcie-octeon.c devfn >> 3, devfn & 0x7, reg); devfn 1677 arch/mips/pci/pcie-octeon.c devfn >> 3, devfn & 0x7, reg); devfn 1681 arch/mips/pci/pcie-octeon.c devfn >> 3, devfn & 0x7, reg); devfn 1709 arch/mips/pci/pcie-octeon.c static int octeon_pcie0_read_config(struct pci_bus *bus, unsigned int devfn, devfn 1712 arch/mips/pci/pcie-octeon.c return octeon_pcie_read_config(0, bus, devfn, reg, size, val); devfn 1715 arch/mips/pci/pcie-octeon.c static int octeon_pcie1_read_config(struct pci_bus *bus, unsigned int devfn, devfn 1718 arch/mips/pci/pcie-octeon.c return octeon_pcie_read_config(1, bus, devfn, reg, size, val); devfn 1721 arch/mips/pci/pcie-octeon.c static int octeon_dummy_read_config(struct pci_bus *bus, unsigned int devfn, devfn 1731 arch/mips/pci/pcie-octeon.c unsigned int devfn, int reg, devfn 1742 arch/mips/pci/pcie-octeon.c " reg=0x%03x size=%d val=%08x\n", pcie_port, bus_number, devfn, devfn 1748 arch/mips/pci/pcie-octeon.c cvmx_pcie_config_write32(pcie_port, bus_number, devfn >> 3, devfn 1749 arch/mips/pci/pcie-octeon.c devfn & 0x7, reg, val); devfn 1752 arch/mips/pci/pcie-octeon.c cvmx_pcie_config_write16(pcie_port, bus_number, devfn >> 3, devfn 1753 arch/mips/pci/pcie-octeon.c devfn & 0x7, reg, val); devfn 1756 arch/mips/pci/pcie-octeon.c cvmx_pcie_config_write8(pcie_port, bus_number, devfn >> 3, devfn 1757 arch/mips/pci/pcie-octeon.c devfn & 0x7, reg, val); devfn 1765 arch/mips/pci/pcie-octeon.c static int octeon_pcie0_write_config(struct pci_bus *bus, unsigned int devfn, devfn 1768 arch/mips/pci/pcie-octeon.c return octeon_pcie_write_config(0, bus, devfn, reg, size, val); devfn 1771 arch/mips/pci/pcie-octeon.c static int octeon_pcie1_write_config(struct pci_bus *bus, unsigned int devfn, devfn 1774 arch/mips/pci/pcie-octeon.c return octeon_pcie_write_config(1, bus, devfn, reg, size, val); devfn 1777 arch/mips/pci/pcie-octeon.c static int octeon_dummy_write_config(struct pci_bus *bus, unsigned int devfn, devfn 30 arch/mips/txx9/generic/pci.c int top_bus, int bus, int devfn, int offset, u16 *value) devfn 44 arch/mips/txx9/generic/pci.c return pci_bus_read_config_word(&fake_bus, devfn, offset, value); devfn 272 arch/mips/txx9/generic/pci.c irq = pcibios_map_irq(dev, PCI_SLOT(dev->devfn), 1); /* INTA */ devfn 316 arch/parisc/kernel/drivers.c unsigned int devfn = to_pci_dev(dev)->devfn; devfn 317 arch/parisc/kernel/drivers.c path->mod = PCI_FUNC(devfn); devfn 318 arch/parisc/kernel/drivers.c path->bc[i--] = PCI_SLOT(devfn); devfn 324 arch/parisc/kernel/drivers.c unsigned int devfn = to_pci_dev(dev)->devfn; devfn 325 arch/parisc/kernel/drivers.c path->bc[i--] = PCI_SLOT(devfn) | (PCI_FUNC(devfn)<< 5); devfn 664 arch/parisc/kernel/drivers.c unsigned int devfn = pdev->devfn; devfn 665 arch/parisc/kernel/drivers.c return ((modpath->bc[5] == PCI_SLOT(devfn)) && devfn 666 arch/parisc/kernel/drivers.c (modpath->mod == PCI_FUNC(devfn))); devfn 673 arch/parisc/kernel/drivers.c id = PCI_SLOT(pdev->devfn) | (PCI_FUNC(pdev->devfn) << 5); devfn 154 arch/powerpc/include/asm/pci-bridge.h extern int indirect_read_config(struct pci_bus *bus, unsigned int devfn, devfn 158 arch/powerpc/include/asm/pci-bridge.h unsigned char bus_number, unsigned int devfn, devfn 161 arch/powerpc/include/asm/pci-bridge.h extern int indirect_write_config(struct pci_bus *bus, unsigned int devfn, devfn 172 arch/powerpc/include/asm/pci-bridge.h u8 *bus, u8 *devfn); devfn 189 arch/powerpc/include/asm/pci-bridge.h int devfn; /* pci device and function number */ devfn 224 arch/powerpc/include/asm/pci-bridge.h int devfn); devfn 233 arch/powerpc/include/asm/pci-bridge.h u8 *bus, u8 *devfn) devfn 238 arch/powerpc/include/asm/pci-bridge.h *devfn = PCI_DN(np)->devfn; devfn 100 arch/powerpc/include/asm/pci.h struct pci_bus *bus, int devfn); devfn 456 arch/powerpc/include/asm/rtas.h static inline u32 rtas_config_addr(int busno, int devfn, int reg) devfn 459 arch/powerpc/include/asm/rtas.h (devfn << 8) | (reg & 0xff); devfn 83 arch/powerpc/include/asm/tsi108.h extern int tsi108_direct_write_config(struct pci_bus *bus, unsigned int devfn, devfn 85 arch/powerpc/include/asm/tsi108.h extern int tsi108_direct_read_config(struct pci_bus *bus, unsigned int devfn, devfn 183 arch/powerpc/kernel/eeh.c PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); devfn 186 arch/powerpc/kernel/eeh.c PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); devfn 1176 arch/powerpc/kernel/eeh.c pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); devfn 166 arch/powerpc/kernel/eeh_cache.c pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); devfn 50 arch/powerpc/kernel/eeh_dev.c edev->bdfn = (pdn->busno << 8) | pdn->devfn; devfn 371 arch/powerpc/kernel/eeh_pe.c int config_addr = (pdn->busno << 8) | (pdn->devfn); devfn 1523 arch/powerpc/kernel/pci-common.c null_read_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 1530 arch/powerpc/kernel/pci-common.c null_write_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 1562 arch/powerpc/kernel/pci-common.c int devfn, int offset, type value) \ devfn 1565 arch/powerpc/kernel/pci-common.c devfn, offset, value); \ devfn 1575 arch/powerpc/kernel/pci-common.c int early_find_capability(struct pci_controller *hose, int bus, int devfn, devfn 1578 arch/powerpc/kernel/pci-common.c return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); devfn 135 arch/powerpc/kernel/pci-hotplug.c slotno = PCI_SLOT(PCI_DN(dn->child)->devfn); devfn 161 arch/powerpc/kernel/pci_32.c int pci_device_from_OF_node(struct device_node *node, u8 *bus, u8 *devfn) devfn 176 arch/powerpc/kernel/pci_32.c *devfn = (be32_to_cpup(®[0]) >> 8) & 0xff; devfn 188 arch/powerpc/kernel/pci_32.c dev->devfn == *devfn) { devfn 297 arch/powerpc/kernel/pci_32.c unsigned long, bus, unsigned long, devfn) devfn 59 arch/powerpc/kernel/pci_dn.c int devfn) devfn 67 arch/powerpc/kernel/pci_dn.c if (pdev->devfn == devfn) { devfn 88 arch/powerpc/kernel/pci_dn.c pdn->devfn == devfn) devfn 120 arch/powerpc/kernel/pci_dn.c pdn->devfn == pdev->devfn) devfn 130 arch/powerpc/kernel/pci_dn.c int busno, int devfn) devfn 145 arch/powerpc/kernel/pci_dn.c pdn->devfn = devfn; devfn 243 arch/powerpc/kernel/pci_dn.c pdn->devfn != pci_iov_virtfn_devfn(pdev, i)) devfn 300 arch/powerpc/kernel/pci_dn.c pdn->devfn = (addr >> 8) & 0xff; devfn 364 arch/powerpc/kernel/pci_dn.c pdn->busno, pdn->devfn); devfn 509 arch/powerpc/kernel/pci_dn.c pdn->devfn = pdn->busno = -1; devfn 176 arch/powerpc/kernel/pci_of_scan.c struct pci_bus *bus, int devfn) devfn 184 arch/powerpc/kernel/pci_of_scan.c pr_debug(" create device, devfn: %x, type: %s\n", devfn, devfn 190 arch/powerpc/kernel/pci_of_scan.c dev->devfn = devfn; devfn 204 arch/powerpc/kernel/pci_of_scan.c dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 353 arch/powerpc/kernel/pci_of_scan.c int reglen, devfn; devfn 365 arch/powerpc/kernel/pci_of_scan.c devfn = (of_read_number(reg, 1) >> 8) & 0xff; devfn 368 arch/powerpc/kernel/pci_of_scan.c dev = pci_get_slot(bus, devfn); devfn 381 arch/powerpc/kernel/pci_of_scan.c dev = of_create_pci_dev(dn, bus, devfn); devfn 61 arch/powerpc/kernel/rtas_pci.c addr = rtas_config_addr(pdn->busno, pdn->devfn, where); devfn 78 arch/powerpc/kernel/rtas_pci.c unsigned int devfn, devfn 86 arch/powerpc/kernel/rtas_pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); devfn 112 arch/powerpc/kernel/rtas_pci.c addr = rtas_config_addr(pdn->busno, pdn->devfn, where); devfn 128 arch/powerpc/kernel/rtas_pci.c unsigned int devfn, devfn 133 arch/powerpc/kernel/rtas_pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); devfn 61 arch/powerpc/platforms/4xx/pci.c if (dev->devfn != 0 || dev->bus->self != NULL) devfn 1552 arch/powerpc/platforms/4xx/pci.c unsigned int devfn) devfn 1571 arch/powerpc/platforms/4xx/pci.c if (bus->number == port->hose->first_busno && devfn != 0) devfn 1576 arch/powerpc/platforms/4xx/pci.c PCI_SLOT(devfn) != 0) devfn 1588 arch/powerpc/platforms/4xx/pci.c unsigned int devfn) devfn 1600 arch/powerpc/platforms/4xx/pci.c ((relbus << 20) | (devfn << 12)); devfn 1603 arch/powerpc/platforms/4xx/pci.c static int ppc4xx_pciex_read_config(struct pci_bus *bus, unsigned int devfn, devfn 1614 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_pciex_validate_bdf(port, bus, devfn) != 0) devfn 1617 arch/powerpc/platforms/4xx/pci.c addr = ppc4xx_pciex_get_config_base(port, bus, devfn); devfn 1645 arch/powerpc/platforms/4xx/pci.c devfn, offset, len, addr + offset, *val); devfn 1660 arch/powerpc/platforms/4xx/pci.c static int ppc4xx_pciex_write_config(struct pci_bus *bus, unsigned int devfn, devfn 1669 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_pciex_validate_bdf(port, bus, devfn) != 0) devfn 1672 arch/powerpc/platforms/4xx/pci.c addr = ppc4xx_pciex_get_config_base(port, bus, devfn); devfn 1685 arch/powerpc/platforms/4xx/pci.c devfn, offset, len, addr + offset, val); devfn 35 arch/powerpc/platforms/52xx/efika.c static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 39 arch/powerpc/platforms/52xx/efika.c unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) devfn 50 arch/powerpc/platforms/52xx/efika.c static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, devfn 54 arch/powerpc/platforms/52xx/efika.c unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) devfn 107 arch/powerpc/platforms/52xx/mpc52xx_pci.c mpc52xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, devfn 114 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) devfn 120 arch/powerpc/platforms/52xx/mpc52xx_pci.c (devfn << 8) | devfn 164 arch/powerpc/platforms/52xx/mpc52xx_pci.c mpc52xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, devfn 171 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) devfn 177 arch/powerpc/platforms/52xx/mpc52xx_pci.c (devfn << 8) | devfn 35 arch/powerpc/platforms/82xx/pq2.c u_char bus, u8 devfn) devfn 37 arch/powerpc/platforms/82xx/pq2.c if (bus == 0 && PCI_SLOT(devfn) == 0) devfn 71 arch/powerpc/platforms/85xx/mpc85xx_cds.c u_char bus, u_char devfn) devfn 74 arch/powerpc/platforms/85xx/mpc85xx_cds.c if ((bus == 1) && (PCI_SLOT(devfn) == ARCADIA_2ND_BRIDGE_IDSEL)) devfn 76 arch/powerpc/platforms/85xx/mpc85xx_cds.c if ((bus == 0) && (PCI_SLOT(devfn) == ARCADIA_2ND_BRIDGE_IDSEL)) devfn 156 arch/powerpc/platforms/85xx/mpc85xx_cds.c if (PCI_FUNC(dev->devfn) == 3) devfn 111 arch/powerpc/platforms/85xx/mpc85xx_ds.c u_char bus, u_char devfn); devfn 116 arch/powerpc/platforms/85xx/mpc85xx_ds.c u_char bus, u_char devfn) devfn 119 arch/powerpc/platforms/85xx/mpc85xx_ds.c return uli_exclude_device(hose, bus, devfn); devfn 44 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c u_char bus, u_char devfn); devfn 47 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c u_char bus, u_char devfn) devfn 50 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c return uli_exclude_device(hose, bus, devfn); devfn 91 arch/powerpc/platforms/cell/setup.c if (dev->bus->self != NULL || dev->devfn != 0) devfn 34 arch/powerpc/platforms/chrp/pci.c static int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, devfn 46 arch/powerpc/platforms/chrp/pci.c cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); devfn 61 arch/powerpc/platforms/chrp/pci.c static int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, devfn 73 arch/powerpc/platforms/chrp/pci.c cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); devfn 97 arch/powerpc/platforms/chrp/pci.c static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 101 arch/powerpc/platforms/chrp/pci.c unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) devfn 112 arch/powerpc/platforms/chrp/pci.c static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 116 arch/powerpc/platforms/chrp/pci.c unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) devfn 45 arch/powerpc/platforms/embedded6xx/holly.c u_char devfn) devfn 47 arch/powerpc/platforms/embedded6xx/holly.c if (bus == 0 && PCI_SLOT(devfn) == 0) devfn 53 arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c u_char bus, u_char devfn) devfn 55 arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c if (bus == 0 && PCI_SLOT(devfn) == 0) devfn 344 arch/powerpc/platforms/fsl_uli1575.c u_char bus, u_char devfn) devfn 348 arch/powerpc/platforms/fsl_uli1575.c if ((PCI_SLOT(devfn) == 29) && (PCI_FUNC(devfn) == 1)) devfn 352 arch/powerpc/platforms/fsl_uli1575.c if ((PCI_SLOT(devfn) == 29) && (PCI_FUNC(devfn) == 2)) devfn 81 arch/powerpc/platforms/maple/pci.c static unsigned long u3_agp_cfa0(u8 devfn, u8 off) devfn 83 arch/powerpc/platforms/maple/pci.c return (1 << (unsigned long)PCI_SLOT(devfn)) | devfn 84 arch/powerpc/platforms/maple/pci.c ((unsigned long)PCI_FUNC(devfn) << 8) | devfn 88 arch/powerpc/platforms/maple/pci.c static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) devfn 91 arch/powerpc/platforms/maple/pci.c ((unsigned long)devfn << 8) | devfn 117 arch/powerpc/platforms/maple/pci.c static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, devfn 127 arch/powerpc/platforms/maple/pci.c addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); devfn 148 arch/powerpc/platforms/maple/pci.c static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, devfn 158 arch/powerpc/platforms/maple/pci.c addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); devfn 185 arch/powerpc/platforms/maple/pci.c static unsigned long u3_ht_cfa0(u8 devfn, u8 off) devfn 187 arch/powerpc/platforms/maple/pci.c return (devfn << 8) | off; devfn 190 arch/powerpc/platforms/maple/pci.c static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off) devfn 192 arch/powerpc/platforms/maple/pci.c return u3_ht_cfa0(devfn, off) + (bus << 16) + 0x01000000UL; devfn 196 arch/powerpc/platforms/maple/pci.c u8 bus, u8 devfn, u8 offset) devfn 199 arch/powerpc/platforms/maple/pci.c if (PCI_SLOT(devfn) == 0) devfn 201 arch/powerpc/platforms/maple/pci.c return hose->cfg_data + u3_ht_cfa0(devfn, offset); devfn 203 arch/powerpc/platforms/maple/pci.c return hose->cfg_data + u3_ht_cfa1(bus, devfn, offset); devfn 254 arch/powerpc/platforms/maple/pci.c static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, devfn 264 arch/powerpc/platforms/maple/pci.c if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0)) devfn 270 arch/powerpc/platforms/maple/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset); devfn 292 arch/powerpc/platforms/maple/pci.c static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, devfn 302 arch/powerpc/platforms/maple/pci.c if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0)) devfn 308 arch/powerpc/platforms/maple/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset); devfn 335 arch/powerpc/platforms/maple/pci.c static unsigned int u4_pcie_cfa0(unsigned int devfn, unsigned int off) devfn 337 arch/powerpc/platforms/maple/pci.c return (1 << PCI_SLOT(devfn)) | devfn 338 arch/powerpc/platforms/maple/pci.c (PCI_FUNC(devfn) << 8) | devfn 343 arch/powerpc/platforms/maple/pci.c static unsigned int u4_pcie_cfa1(unsigned int bus, unsigned int devfn, devfn 347 arch/powerpc/platforms/maple/pci.c (devfn << 8) | devfn 371 arch/powerpc/platforms/maple/pci.c static int u4_pcie_read_config(struct pci_bus *bus, unsigned int devfn, devfn 382 arch/powerpc/platforms/maple/pci.c addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset); devfn 402 arch/powerpc/platforms/maple/pci.c static int u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn, devfn 413 arch/powerpc/platforms/maple/pci.c addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset); devfn 487 arch/powerpc/platforms/pasemi/dma_lib.c return ioremap(0xe0000000 + (p->devfn << 12), 0x2000); devfn 81 arch/powerpc/platforms/pasemi/misc.c i2c_register_board_info(PCI_FUNC(pdev->devfn), &info, devfn 25 arch/powerpc/platforms/pasemi/pci.c #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) devfn 27 arch/powerpc/platforms/pasemi/pci.c static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset) devfn 33 arch/powerpc/platforms/pasemi/pci.c if (bus == 0 && devfn == 0) devfn 40 arch/powerpc/platforms/pasemi/pci.c u8 bus, u8 devfn, int offset) devfn 42 arch/powerpc/platforms/pasemi/pci.c return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset); devfn 45 arch/powerpc/platforms/pasemi/pci.c static inline int is_root_port(int busno, int devfn) devfn 47 arch/powerpc/platforms/pasemi/pci.c return ((busno == 0) && (PCI_FUNC(devfn) < 4) && devfn 48 arch/powerpc/platforms/pasemi/pci.c ((PCI_SLOT(devfn) == 16) || (PCI_SLOT(devfn) == 17))); devfn 57 arch/powerpc/platforms/pasemi/pci.c static int workaround_5945(struct pci_bus *bus, unsigned int devfn, devfn 65 arch/powerpc/platforms/pasemi/pci.c if (!is_root_port(bus->number, devfn) || !is_5945_reg(offset)) devfn 70 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset & ~0x3); devfn 77 arch/powerpc/platforms/pasemi/pci.c dummy = pa_pxp_cfg_addr(hose, bus->number, devfn, 0x10); devfn 155 arch/powerpc/platforms/pasemi/pci.c static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn, devfn 165 arch/powerpc/platforms/pasemi/pci.c if (!pa_pxp_offset_valid(bus->number, devfn, offset)) devfn 168 arch/powerpc/platforms/pasemi/pci.c if (workaround_5945(bus, devfn, offset, len, val)) devfn 171 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset); devfn 194 arch/powerpc/platforms/pasemi/pci.c static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn, devfn 204 arch/powerpc/platforms/pasemi/pci.c if (!pa_pxp_offset_valid(bus->number, devfn, offset)) devfn 207 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset); devfn 296 arch/powerpc/platforms/pasemi/pci.c return (void __iomem *)pa_pxp_cfg_addr(hose, dev->bus->number, dev->devfn, offset); devfn 123 arch/powerpc/platforms/powermac/pci.c #define MACRISC_CFA0(devfn, off) \ devfn 128 arch/powerpc/platforms/powermac/pci.c #define MACRISC_CFA1(bus, devfn, off) \ devfn 130 arch/powerpc/platforms/powermac/pci.c |(((unsigned int)(devfn)) << 8) \ devfn 172 arch/powerpc/platforms/powermac/pci.c static void __iomem *chaos_map_bus(struct pci_bus *bus, unsigned int devfn, devfn 180 arch/powerpc/platforms/powermac/pci.c np = of_pci_find_child_device(bus->dev.of_node, devfn); devfn 193 arch/powerpc/platforms/powermac/pci.c return macrisc_cfg_map_bus(bus, devfn, offset); devfn 229 arch/powerpc/platforms/powermac/pci.c struct pci_bus *bus, unsigned int devfn) devfn 241 arch/powerpc/platforms/powermac/pci.c else if (devfn == 0) devfn 246 arch/powerpc/platforms/powermac/pci.c if (PCI_DN(dn) && PCI_DN(dn)->devfn == devfn) devfn 262 arch/powerpc/platforms/powermac/pci.c #define U3_HT_CFA0(devfn, off) \ devfn 263 arch/powerpc/platforms/powermac/pci.c ((((unsigned int)devfn) << 8) | offset) devfn 264 arch/powerpc/platforms/powermac/pci.c #define U3_HT_CFA1(bus, devfn, off) \ devfn 265 arch/powerpc/platforms/powermac/pci.c (U3_HT_CFA0(devfn, off) \ devfn 270 arch/powerpc/platforms/powermac/pci.c u8 devfn, u8 offset, int *swap) devfn 274 arch/powerpc/platforms/powermac/pci.c if (devfn != 0) devfn 275 arch/powerpc/platforms/powermac/pci.c return hose->cfg_data + U3_HT_CFA0(devfn, offset); devfn 279 arch/powerpc/platforms/powermac/pci.c return hose->cfg_data + U3_HT_CFA1(bus, devfn, offset); devfn 282 arch/powerpc/platforms/powermac/pci.c static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, devfn 294 arch/powerpc/platforms/powermac/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap); devfn 298 arch/powerpc/platforms/powermac/pci.c switch (u3_ht_skip_device(hose, bus, devfn)) { devfn 333 arch/powerpc/platforms/powermac/pci.c static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, devfn 345 arch/powerpc/platforms/powermac/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap); devfn 349 arch/powerpc/platforms/powermac/pci.c switch (u3_ht_skip_device(hose, bus, devfn)) { devfn 382 arch/powerpc/platforms/powermac/pci.c #define U4_PCIE_CFA0(devfn, off) \ devfn 388 arch/powerpc/platforms/powermac/pci.c #define U4_PCIE_CFA1(bus, devfn, off) \ devfn 390 arch/powerpc/platforms/powermac/pci.c |(((unsigned int)(devfn)) << 8) \ devfn 494 arch/powerpc/platforms/powermac/pci.c u8 bus, devfn; devfn 502 arch/powerpc/platforms/powermac/pci.c if (pci_device_from_OF_node(p2pbridge, &bus, &devfn) < 0) { devfn 514 arch/powerpc/platforms/powermac/pci.c if (early_read_config_word(hose, bus, devfn, devfn 521 arch/powerpc/platforms/powermac/pci.c early_write_config_word(hose, bus, devfn, PCI_BRIDGE_CONTROL, val); devfn 529 arch/powerpc/platforms/powermac/pci.c unsigned char bus, devfn; devfn 538 arch/powerpc/platforms/powermac/pci.c if (pci_device_from_OF_node(np, &bus, &devfn) == 0) { devfn 546 arch/powerpc/platforms/powermac/pci.c early_read_config_word(hose, bus, devfn, PCI_COMMAND, &cmd); devfn 549 arch/powerpc/platforms/powermac/pci.c early_write_config_word(hose, bus, devfn, PCI_COMMAND, cmd); devfn 569 arch/powerpc/platforms/powermac/pci.c u8 bus, devfn; devfn 584 arch/powerpc/platforms/powermac/pci.c devfn = (prop[0] >> 8) & 0xff; devfn 586 arch/powerpc/platforms/powermac/pci.c if (PCI_FUNC(devfn) != 0) devfn 591 arch/powerpc/platforms/powermac/pci.c early_read_config_dword(hose, bus, devfn, 0xe4, &data); devfn 596 arch/powerpc/platforms/powermac/pci.c early_write_config_dword(hose, bus, devfn, 0xe4, data); devfn 1147 arch/powerpc/platforms/powermac/pci.c if (PCI_FUNC(dev->devfn) > 0) { devfn 372 arch/powerpc/platforms/powernv/eeh-powernv.c int config_addr = (pdn->busno << 8) | (pdn->devfn); devfn 848 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_dn *pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); devfn 903 arch/powerpc/platforms/powernv/eeh-powernv.c (pdev->bus->number << 8) | pdev->devfn); devfn 970 arch/powerpc/platforms/powernv/eeh-powernv.c PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); devfn 1648 arch/powerpc/platforms/powernv/eeh-powernv.c int config_addr = (pdn->busno << 8) | (pdn->devfn); devfn 28 arch/powerpc/platforms/powernv/npu-dma.c pdn->busno, pdn->devfn); devfn 146 arch/powerpc/platforms/powernv/ocxl.c link->dev == PCI_SLOT(dev->devfn)) { devfn 157 arch/powerpc/platforms/powernv/ocxl.c link->dev = PCI_SLOT(dev->devfn); devfn 195 arch/powerpc/platforms/powernv/ocxl.c link->fn_desired_actags[PCI_FUNC(dev->devfn)] = 0; devfn 204 arch/powerpc/platforms/powernv/ocxl.c link->fn_desired_actags[PCI_FUNC(dev->devfn)] += actag; devfn 207 arch/powerpc/platforms/powernv/ocxl.c link->fn_desired_actags[PCI_FUNC(dev->devfn)]); devfn 273 arch/powerpc/platforms/powernv/ocxl.c *base = link->fn_actags[PCI_FUNC(dev->devfn)].start; devfn 274 arch/powerpc/platforms/powernv/ocxl.c *enabled = link->fn_actags[PCI_FUNC(dev->devfn)].count; devfn 275 arch/powerpc/platforms/powernv/ocxl.c *supported = link->fn_desired_actags[PCI_FUNC(dev->devfn)]; devfn 306 arch/powerpc/platforms/powernv/ocxl.c if (link->fn_desired_actags[i] && (i == PCI_FUNC(dev->devfn))) { devfn 362 arch/powerpc/platforms/powernv/ocxl.c rc = opal_npu_tl_set(phb->opal_id, dev->devfn, cap, devfn 452 arch/powerpc/platforms/powernv/ocxl.c bdfn = (dev->bus->number << 8) | dev->devfn; devfn 1078 arch/powerpc/platforms/powernv/pci-ioda.c pe->rid = dev->bus->number << 8 | pdn->devfn; devfn 1233 arch/powerpc/platforms/powernv/pci-ioda.c rid = npu_pdev->bus->number << 8 | npu_pdn->devfn; devfn 1598 arch/powerpc/platforms/powernv/pci-ioda.c vf_pdn->devfn == vf_devfn) { devfn 634 arch/powerpc/platforms/powernv/pci.c (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); devfn 655 arch/powerpc/platforms/powernv/pci.c u32 bdfn = (pdn->busno << 8) | pdn->devfn; devfn 683 arch/powerpc/platforms/powernv/pci.c __func__, pdn->busno, pdn->devfn, where, size, *val); devfn 691 arch/powerpc/platforms/powernv/pci.c u32 bdfn = (pdn->busno << 8) | pdn->devfn; devfn 694 arch/powerpc/platforms/powernv/pci.c __func__, pdn->busno, pdn->devfn, where, size, val); devfn 743 arch/powerpc/platforms/powernv/pci.c unsigned int devfn, devfn 751 arch/powerpc/platforms/powernv/pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); devfn 772 arch/powerpc/platforms/powernv/pci.c unsigned int devfn, devfn 779 arch/powerpc/platforms/powernv/pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); devfn 76 arch/powerpc/platforms/pseries/eeh_pseries.c edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); devfn 282 arch/powerpc/platforms/pseries/eeh_pseries.c pe.config_addr = (pdn->busno << 16) | (pdn->devfn << 8); devfn 693 arch/powerpc/platforms/pseries/eeh_pseries.c addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); devfn 713 arch/powerpc/platforms/pseries/eeh_pseries.c int cur_vfs = 0, rc = 0, vf_index, bus, devfn; devfn 736 arch/powerpc/platforms/pseries/eeh_pseries.c devfn = pci_iov_virtfn_devfn(edev->pdev, devfn 739 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->devfn != devfn) devfn 890 arch/powerpc/platforms/pseries/iommu.c cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); devfn 919 arch/powerpc/platforms/pseries/iommu.c cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); devfn 35 arch/powerpc/platforms/pseries/msi.c addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); devfn 96 arch/powerpc/platforms/pseries/msi.c addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); devfn 71 arch/powerpc/platforms/pseries/pci.c addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); devfn 282 arch/powerpc/platforms/pseries/pci.c && dev->bus->number == 0 && dev->devfn == 0x81) devfn 90 arch/powerpc/sysdev/fsl_pci.c static int fsl_indirect_read_config(struct pci_bus *bus, unsigned int devfn, devfn 100 arch/powerpc/sysdev/fsl_pci.c return indirect_read_config(bus, devfn, offset, len, val); devfn 678 arch/powerpc/sysdev/fsl_pci.c static int mpc83xx_pcie_exclude_device(struct pci_bus *bus, unsigned int devfn) devfn 691 arch/powerpc/sysdev/fsl_pci.c if (devfn & 0xf8) devfn 696 arch/powerpc/sysdev/fsl_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) devfn 704 arch/powerpc/sysdev/fsl_pci.c unsigned int devfn, int offset) devfn 708 arch/powerpc/sysdev/fsl_pci.c u32 dev_base = bus->number << 24 | devfn << 16; devfn 711 arch/powerpc/sysdev/fsl_pci.c ret = mpc83xx_pcie_exclude_device(bus, devfn); devfn 731 arch/powerpc/sysdev/fsl_pci.c static int mpc83xx_pcie_write_config(struct pci_bus *bus, unsigned int devfn, devfn 740 arch/powerpc/sysdev/fsl_pci.c return pci_generic_config_write(bus, devfn, offset, len, val); devfn 20 arch/powerpc/sysdev/indirect_pci.c unsigned char bus_number, unsigned int devfn, devfn 30 arch/powerpc/sysdev/indirect_pci.c if (devfn != 0) devfn 35 arch/powerpc/sysdev/indirect_pci.c if (ppc_md.pci_exclude_device(hose, bus_number, devfn)) devfn 52 arch/powerpc/sysdev/indirect_pci.c (devfn << 8) | reg | cfg_type)); devfn 55 arch/powerpc/sysdev/indirect_pci.c (devfn << 8) | reg | cfg_type)); devfn 76 arch/powerpc/sysdev/indirect_pci.c int indirect_read_config(struct pci_bus *bus, unsigned int devfn, devfn 81 arch/powerpc/sysdev/indirect_pci.c return __indirect_read_config(hose, bus->number, devfn, offset, len, devfn 85 arch/powerpc/sysdev/indirect_pci.c int indirect_write_config(struct pci_bus *bus, unsigned int devfn, devfn 96 arch/powerpc/sysdev/indirect_pci.c if (devfn != 0) devfn 101 arch/powerpc/sysdev/indirect_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) devfn 118 arch/powerpc/sysdev/indirect_pci.c (devfn << 8) | reg | cfg_type)); devfn 121 arch/powerpc/sysdev/indirect_pci.c (devfn << 8) | reg | cfg_type)); devfn 448 arch/powerpc/sysdev/mpic.c unsigned int devfn) devfn 476 arch/powerpc/sysdev/mpic.c PCI_SLOT(devfn), PCI_FUNC(devfn), devfn 484 arch/powerpc/sysdev/mpic.c unsigned int devfn) devfn 491 arch/powerpc/sysdev/mpic.c unsigned int devfn, u32 vdid) devfn 516 arch/powerpc/sysdev/mpic.c devfn >> 3, devfn & 0x7, pos, vdid & 0xffff, vdid >> 16, n + 1); devfn 541 arch/powerpc/sysdev/mpic.c unsigned int devfn; devfn 562 arch/powerpc/sysdev/mpic.c for (devfn = 0; devfn < 0x100; devfn++) { devfn 563 arch/powerpc/sysdev/mpic.c u8 __iomem *devbase = cfgspace + (devfn << 8); devfn 568 arch/powerpc/sysdev/mpic.c DBG("devfn %x, l: %x\n", devfn, l); devfn 579 arch/powerpc/sysdev/mpic.c mpic_scan_ht_pic(mpic, devbase, devfn, l); devfn 580 arch/powerpc/sysdev/mpic.c mpic_scan_ht_msi(mpic, devbase, devfn); devfn 584 arch/powerpc/sysdev/mpic.c if (PCI_FUNC(devfn) == 0 && (hdr_type & 0x80) == 0) devfn 585 arch/powerpc/sysdev/mpic.c devfn += 7; devfn 132 arch/powerpc/sysdev/tsi108_pci.c tsi108_direct_read_config(struct pci_bus *bus, unsigned int devfn, int offset, devfn 140 arch/powerpc/sysdev/tsi108_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) devfn 144 arch/powerpc/sysdev/tsi108_pci.c devfn, devfn 165 arch/powerpc/sysdev/tsi108_pci.c printk("%d:0x%x:0x%x ", bus->number, devfn, offset); devfn 43 arch/powerpc/sysdev/xilinx_pci.c if (dev->devfn || dev->bus->self) devfn 74 arch/powerpc/sysdev/xilinx_pci.c xilinx_pci_exclude_device(struct pci_controller *hose, u_char bus, u8 devfn) devfn 371 arch/s390/pci/pci.c static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 377 arch/s390/pci/pci.c if (!zdev || devfn != ZPCI_DEVFN) devfn 385 arch/s390/pci/pci.c static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 391 arch/s390/pci/pci.c if (!zdev || devfn != ZPCI_DEVFN) devfn 12 arch/sh/drivers/pci/common.c int top_bus, int busnr, int devfn) devfn 19 arch/sh/drivers/pci/common.c dev.devfn = devfn; devfn 35 arch/sh/drivers/pci/common.c int top_bus, int bus, int devfn, int offset, type value) \ devfn 38 arch/sh/drivers/pci/common.c fake_pci_dev(hose, top_bus, bus, devfn), \ devfn 40 arch/sh/drivers/pci/fixups-cayman.c slot = path[i].slot = PCI_SLOT(dev->devfn); devfn 47 arch/sh/drivers/pci/fixups-cayman.c slot = PCI_SLOT(dev->devfn); devfn 36 arch/sh/drivers/pci/ops-dreamcast.c static int gapspci_config_access(unsigned char bus, unsigned int devfn) devfn 38 arch/sh/drivers/pci/ops-dreamcast.c return (bus == 0) && (devfn == 0); devfn 46 arch/sh/drivers/pci/ops-dreamcast.c static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) devfn 50 arch/sh/drivers/pci/ops-dreamcast.c if (!gapspci_config_access(bus->number, devfn)) devfn 62 arch/sh/drivers/pci/ops-dreamcast.c static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) devfn 64 arch/sh/drivers/pci/ops-dreamcast.c if (!gapspci_config_access(bus->number, devfn)) devfn 16 arch/sh/drivers/pci/ops-sh4.c #define CONFIG_CMD(bus, devfn, where) \ devfn 17 arch/sh/drivers/pci/ops-sh4.c (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3)) devfn 22 arch/sh/drivers/pci/ops-sh4.c static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, devfn 34 arch/sh/drivers/pci/ops-sh4.c pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); devfn 60 arch/sh/drivers/pci/ops-sh4.c static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, devfn 69 arch/sh/drivers/pci/ops-sh4.c pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); devfn 22 arch/sh/drivers/pci/ops-sh5.c static int sh5pci_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 25 arch/sh/drivers/pci/ops-sh5.c SH5PCI_WRITE(PAR, CONFIG_CMD(bus, devfn, where)); devfn 42 arch/sh/drivers/pci/ops-sh5.c static int sh5pci_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 45 arch/sh/drivers/pci/ops-sh5.c SH5PCI_WRITE(PAR, CONFIG_CMD(bus, devfn, where)); devfn 20 arch/sh/drivers/pci/ops-sh7786.c struct pci_bus *bus, unsigned int devfn, int where, u32 *data) devfn 25 arch/sh/drivers/pci/ops-sh7786.c dev = PCI_SLOT(devfn); devfn 26 arch/sh/drivers/pci/ops-sh7786.c func = PCI_FUNC(devfn); devfn 89 arch/sh/drivers/pci/ops-sh7786.c static int sh7786_pcie_read(struct pci_bus *bus, unsigned int devfn, devfn 103 arch/sh/drivers/pci/ops-sh7786.c devfn, where, &data); devfn 118 arch/sh/drivers/pci/ops-sh7786.c devfn, where, size, (unsigned long)*val); devfn 125 arch/sh/drivers/pci/ops-sh7786.c static int sh7786_pcie_write(struct pci_bus *bus, unsigned int devfn, devfn 139 arch/sh/drivers/pci/ops-sh7786.c devfn, where, &data); devfn 145 arch/sh/drivers/pci/ops-sh7786.c devfn, where, size, (unsigned long)val); devfn 159 arch/sh/drivers/pci/ops-sh7786.c devfn, where, &data); devfn 97 arch/sh/drivers/pci/pci-sh5.h #define SET_CONFIG_BITS(bus,devfn,where) ((((bus) << 16) | ((devfn) << 8) | ((where) & ~3)) | 0x80000000) devfn 100 arch/sh/drivers/pci/pci-sh5.h #define CONFIG_CMD(bus, devfn, where) SET_CONFIG_BITS(bus->number,devfn,where) devfn 238 arch/sh/drivers/pci/pci.c if (dev->bus->number == 0 && dev->devfn == 0) devfn 139 arch/sh/drivers/pci/pcie-sh7786.c if (pci_is_root_bus(dev->bus) && dev->devfn == 0) { devfn 48 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u8 *value); devfn 50 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u16 *value); devfn 52 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u32 *value); devfn 54 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u8 value); devfn 56 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u16 value); devfn 58 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u32 value); devfn 103 arch/sparc/kernel/leon_pci_grpci1.c unsigned int devfn, int where, u32 val); devfn 118 arch/sparc/kernel/leon_pci_grpci1.c unsigned int devfn, int where, u32 *val) devfn 126 arch/sparc/kernel/leon_pci_grpci1.c devfn += (0x8 * 6); /* start at AD16=Device0 */ devfn 129 arch/sparc/kernel/leon_pci_grpci1.c devfn = 0; /* special case: bridge controller itself */ devfn 137 arch/sparc/kernel/leon_pci_grpci1.c pci_conf = (u32 *) (priv->pci_conf | (devfn << 8) | (where & 0xfc)); devfn 155 arch/sparc/kernel/leon_pci_grpci1.c unsigned int devfn, int where, u32 *val) devfn 162 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); devfn 168 arch/sparc/kernel/leon_pci_grpci1.c unsigned int devfn, int where, u32 *val) devfn 173 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); devfn 180 arch/sparc/kernel/leon_pci_grpci1.c unsigned int devfn, int where, u32 val) devfn 189 arch/sparc/kernel/leon_pci_grpci1.c devfn += (0x8 * 6); /* start at AD16=Device0 */ devfn 192 arch/sparc/kernel/leon_pci_grpci1.c devfn = 0; /* special case: bridge controller itself */ devfn 200 arch/sparc/kernel/leon_pci_grpci1.c (devfn << 8) | (where & 0xfc)); devfn 207 arch/sparc/kernel/leon_pci_grpci1.c unsigned int devfn, int where, u32 val) devfn 214 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, bus, devfn, where&~3, &v); devfn 219 arch/sparc/kernel/leon_pci_grpci1.c return grpci1_cfg_w32(priv, bus, devfn, where & ~0x3, v); devfn 223 arch/sparc/kernel/leon_pci_grpci1.c unsigned int devfn, int where, u32 val) devfn 228 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); devfn 233 arch/sparc/kernel/leon_pci_grpci1.c return grpci1_cfg_w32(priv, bus, devfn, where & ~0x3, v); devfn 239 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_read_config(struct pci_bus *bus, unsigned int devfn, devfn 246 arch/sparc/kernel/leon_pci_grpci1.c if (PCI_SLOT(devfn) > 15 || busno > 15) { devfn 253 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r8(priv, busno, devfn, where, val); devfn 256 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r16(priv, busno, devfn, where, val); devfn 259 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, busno, devfn, where, val); devfn 269 arch/sparc/kernel/leon_pci_grpci1.c busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, *val, size); devfn 278 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_write_config(struct pci_bus *bus, unsigned int devfn, devfn 284 arch/sparc/kernel/leon_pci_grpci1.c if (PCI_SLOT(devfn) > 15 || busno > 15) devfn 290 arch/sparc/kernel/leon_pci_grpci1.c busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); devfn 297 arch/sparc/kernel/leon_pci_grpci1.c return grpci1_cfg_w8(priv, busno, devfn, where, val); devfn 299 arch/sparc/kernel/leon_pci_grpci1.c return grpci1_cfg_w16(priv, busno, devfn, where, val); devfn 301 arch/sparc/kernel/leon_pci_grpci1.c return grpci1_cfg_w32(priv, busno, devfn, where, val); devfn 235 arch/sparc/kernel/leon_pci_grpci2.c unsigned int devfn, int where, u32 *val) devfn 245 arch/sparc/kernel/leon_pci_grpci2.c devfn += (0x8 * 6); /* start at AD16=Device0 */ devfn 248 arch/sparc/kernel/leon_pci_grpci2.c devfn = 0; /* special case: bridge controller itself */ devfn 261 arch/sparc/kernel/leon_pci_grpci2.c (devfn << 8) | (where & 0xfc)); devfn 281 arch/sparc/kernel/leon_pci_grpci2.c unsigned int devfn, int where, u32 *val) devfn 288 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); devfn 294 arch/sparc/kernel/leon_pci_grpci2.c unsigned int devfn, int where, u32 *val) devfn 299 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); devfn 306 arch/sparc/kernel/leon_pci_grpci2.c unsigned int devfn, int where, u32 val) devfn 315 arch/sparc/kernel/leon_pci_grpci2.c devfn += (0x8 * 6); /* start at AD16=Device0 */ devfn 318 arch/sparc/kernel/leon_pci_grpci2.c devfn = 0; /* special case: bridge controller itself */ devfn 331 arch/sparc/kernel/leon_pci_grpci2.c (devfn << 8) | (where & 0xfc)); devfn 344 arch/sparc/kernel/leon_pci_grpci2.c unsigned int devfn, int where, u32 val) devfn 351 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, bus, devfn, where&~3, &v); devfn 356 arch/sparc/kernel/leon_pci_grpci2.c return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); devfn 360 arch/sparc/kernel/leon_pci_grpci2.c unsigned int devfn, int where, u32 val) devfn 365 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); devfn 370 arch/sparc/kernel/leon_pci_grpci2.c return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); devfn 376 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_read_config(struct pci_bus *bus, unsigned int devfn, devfn 383 arch/sparc/kernel/leon_pci_grpci2.c if (PCI_SLOT(devfn) > 15 || busno > 255) { devfn 390 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r8(priv, busno, devfn, where, val); devfn 393 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r16(priv, busno, devfn, where, val); devfn 396 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, busno, devfn, where, val); devfn 405 arch/sparc/kernel/leon_pci_grpci2.c "size=%d\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, devfn 415 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_write_config(struct pci_bus *bus, unsigned int devfn, devfn 421 arch/sparc/kernel/leon_pci_grpci2.c if (PCI_SLOT(devfn) > 15 || busno > 255) devfn 426 arch/sparc/kernel/leon_pci_grpci2.c "val=%x\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), devfn 434 arch/sparc/kernel/leon_pci_grpci2.c return grpci2_cfg_w8(priv, busno, devfn, where, val); devfn 436 arch/sparc/kernel/leon_pci_grpci2.c return grpci2_cfg_w16(priv, busno, devfn, where, val); devfn 438 arch/sparc/kernel/leon_pci_grpci2.c return grpci2_cfg_w32(priv, busno, devfn, where, val); devfn 485 arch/sparc/kernel/of_device_64.c unsigned int bus, devfn, slot, ret; devfn 495 arch/sparc/kernel/of_device_64.c devfn = (regs->phys_hi >> 8) & 0xff; devfn 496 arch/sparc/kernel/of_device_64.c slot = (devfn >> 3) & 0x1f; devfn 265 arch/sparc/kernel/pci.c struct pci_bus *bus, int devfn) devfn 290 arch/sparc/kernel/pci.c devfn, of_node_get_device_type(node)); devfn 296 arch/sparc/kernel/pci.c dev->devfn = devfn; devfn 321 arch/sparc/kernel/pci.c dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 548 arch/sparc/kernel/pci.c int reglen, devfn, prev_devfn; devfn 564 arch/sparc/kernel/pci.c devfn = (reg[0] >> 8) & 0xff; devfn 571 arch/sparc/kernel/pci.c if (devfn == prev_devfn) devfn 573 arch/sparc/kernel/pci.c prev_devfn = devfn; devfn 576 arch/sparc/kernel/pci.c dev = of_create_pci_dev(pbm, child, bus, devfn); devfn 21 arch/sparc/kernel/pci_common.c unsigned long devfn, devfn 32 arch/sparc/kernel/pci_common.c unsigned long devfn, devfn 37 arch/sparc/kernel/pci_common.c if (config_out_of_range(pbm, bus, devfn, reg)) devfn 41 arch/sparc/kernel/pci_common.c devfn <<= rbits; devfn 44 arch/sparc/kernel/pci_common.c return (void *) (pbm->config_space | bus | devfn | reg); devfn 53 arch/sparc/kernel/pci_common.c unsigned char bus, unsigned int devfn, devfn 60 arch/sparc/kernel/pci_common.c addr = sun4u_config_mkaddr(pbm, bus, devfn, where); devfn 95 arch/sparc/kernel/pci_common.c sun4u_read_pci_cfg_host(pbm, bus, devfn, devfn 100 arch/sparc/kernel/pci_common.c sun4u_read_pci_cfg_host(pbm, bus, devfn, devfn 108 arch/sparc/kernel/pci_common.c static int sun4u_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, devfn 129 arch/sparc/kernel/pci_common.c if (!bus_dev->number && !PCI_SLOT(devfn)) devfn 130 arch/sparc/kernel/pci_common.c return sun4u_read_pci_cfg_host(pbm, bus, devfn, where, devfn 133 arch/sparc/kernel/pci_common.c addr = sun4u_config_mkaddr(pbm, bus, devfn, where); devfn 166 arch/sparc/kernel/pci_common.c unsigned char bus, unsigned int devfn, devfn 171 arch/sparc/kernel/pci_common.c addr = sun4u_config_mkaddr(pbm, bus, devfn, where); devfn 203 arch/sparc/kernel/pci_common.c sun4u_write_pci_cfg_host(pbm, bus, devfn, devfn 205 arch/sparc/kernel/pci_common.c sun4u_write_pci_cfg_host(pbm, bus, devfn, devfn 212 arch/sparc/kernel/pci_common.c static int sun4u_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, devfn 219 arch/sparc/kernel/pci_common.c if (!bus_dev->number && !PCI_SLOT(devfn)) devfn 220 arch/sparc/kernel/pci_common.c return sun4u_write_pci_cfg_host(pbm, bus, devfn, where, devfn 223 arch/sparc/kernel/pci_common.c addr = sun4u_config_mkaddr(pbm, bus, devfn, where); devfn 257 arch/sparc/kernel/pci_common.c static int sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, devfn 263 arch/sparc/kernel/pci_common.c unsigned int device = PCI_SLOT(devfn); devfn 264 arch/sparc/kernel/pci_common.c unsigned int func = PCI_FUNC(devfn); devfn 267 arch/sparc/kernel/pci_common.c if (config_out_of_range(pbm, bus, devfn, where)) { devfn 290 arch/sparc/kernel/pci_common.c static int sun4v_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, devfn 296 arch/sparc/kernel/pci_common.c unsigned int device = PCI_SLOT(devfn); devfn 297 arch/sparc/kernel/pci_common.c unsigned int func = PCI_FUNC(devfn); devfn 299 arch/sparc/kernel/pci_common.c if (config_out_of_range(pbm, bus, devfn, where)) { devfn 82 arch/sparc/kernel/pci_schizo.c unsigned int devfn, devfn 90 arch/sparc/kernel/pci_schizo.c SCHIZO_CONFIG_ENCODE(bus, devfn, where)); devfn 274 arch/sparc/kernel/pci_sun4v.c device = PCI_SLOT(pdev->devfn); devfn 275 arch/sparc/kernel/pci_sun4v.c fun = PCI_FUNC(pdev->devfn); devfn 60 arch/sparc/kernel/pcic.c unsigned char devfn; /* Configuration address */ devfn 176 arch/sparc/kernel/pcic.c static int pcic_read_config_dword(unsigned int busno, unsigned int devfn, devfn 189 arch/sparc/kernel/pcic.c writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); devfn 213 arch/sparc/kernel/pcic.c static int pcic_read_config(struct pci_bus *bus, unsigned int devfn, devfn 221 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, &v); devfn 226 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, &v); devfn 231 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, val); devfn 237 arch/sparc/kernel/pcic.c static int pcic_write_config_dword(unsigned int busno, unsigned int devfn, devfn 246 arch/sparc/kernel/pcic.c writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); devfn 252 arch/sparc/kernel/pcic.c static int pcic_write_config(struct pci_bus *bus, unsigned int devfn, devfn 260 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, &v); devfn 263 arch/sparc/kernel/pcic.c return pcic_write_config_dword(bus->number, devfn, where&~3, v); devfn 266 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, &v); devfn 269 arch/sparc/kernel/pcic.c return pcic_write_config_dword(bus->number, devfn, where&~3, v); devfn 272 arch/sparc/kernel/pcic.c return pcic_write_config_dword(bus->number, devfn, where, val); devfn 457 arch/sparc/kernel/pcic.c unsigned long devfn = (regs[0].which_io >> 8) & 0xff; devfn 458 arch/sparc/kernel/pcic.c if(devfn == pdev->devfn) devfn 549 arch/sparc/kernel/pcic.c if (p->busno == dev->bus->number && p->devfn == dev->devfn) devfn 97 arch/sparc/kernel/prom_32.c unsigned int devfn; devfn 104 arch/sparc/kernel/prom_32.c devfn = (regs->phys_hi >> 8) & 0xff; devfn 105 arch/sparc/kernel/prom_32.c if (devfn & 0x07) { devfn 108 arch/sparc/kernel/prom_32.c devfn >> 3, devfn 109 arch/sparc/kernel/prom_32.c devfn & 0x07); devfn 113 arch/sparc/kernel/prom_32.c devfn >> 3); devfn 167 arch/sparc/kernel/prom_64.c unsigned int devfn; devfn 174 arch/sparc/kernel/prom_64.c devfn = (regs->phys_hi >> 8) & 0xff; devfn 175 arch/sparc/kernel/prom_64.c if (devfn & 0x07) { devfn 178 arch/sparc/kernel/prom_64.c devfn >> 3, devfn 179 arch/sparc/kernel/prom_64.c devfn & 0x07); devfn 183 arch/sparc/kernel/prom_64.c devfn >> 3); devfn 121 arch/sparc/kernel/prom_irqtrans.c unsigned int bus, devfn; devfn 127 arch/sparc/kernel/prom_irqtrans.c devfn = (phys_hi >> 8) & 0xff; devfn 129 arch/sparc/kernel/prom_irqtrans.c config_space |= SABRE_CONFIG_ENCODE(bus, devfn, 0x00); devfn 22 arch/sparc/kernel/psycho_common.h unsigned int devfn, devfn 27 arch/sparc/kernel/psycho_common.h PSYCHO_CONFIG_ENCODE(bus, devfn, where)); devfn 21 arch/unicore32/kernel/pci.c #define CONFIG_CMD(bus, devfn, where) \ devfn 22 arch/unicore32/kernel/pci.c (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3)) devfn 25 arch/unicore32/kernel/pci.c puv3_read_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 28 arch/unicore32/kernel/pci.c writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); devfn 44 arch/unicore32/kernel/pci.c puv3_write_config(struct pci_bus *bus, unsigned int devfn, int where, devfn 47 arch/unicore32/kernel/pci.c writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); devfn 104 arch/unicore32/kernel/pci.c if (dev->devfn == 0x00) devfn 106 arch/unicore32/kernel/pci.c else if (dev->devfn == 0x08) devfn 108 arch/unicore32/kernel/pci.c else if (dev->devfn == 0x10) devfn 110 arch/unicore32/kernel/pci.c else if (dev->devfn == 0x18) devfn 114 arch/unicore32/kernel/pci.c if (dev->devfn == 0x30) devfn 116 arch/unicore32/kernel/pci.c else if (dev->devfn == 0x60) devfn 118 arch/unicore32/kernel/pci.c else if (dev->devfn == 0x58) devfn 123 arch/unicore32/kernel/pci.c if (dev->devfn == 0x00) devfn 1017 arch/x86/events/intel/uncore.c unsigned int devfn; devfn 1022 arch/x86/events/intel/uncore.c devfn = PCI_DEVFN(UNCORE_PCI_DEV_DEV(ids->driver_data), devfn 1024 arch/x86/events/intel/uncore.c if (devfn == pdev->devfn) { devfn 1049 arch/x86/events/intel/uncore.c pmu->func_id = pdev->devfn; devfn 1051 arch/x86/events/intel/uncore.c WARN_ON_ONCE(pmu->func_id != pdev->devfn); devfn 96 arch/x86/include/asm/amd_nb.h PCI_SLOT(misc->devfn) == PCI_SLOT(pdev->devfn)) devfn 197 arch/x86/include/asm/io_apic.h extern int IO_APIC_get_PCI_irq_vector(int bus, int devfn, int pin); devfn 68 arch/x86/include/asm/pci_x86.h u8 bus, devfn; /* Bus, device and function */ devfn 103 arch/x86/include/asm/pci_x86.h int (*read)(unsigned int domain, unsigned int bus, unsigned int devfn, devfn 105 arch/x86/include/asm/pci_x86.h int (*write)(unsigned int domain, unsigned int bus, unsigned int devfn, devfn 377 arch/x86/kernel/acpi/boot.c unsigned int devfn; devfn 388 arch/x86/kernel/acpi/boot.c devfn = pdev->devfn; devfn 396 arch/x86/kernel/acpi/boot.c mp_irq.srcbusirq = (((devfn >> 3) & 0x1f) << 2) | ((pin - 1) & 3); devfn 440 arch/x86/kernel/cpu/mce/inject.c __func__, PCI_FUNC(F3->devfn), NBCFG); devfn 454 arch/x86/kernel/cpu/mce/inject.c __func__, PCI_FUNC(F3->devfn), NBCFG); devfn 539 arch/x86/kernel/quirks.c unsigned int devfn; devfn 543 arch/x86/kernel/quirks.c devfn = PCI_DEVFN(PCI_SLOT(dev->devfn), 0); devfn 544 arch/x86/kernel/quirks.c nb_ht = pci_get_slot(dev->bus, devfn); devfn 175 arch/x86/pci/ce4100.c int bridge_read(unsigned int devfn, int reg, int len, u32 *value) devfn 204 arch/x86/pci/ce4100.c pci_direct_conf1.read(0, 0, devfn, devfn 243 arch/x86/pci/ce4100.c static int ce4100_bus1_read(unsigned int devfn, int reg, int len, u32 *value) devfn 249 arch/x86/pci/ce4100.c if (bus1_fixups[i].dev_func == devfn && devfn 264 arch/x86/pci/ce4100.c unsigned int devfn, int reg, int len, u32 *value) devfn 268 arch/x86/pci/ce4100.c if (bus == 1 && !ce4100_bus1_read(devfn, reg, len, value)) devfn 271 arch/x86/pci/ce4100.c if (bus == 0 && (PCI_DEVFN(1, 0) == devfn) && devfn 272 arch/x86/pci/ce4100.c !bridge_read(devfn, reg, len, value)) devfn 275 arch/x86/pci/ce4100.c return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); devfn 278 arch/x86/pci/ce4100.c static int ce4100_bus1_write(unsigned int devfn, int reg, int len, u32 value) devfn 284 arch/x86/pci/ce4100.c if (bus1_fixups[i].dev_func == devfn && devfn 298 arch/x86/pci/ce4100.c unsigned int devfn, int reg, int len, u32 value) devfn 302 arch/x86/pci/ce4100.c if (bus == 1 && !ce4100_bus1_write(devfn, reg, len, value)) devfn 306 arch/x86/pci/ce4100.c if (bus == 0 && PCI_DEVFN(1, 0) == devfn && devfn 310 arch/x86/pci/ce4100.c return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); devfn 39 arch/x86/pci/common.c int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, devfn 43 arch/x86/pci/common.c return raw_pci_ops->read(domain, bus, devfn, reg, len, val); devfn 45 arch/x86/pci/common.c return raw_pci_ext_ops->read(domain, bus, devfn, reg, len, val); devfn 49 arch/x86/pci/common.c int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn, devfn 53 arch/x86/pci/common.c return raw_pci_ops->write(domain, bus, devfn, reg, len, val); devfn 55 arch/x86/pci/common.c return raw_pci_ext_ops->write(domain, bus, devfn, reg, len, val); devfn 59 arch/x86/pci/common.c static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) devfn 62 arch/x86/pci/common.c devfn, where, size, value); devfn 65 arch/x86/pci/common.c static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) devfn 68 arch/x86/pci/common.c devfn, where, size, value); devfn 688 arch/x86/pci/common.c (PCI_SLOT(dev->devfn) == rom->device) && devfn 689 arch/x86/pci/common.c (PCI_FUNC(dev->devfn) == rom->function) && devfn 17 arch/x86/pci/direct.c #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ devfn 19 arch/x86/pci/direct.c | (devfn << 8) | (reg & 0xFC)) devfn 22 arch/x86/pci/direct.c unsigned int devfn, int reg, int len, u32 *value) devfn 26 arch/x86/pci/direct.c if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) { devfn 33 arch/x86/pci/direct.c outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); devfn 53 arch/x86/pci/direct.c unsigned int devfn, int reg, int len, u32 value) devfn 57 arch/x86/pci/direct.c if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) devfn 62 arch/x86/pci/direct.c outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); devfn 96 arch/x86/pci/direct.c unsigned int devfn, int reg, int len, u32 *value) devfn 102 arch/x86/pci/direct.c if ((bus > 255) || (devfn > 255) || (reg > 255)) { devfn 107 arch/x86/pci/direct.c dev = PCI_SLOT(devfn); devfn 108 arch/x86/pci/direct.c fn = PCI_FUNC(devfn); devfn 138 arch/x86/pci/direct.c unsigned int devfn, int reg, int len, u32 value) devfn 144 arch/x86/pci/direct.c if ((bus > 255) || (devfn > 255) || (reg > 255)) devfn 147 arch/x86/pci/direct.c dev = PCI_SLOT(devfn); devfn 148 arch/x86/pci/direct.c fn = PCI_FUNC(devfn); devfn 198 arch/x86/pci/direct.c int devfn; devfn 207 arch/x86/pci/direct.c for (devfn = 0; devfn < 0x100; devfn++) { devfn 208 arch/x86/pci/direct.c if (o->read(0, 0, devfn, PCI_CLASS_DEVICE, 2, &x)) devfn 213 arch/x86/pci/direct.c if (o->read(0, 0, devfn, PCI_VENDOR_ID, 2, &x)) devfn 205 arch/x86/pci/fixup.c static int quirk_pcie_aspm_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) devfn 208 arch/x86/pci/fixup.c devfn, where, size, value); devfn 215 arch/x86/pci/fixup.c static int quirk_pcie_aspm_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) devfn 219 arch/x86/pci/fixup.c offset = quirk_aspm_offset[GET_INDEX(bus->self->device, devfn)]; devfn 225 arch/x86/pci/fixup.c devfn, where, size, value); devfn 279 arch/x86/pci/fixup.c quirk_aspm_offset[GET_INDEX(pdev->device, dev->devfn)] = devfn 626 arch/x86/pci/fixup.c pdev->bus->number != 0 || pdev->devfn != PCI_DEVFN(0x1c, 0)) devfn 62 arch/x86/pci/intel_mid_pci.c static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn) devfn 74 arch/x86/pci/intel_mid_pci.c devfn, pos, 4, &pcie_cap)) devfn 83 arch/x86/pci/intel_mid_pci.c devfn, pos + 4, 4, &cap_data); devfn 94 arch/x86/pci/intel_mid_pci.c static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn, devfn 107 arch/x86/pci/intel_mid_pci.c raw_pci_ext_ops->read(domain, busnum, devfn, devfn 130 arch/x86/pci/intel_mid_pci.c return raw_pci_ext_ops->write(domain, busnum, devfn, reg, 4, devfn 135 arch/x86/pci/intel_mid_pci.c return raw_pci_ext_ops->write(domain, busnum, devfn, reg, len, val); devfn 148 arch/x86/pci/intel_mid_pci.c static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) devfn 160 arch/x86/pci/intel_mid_pci.c if (bus == 0 && (devfn == PCI_DEVFN(2, 0) devfn 161 arch/x86/pci/intel_mid_pci.c || devfn == PCI_DEVFN(0, 0) devfn 162 arch/x86/pci/intel_mid_pci.c || devfn == PCI_DEVFN(3, 0))) devfn 167 arch/x86/pci/intel_mid_pci.c static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 170 arch/x86/pci/intel_mid_pci.c if (type1_access_ok(bus->number, devfn, where)) devfn 172 arch/x86/pci/intel_mid_pci.c devfn, where, size, value); devfn 174 arch/x86/pci/intel_mid_pci.c devfn, where, size, value); devfn 177 arch/x86/pci/intel_mid_pci.c static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 195 arch/x86/pci/intel_mid_pci.c offset = fixed_bar_cap(bus, devfn); devfn 198 arch/x86/pci/intel_mid_pci.c return pci_device_update_fixed(bus, devfn, where, size, value, devfn 207 arch/x86/pci/intel_mid_pci.c if (type1_access_ok(bus->number, devfn, where)) devfn 209 arch/x86/pci/intel_mid_pci.c devfn, where, size, value); devfn 210 arch/x86/pci/intel_mid_pci.c return raw_pci_ext_ops->write(pci_domain_nr(bus), bus->number, devfn, devfn 323 arch/x86/pci/intel_mid_pci.c if (type1_access_ok(dev->bus->number, dev->devfn, PCI_DEVICE_ID)) devfn 380 arch/x86/pci/intel_mid_pci.c offset = fixed_bar_cap(dev->bus, dev->devfn); devfn 381 arch/x86/pci/intel_mid_pci.c if (!offset || PCI_DEVFN(2, 0) == dev->devfn || devfn 382 arch/x86/pci/intel_mid_pci.c PCI_DEVFN(2, 2) == dev->devfn) devfn 132 arch/x86/pci/irq.c DBG(KERN_DEBUG "%02x:%02x slot=%02x", e->bus, e->devfn/8, e->slot); devfn 876 arch/x86/pci/irq.c PCI_SLOT(info->devfn) == PCI_SLOT(dev->devfn)) devfn 1217 arch/x86/pci/irq.c PCI_SLOT(dev->devfn), pin - 1); devfn 1230 arch/x86/pci/irq.c PCI_SLOT(bridge->devfn), devfn 40 arch/x86/pci/legacy.c int devfn; devfn 46 arch/x86/pci/legacy.c for (devfn = 0; devfn < 256; devfn += stride) { devfn 47 arch/x86/pci/legacy.c if (!raw_pci_read(0, busn, devfn, PCI_VENDOR_ID, 2, &l) && devfn 49 arch/x86/pci/legacy.c DBG("Found device at %02x:%02x [%04x]\n", busn, devfn, l); devfn 305 arch/x86/pci/mmconfig-shared.c u32 devfn; devfn 346 arch/x86/pci/mmconfig-shared.c u32 bus, devfn; devfn 358 arch/x86/pci/mmconfig-shared.c devfn = pci_mmcfg_probes[i].devfn; devfn 359 arch/x86/pci/mmconfig-shared.c raw_pci_ops->read(0, bus, devfn, 0, 4, &l); devfn 27 arch/x86/pci/mmconfig_32.c static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) devfn 39 arch/x86/pci/mmconfig_32.c static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) devfn 41 arch/x86/pci/mmconfig_32.c u32 dev_base = base | PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12); devfn 52 arch/x86/pci/mmconfig_32.c unsigned int devfn, int reg, int len, u32 *value) devfn 57 arch/x86/pci/mmconfig_32.c if ((bus > 255) || (devfn > 255) || (reg > 4095)) { devfn 63 arch/x86/pci/mmconfig_32.c base = get_base_addr(seg, bus, devfn); devfn 71 arch/x86/pci/mmconfig_32.c pci_exp_set_dev_base(base, bus, devfn); devfn 91 arch/x86/pci/mmconfig_32.c unsigned int devfn, int reg, int len, u32 value) devfn 96 arch/x86/pci/mmconfig_32.c if ((bus > 255) || (devfn > 255) || (reg > 4095)) devfn 100 arch/x86/pci/mmconfig_32.c base = get_base_addr(seg, bus, devfn); devfn 108 arch/x86/pci/mmconfig_32.c pci_exp_set_dev_base(base, bus, devfn); devfn 19 arch/x86/pci/mmconfig_64.c static char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) devfn 24 arch/x86/pci/mmconfig_64.c return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); devfn 29 arch/x86/pci/mmconfig_64.c unsigned int devfn, int reg, int len, u32 *value) devfn 34 arch/x86/pci/mmconfig_64.c if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { devfn 40 arch/x86/pci/mmconfig_64.c addr = pci_dev_base(seg, bus, devfn); devfn 63 arch/x86/pci/mmconfig_64.c unsigned int devfn, int reg, int len, u32 value) devfn 68 arch/x86/pci/mmconfig_64.c if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) devfn 72 arch/x86/pci/mmconfig_64.c addr = pci_dev_base(seg, bus, devfn); devfn 21 arch/x86/pci/numachip.c static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) devfn 26 arch/x86/pci/numachip.c return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); devfn 31 arch/x86/pci/numachip.c unsigned int devfn, int reg, int len, u32 *value) devfn 36 arch/x86/pci/numachip.c if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { devfn 42 arch/x86/pci/numachip.c if (unlikely(bus == 0 && devfn >= limit)) { devfn 48 arch/x86/pci/numachip.c addr = pci_dev_base(seg, bus, devfn); devfn 71 arch/x86/pci/numachip.c unsigned int devfn, int reg, int len, u32 value) devfn 76 arch/x86/pci/numachip.c if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) devfn 80 arch/x86/pci/numachip.c if (unlikely(bus == 0 && devfn >= limit)) devfn 84 arch/x86/pci/numachip.c addr = pci_dev_base(seg, bus, devfn); devfn 173 arch/x86/pci/olpc.c static int is_simulated(unsigned int bus, unsigned int devfn) devfn 175 arch/x86/pci/olpc.c return (!bus && ((PCI_SLOT(devfn) == NB_SLOT) || devfn 176 arch/x86/pci/olpc.c (PCI_SLOT(devfn) == SB_SLOT))); devfn 201 arch/x86/pci/olpc.c unsigned int devfn, int reg, int len, uint32_t *value) devfn 208 arch/x86/pci/olpc.c if (!is_simulated(bus, devfn)) devfn 209 arch/x86/pci/olpc.c return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); devfn 218 arch/x86/pci/olpc.c switch (devfn) { devfn 263 arch/x86/pci/olpc.c unsigned int devfn, int reg, int len, uint32_t value) devfn 268 arch/x86/pci/olpc.c if (!is_simulated(bus, devfn)) devfn 269 arch/x86/pci/olpc.c return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); devfn 294 arch/x86/pci/olpc.c " %x reg %x value %x\n", devfn, reg, value); devfn 184 arch/x86/pci/pcbios.c unsigned int devfn, int reg, int len, u32 *value) devfn 188 arch/x86/pci/pcbios.c unsigned long bx = (bus << 8) | devfn; devfn 192 arch/x86/pci/pcbios.c if (!value || (bus > 255) || (devfn > 255) || (reg > 255)) devfn 234 arch/x86/pci/pcbios.c unsigned int devfn, int reg, int len, u32 value) devfn 238 arch/x86/pci/pcbios.c unsigned long bx = (bus << 8) | devfn; devfn 242 arch/x86/pci/pcbios.c if ((bus > 255) || (devfn > 255) || (reg > 255)) devfn 415 arch/x86/pci/pcbios.c "b" ((dev->bus->number << 8) | dev->devfn), devfn 289 arch/x86/pci/xen.c map_irq.devfn = dev->devfn; devfn 362 arch/x86/pci/xen.c restore_ext.devfn = dev->devfn; devfn 373 arch/x86/pci/xen.c restore.devfn = dev->devfn; devfn 27 arch/x86/platform/intel-mid/device_libs/platform_mrfld_sd.c unsigned int func = PCI_FUNC(pdev->devfn); devfn 121 arch/xtensa/lib/pci-auto.c pciauto_setup_irq(struct pci_controller* pci_ctrl,struct pci_dev *dev,int devfn) devfn 134 arch/xtensa/lib/pci-auto.c irq = pci_ctrl->map_irq(dev, PCI_SLOT(devfn), pin); devfn 257 arch/xtensa/lib/pci-auto.c pciauto_dev.devfn = pci_devfn; devfn 469 drivers/acpi/apei/ghes.c unsigned int devfn; devfn 472 drivers/acpi/apei/ghes.c devfn = PCI_DEVFN(pcie_err->device_id.device, devfn 486 drivers/acpi/apei/ghes.c devfn, aer_severity, devfn 146 drivers/acpi/pci_irq.c int device = pci_ari_enabled(dev->bus) ? 0 : PCI_SLOT(dev->devfn); devfn 10 drivers/acpi/reboot.c unsigned int devfn; devfn 18 drivers/acpi/reboot.c devfn = PCI_DEVFN((rr->address >> 32) & 0xffff, devfn 22 drivers/acpi/reboot.c pci_bus_write_config_byte(bus0, devfn, devfn 966 drivers/ata/ahci.c if (pdev->bus->number == 0 && pdev->devfn == PCI_DEVFN(0x1f, 2) && devfn 1099 drivers/ata/ahci.c if (pdev->bus->number != 0 || pdev->devfn != PCI_DEVFN(0x12, 0) || devfn 1152 drivers/ata/ahci.c return slot == PCI_SLOT(pdev->devfn); devfn 1233 drivers/ata/ahci.c if (!dmi || pdev->bus->number || pdev->devfn != PCI_DEVFN(0x1f, 2)) devfn 1342 drivers/ata/ahci.c return pdev->bus->number == (val >> 8) && pdev->devfn == (val & 0xff); devfn 186 drivers/ata/ata_generic.c (!(PCI_FUNC(dev->devfn) & 1))) devfn 191 drivers/ata/ata_generic.c (!(PCI_FUNC(dev->devfn) & 1))) devfn 1564 drivers/ata/ata_piix.c return slot == PCI_SLOT(pdev->devfn); devfn 138 drivers/ata/pata_cypress.c if (PCI_FUNC(pdev->devfn) != 1) devfn 707 drivers/ata/pata_hpt37x.c if (PCI_FUNC(pdev->devfn) & 1) { devfn 710 drivers/ata/pata_hpt37x.c pdev_0 = pci_get_slot(pdev->bus, pdev->devfn - 1); devfn 900 drivers/ata/pata_hpt37x.c if (!(PCI_FUNC(dev->devfn) & 1)) devfn 369 drivers/ata/pata_ns87415.c if (PCI_SLOT(pdev->devfn) == 0x0E) devfn 303 drivers/ata/pata_serverworks.c if (!(PCI_FUNC(pdev->devfn) & 1)) { devfn 340 drivers/ata/pata_serverworks.c if (!(PCI_FUNC(pdev->devfn) & 1)) devfn 273 drivers/ata/pata_sl82c105.c PCI_DEVFN(PCI_SLOT(pdev->devfn), 0)); devfn 714 drivers/ata/sata_sil.c return slot == PCI_SLOT(pdev->devfn); devfn 610 drivers/atm/fore200e.c pci_dev->bus->number, PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn)); devfn 3192 drivers/atm/iphase.c pdev->bus->number, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));) devfn 231 drivers/bcma/driver_pci_host.c unsigned int devfn, devfn 243 drivers/bcma/driver_pci_host.c err = bcma_extpci_read_config(pc, PCI_SLOT(devfn), devfn 244 drivers/bcma/driver_pci_host.c PCI_FUNC(devfn), reg, val, size); devfn 251 drivers/bcma/driver_pci_host.c unsigned int devfn, devfn 263 drivers/bcma/driver_pci_host.c err = bcma_extpci_write_config(pc, PCI_SLOT(devfn), devfn 264 drivers/bcma/driver_pci_host.c PCI_FUNC(devfn), reg, &val, size); devfn 536 drivers/bcma/driver_pci_host.c if (PCI_SLOT(dev->devfn) != 0) devfn 563 drivers/bcma/driver_pci_host.c if (PCI_SLOT(dev->devfn) == 0) devfn 1349 drivers/char/agp/intel-gtt.c if (gmch_device && PCI_FUNC(gmch_device->devfn) != 0) { devfn 124 drivers/crypto/ccp/sp-pci.c if (PCI_SLOT(pdev_new->devfn) < PCI_SLOT(pdev_cur->devfn)) devfn 127 drivers/crypto/ccp/sp-pci.c if (PCI_FUNC(pdev_new->devfn) < PCI_FUNC(pdev_cur->devfn)) devfn 192 drivers/crypto/qat/qat_c3xxx/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 193 drivers/crypto/qat/qat_c3xxx/adf_drv.c PCI_FUNC(pdev->devfn)); devfn 176 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 177 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c PCI_FUNC(pdev->devfn)); devfn 192 drivers/crypto/qat/qat_c62x/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 193 drivers/crypto/qat/qat_c62x/adf_drv.c PCI_FUNC(pdev->devfn)); devfn 176 drivers/crypto/qat/qat_c62xvf/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 177 drivers/crypto/qat/qat_c62xvf/adf_drv.c PCI_FUNC(pdev->devfn)); devfn 414 drivers/crypto/qat/qat_common/adf_ctl_drv.c dev_info.dev = PCI_SLOT(accel_to_pci_dev(accel_dev)->devfn); devfn 415 drivers/crypto/qat/qat_common/adf_ctl_drv.c dev_info.fun = PCI_FUNC(accel_to_pci_dev(accel_dev)->devfn); devfn 68 drivers/crypto/qat/qat_common/adf_dev_mgr.c return ((7 * (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)) + devfn 69 drivers/crypto/qat/qat_common/adf_dev_mgr.c PCI_FUNC(accel_to_pci_dev(vf)->devfn) + devfn 70 drivers/crypto/qat/qat_common/adf_dev_mgr.c (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)); devfn 243 drivers/crypto/qat/qat_common/adf_vf_isr.c "qat_%02x:%02d.%02d", pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 244 drivers/crypto/qat/qat_common/adf_vf_isr.c PCI_FUNC(pdev->devfn)); devfn 192 drivers/crypto/qat/qat_dh895xcc/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 193 drivers/crypto/qat/qat_dh895xcc/adf_drv.c PCI_FUNC(pdev->devfn)); devfn 176 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 177 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c PCI_FUNC(pdev->devfn)); devfn 130 drivers/dma/dw-edma/dw-edma-pcie.c chip->id = pdev->devfn; devfn 52 drivers/dma/dw/pci.c chip->id = pdev->devfn; devfn 64 drivers/dma/ioat/dca.c return (pci->bus->number << 8) | pci->devfn; devfn 69 drivers/edac/amd64_edac.c func, PCI_FUNC(pdev->devfn), offset); devfn 82 drivers/edac/amd64_edac.c func, PCI_FUNC(pdev->devfn), offset); devfn 1217 drivers/edac/amd64_edac.c (PCI_SLOT(dev->devfn) == PCI_SLOT(related->devfn))) devfn 59 drivers/edac/amd8131_edac.c .devfn = DEVFN_PCIX_BRIDGE_NORTH_A, devfn 64 drivers/edac/amd8131_edac.c .devfn = DEVFN_PCIX_BRIDGE_NORTH_B, devfn 69 drivers/edac/amd8131_edac.c .devfn = DEVFN_PCIX_BRIDGE_SOUTH_A, devfn 74 drivers/edac/amd8131_edac.c .devfn = DEVFN_PCIX_BRIDGE_SOUTH_B, devfn 242 drivers/edac/amd8131_edac.c if (dev_info->devfn == dev->devfn) devfn 259 drivers/edac/amd8131_edac.c dev_info->devfn, dev_info->ctl_name); devfn 295 drivers/edac/amd8131_edac.c dev_info->devfn, dev_info->ctl_name); devfn 306 drivers/edac/amd8131_edac.c if (dev_info->devfn == dev->devfn) devfn 80 drivers/edac/amd8131_edac.h int devfn; devfn 807 drivers/edac/i5000_edac.c if (PCI_FUNC(pdev->devfn) == 1) devfn 833 drivers/edac/i5000_edac.c if (PCI_FUNC(pdev->devfn) == 2) devfn 1365 drivers/edac/i5000_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); devfn 1368 drivers/edac/i5000_edac.c if (PCI_FUNC(pdev->devfn) != 0) devfn 651 drivers/edac/i5100_edac.c if (PCI_FUNC(ret->devfn) == func) devfn 1004 drivers/edac/i5100_edac.c if (PCI_FUNC(pdev->devfn) != 1) devfn 746 drivers/edac/i5400_edac.c if (PCI_FUNC(pdev->devfn) == 1) devfn 770 drivers/edac/i5400_edac.c if (PCI_FUNC(pdev->devfn) == 2) devfn 1273 drivers/edac/i5400_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); devfn 1276 drivers/edac/i5400_edac.c if (PCI_FUNC(pdev->devfn) != 0) devfn 948 drivers/edac/i7300_edac.c switch (PCI_FUNC(pdev->devfn)) { devfn 1036 drivers/edac/i7300_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); devfn 1039 drivers/edac/i7300_edac.c if (PCI_FUNC(pdev->devfn) != 0) devfn 872 drivers/edac/i7core_edac.c dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn), devfn 887 drivers/edac/i7core_edac.c dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn), devfn 1246 drivers/edac/i7core_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); devfn 1385 drivers/edac/i7core_edac.c if (unlikely(PCI_SLOT(pdev->devfn) != dev_descr->dev || devfn 1386 drivers/edac/i7core_edac.c PCI_FUNC(pdev->devfn) != dev_descr->func)) { devfn 1391 drivers/edac/i7core_edac.c bus, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), devfn 1468 drivers/edac/i7core_edac.c func = PCI_FUNC(pdev->devfn); devfn 1469 drivers/edac/i7core_edac.c slot = PCI_SLOT(pdev->devfn); devfn 1512 drivers/edac/i7core_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), devfn 1515 drivers/edac/i7core_edac.c if (PCI_SLOT(pdev->devfn) == 3 && devfn 1516 drivers/edac/i7core_edac.c PCI_FUNC(pdev->devfn) == 2) devfn 2314 drivers/edac/sb_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); devfn 2623 drivers/edac/sb_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), devfn 2714 drivers/edac/sb_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), devfn 2795 drivers/edac/sb_edac.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), devfn 2830 drivers/edac/sb_edac.c dev = (pdev->devfn >> 3) & 0x1f; devfn 2831 drivers/edac/sb_edac.c func = pdev->devfn & 0x7; devfn 54 drivers/edac/skx_base.c u16 devfn[SKX_NUM_IMC]; devfn 90 drivers/edac/skx_base.c if (m->devfn[i] == pdev->devfn) devfn 509 drivers/edac/thunderx_edac.c xbits = PCI_FUNC(lmc->pdev->devfn); devfn 654 drivers/edac/thunderx_edac.c int ret = PCI_FUNC(pdev->devfn); devfn 605 drivers/firmware/broadcom/bcm47xx_sprom.c PCI_SLOT(bus->host_pci->devfn)); devfn 663 drivers/firmware/broadcom/bcm47xx_sprom.c PCI_SLOT(bus->host_pci->devfn)); devfn 324 drivers/firmware/dmi_scan.c int devfn, const char *name, int type) devfn 330 drivers/firmware/dmi_scan.c segment == 0xFFFF && bus == 0xFF && devfn == 0xFF) devfn 340 drivers/firmware/dmi_scan.c dev->devfn = devfn; devfn 67 drivers/firmware/efi/dev-path-parser.c unsigned int devfn = *(unsigned int *)data; devfn 69 drivers/firmware/efi/dev-path-parser.c return dev_is_pci(dev) && to_pci_dev(dev)->devfn == devfn; devfn 75 drivers/firmware/efi/dev-path-parser.c unsigned int devfn; devfn 82 drivers/firmware/efi/dev-path-parser.c devfn = PCI_DEVFN(node->pci.dev, node->pci.fn); devfn 84 drivers/firmware/efi/dev-path-parser.c *child = device_find_child(parent, &devfn, match_pci_dev); devfn 685 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c atcs_input.client_id = adev->pdev->devfn | (adev->pdev->bus->number << 8); devfn 386 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c vhdr->PCIDevice == PCI_SLOT(adev->pdev->devfn) && devfn 387 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c vhdr->PCIFunction == PCI_FUNC(adev->pdev->devfn) && devfn 198 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c PCI_BUS_NUM(pdev->devfn), devfn 199 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c PCI_SLOT(pdev->devfn), devfn 200 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c PCI_FUNC(pdev->devfn), devfn 1078 drivers/gpu/drm/amd/amdkfd/kfd_topology.c buf[0] = gpu->pdev->devfn; devfn 598 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_BUS_NUM(adev->pdev->devfn), devfn 599 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_SLOT(adev->pdev->devfn), devfn 600 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_FUNC(adev->pdev->devfn)); devfn 603 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_BUS_NUM(adev->pdev->devfn), devfn 604 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_SLOT(adev->pdev->devfn), devfn 605 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_FUNC(adev->pdev->devfn)); devfn 608 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_BUS_NUM(adev->pdev->devfn), devfn 609 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_SLOT(adev->pdev->devfn), devfn 610 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_FUNC(adev->pdev->devfn)); devfn 614 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_BUS_NUM(adev->pdev->devfn), devfn 615 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_SLOT(adev->pdev->devfn), devfn 616 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_FUNC(adev->pdev->devfn)); devfn 619 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_BUS_NUM(adev->pdev->devfn), devfn 620 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_SLOT(adev->pdev->devfn), devfn 621 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_FUNC(adev->pdev->devfn)); devfn 624 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_BUS_NUM(adev->pdev->devfn), devfn 625 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_SLOT(adev->pdev->devfn), devfn 626 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c PCI_FUNC(adev->pdev->devfn)); devfn 1537 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_BUS_NUM(adev->pdev->devfn), devfn 1538 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_SLOT(adev->pdev->devfn), devfn 1539 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_FUNC(adev->pdev->devfn)); devfn 1543 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_BUS_NUM(adev->pdev->devfn), devfn 1544 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_SLOT(adev->pdev->devfn), devfn 1545 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_FUNC(adev->pdev->devfn)); devfn 1550 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_BUS_NUM(adev->pdev->devfn), devfn 1551 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_SLOT(adev->pdev->devfn), devfn 1552 drivers/gpu/drm/amd/powerplay/smu_v11_0.c PCI_FUNC(adev->pdev->devfn)); devfn 130 drivers/gpu/drm/drm_pci.c PCI_SLOT(dev->pdev->devfn), devfn 131 drivers/gpu/drm/drm_pci.c PCI_FUNC(dev->pdev->devfn)); devfn 143 drivers/gpu/drm/drm_pci.c p->devnum != PCI_SLOT(dev->pdev->devfn) || p->funcnum != PCI_FUNC(dev->pdev->devfn)) devfn 951 drivers/gpu/drm/i915/i915_pci.c if (PCI_FUNC(pdev->devfn)) devfn 93 drivers/gpu/drm/i915/intel_sideband.c u32 devfn, u32 port, u32 opcode, devfn 118 drivers/gpu/drm/i915/intel_sideband.c (devfn << IOSF_DEVFN_SHIFT) | devfn 104 drivers/gpu/drm/nouveau/nouveau_drm.c name |= PCI_SLOT(pdev->devfn) << 8; devfn 105 drivers/gpu/drm/nouveau/nouveau_drm.c return name | PCI_FUNC(pdev->devfn); devfn 1674 drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c PCI_SLOT(pci_dev->devfn) << 8 | devfn 1675 drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c PCI_FUNC(pci_dev->devfn), name, devfn 624 drivers/gpu/drm/radeon/radeon_acpi.c atcs_input.client_id = rdev->pdev->devfn | (rdev->pdev->bus->number << 8); devfn 637 drivers/gpu/drm/radeon/radeon_bios.c vhdr->PCIDevice == PCI_SLOT(rdev->pdev->devfn) && devfn 638 drivers/gpu/drm/radeon/radeon_bios.c vhdr->PCIFunction == PCI_FUNC(rdev->pdev->devfn) && devfn 988 drivers/gpu/vga/vgaarb.c unsigned int *bus, unsigned int *devfn) devfn 998 drivers/gpu/vga/vgaarb.c *devfn = PCI_DEVFN(slot, func); devfn 1226 drivers/gpu/vga/vgaarb.c unsigned int domain, bus, devfn; devfn 1237 drivers/gpu/vga/vgaarb.c &domain, &bus, &devfn)) { devfn 1241 drivers/gpu/vga/vgaarb.c pdev = pci_get_domain_bus_and_slot(domain, bus, devfn); devfn 1244 drivers/gpu/vga/vgaarb.c domain, bus, PCI_SLOT(devfn), devfn 1245 drivers/gpu/vga/vgaarb.c PCI_FUNC(devfn)); devfn 1251 drivers/gpu/vga/vgaarb.c domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn), devfn 236 drivers/hwmon/coretemp.c u16 devfn = PCI_DEVFN(0, 0); devfn 237 drivers/hwmon/coretemp.c struct pci_dev *host_bridge = pci_get_domain_bus_and_slot(0, 0, devfn); devfn 83 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), devfn 100 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), devfn 337 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 3), devfn 368 drivers/hwmon/fam15h_power.c PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), devfn 376 drivers/hwmon/fam15h_power.c PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), devfn 401 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), devfn 97 drivers/hwmon/k10temp.c static void amd_nb_index_read(struct pci_dev *pdev, unsigned int devfn, devfn 101 drivers/hwmon/k10temp.c pci_bus_write_config_dword(pdev->bus, devfn, devfn 103 drivers/hwmon/k10temp.c pci_bus_read_config_dword(pdev->bus, devfn, devfn 269 drivers/hwmon/k10temp.c PCI_DEVFN(PCI_SLOT(pdev->devfn), 2), devfn 327 drivers/i2c/busses/i2c-amd756.c if (PCI_FUNC(pdev->devfn) != 1) devfn 333 drivers/i2c/busses/i2c-amd756.c if (PCI_FUNC(pdev->devfn) != 3) devfn 117 drivers/i2c/busses/i2c-designware-pcidrv.c switch (PCI_SLOT(pdev->devfn)) { devfn 119 drivers/i2c/busses/i2c-designware-pcidrv.c c->bus_num = PCI_FUNC(pdev->devfn) + 0 + 1; devfn 122 drivers/i2c/busses/i2c-designware-pcidrv.c c->bus_num = PCI_FUNC(pdev->devfn) + 4 + 1; devfn 1511 drivers/i2c/busses/i2c-i801.c unsigned int devfn; devfn 1524 drivers/i2c/busses/i2c-i801.c devfn = PCI_DEVFN(PCI_SLOT(pci_dev->devfn), 1); devfn 1527 drivers/i2c/busses/i2c-i801.c pci_bus_read_config_byte(pci_dev->bus, devfn, 0xe1, &hidden); devfn 1529 drivers/i2c/busses/i2c-i801.c pci_bus_write_config_byte(pci_dev->bus, devfn, 0xe1, 0x0); devfn 1531 drivers/i2c/busses/i2c-i801.c pci_bus_read_config_dword(pci_dev->bus, devfn, SBREG_BAR, &base_addr); devfn 1534 drivers/i2c/busses/i2c-i801.c pci_bus_read_config_dword(pci_dev->bus, devfn, SBREG_BAR + 0x4, &base_addr); devfn 1539 drivers/i2c/busses/i2c-i801.c pci_bus_write_config_byte(pci_dev->bus, devfn, 0xe1, hidden); devfn 95 drivers/ide/cy82c693.c dev = pci_get_slot(dev->bus, dev->devfn+1); devfn 154 drivers/ide/cy82c693.c if (PCI_FUNC(dev->devfn) == 1) devfn 186 drivers/ide/cy82c693.c PCI_FUNC(dev->devfn) == 1) { devfn 187 drivers/ide/cy82c693.c dev2 = pci_get_slot(dev->bus, dev->devfn + 1); devfn 964 drivers/ide/hpt366.c if (chip_type == HPT374 && (PCI_FUNC(dev->devfn) & 1)) { devfn 966 drivers/ide/hpt366.c dev->devfn - 1); devfn 1163 drivers/ide/hpt366.c if (chip_type == HPT374 && (PCI_FUNC(dev->devfn) & 1)) { devfn 1412 drivers/ide/hpt366.c if ((idx == 0 || idx == 4) && (PCI_FUNC(dev->devfn) & 1)) devfn 1458 drivers/ide/hpt366.c dev2 = pci_get_slot(dev->bus, dev->devfn + 1); devfn 134 drivers/ide/ide-acpi.c devnum = PCI_SLOT(pdev->devfn); devfn 135 drivers/ide/ide-acpi.c func = PCI_FUNC(pdev->devfn); devfn 118 drivers/ide/ide-pci-generic.c !(PCI_FUNC(dev->devfn) & 1)) devfn 123 drivers/ide/ide-pci-generic.c !(PCI_FUNC(dev->devfn) & 1)) devfn 128 drivers/ide/ide-pci-generic.c PCI_FUNC(dev->devfn) != 1) devfn 311 drivers/ide/ns87415.c if (PCI_SLOT(dev->devfn) == 0xE) { devfn 424 drivers/ide/pdc202xx_new.c dev2 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn) + 1, devfn 425 drivers/ide/pdc202xx_new.c PCI_FUNC(dev->devfn))); devfn 487 drivers/ide/pdc202xx_new.c if (PCI_SLOT(dev->devfn) & 2) devfn 199 drivers/ide/serverworks.c if (!(PCI_FUNC(dev->devfn) & 1)) { devfn 251 drivers/ide/serverworks.c if (!(PCI_FUNC(dev->devfn) & 1)) devfn 411 drivers/ide/serverworks.c if ((PCI_FUNC(dev->devfn) & 1) == 0) { devfn 245 drivers/ide/sl82c105.c PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); devfn 3642 drivers/infiniband/hw/bnxt_re/ib_verbs.c resp.dev_id = rdev->en_dev->pdev->devfn; devfn 737 drivers/infiniband/hw/bnxt_re/main.c rdev->id = rdev->en_dev->pdev->devfn; devfn 163 drivers/infiniband/hw/hfi1/efivar.c PCI_SLOT(dd->pcidev->devfn), devfn 164 drivers/infiniband/hw/hfi1/efivar.c PCI_FUNC(dd->pcidev->devfn)); devfn 322 drivers/infiniband/hw/ocrdma/ocrdma_main.c dev->id = PCI_FUNC(dev->nic_info.pdev->devfn); devfn 97 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c PCI_SLOT(us_ibdev->pdev->devfn), devfn 98 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c PCI_FUNC(us_ibdev->pdev->devfn), devfn 298 drivers/infiniband/hw/usnic/usnic_vnic.c return usnic_vnic_get_pdev(vnic)->devfn - 1; devfn 719 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c slot = PCI_SLOT(dev->pdev->devfn); devfn 967 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c pdev_net = pci_get_slot(pdev->bus, PCI_DEVFN(PCI_SLOT(pdev->devfn), 0)); devfn 93 drivers/iommu/amd_iommu_v2.c devid = (devid << 8) | pdev->devfn; devfn 166 drivers/iommu/dmar.c info->path[level].device = PCI_SLOT(tmp->devfn); devfn 167 drivers/iommu/dmar.c info->path[level].function = PCI_FUNC(tmp->devfn); devfn 264 drivers/iommu/dmar.c devices[i].devfn = info->dev->devfn; devfn 730 drivers/iommu/dmar.c dmaru->devices[i].devfn = PCI_DEVFN(path->device, devfn 21 drivers/iommu/intel-iommu-debugfs.c u16 devfn; devfn 160 drivers/iommu/intel-iommu-debugfs.c tbl_wlk->bus, PCI_SLOT(tbl_wlk->devfn), devfn 161 drivers/iommu/intel-iommu-debugfs.c PCI_FUNC(tbl_wlk->devfn), tbl_wlk->rt_entry->hi, devfn 216 drivers/iommu/intel-iommu-debugfs.c u16 devfn, pasid_dir_size; devfn 219 drivers/iommu/intel-iommu-debugfs.c for (devfn = 0; devfn < 256; devfn++) { devfn 235 drivers/iommu/intel-iommu-debugfs.c context = iommu_context_addr(iommu, bus, devfn, 0); devfn 243 drivers/iommu/intel-iommu-debugfs.c tbl_wlk.devfn = devfn; devfn 697 drivers/iommu/intel-iommu.c u8 devfn, int alloc) devfn 705 drivers/iommu/intel-iommu.c if (devfn >= 0x80) { devfn 706 drivers/iommu/intel-iommu.c devfn -= 0x80; devfn 709 drivers/iommu/intel-iommu.c devfn *= 2; devfn 727 drivers/iommu/intel-iommu.c return &context[devfn]; devfn 762 drivers/iommu/intel-iommu.c static struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn) devfn 809 drivers/iommu/intel-iommu.c *devfn = drhd->devices[i].devfn; devfn 820 drivers/iommu/intel-iommu.c *devfn = pdev->devfn; devfn 838 drivers/iommu/intel-iommu.c static int device_context_mapped(struct intel_iommu *iommu, u8 bus, u8 devfn) devfn 845 drivers/iommu/intel-iommu.c context = iommu_context_addr(iommu, bus, devfn, 0); devfn 1344 drivers/iommu/intel-iommu.c u8 bus, u8 devfn) devfn 1355 drivers/iommu/intel-iommu.c info->devfn == devfn) { devfn 1478 drivers/iommu/intel-iommu.c sid = info->bus << 8 | info->devfn; devfn 1976 drivers/iommu/intel-iommu.c u8 bus, u8 devfn) devfn 1991 drivers/iommu/intel-iommu.c bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 1999 drivers/iommu/intel-iommu.c context = iommu_context_addr(iommu, bus, devfn, 1); devfn 2021 drivers/iommu/intel-iommu.c (((u16)bus) << 8) | devfn, devfn 2048 drivers/iommu/intel-iommu.c info = iommu_support_dev_iotlb(domain, iommu, bus, devfn); devfn 2071 drivers/iommu/intel-iommu.c info = iommu_support_dev_iotlb(domain, iommu, bus, devfn); devfn 2103 drivers/iommu/intel-iommu.c (((u16)bus) << 8) | devfn, devfn 2143 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 2145 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 2153 drivers/iommu/intel-iommu.c bus, devfn); devfn 2174 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 2176 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 2181 drivers/iommu/intel-iommu.c return device_context_mapped(iommu, bus, devfn); devfn 2372 drivers/iommu/intel-iommu.c static void domain_context_clear_one(struct intel_iommu *iommu, u8 bus, u8 devfn) devfn 2382 drivers/iommu/intel-iommu.c context = iommu_context_addr(iommu, bus, devfn, 0); devfn 2393 drivers/iommu/intel-iommu.c (((u16)bus) << 8) | devfn, devfn 2449 drivers/iommu/intel-iommu.c dmar_search_domain_by_dev_info(int segment, int bus, int devfn) devfn 2455 drivers/iommu/intel-iommu.c info->devfn == devfn) devfn 2462 drivers/iommu/intel-iommu.c int bus, int devfn, devfn 2476 drivers/iommu/intel-iommu.c info->devfn = devfn; devfn 2516 drivers/iommu/intel-iommu.c info2 = dmar_search_domain_by_dev_info(iommu->segment, bus, devfn); devfn 2593 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 2595 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 2638 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 2640 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 2644 drivers/iommu/intel-iommu.c req_id = ((u16)bus << 8) | devfn; devfn 2661 drivers/iommu/intel-iommu.c tmp = dmar_insert_one_dev_info(iommu, bus, devfn, dev, domain); devfn 2802 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 2804 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 2808 drivers/iommu/intel-iommu.c ndomain = dmar_insert_one_dev_info(iommu, bus, devfn, dev, domain); devfn 2995 drivers/iommu/intel-iommu.c int tbl_idx, pos = 0, idx, devfn, ret = 0, did; devfn 3004 drivers/iommu/intel-iommu.c for (devfn = 0; devfn < 256; devfn++) { devfn 3006 drivers/iommu/intel-iommu.c idx = (ext ? devfn * 2 : devfn) % 256; devfn 3021 drivers/iommu/intel-iommu.c if (devfn < 0x80) devfn 3027 drivers/iommu/intel-iommu.c if (ext && devfn == 0) { devfn 3029 drivers/iommu/intel-iommu.c devfn = 0x7f; devfn 5260 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 5264 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 5345 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 5347 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 5582 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 5585 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 5650 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 5652 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 5753 drivers/iommu/intel-iommu.c context = iommu_context_addr(iommu, info->bus, info->devfn, 0); devfn 5765 drivers/iommu/intel-iommu.c PCI_DEVID(info->bus, info->devfn), devfn 5807 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 5815 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 5830 drivers/iommu/intel-iommu.c u8 bus, devfn; devfn 5833 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); devfn 89 drivers/iommu/intel-pasid.c int devfn; devfn 98 drivers/iommu/intel-pasid.c info->devfn == data->devfn && devfn 113 drivers/iommu/intel-pasid.c data->devfn = alias & 0xff; devfn 437 drivers/iommu/intel-pasid.c sid = info->bus << 8 | info->devfn; devfn 292 drivers/iommu/intel-svm.c sdev->sid = PCI_DEVID(info->bus, info->devfn); devfn 35 drivers/iommu/intel_irq_remapping.c unsigned int devfn; /* PCI devfn number */ devfn 42 drivers/iommu/intel_irq_remapping.c unsigned int devfn; devfn 320 drivers/iommu/intel_irq_remapping.c sid = (ir_ioapic[i].bus << 8) | ir_ioapic[i].devfn; devfn 347 drivers/iommu/intel_irq_remapping.c sid = (ir_hpet[i].bus << 8) | ir_hpet[i].devfn; devfn 872 drivers/iommu/intel_irq_remapping.c ir_hpet[free].devfn = PCI_DEVFN(path->device, path->function); devfn 915 drivers/iommu/intel_irq_remapping.c ir_ioapic[free].devfn = PCI_DEVFN(path->device, path->function); devfn 1177 drivers/iommu/iommu.c PCI_SLOT(tmp->devfn) != PCI_SLOT(pdev->devfn) || devfn 1206 drivers/iommu/iommu.c if (test_and_set_bit(pdev->devfn & 0xff, devfns)) devfn 261 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->devfn); devfn 273 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->devfn); devfn 284 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->devfn); devfn 295 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->devfn); devfn 308 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->devfn); devfn 348 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->devfn); devfn 439 drivers/media/pci/bt8xx/bt878.c PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); devfn 4303 drivers/media/pci/bt8xx/bttv-cards.c if ((PCI_SLOT(btv->c.pci->devfn) & ~3) != 0xC) { devfn 4308 drivers/media/pci/bt8xx/bttv-cards.c if (PCI_SLOT(btv->c.pci->devfn) != 0xD) devfn 104 drivers/media/pci/bt8xx/dvb-bt8xx.c (PCI_SLOT(adev->devfn) == PCI_SLOT(bdev->devfn))) devfn 835 drivers/media/pci/cx18/cx18-driver.c PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn), devfn 942 drivers/media/pci/cx23885/cx23885-core.c dev->pci_slot = PCI_SLOT(dev->pci->devfn); devfn 884 drivers/media/pci/cx25821/cx25821-core.c dev->pci_slot = PCI_SLOT(dev->pci->devfn); devfn 3645 drivers/media/pci/cx88/cx88-cards.c PCI_FUNC(pci->devfn), devfn 3666 drivers/media/pci/cx88/cx88-cards.c core->pci_slot = PCI_SLOT(pci->devfn); devfn 1039 drivers/media/pci/cx88/cx88-core.c if (PCI_SLOT(pci->devfn) != core->pci_slot) devfn 418 drivers/media/pci/ivtv/ivtv-driver.c int pci_slot = PCI_SLOT(itv->pdev->devfn); devfn 900 drivers/media/pci/ivtv/ivtv-driver.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), devfn 109 drivers/media/pci/mantis/mantis_core.c mantis->pdev->bus->number, PCI_SLOT(mantis->pdev->devfn), PCI_FUNC(mantis->pdev->devfn)); devfn 48 drivers/media/pci/mantis/mantis_pci.c PCI_SLOT(mantis->pdev->devfn), devfn 49 drivers/media/pci/mantis/mantis_pci.c PCI_FUNC(mantis->pdev->devfn)); devfn 819 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->pci_slot = PCI_SLOT(pci_dev->devfn); devfn 820 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->pci_func = PCI_FUNC(pci_dev->devfn); devfn 976 drivers/media/pci/saa7164/saa7164-core.c dev->pci_slot = PCI_SLOT(dev->pci->devfn); devfn 2651 drivers/message/fusion/mptbase.c unsigned int slot = PCI_SLOT(pdev->devfn); devfn 2652 drivers/message/fusion/mptbase.c unsigned int func = PCI_FUNC(pdev->devfn); devfn 2658 drivers/message/fusion/mptbase.c pdev->devfn, func-1, func+1)); devfn 1296 drivers/message/fusion/mptctl.c karg->pciInfo.u.bits.deviceNumber = PCI_SLOT( pdev->devfn ); devfn 1297 drivers/message/fusion/mptctl.c karg->pciInfo.u.bits.functionNumber = PCI_FUNC( pdev->devfn ); devfn 1302 drivers/message/fusion/mptctl.c karg->pciInfo.u.bits.deviceNumber = PCI_SLOT( pdev->devfn ); devfn 1303 drivers/message/fusion/mptctl.c karg->pciInfo.u.bits.functionNumber = PCI_FUNC( pdev->devfn ); devfn 2368 drivers/message/fusion/mptctl.c karg.devfn = pdev->devfn; devfn 2476 drivers/message/fusion/mptctl.c if (pdev->devfn & 1) devfn 386 drivers/message/fusion/mptctl.h u8 devfn; devfn 409 drivers/message/fusion/mptctl.h u8 devfn; devfn 1581 drivers/mfd/sm501.c sm->pdev_id = 32 + dev->devfn; devfn 31 drivers/misc/cb710/core.c unsigned int devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); devfn 42 drivers/misc/cb710/core.c pdev0 = pci_get_slot(pdev->bus, devfn); devfn 81 drivers/misc/cxl/vphb.c static int cxl_pcie_cfg_record(u8 bus, u8 devfn) devfn 83 drivers/misc/cxl/vphb.c return (bus << 8) + devfn; devfn 103 drivers/misc/cxl/vphb.c static inline int cxl_pcie_config_info(struct pci_bus *bus, unsigned int devfn, devfn 108 drivers/misc/cxl/vphb.c record = cxl_pcie_cfg_record(bus->number, devfn); devfn 116 drivers/misc/cxl/vphb.c static int cxl_pcie_read_config(struct pci_bus *bus, unsigned int devfn, devfn 130 drivers/misc/cxl/vphb.c rc = cxl_pcie_config_info(bus, devfn, afu, &record); devfn 156 drivers/misc/cxl/vphb.c static int cxl_pcie_write_config(struct pci_bus *bus, unsigned int devfn, devfn 167 drivers/misc/cxl/vphb.c rc = cxl_pcie_config_info(bus, devfn, afu, &record); devfn 314 drivers/misc/cxl/vphb.c return cxl_pcie_cfg_record(dev->bus->number, dev->devfn); devfn 240 drivers/misc/habanalabs/sysfs.c PCI_SLOT(hdev->pdev->devfn), devfn 241 drivers/misc/habanalabs/sysfs.c PCI_FUNC(hdev->pdev->devfn)); devfn 1342 drivers/misc/mei/hw-me.c unsigned int devfn; devfn 1348 drivers/misc/mei/hw-me.c devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); devfn 1349 drivers/misc/mei/hw-me.c pci_bus_read_config_dword(pdev->bus, devfn, PCI_CFG_HFS_1, ®); devfn 102 drivers/misc/ocxl/config.c if (!pos && PCI_FUNC(dev->devfn) == 0) { devfn 106 drivers/misc/ocxl/config.c if (pos && PCI_FUNC(dev->devfn) != 0) { devfn 171 drivers/misc/ocxl/config.c if (PCI_FUNC(dev->devfn) != 0) devfn 722 drivers/misc/ocxl/config.c if (PCI_FUNC(dev->devfn) != 0) devfn 388 drivers/misc/ocxl/link.c link->dev = PCI_SLOT(dev->devfn); devfn 434 drivers/misc/ocxl/link.c link->dev == PCI_SLOT(dev->devfn)) { devfn 309 drivers/mmc/host/sdhci-acpi.c if (ACPI_COMPANION(&dev->dev) && PCI_SLOT(dev->devfn) == slot && devfn 310 drivers/mmc/host/sdhci-acpi.c parent && PCI_SLOT(parent->devfn) == parent_slot && devfn 1139 drivers/mmc/host/sdhci-pci-core.c unsigned int func = PCI_FUNC(slot->chip->pdev->devfn); devfn 1230 drivers/mmc/host/sdhci-pci-core.c if ((PCI_SLOT(chip->pdev->devfn) == devfn 1231 drivers/mmc/host/sdhci-pci-core.c PCI_SLOT(sd_dev->devfn)) && devfn 109 drivers/net/can/sja1000/f81601.c PCI_SLOT(pdev->devfn)); devfn 642 drivers/net/can/sja1000/plx_pci.c ci->name, PCI_SLOT(pdev->devfn)); devfn 3998 drivers/net/ethernet/agere/et131x.c (adapter->pdev->bus->number << 8) | adapter->pdev->devfn); devfn 1599 drivers/net/ethernet/alacritech/slicoss.c unsigned int devfn = PCI_FUNC(sdev->pdev->devfn); devfn 1665 drivers/net/ethernet/alacritech/slicoss.c ether_addr_copy(sdev->netdev->dev_addr, mac[devfn]); devfn 2419 drivers/net/ethernet/amazon/ena/ena_netdev.c host_info->bdf = (pdev->bus->number << 8) | pdev->devfn; devfn 10626 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (PCI_SLOT(bp->pdev->devfn) == tmp_list->slot && devfn 10733 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c tmp_list->slot = PCI_SLOT(bp->pdev->devfn); devfn 13272 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->pf_num = PCI_FUNC(pdev->devfn); devfn 816 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c dev = pci_get_domain_bus_and_slot(vf->domain, vf->bus, vf->devfn); devfn 1057 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c return dev->bus->number + ((dev->devfn + iov->offset + devfn 1066 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c return (dev->devfn + iov->offset + iov->stride * vfid) & 0xff; devfn 1622 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c vf->devfn = bnx2x_vf_devfn(bp, vfid); devfn 1627 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c vf->abs_vfid, vf->bus, vf->devfn, devfn 190 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h unsigned int devfn; devfn 3175 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c seg_hdr->function_id = cpu_to_le16(bp->pdev->devfn); devfn 211 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c rc = snprintf(buf, len, "pf%dvf%d", PCI_FUNC(pf_pdev->devfn), devfn 5328 drivers/net/ethernet/broadcom/cnic.c cp->func = PCI_FUNC(dev->pcidev->devfn); devfn 1547 drivers/net/ethernet/broadcom/tg3.c (tp->pdev->bus->number << 8) | tp->pdev->devfn); devfn 16067 drivers/net/ethernet/broadcom/tg3.c unsigned int func, devnr = tp->pdev->devfn & ~7; devfn 16638 drivers/net/ethernet/broadcom/tg3.c tp->pci_fn = PCI_FUNC(tp->pdev->devfn) & 3; devfn 3668 drivers/net/ethernet/brocade/bna/bnad.c pcidev_info.pci_slot = PCI_SLOT(bnad->pcidev->devfn); devfn 3669 drivers/net/ethernet/brocade/bna/bnad.c pcidev_info.pci_func = PCI_FUNC(bnad->pcidev->devfn); devfn 82 drivers/net/ethernet/cadence/macb_pci.c plat_info.id = pdev->devfn; devfn 746 drivers/net/ethernet/cavium/liquidio/lio_main.c oct_slot = PCI_SLOT(oct->pci_dev->devfn); devfn 747 drivers/net/ethernet/cavium/liquidio/lio_main.c other_oct_slot = PCI_SLOT(other_oct->pci_dev->devfn); devfn 917 drivers/net/ethernet/cavium/liquidio/lio_main.c device = PCI_SLOT(pdev->devfn); devfn 918 drivers/net/ethernet/cavium/liquidio/lio_main.c function = PCI_FUNC(pdev->devfn); devfn 4088 drivers/net/ethernet/cavium/liquidio/lio_main.c PCI_SLOT(octeon_dev->pci_dev->devfn), devfn 4089 drivers/net/ethernet/cavium/liquidio/lio_main.c PCI_FUNC(octeon_dev->pci_dev->devfn), devfn 5580 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pbridge->bus->number, PCI_SLOT(pbridge->devfn), devfn 5581 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c PCI_FUNC(pbridge->devfn)); devfn 2140 drivers/net/ethernet/dec/tulip/de4x5.c lp->device = PCI_SLOT(this_dev->devfn); devfn 2205 drivers/net/ethernet/dec/tulip/de4x5.c dev_num = PCI_SLOT(pdev->devfn); devfn 1561 drivers/net/ethernet/dec/tulip/tulip_core.c ((PCI_SLOT(pdev->devfn) == 7) || devfn 1562 drivers/net/ethernet/dec/tulip/tulip_core.c (PCI_SLOT(pdev->devfn) == 12))) { devfn 4642 drivers/net/ethernet/emulex/benet/be_cmds.c desc.pcie.pf_num = adapter->pdev->devfn; devfn 4652 drivers/net/ethernet/emulex/benet/be_cmds.c desc.nic_vft.pf_num = adapter->pdev->devfn; devfn 6127 drivers/net/ethernet/emulex/benet/be_main.c if (pdev->devfn == 0) devfn 1394 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c i = i ? PCI_FUNC(hdev->pdev->devfn) % i : 0; devfn 3117 drivers/net/ethernet/intel/e100.c if (0 != PCI_FUNC(pdev->devfn)) devfn 14815 drivers/net/ethernet/intel/i40e/i40e_main.c hw->bus.device = PCI_SLOT(pdev->devfn); devfn 14816 drivers/net/ethernet/intel/i40e/i40e_main.c hw->bus.func = PCI_FUNC(pdev->devfn); devfn 3718 drivers/net/ethernet/intel/iavf/iavf_main.c hw->bus.device = PCI_SLOT(pdev->devfn); devfn 3719 drivers/net/ethernet/intel/iavf/iavf_main.c hw->bus.func = PCI_FUNC(pdev->devfn); devfn 3741 drivers/net/ethernet/intel/iavf/iavf_main.c msecs_to_jiffies(5 * (pdev->devfn & 0x07))); devfn 2840 drivers/net/ethernet/intel/ice/ice_main.c hw->bus.device = PCI_SLOT(pdev->devfn); devfn 2841 drivers/net/ethernet/intel/ice/ice_main.c hw->bus.func = PCI_FUNC(pdev->devfn); devfn 2237 drivers/net/ethernet/intel/ixgb/ixgb_main.c if (0 != PCI_FUNC (pdev->devfn)) devfn 11332 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if ((pf_func & 1) == (pdev->devfn & 1)) { devfn 11364 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (vfdev->devfn == (req_id & 0xFF)) devfn 846 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c static struct pci_dev *ixgbe_get_first_secondary_devfn(unsigned int devfn) devfn 851 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c rp_pdev = pci_get_domain_bus_and_slot(0, 0, devfn); devfn 3159 drivers/net/ethernet/mellanox/mlx4/main.c return PCI_SLOT(pdev->devfn) * 8 + PCI_FUNC(pdev->devfn); devfn 308 drivers/net/ethernet/mellanox/mlx5/core/dev.c PCI_SLOT(dev->pdev->devfn)); devfn 1823 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c pfnum = PCI_FUNC(dev->pdev->devfn); devfn 523 drivers/net/ethernet/mellanox/mlx5/core/lag.c unsigned int fn = PCI_FUNC(dev->pdev->devfn); devfn 2448 drivers/net/ethernet/neterion/vxge/vxge-main.c int pci_fun = PCI_FUNC(vdev->pdev->devfn); devfn 4325 drivers/net/ethernet/neterion/vxge/vxge-main.c if (((bus != pdev->bus->number) || (device != PCI_SLOT(pdev->devfn))) && devfn 4330 drivers/net/ethernet/neterion/vxge/vxge-main.c device = PCI_SLOT(pdev->devfn); devfn 629 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c pf = nfp->pdev->devfn & 7; devfn 129 drivers/net/ethernet/pasemi/pasemi_mac.c int devfn = pdev->devfn; devfn 145 drivers/net/ethernet/pasemi/pasemi_mac.c if (((tmp >> (8*j)) & 0xff) == devfn) devfn 423 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c pdevfuncsave = pdev->devfn; devfn 431 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c pdev->devfn++; devfn 433 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c pdev->devfn = pdevfuncsave; devfn 569 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c return (PCI_FUNC(pdev->devfn) == 0) ? true : false; devfn 1450 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c int pci_func_id = PCI_FUNC(pdev->devfn); devfn 724 drivers/net/ethernet/qlogic/qed/qed_main.c PCI_SLOT(cdev->pdev->devfn), hwfn->abs_pf_id); devfn 731 drivers/net/ethernet/qlogic/qed/qed_main.c cdev->pdev->bus->number, PCI_SLOT(cdev->pdev->devfn), devfn 732 drivers/net/ethernet/qlogic/qed/qed_main.c PCI_FUNC(cdev->pdev->devfn)); devfn 1184 drivers/net/ethernet/qlogic/qed/qed_main.c PCI_SLOT(cdev->pdev->devfn), hwfn->abs_pf_id); devfn 5245 drivers/net/ethernet/qlogic/qed/qed_sriov.c PCI_SLOT(cdev->pdev->devfn), p_hwfn->abs_pf_id); devfn 1054 drivers/net/ethernet/qlogic/qede/qede_main.c PCI_SLOT(edev->pdev->devfn), PCI_FUNC(edev->pdev->devfn), devfn 3748 drivers/net/ethernet/qlogic/qla3xxx.c qdev->pci_slot = (u8) PCI_SLOT(qdev->pdev->devfn); devfn 3802 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c int val = pdev->devfn; devfn 3807 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c PCI_DEVFN(PCI_SLOT(pdev->devfn), val)); devfn 138 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c return (dev->devfn + offset + stride * vf_id) & 0xff; devfn 4357 drivers/net/ethernet/realtek/r8169_main.c u32 func = PCI_FUNC(tp->pci_dev->devfn); devfn 4368 drivers/net/ethernet/realtek/r8169_main.c u32 func = PCI_FUNC(tp->pci_dev->devfn); devfn 2333 drivers/net/ethernet/sfc/falcon/falcon.c dev->devfn == efx->pci_dev->devfn + 1) { devfn 427 drivers/net/ethernet/sfc/siena_sriov.c copy[1].from_rid = efx->pci_dev->devfn; devfn 444 drivers/net/ethernet/sfc/siena_sriov.c copy[pos].from_rid = efx->pci_dev->devfn; devfn 882 drivers/net/ethernet/sfc/siena_sriov.c copy[0].to_rid = efx->pci_dev->devfn; devfn 970 drivers/net/ethernet/sfc/siena_sriov.c copy_req[k].from_rid = efx->pci_dev->devfn; devfn 1243 drivers/net/ethernet/sfc/siena_sriov.c unsigned index, devfn, sriov, buftbl_base; devfn 1256 drivers/net/ethernet/sfc/siena_sriov.c devfn = pci_dev->devfn + offset; devfn 1264 drivers/net/ethernet/sfc/siena_sriov.c vf->pci_rid = devfn; devfn 1268 drivers/net/ethernet/sfc/siena_sriov.c PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 1275 drivers/net/ethernet/sfc/siena_sriov.c devfn += stride; devfn 1119 drivers/net/ethernet/sgi/ioc3-eth.c if (ioc3_is_menet(pdev) && PCI_SLOT(pdev->devfn) == 3) devfn 1151 drivers/net/ethernet/smsc/smsc9420.c (pd->pdev->bus->number << 8) | pd->pdev->devfn); devfn 44 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c int func = PCI_FUNC(pdev->devfn); devfn 3424 drivers/net/ethernet/sun/cassini.c PCI_SLOT(pdev->devfn)); devfn 9748 drivers/net/ethernet/sun/niu.c &niu_pci_ops, PCI_FUNC(pdev->devfn)); devfn 9758 drivers/net/ethernet/sun/niu.c parent_id.pci.device = PCI_SLOT(pdev->devfn); devfn 2966 drivers/net/ethernet/sun/sunhme.c index = PCI_SLOT(pdev->devfn); devfn 672 drivers/net/ethernet/toshiba/tc35815.c (lp->pci_dev->bus->number << 8) | lp->pci_dev->devfn); devfn 2424 drivers/net/wan/farsync.c if ((pdev->devfn) >> 3 == fst_excluded_list[i]) { devfn 2426 drivers/net/wan/farsync.c (pdev->devfn) >> 3); devfn 2015 drivers/net/wireless/realtek/rtlwifi/pci.c pcipriv->ndis_adapter.devnumber = PCI_SLOT(pdev->devfn); devfn 2016 drivers/net/wireless/realtek/rtlwifi/pci.c pcipriv->ndis_adapter.funcnumber = PCI_FUNC(pdev->devfn); devfn 2042 drivers/net/wireless/realtek/rtlwifi/pci.c PCI_SLOT(bridge_pdev->devfn); devfn 2044 drivers/net/wireless/realtek/rtlwifi/pci.c PCI_FUNC(bridge_pdev->devfn); devfn 181 drivers/parisc/dino.c static int dino_cfg_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 186 drivers/parisc/dino.c u32 v = DINO_CFG_TOK(local_bus, devfn, where & ~3); devfn 190 drivers/parisc/dino.c DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, devfn 216 drivers/parisc/dino.c static int dino_cfg_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 221 drivers/parisc/dino.c u32 v = DINO_CFG_TOK(local_bus, devfn, where & ~3); devfn 225 drivers/parisc/dino.c DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, devfn 544 drivers/parisc/dino.c dino_cfg_write(dev->bus, dev->devfn, devfn 556 drivers/parisc/dino.c dino_cfg_read(dev->bus, dev->devfn, PCI_INTERRUPT_PIN, 1, &irq_pin); devfn 562 drivers/parisc/dino.c dino_cfg_write(dev->bus, dev->devfn, PCI_INTERRUPT_LINE, 1, dev->irq); devfn 647 drivers/parisc/dino.c dino_cfg_read(dev->bus, dev->devfn, devfn 652 drivers/parisc/dino.c dino_cfg_write(dev->bus, dev->devfn, devfn 467 drivers/parisc/iosapic.c pcidev->slot_name, PCI_SLOT(pcidev->devfn), intr_pin); devfn 516 drivers/parisc/iosapic.c intr_slot = PCI_SLOT(p->self->devfn); devfn 518 drivers/parisc/iosapic.c intr_slot = PCI_SLOT(pcidev->devfn); devfn 733 drivers/parisc/iosapic.c if (PCI_FUNC(pcidev->devfn) != SUPERIO_USB_FN) devfn 794 drivers/parisc/iosapic.c PCI_SLOT(pcidev->devfn), PCI_FUNC(pcidev->devfn), devfn 363 drivers/parisc/lba_pci.c static int elroy_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) devfn 367 drivers/parisc/lba_pci.c u32 tok = LBA_CFG_TOK(local_bus, devfn); devfn 370 drivers/parisc/lba_pci.c if ((pos > 255) || (devfn > 255)) devfn 382 drivers/parisc/lba_pci.c if (LBA_SKIP_PROBE(d) && !lba_device_present(bus->busn_res.start, devfn, d)) { devfn 430 drivers/parisc/lba_pci.c static int elroy_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) devfn 434 drivers/parisc/lba_pci.c u32 tok = LBA_CFG_TOK(local_bus,devfn); devfn 436 drivers/parisc/lba_pci.c if ((pos > 255) || (devfn > 255)) devfn 446 drivers/parisc/lba_pci.c if (LBA_SKIP_PROBE(d) && (!lba_device_present(bus->busn_res.start, devfn, d))) { devfn 480 drivers/parisc/lba_pci.c static int mercury_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) devfn 484 drivers/parisc/lba_pci.c u32 tok = LBA_CFG_TOK(local_bus, devfn); devfn 487 drivers/parisc/lba_pci.c if ((pos > 255) || (devfn > 255)) devfn 512 drivers/parisc/lba_pci.c static int mercury_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) devfn 517 drivers/parisc/lba_pci.c u32 tok = LBA_CFG_TOK(local_bus,devfn); devfn 519 drivers/parisc/lba_pci.c if ((pos > 255) || (devfn > 255)) devfn 340 drivers/parisc/superio.c fn = PCI_FUNC(pcidev->devfn); devfn 37 drivers/pci/access.c (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \ devfn 44 drivers/pci/access.c res = bus->ops->read(bus, devfn, pos, len, &data); \ devfn 52 drivers/pci/access.c (struct pci_bus *bus, unsigned int devfn, int pos, type value) \ devfn 58 drivers/pci/access.c res = bus->ops->write(bus, devfn, pos, len, value); \ devfn 77 drivers/pci/access.c int pci_generic_config_read(struct pci_bus *bus, unsigned int devfn, devfn 82 drivers/pci/access.c addr = bus->ops->map_bus(bus, devfn, where); devfn 99 drivers/pci/access.c int pci_generic_config_write(struct pci_bus *bus, unsigned int devfn, devfn 104 drivers/pci/access.c addr = bus->ops->map_bus(bus, devfn, where); devfn 119 drivers/pci/access.c int pci_generic_config_read32(struct pci_bus *bus, unsigned int devfn, devfn 124 drivers/pci/access.c addr = bus->ops->map_bus(bus, devfn, where & ~0x3); devfn 139 drivers/pci/access.c int pci_generic_config_write32(struct pci_bus *bus, unsigned int devfn, devfn 145 drivers/pci/access.c addr = bus->ops->map_bus(bus, devfn, where & ~0x3); devfn 165 drivers/pci/access.c PCI_SLOT(devfn), PCI_FUNC(devfn), where); devfn 232 drivers/pci/access.c ret = dev->bus->ops->read(dev->bus, dev->devfn, \ devfn 251 drivers/pci/access.c ret = dev->bus->ops->write(dev->bus, dev->devfn, \ devfn 533 drivers/pci/access.c return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val); devfn 543 drivers/pci/access.c return pci_bus_read_config_word(dev->bus, dev->devfn, where, val); devfn 554 drivers/pci/access.c return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val); devfn 562 drivers/pci/access.c return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val); devfn 570 drivers/pci/access.c return pci_bus_write_config_word(dev->bus, dev->devfn, where, val); devfn 579 drivers/pci/access.c return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); devfn 434 drivers/pci/controller/dwc/pci-keystone.c unsigned int devfn, int where, int size, devfn 441 drivers/pci/controller/dwc/pci-keystone.c reg = CFG_BUS(bus->number) | CFG_DEVICE(PCI_SLOT(devfn)) | devfn 442 drivers/pci/controller/dwc/pci-keystone.c CFG_FUNC(PCI_FUNC(devfn)); devfn 451 drivers/pci/controller/dwc/pci-keystone.c unsigned int devfn, int where, int size, devfn 458 drivers/pci/controller/dwc/pci-keystone.c reg = CFG_BUS(bus->number) | CFG_DEVICE(PCI_SLOT(devfn)) | devfn 459 drivers/pci/controller/dwc/pci-keystone.c CFG_FUNC(PCI_FUNC(devfn)); devfn 22 drivers/pci/controller/dwc/pcie-al.c static void __iomem *al_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, devfn 34 drivers/pci/controller/dwc/pcie-al.c if (PCI_SLOT(devfn) > 0) devfn 40 drivers/pci/controller/dwc/pcie-al.c return pci_ecam_map_bus(bus, devfn, where); devfn 227 drivers/pci/controller/dwc/pcie-al.c unsigned int devfn) devfn 237 drivers/pci/controller/dwc/pcie-al.c PCIE_ECAM_DEVFN(devfn)); devfn 252 drivers/pci/controller/dwc/pcie-al.c unsigned int devfn, int where, int size, devfn 261 drivers/pci/controller/dwc/pcie-al.c pci_addr = al_pcie_conf_addr_map(pcie, busnr, devfn); devfn 267 drivers/pci/controller/dwc/pcie-al.c PCI_SLOT(devfn), PCI_FUNC(devfn), where, devfn 274 drivers/pci/controller/dwc/pcie-al.c unsigned int devfn, int where, int size, devfn 283 drivers/pci/controller/dwc/pcie-al.c pci_addr = al_pcie_conf_addr_map(pcie, busnr, devfn); devfn 289 drivers/pci/controller/dwc/pcie-al.c PCI_SLOT(devfn), PCI_FUNC(devfn), where, devfn 528 drivers/pci/controller/dwc/pcie-designware-host.c u32 devfn, int where, int size, u32 *val, devfn 537 drivers/pci/controller/dwc/pcie-designware-host.c busdev = PCIE_ATU_BUS(bus->number) | PCIE_ATU_DEV(PCI_SLOT(devfn)) | devfn 538 drivers/pci/controller/dwc/pcie-designware-host.c PCIE_ATU_FUNC(PCI_FUNC(devfn)); devfn 569 drivers/pci/controller/dwc/pcie-designware-host.c u32 devfn, int where, int size, u32 *val) devfn 572 drivers/pci/controller/dwc/pcie-designware-host.c return pp->ops->rd_other_conf(pp, bus, devfn, where, devfn 575 drivers/pci/controller/dwc/pcie-designware-host.c return dw_pcie_access_other_conf(pp, bus, devfn, where, size, val, devfn 580 drivers/pci/controller/dwc/pcie-designware-host.c u32 devfn, int where, int size, u32 val) devfn 583 drivers/pci/controller/dwc/pcie-designware-host.c return pp->ops->wr_other_conf(pp, bus, devfn, where, devfn 586 drivers/pci/controller/dwc/pcie-designware-host.c return dw_pcie_access_other_conf(pp, bus, devfn, where, size, &val, devfn 608 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, devfn 613 drivers/pci/controller/dwc/pcie-designware-host.c if (!dw_pcie_valid_device(pp, bus, PCI_SLOT(devfn))) { devfn 621 drivers/pci/controller/dwc/pcie-designware-host.c return dw_pcie_rd_other_conf(pp, bus, devfn, where, size, val); devfn 624 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_wr_conf(struct pci_bus *bus, u32 devfn, devfn 629 drivers/pci/controller/dwc/pcie-designware-host.c if (!dw_pcie_valid_device(pp, bus, PCI_SLOT(devfn))) devfn 635 drivers/pci/controller/dwc/pcie-designware-host.c return dw_pcie_wr_other_conf(pp, bus, devfn, where, size, val); devfn 156 drivers/pci/controller/dwc/pcie-designware.h unsigned int devfn, int where, int size, u32 *val); devfn 158 drivers/pci/controller/dwc/pcie-designware.h unsigned int devfn, int where, int size, u32 val); devfn 26 drivers/pci/controller/dwc/pcie-hisi.c static int hisi_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, devfn 30 drivers/pci/controller/dwc/pcie-hisi.c int dev = PCI_SLOT(devfn); devfn 37 drivers/pci/controller/dwc/pcie-hisi.c return pci_generic_config_read32(bus, devfn, where, devfn 41 drivers/pci/controller/dwc/pcie-hisi.c return pci_generic_config_read(bus, devfn, where, size, val); devfn 44 drivers/pci/controller/dwc/pcie-hisi.c static int hisi_pcie_wr_conf(struct pci_bus *bus, u32 devfn, devfn 48 drivers/pci/controller/dwc/pcie-hisi.c int dev = PCI_SLOT(devfn); devfn 55 drivers/pci/controller/dwc/pcie-hisi.c return pci_generic_config_write32(bus, devfn, where, devfn 59 drivers/pci/controller/dwc/pcie-hisi.c return pci_generic_config_write(bus, devfn, where, size, val); devfn 62 drivers/pci/controller/dwc/pcie-hisi.c static void __iomem *hisi_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, devfn 71 drivers/pci/controller/dwc/pcie-hisi.c return pci_ecam_map_bus(bus, devfn, where); devfn 1051 drivers/pci/controller/dwc/pcie-tegra194.c if (PCI_SLOT(pdev->devfn) == 0) { devfn 174 drivers/pci/controller/pci-aardvark.c #define PCIE_CONF_ADDR(bus, devfn, where) \ devfn 175 drivers/pci/controller/pci-aardvark.c (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \ devfn 176 drivers/pci/controller/pci-aardvark.c PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where)) devfn 539 drivers/pci/controller/pci-aardvark.c int devfn) devfn 541 drivers/pci/controller/pci-aardvark.c if ((bus->number == pcie->root_bus_nr) && PCI_SLOT(devfn) != 0) devfn 547 drivers/pci/controller/pci-aardvark.c static int advk_pcie_rd_conf(struct pci_bus *bus, u32 devfn, devfn 554 drivers/pci/controller/pci-aardvark.c if (!advk_pcie_valid_device(pcie, bus, devfn)) { devfn 577 drivers/pci/controller/pci-aardvark.c reg = PCIE_CONF_ADDR(bus->number, devfn, where); devfn 603 drivers/pci/controller/pci-aardvark.c static int advk_pcie_wr_conf(struct pci_bus *bus, u32 devfn, devfn 612 drivers/pci/controller/pci-aardvark.c if (!advk_pcie_valid_device(pcie, bus, devfn)) devfn 636 drivers/pci/controller/pci-aardvark.c reg = PCIE_CONF_ADDR(bus->number, devfn, where); devfn 27 drivers/pci/controller/pci-host-generic.c static bool pci_dw_valid_device(struct pci_bus *bus, unsigned int devfn) devfn 37 drivers/pci/controller/pci-host-generic.c if (bus->number == cfg->busr.start && PCI_SLOT(devfn) > 0) devfn 44 drivers/pci/controller/pci-host-generic.c unsigned int devfn, int where) devfn 46 drivers/pci/controller/pci-host-generic.c if (!pci_dw_valid_device(bus, devfn)) devfn 49 drivers/pci/controller/pci-host-generic.c return pci_ecam_map_bus(bus, devfn, where); devfn 620 drivers/pci/controller/pci-hyperv.c static u32 devfn_to_wslot(int devfn) devfn 625 drivers/pci/controller/pci-hyperv.c wslot.bits.dev = PCI_SLOT(devfn); devfn 626 drivers/pci/controller/pci-hyperv.c wslot.bits.func = PCI_FUNC(devfn); devfn 805 drivers/pci/controller/pci-hyperv.c static int hv_pcifront_read_config(struct pci_bus *bus, unsigned int devfn, devfn 812 drivers/pci/controller/pci-hyperv.c hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(devfn)); devfn 833 drivers/pci/controller/pci-hyperv.c static int hv_pcifront_write_config(struct pci_bus *bus, unsigned int devfn, devfn 840 drivers/pci/controller/pci-hyperv.c hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(devfn)); devfn 959 drivers/pci/controller/pci-hyperv.c read_blk->wslot.slot = devfn_to_wslot(pdev->devfn); devfn 1039 drivers/pci/controller/pci-hyperv.c write_blk->wslot.slot = devfn_to_wslot(pdev->devfn); devfn 1091 drivers/pci/controller/pci-hyperv.c hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn)); devfn 1152 drivers/pci/controller/pci-hyperv.c hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn)); devfn 1217 drivers/pci/controller/pci-hyperv.c PCI_FUNC(pdev->devfn); devfn 1377 drivers/pci/controller/pci-hyperv.c hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn)); devfn 50 drivers/pci/controller/pci-mvebu.c #define PCIE_CONF_ADDR(bus, devfn, where) \ devfn 51 drivers/pci/controller/pci-mvebu.c (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \ devfn 52 drivers/pci/controller/pci-mvebu.c PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \ devfn 94 drivers/pci/controller/pci-mvebu.c int devfn; devfn 230 drivers/pci/controller/pci-mvebu.c u32 devfn, int where, int size, u32 *val) devfn 234 drivers/pci/controller/pci-mvebu.c mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), devfn 254 drivers/pci/controller/pci-mvebu.c u32 devfn, int where, int size, u32 val) devfn 258 drivers/pci/controller/pci-mvebu.c mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), devfn 596 drivers/pci/controller/pci-mvebu.c int devfn) devfn 603 drivers/pci/controller/pci-mvebu.c if (bus->number == 0 && port->devfn == devfn) devfn 615 drivers/pci/controller/pci-mvebu.c static int mvebu_pcie_wr_conf(struct pci_bus *bus, u32 devfn, devfn 622 drivers/pci/controller/pci-mvebu.c port = mvebu_pcie_find_port(pcie, bus, devfn); devfn 635 drivers/pci/controller/pci-mvebu.c ret = mvebu_pcie_hw_wr_conf(port, bus, devfn, devfn 642 drivers/pci/controller/pci-mvebu.c static int mvebu_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, devfn 649 drivers/pci/controller/pci-mvebu.c port = mvebu_pcie_find_port(pcie, bus, devfn); devfn 666 drivers/pci/controller/pci-mvebu.c ret = mvebu_pcie_hw_rd_conf(port, bus, devfn, devfn 727 drivers/pci/controller/pci-mvebu.c static int mvebu_get_tgt_attr(struct device_node *np, int devfn, devfn 760 drivers/pci/controller/pci-mvebu.c if (slot == PCI_SLOT(devfn) && type == rtype) { devfn 833 drivers/pci/controller/pci-mvebu.c port->devfn = of_pci_get_devfn(child); devfn 834 drivers/pci/controller/pci-mvebu.c if (port->devfn < 0) devfn 837 drivers/pci/controller/pci-mvebu.c ret = mvebu_get_tgt_attr(dev->of_node, port->devfn, IORESOURCE_MEM, devfn 846 drivers/pci/controller/pci-mvebu.c mvebu_get_tgt_attr(dev->of_node, port->devfn, IORESOURCE_IO, devfn 109 drivers/pci/controller/pci-rcar-gen2.c static void __iomem *rcar_pci_cfg_base(struct pci_bus *bus, unsigned int devfn, devfn 116 drivers/pci/controller/pci-rcar-gen2.c if (sys->busnr != bus->number || PCI_FUNC(devfn)) devfn 120 drivers/pci/controller/pci-rcar-gen2.c slot = PCI_SLOT(devfn); devfn 455 drivers/pci/controller/pci-tegra.c static unsigned int tegra_pcie_conf_offset(u8 bus, unsigned int devfn, devfn 458 drivers/pci/controller/pci-tegra.c return ((where & 0xf00) << 16) | (bus << 16) | (PCI_SLOT(devfn) << 11) | devfn 459 drivers/pci/controller/pci-tegra.c (PCI_FUNC(devfn) << 8) | (where & 0xff); devfn 463 drivers/pci/controller/pci-tegra.c unsigned int devfn, devfn 470 drivers/pci/controller/pci-tegra.c unsigned int slot = PCI_SLOT(devfn); devfn 483 drivers/pci/controller/pci-tegra.c offset = tegra_pcie_conf_offset(bus->number, devfn, where); devfn 496 drivers/pci/controller/pci-tegra.c static int tegra_pcie_config_read(struct pci_bus *bus, unsigned int devfn, devfn 500 drivers/pci/controller/pci-tegra.c return pci_generic_config_read32(bus, devfn, where, size, devfn 503 drivers/pci/controller/pci-tegra.c return pci_generic_config_read(bus, devfn, where, size, value); devfn 506 drivers/pci/controller/pci-tegra.c static int tegra_pcie_config_write(struct pci_bus *bus, unsigned int devfn, devfn 510 drivers/pci/controller/pci-tegra.c return pci_generic_config_write32(bus, devfn, where, size, devfn 513 drivers/pci/controller/pci-tegra.c return pci_generic_config_write(bus, devfn, where, size, value); devfn 30 drivers/pci/controller/pci-thunder-ecam.c unsigned int devfn, int where, int size, u32 *val) devfn 43 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ devfn 58 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ devfn 74 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, bar + 4); /* BAR 1 */ devfn 86 drivers/pci/controller/pci-thunder-ecam.c static int thunder_ecam_p2_config_read(struct pci_bus *bus, unsigned int devfn, devfn 103 drivers/pci/controller/pci-thunder-ecam.c return pci_generic_config_read(bus, devfn, where, size, val); devfn 106 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, where_a); devfn 127 drivers/pci/controller/pci-thunder-ecam.c static int thunder_ecam_config_read(struct pci_bus *bus, unsigned int devfn, devfn 137 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, 0xc); devfn 148 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, 8); devfn 162 drivers/pci/controller/pci-thunder-ecam.c return thunder_ecam_p2_config_read(bus, devfn, where, devfn 178 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, 0); devfn 190 drivers/pci/controller/pci-thunder-ecam.c (unsigned) where, devfn); devfn 198 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, 0x70); devfn 213 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, where_a); devfn 240 drivers/pci/controller/pci-thunder-ecam.c 0x10, bus, devfn, where, devfn 245 drivers/pci/controller/pci-thunder-ecam.c 0x20, bus, devfn, where, devfn 250 drivers/pci/controller/pci-thunder-ecam.c 0x18, bus, devfn, where, devfn 255 drivers/pci/controller/pci-thunder-ecam.c 0x1a4, bus, devfn, where, devfn 260 drivers/pci/controller/pci-thunder-ecam.c 0x1b4, bus, devfn, where, devfn 263 drivers/pci/controller/pci-thunder-ecam.c bool is_rsl_bridge = devfn == 0x08; devfn 264 drivers/pci/controller/pci-thunder-ecam.c bool is_rad_bridge = devfn == 0xa0; devfn 265 drivers/pci/controller/pci-thunder-ecam.c bool is_zip_bridge = devfn == 0xa8; devfn 266 drivers/pci/controller/pci-thunder-ecam.c bool is_dfa_bridge = devfn == 0xb0; devfn 267 drivers/pci/controller/pci-thunder-ecam.c bool is_nic_bridge = devfn == 0x10; devfn 270 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, where_a); devfn 330 drivers/pci/controller/pci-thunder-ecam.c return pci_generic_config_read(bus, devfn, where, size, val); devfn 333 drivers/pci/controller/pci-thunder-ecam.c static int thunder_ecam_config_write(struct pci_bus *bus, unsigned int devfn, devfn 345 drivers/pci/controller/pci-thunder-ecam.c return pci_generic_config_write(bus, devfn, where, size, val); devfn 26 drivers/pci/controller/pci-thunder-pem.c static int thunder_pem_bridge_read(struct pci_bus *bus, unsigned int devfn, devfn 33 drivers/pci/controller/pci-thunder-pem.c if (devfn != 0 || where >= 2048) { devfn 128 drivers/pci/controller/pci-thunder-pem.c static int thunder_pem_config_read(struct pci_bus *bus, unsigned int devfn, devfn 142 drivers/pci/controller/pci-thunder-pem.c return thunder_pem_bridge_read(bus, devfn, where, size, val); devfn 144 drivers/pci/controller/pci-thunder-pem.c return pci_generic_config_read(bus, devfn, where, size, val); devfn 204 drivers/pci/controller/pci-thunder-pem.c static int thunder_pem_bridge_write(struct pci_bus *bus, unsigned int devfn, devfn 214 drivers/pci/controller/pci-thunder-pem.c if (devfn != 0 || where >= 2048) devfn 277 drivers/pci/controller/pci-thunder-pem.c static int thunder_pem_config_write(struct pci_bus *bus, unsigned int devfn, devfn 290 drivers/pci/controller/pci-thunder-pem.c return thunder_pem_bridge_write(bus, devfn, where, size, val); devfn 293 drivers/pci/controller/pci-thunder-pem.c return pci_generic_config_write(bus, devfn, where, size, val); devfn 316 drivers/pci/controller/pci-v3-semi.c unsigned int devfn, int offset) devfn 323 drivers/pci/controller/pci-v3-semi.c int slot = PCI_SLOT(devfn); devfn 335 drivers/pci/controller/pci-v3-semi.c address = PCI_FUNC(devfn) << 8; devfn 362 drivers/pci/controller/pci-v3-semi.c address = (busnr << 16) | (devfn << 8); devfn 49 drivers/pci/controller/pci-versatile.c unsigned int devfn, int offset) devfn 53 drivers/pci/controller/pci-versatile.c if (pci_slot_ignore & (1 << PCI_SLOT(devfn))) devfn 56 drivers/pci/controller/pci-versatile.c return versatile_cfg_base[1] + ((busnr << 16) | (devfn << 8) | offset); devfn 119 drivers/pci/controller/pci-xgene.c static void xgene_pcie_set_rtdid_reg(struct pci_bus *bus, uint devfn) devfn 126 drivers/pci/controller/pci-xgene.c d = PCI_SLOT(devfn); devfn 127 drivers/pci/controller/pci-xgene.c f = PCI_FUNC(devfn); devfn 154 drivers/pci/controller/pci-xgene.c static void __iomem *xgene_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, devfn 157 drivers/pci/controller/pci-xgene.c if ((pci_is_root_bus(bus) && devfn != 0) || devfn 161 drivers/pci/controller/pci-xgene.c xgene_pcie_set_rtdid_reg(bus, devfn); devfn 165 drivers/pci/controller/pci-xgene.c static int xgene_pcie_config_read32(struct pci_bus *bus, unsigned int devfn, devfn 170 drivers/pci/controller/pci-xgene.c if (pci_generic_config_read32(bus, devfn, where & ~0x3, 4, val) != devfn 59 drivers/pci/controller/pcie-altera.c #define TLP_REQ_ID(bus, devfn) (((bus) << 8) | (devfn)) devfn 65 drivers/pci/controller/pcie-altera.c #define TLP_CFG_DW2(bus, devfn, offset) \ devfn 66 drivers/pci/controller/pcie-altera.c (((bus) << 24) | ((devfn) << 16) | (offset)) devfn 160 drivers/pci/controller/pcie-altera.c static bool altera_pcie_hide_rc_bar(struct pci_bus *bus, unsigned int devfn, devfn 163 drivers/pci/controller/pcie-altera.c if (pci_is_root_bus(bus) && (devfn == 0) && devfn 322 drivers/pci/controller/pcie-altera.c static void get_tlp_header(struct altera_pcie *pcie, u8 bus, u32 devfn, devfn 337 drivers/pci/controller/pcie-altera.c headers[2] = TLP_CFG_DW2(bus, devfn, where); devfn 340 drivers/pci/controller/pcie-altera.c static int tlp_cfg_dword_read(struct altera_pcie *pcie, u8 bus, u32 devfn, devfn 345 drivers/pci/controller/pcie-altera.c get_tlp_header(pcie, bus, devfn, where, byte_en, true, devfn 353 drivers/pci/controller/pcie-altera.c static int tlp_cfg_dword_write(struct altera_pcie *pcie, u8 bus, u32 devfn, devfn 359 drivers/pci/controller/pcie-altera.c get_tlp_header(pcie, bus, devfn, where, byte_en, false, devfn 432 drivers/pci/controller/pcie-altera.c unsigned int devfn, int where, int size, devfn 455 drivers/pci/controller/pcie-altera.c ret = tlp_cfg_dword_read(pcie, busno, devfn, devfn 476 drivers/pci/controller/pcie-altera.c unsigned int devfn, int where, int size, devfn 502 drivers/pci/controller/pcie-altera.c return tlp_cfg_dword_write(pcie, busno, devfn, (where & ~DWORD_MASK), devfn 506 drivers/pci/controller/pcie-altera.c static int altera_pcie_cfg_read(struct pci_bus *bus, unsigned int devfn, devfn 511 drivers/pci/controller/pcie-altera.c if (altera_pcie_hide_rc_bar(bus, devfn, where)) devfn 514 drivers/pci/controller/pcie-altera.c if (!altera_pcie_valid_device(pcie, bus, PCI_SLOT(devfn))) { devfn 519 drivers/pci/controller/pcie-altera.c return _altera_pcie_cfg_read(pcie, bus->number, devfn, where, size, devfn 523 drivers/pci/controller/pcie-altera.c static int altera_pcie_cfg_write(struct pci_bus *bus, unsigned int devfn, devfn 528 drivers/pci/controller/pcie-altera.c if (altera_pcie_hide_rc_bar(bus, devfn, where)) devfn 531 drivers/pci/controller/pcie-altera.c if (!altera_pcie_valid_device(pcie, bus, PCI_SLOT(devfn))) devfn 534 drivers/pci/controller/pcie-altera.c return _altera_pcie_cfg_write(pcie, bus->number, devfn, where, size, devfn 544 drivers/pci/controller/pcie-altera.c unsigned int devfn, int offset, u16 *value) devfn 549 drivers/pci/controller/pcie-altera.c ret = _altera_pcie_cfg_read(pcie, busno, devfn, devfn 558 drivers/pci/controller/pcie-altera.c unsigned int devfn, int offset, u16 value) devfn 560 drivers/pci/controller/pcie-altera.c return _altera_pcie_cfg_write(pcie, busno, devfn, devfn 41 drivers/pci/controller/pcie-cadence-host.c static void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn, devfn 56 drivers/pci/controller/pcie-cadence-host.c if (devfn) devfn 69 drivers/pci/controller/pcie-cadence-host.c CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_DEVFN(devfn) | devfn 116 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_DEVFN(devfn) \ devfn 117 drivers/pci/controller/pcie-cadence.h (((devfn) << 12) & CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_DEVFN_MASK) devfn 139 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_DESC0_DEVFN(devfn) \ devfn 140 drivers/pci/controller/pcie-cadence.h (((devfn) << 24) & CDNS_PCIE_AT_OB_REGION_DESC0_DEVFN_MASK) devfn 573 drivers/pci/controller/pcie-iproc.c static int iproc_pcie_config_read(struct pci_bus *bus, unsigned int devfn, devfn 577 drivers/pci/controller/pcie-iproc.c unsigned int slot = PCI_SLOT(devfn); devfn 578 drivers/pci/controller/pcie-iproc.c unsigned int fn = PCI_FUNC(devfn); devfn 586 drivers/pci/controller/pcie-iproc.c ret = pci_generic_config_read32(bus, devfn, where, size, val); devfn 631 drivers/pci/controller/pcie-iproc.c int busno, unsigned int devfn, devfn 634 drivers/pci/controller/pcie-iproc.c unsigned slot = PCI_SLOT(devfn); devfn 635 drivers/pci/controller/pcie-iproc.c unsigned fn = PCI_FUNC(devfn); devfn 656 drivers/pci/controller/pcie-iproc.c unsigned int devfn, devfn 659 drivers/pci/controller/pcie-iproc.c return iproc_pcie_map_cfg_bus(iproc_data(bus), bus->number, devfn, devfn 664 drivers/pci/controller/pcie-iproc.c unsigned int devfn, int where, devfn 669 drivers/pci/controller/pcie-iproc.c addr = iproc_pcie_map_cfg_bus(pcie, 0, devfn, where & ~0x3); devfn 684 drivers/pci/controller/pcie-iproc.c unsigned int devfn, int where, devfn 690 drivers/pci/controller/pcie-iproc.c addr = iproc_pcie_map_cfg_bus(pcie, 0, devfn, where & ~0x3); devfn 707 drivers/pci/controller/pcie-iproc.c static int iproc_pcie_config_read32(struct pci_bus *bus, unsigned int devfn, devfn 715 drivers/pci/controller/pcie-iproc.c ret = iproc_pcie_config_read(bus, devfn, where, size, val); devfn 717 drivers/pci/controller/pcie-iproc.c ret = pci_generic_config_read32(bus, devfn, where, size, val); devfn 723 drivers/pci/controller/pcie-iproc.c static int iproc_pcie_config_write32(struct pci_bus *bus, unsigned int devfn, devfn 729 drivers/pci/controller/pcie-iproc.c ret = pci_generic_config_write32(bus, devfn, where, size, val); devfn 281 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_hw_rd_cfg(struct mtk_pcie_port *port, u32 bus, u32 devfn, devfn 290 drivers/pci/controller/pcie-mediatek.c writel(CFG_HEADER_DW2(where, PCI_FUNC(devfn), PCI_SLOT(devfn), bus), devfn 313 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_hw_wr_cfg(struct mtk_pcie_port *port, u32 bus, u32 devfn, devfn 320 drivers/pci/controller/pcie-mediatek.c writel(CFG_HEADER_DW2(where, PCI_FUNC(devfn), PCI_SLOT(devfn), bus), devfn 337 drivers/pci/controller/pcie-mediatek.c unsigned int devfn) devfn 350 drivers/pci/controller/pcie-mediatek.c devfn = dev->devfn; devfn 354 drivers/pci/controller/pcie-mediatek.c if (port->slot == PCI_SLOT(devfn)) devfn 360 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_config_read(struct pci_bus *bus, unsigned int devfn, devfn 367 drivers/pci/controller/pcie-mediatek.c port = mtk_pcie_find_port(bus, devfn); devfn 373 drivers/pci/controller/pcie-mediatek.c ret = mtk_pcie_hw_rd_cfg(port, bn, devfn, where, size, val); devfn 380 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_config_write(struct pci_bus *bus, unsigned int devfn, devfn 386 drivers/pci/controller/pcie-mediatek.c port = mtk_pcie_find_port(bus, devfn); devfn 390 drivers/pci/controller/pcie-mediatek.c return mtk_pcie_hw_wr_cfg(port, bn, devfn, where, size, val); devfn 736 drivers/pci/controller/pcie-mediatek.c unsigned int devfn, int where) devfn 740 drivers/pci/controller/pcie-mediatek.c writel(PCIE_CONF_ADDR(where, PCI_FUNC(devfn), PCI_SLOT(devfn), devfn 282 drivers/pci/controller/pcie-mobiveil.c static bool mobiveil_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) devfn 287 drivers/pci/controller/pcie-mobiveil.c if ((bus->number == pcie->root_bus_nr) && (devfn > 0)) devfn 294 drivers/pci/controller/pcie-mobiveil.c if ((bus->primary == pcie->root_bus_nr) && (PCI_SLOT(devfn) > 0)) devfn 305 drivers/pci/controller/pcie-mobiveil.c unsigned int devfn, int where) devfn 310 drivers/pci/controller/pcie-mobiveil.c if (!mobiveil_pcie_valid_device(bus, devfn)) devfn 324 drivers/pci/controller/pcie-mobiveil.c PCI_SLOT(devfn) << PAB_DEVICE_SHIFT | devfn 325 drivers/pci/controller/pcie-mobiveil.c PCI_FUNC(devfn) << PAB_FUNCTION_SHIFT; devfn 197 drivers/pci/controller/pcie-rcar.c unsigned int devfn, int where, u32 *data) devfn 201 drivers/pci/controller/pcie-rcar.c dev = PCI_SLOT(devfn); devfn 202 drivers/pci/controller/pcie-rcar.c func = PCI_FUNC(devfn); devfn 274 drivers/pci/controller/pcie-rcar.c static int rcar_pcie_read_conf(struct pci_bus *bus, unsigned int devfn, devfn 281 drivers/pci/controller/pcie-rcar.c bus, devfn, where, val); devfn 293 drivers/pci/controller/pcie-rcar.c bus->number, devfn, where, size, *val); devfn 299 drivers/pci/controller/pcie-rcar.c static int rcar_pcie_write_conf(struct pci_bus *bus, unsigned int devfn, devfn 308 drivers/pci/controller/pcie-rcar.c bus, devfn, where, &data); devfn 313 drivers/pci/controller/pcie-rcar.c bus->number, devfn, where, size, val); devfn 327 drivers/pci/controller/pcie-rcar.c bus, devfn, where, &data); devfn 160 drivers/pci/controller/pcie-rockchip-host.c struct pci_bus *bus, u32 devfn, devfn 165 drivers/pci/controller/pcie-rockchip-host.c busdev = PCIE_ECAM_ADDR(bus->number, PCI_SLOT(devfn), devfn 166 drivers/pci/controller/pcie-rockchip-host.c PCI_FUNC(devfn), where); devfn 194 drivers/pci/controller/pcie-rockchip-host.c struct pci_bus *bus, u32 devfn, devfn 199 drivers/pci/controller/pcie-rockchip-host.c busdev = PCIE_ECAM_ADDR(bus->number, PCI_SLOT(devfn), devfn 200 drivers/pci/controller/pcie-rockchip-host.c PCI_FUNC(devfn), where); devfn 223 drivers/pci/controller/pcie-rockchip-host.c static int rockchip_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, devfn 228 drivers/pci/controller/pcie-rockchip-host.c if (!rockchip_pcie_valid_device(rockchip, bus, PCI_SLOT(devfn))) { devfn 236 drivers/pci/controller/pcie-rockchip-host.c return rockchip_pcie_rd_other_conf(rockchip, bus, devfn, where, size, devfn 240 drivers/pci/controller/pcie-rockchip-host.c static int rockchip_pcie_wr_conf(struct pci_bus *bus, u32 devfn, devfn 245 drivers/pci/controller/pcie-rockchip-host.c if (!rockchip_pcie_valid_device(rockchip, bus, PCI_SLOT(devfn))) devfn 251 drivers/pci/controller/pcie-rockchip-host.c return rockchip_pcie_wr_other_conf(rockchip, bus, devfn, where, size, devfn 242 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR0_DEVFN(devfn) \ devfn 243 drivers/pci/controller/pcie-rockchip.h (((devfn) << 12) & \ devfn 252 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_DESC0_DEVFN(devfn) \ devfn 253 drivers/pci/controller/pcie-rockchip.h (((devfn) << 24) & ROCKCHIP_PCIE_AT_OB_REGION_DESC0_DEVFN_MASK) devfn 173 drivers/pci/controller/pcie-tango.c static int smp8759_config_read(struct pci_bus *bus, unsigned int devfn, devfn 181 drivers/pci/controller/pcie-tango.c if (devfn != 0) devfn 190 drivers/pci/controller/pcie-tango.c ret = pci_generic_config_read(bus, devfn, where, size, val); devfn 196 drivers/pci/controller/pcie-tango.c static int smp8759_config_write(struct pci_bus *bus, unsigned int devfn, devfn 204 drivers/pci/controller/pcie-tango.c ret = pci_generic_config_write(bus, devfn, where, size, val); devfn 215 drivers/pci/controller/pcie-xilinx-nwl.c static bool nwl_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) devfn 226 drivers/pci/controller/pcie-xilinx-nwl.c if (bus->number == pcie->root_busno && devfn > 0) devfn 242 drivers/pci/controller/pcie-xilinx-nwl.c static void __iomem *nwl_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, devfn 248 drivers/pci/controller/pcie-xilinx-nwl.c if (!nwl_pcie_valid_device(bus, devfn)) devfn 252 drivers/pci/controller/pcie-xilinx-nwl.c (devfn << ECAM_DEV_LOC_SHIFT); devfn 160 drivers/pci/controller/pcie-xilinx.c static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) devfn 170 drivers/pci/controller/pcie-xilinx.c if (bus->number == port->root_busno && devfn > 0) devfn 186 drivers/pci/controller/pcie-xilinx.c unsigned int devfn, int where) devfn 191 drivers/pci/controller/pcie-xilinx.c if (!xilinx_pcie_valid_device(bus, devfn)) devfn 195 drivers/pci/controller/pcie-xilinx.c (devfn << ECAM_DEV_NUM_SHIFT); devfn 444 drivers/pci/controller/vmd.c unsigned int devfn, int reg, int len) devfn 448 drivers/pci/controller/vmd.c (devfn << 12) + reg; devfn 461 drivers/pci/controller/vmd.c static int vmd_pci_read(struct pci_bus *bus, unsigned int devfn, int reg, devfn 465 drivers/pci/controller/vmd.c char __iomem *addr = vmd_cfg_addr(vmd, bus, devfn, reg, len); devfn 496 drivers/pci/controller/vmd.c static int vmd_pci_write(struct pci_bus *bus, unsigned int devfn, int reg, devfn 500 drivers/pci/controller/vmd.c char __iomem *addr = vmd_cfg_addr(vmd, bus, devfn, reg, len); devfn 128 drivers/pci/ecam.c void __iomem *pci_ecam_map_bus(struct pci_bus *bus, unsigned int devfn, devfn 144 drivers/pci/ecam.c return base + (devfn << devfn_shift) + where; devfn 413 drivers/pci/hotplug/acpiphp_glue.c if (PCI_FUNC(dev->devfn) == func->function) { devfn 487 drivers/pci/hotplug/acpiphp_glue.c if (PCI_SLOT(dev->devfn) == slot->device) devfn 498 drivers/pci/hotplug/acpiphp_glue.c if (PCI_SLOT(dev->devfn) != slot->device) devfn 555 drivers/pci/hotplug/acpiphp_glue.c if (PCI_SLOT(dev->devfn) == slot->device) devfn 570 drivers/pci/hotplug/acpiphp_glue.c if (PCI_SLOT(dev->devfn) == slot->device && dev->ignore_hotplug) devfn 707 drivers/pci/hotplug/acpiphp_glue.c if (PCI_SLOT(dev->devfn) == slot->device) devfn 32 drivers/pci/hotplug/cpci_hotplug.h unsigned int devfn; devfn 213 drivers/pci/hotplug/cpci_hotplug_core.c slot->devfn = PCI_DEVFN(i, 0); devfn 41 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 47 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 61 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 66 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 75 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 88 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 93 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 107 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 112 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 119 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 136 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 141 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 156 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 161 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 168 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 182 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 187 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 194 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 210 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 215 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 222 drivers/pci/hotplug/cpci_hotplug_pci.c slot->devfn, devfn 249 drivers/pci/hotplug/cpci_hotplug_pci.c slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn)); devfn 250 drivers/pci/hotplug/cpci_hotplug_pci.c slot->dev = pci_get_slot(slot->bus, slot->devfn); devfn 262 drivers/pci/hotplug/cpci_hotplug_pci.c n = pci_scan_slot(slot->bus, slot->devfn); devfn 264 drivers/pci/hotplug/cpci_hotplug_pci.c slot->dev = pci_get_slot(slot->bus, slot->devfn); devfn 274 drivers/pci/hotplug/cpci_hotplug_pci.c if (PCI_SLOT(dev->devfn) == PCI_SLOT(slot->devfn)) devfn 301 drivers/pci/hotplug/cpci_hotplug_pci.c if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) devfn 171 drivers/pci/hotplug/cpqphp_core.c tdevice = cpqhp_routing_table->slots[loop].devfn; devfn 321 drivers/pci/hotplug/cpqphp_core.c tdevice = cpqhp_routing_table->slots[loop].devfn >> 3; devfn 420 drivers/pci/hotplug/cpqphp_core.c u8 devfn; devfn 426 drivers/pci/hotplug/cpqphp_core.c if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) devfn 429 drivers/pci/hotplug/cpqphp_core.c device = devfn >> 3; devfn 430 drivers/pci/hotplug/cpqphp_core.c function = devfn & 0x7; devfn 447 drivers/pci/hotplug/cpqphp_core.c u8 devfn; devfn 453 drivers/pci/hotplug/cpqphp_core.c if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) devfn 456 drivers/pci/hotplug/cpqphp_core.c device = devfn >> 3; devfn 457 drivers/pci/hotplug/cpqphp_core.c function = devfn & 0x7; devfn 479 drivers/pci/hotplug/cpqphp_core.c u8 devfn; devfn 485 drivers/pci/hotplug/cpqphp_core.c if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) devfn 488 drivers/pci/hotplug/cpqphp_core.c device = devfn >> 3; devfn 489 drivers/pci/hotplug/cpqphp_core.c function = devfn & 0x7; devfn 1031 drivers/pci/hotplug/cpqphp_core.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev); devfn 2043 drivers/pci/hotplug/cpqphp_ctrl.c unsigned int devfn; devfn 2057 drivers/pci/hotplug/cpqphp_ctrl.c devfn = PCI_DEVFN(func->device, func->function); devfn 2060 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_read_config_byte(pci_bus, devfn, 0x0B, &class_code); devfn 2069 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); devfn 2075 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_BRIDGE_CONTROL, &BCR); devfn 2334 drivers/pci/hotplug/cpqphp_ctrl.c unsigned int devfn; devfn 2350 drivers/pci/hotplug/cpqphp_ctrl.c devfn = PCI_DEVFN(func->device, func->function); devfn 2353 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &temp_byte); devfn 2360 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_PRIMARY_BUS, func->bus); devfn 2375 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, temp_byte); devfn 2382 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, temp_byte); devfn 2388 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SEC_LATENCY_TIMER, temp_byte); devfn 2391 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_LATENCY_TIMER, temp_byte); devfn 2397 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_CACHE_LINE_SIZE, temp_byte); devfn 2477 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_BASE, temp_byte); devfn 2480 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_LIMIT, temp_byte); devfn 2490 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_BASE, temp_word); devfn 2493 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, temp_word); devfn 2500 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_BASE, temp_word); devfn 2503 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, temp_word); devfn 2572 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, temp_byte); devfn 2593 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_IO_BASE, temp_byte); devfn 2612 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_LIMIT, temp_byte); devfn 2618 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_IO_LIMIT, temp_word); devfn 2644 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_BASE, temp_word); devfn 2663 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, temp_word); devfn 2670 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, temp_word); devfn 2696 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_BASE, temp_word); devfn 2715 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, temp_word); devfn 2721 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, temp_word); devfn 2747 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_COMMAND, command); devfn 2753 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, command); devfn 2756 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_read_config_byte(pci_bus, devfn, 0x0B, &class_code); devfn 2766 drivers/pci/hotplug/cpqphp_ctrl.c dbg("CND: bus=%d, devfn=%d, offset=%d\n", pci_bus->number, devfn, cloop); devfn 2767 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); devfn 2769 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_read_config_dword(pci_bus, devfn, cloop, &temp_register); devfn 2829 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_dword(pci_bus, devfn, cloop, base); devfn 2840 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_dword(pci_bus, devfn, cloop, base); devfn 2846 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_read_config_byte(pci_bus, devfn, devfn 2860 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_read_config_byte(pci_bus, devfn, 0x0B, &class_code); devfn 2869 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_INTERRUPT_LINE, IRQ); devfn 2885 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, devfn 2890 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, devfn 2895 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, devfn 2905 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_word(pci_bus, devfn, devfn 274 drivers/pci/hotplug/cpqphp_nvram.c rc = add_byte(&pFill, PCI_SLOT(ctrl->pci_dev->devfn), &usedbytes, &available); devfn 279 drivers/pci/hotplug/cpqphp_nvram.c rc = add_byte(&pFill, PCI_FUNC(ctrl->pci_dev->devfn), &usedbytes, &available); devfn 469 drivers/pci/hotplug/cpqphp_nvram.c (device != PCI_SLOT(ctrl->pci_dev->devfn)) || devfn 470 drivers/pci/hotplug/cpqphp_nvram.c (function != PCI_FUNC(ctrl->pci_dev->devfn))) { devfn 135 drivers/pci/hotplug/cpqphp_pci.c static int PCI_RefinedAccessConfig(struct pci_bus *bus, unsigned int devfn, u8 offset, u32 *value) devfn 139 drivers/pci/hotplug/cpqphp_pci.c if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, &vendID) == -1) devfn 143 drivers/pci/hotplug/cpqphp_pci.c return pci_bus_read_config_dword(bus, devfn, offset, value); devfn 171 drivers/pci/hotplug/cpqphp_pci.c fakedev->devfn = dev_num << 3; devfn 246 drivers/pci/hotplug/cpqphp_pci.c tdevice = cpqhp_routing_table->slots[loop].devfn; devfn 315 drivers/pci/hotplug/cpqphp_pci.c u16 devfn; devfn 413 drivers/pci/hotplug/cpqphp_pci.c devfn = (new_slot->device << 3) | new_slot->function; devfn 415 drivers/pci/hotplug/cpqphp_pci.c new_slot->bus, devfn); devfn 561 drivers/pci/hotplug/cpqphp_pci.c unsigned int devfn; devfn 567 drivers/pci/hotplug/cpqphp_pci.c devfn = PCI_DEVFN(func->device, func->function); devfn 570 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); devfn 573 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); devfn 594 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); devfn 595 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); devfn 630 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); devfn 631 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); devfn 706 drivers/pci/hotplug/cpqphp_pci.c unsigned int devfn; devfn 712 drivers/pci/hotplug/cpqphp_pci.c devfn = PCI_DEVFN(func->device, func->function); devfn 715 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_word(pci_bus, devfn, PCI_COMMAND, &save_command); devfn 719 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_word(pci_bus, devfn, PCI_COMMAND, command); devfn 722 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); devfn 727 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, command); devfn 728 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); devfn 729 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, &temp_byte); devfn 742 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_IO_BASE, &b_base); devfn 743 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_IO_LIMIT, &b_length); devfn 758 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_BASE, &w_base); devfn 759 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); devfn 774 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_BASE, &w_base); devfn 775 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); devfn 790 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); devfn 793 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); devfn 794 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); devfn 862 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); devfn 865 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); devfn 866 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); devfn 959 drivers/pci/hotplug/cpqphp_pci.c unsigned int devfn; devfn 965 drivers/pci/hotplug/cpqphp_pci.c devfn = PCI_DEVFN(func->device, func->function); devfn 971 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_dword(pci_bus, devfn, cloop, func->config_space[cloop >> 2]); devfn 973 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); devfn 977 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); devfn 997 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, cloop, &temp); devfn 1038 drivers/pci/hotplug/cpqphp_pci.c unsigned int devfn; devfn 1047 drivers/pci/hotplug/cpqphp_pci.c devfn = PCI_DEVFN(func->device, func->function); devfn 1049 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, PCI_VENDOR_ID, &temp_register); devfn 1059 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, PCI_CLASS_REVISION, &temp_register); devfn 1066 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); devfn 1075 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_dword(pci_bus, devfn, PCI_PRIMARY_BUS, temp_register); devfn 1093 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, PCI_SUBSYSTEM_VENDOR_ID, &temp_register); devfn 1107 drivers/pci/hotplug/cpqphp_pci.c pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); devfn 1108 drivers/pci/hotplug/cpqphp_pci.c pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); devfn 143 drivers/pci/hotplug/ibmphp_core.c (*cur_slot)->device = PCI_SLOT(rtable->slots[loop].devfn); devfn 711 drivers/pci/hotplug/ibmphp_core.c for (dev->devfn = 0; dev->devfn < 256; dev->devfn += 8) { devfn 1112 drivers/pci/hotplug/ibmphp_ebda.c if ((dev->devfn == ctrl->u.pci_ctlr.dev_fun) && (dev->bus->number == ctrl->u.pci_ctlr.bus)) { devfn 93 drivers/pci/hotplug/ibmphp_pci.c unsigned int devfn = PCI_DEVFN(device, function); devfn 101 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_VENDOR_ID, &vendor_id); devfn 115 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); devfn 116 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class); devfn 188 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number); devfn 258 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number); devfn 349 drivers/pci/hotplug/ibmphp_pci.c unsigned int devfn; devfn 353 drivers/pci/hotplug/ibmphp_pci.c devfn = PCI_DEVFN(func->device, func->function); devfn 371 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); devfn 372 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); devfn 406 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], func->io[count]->start); devfn 410 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); devfn 466 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], func->pfmem[count]->start); devfn 470 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); devfn 478 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0x00000000); devfn 507 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], func->mem[count]->start); devfn 510 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); devfn 519 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0x00000000); devfn 526 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_INTERRUPT_PIN, &irq); devfn 528 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_INTERRUPT_LINE, func->irq[irq - 1]); devfn 530 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_CACHE_LINE_SIZE, CACHE); devfn 531 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_LATENCY_TIMER, LATENCY); devfn 533 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, PCI_ROM_ADDRESS, 0x00L); devfn 534 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_COMMAND, DEVICEENABLE); devfn 574 drivers/pci/hotplug/ibmphp_pci.c unsigned int devfn; devfn 580 drivers/pci/hotplug/ibmphp_pci.c devfn = PCI_DEVFN(func->function, func->device); devfn 587 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_PRIMARY_BUS, func->busno); devfn 604 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, sec_number); devfn 611 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_SUBORDINATE_BUS, sec_number); devfn 618 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_CACHE_LINE_SIZE, CACHE); devfn 619 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_LATENCY_TIMER, LATENCY); devfn 620 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_SEC_LATENCY_TIMER, LATENCY); devfn 633 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); devfn 634 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); devfn 673 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], func->io[count]->start); devfn 723 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], func->pfmem[count]->start); devfn 729 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0x00000000); devfn 759 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], func->mem[count]->start); devfn 765 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0x00000000); devfn 919 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_IO_BASE, &io_base); devfn 920 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_BASE, &pfmem_base); devfn 932 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_IO_BASE, 0x00 | bus->rangeIO->start >> 8); devfn 933 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_IO_LIMIT, 0x00 | bus->rangeIO->end >> 8); devfn 943 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_IO_BASE_UPPER16, 0x0000); devfn 944 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_IO_LIMIT_UPPER16, 0x0000); devfn 947 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_IO_BASE, 0x00); devfn 948 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_IO_LIMIT, 0x00); devfn 952 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_MEMORY_BASE, 0x0000 | bus->rangeMem->start >> 16); devfn 953 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_MEMORY_LIMIT, 0x0000 | bus->rangeMem->end >> 16); devfn 963 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_MEMORY_BASE, 0xffff); devfn 964 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_MEMORY_LIMIT, 0x0000); devfn 967 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_BASE, 0x0000 | bus->rangePFMem->start >> 16); devfn 968 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, 0x0000 | bus->rangePFMem->end >> 16); devfn 978 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, PCI_PREF_BASE_UPPER32, 0x00000000); devfn 979 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, PCI_PREF_LIMIT_UPPER32, 0x00000000); devfn 982 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_BASE, 0xffff); devfn 983 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, 0x0000); devfn 988 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_INTERRUPT_PIN, &irq); devfn 990 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_INTERRUPT_LINE, func->irq[irq - 1]); devfn 997 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_COMMAND, DEVICEENABLE); devfn 998 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_BRIDGE_CONTROL, 0x07); devfn 1053 drivers/pci/hotplug/ibmphp_pci.c unsigned int devfn; devfn 1079 drivers/pci/hotplug/ibmphp_pci.c devfn = PCI_DEVFN(device, function); devfn 1081 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_VENDOR_ID, &vendor_id); devfn 1087 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); devfn 1088 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class); devfn 1119 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); devfn 1120 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); devfn 1204 drivers/pci/hotplug/ibmphp_pci.c unsigned int devfn; devfn 1214 drivers/pci/hotplug/ibmphp_pci.c devfn = PCI_DEVFN(device, function); devfn 1217 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &start_address); devfn 1221 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); devfn 1222 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &size); devfn 1223 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], start_address); devfn 1319 drivers/pci/hotplug/ibmphp_pci.c unsigned int devfn; devfn 1321 drivers/pci/hotplug/ibmphp_pci.c devfn = PCI_DEVFN(device, function); devfn 1325 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_PRIMARY_BUS, &pri_number); devfn 1328 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number); devfn 1337 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_SUBORDINATE_BUS, &sub_number); devfn 1357 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &start_address); devfn 1425 drivers/pci/hotplug/ibmphp_pci.c unsigned int devfn; devfn 1436 drivers/pci/hotplug/ibmphp_pci.c devfn = PCI_DEVFN(device, function); devfn 1439 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_VENDOR_ID, &vendor_id); devfn 1452 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); devfn 1453 drivers/pci/hotplug/ibmphp_pci.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class); devfn 1917 drivers/pci/hotplug/ibmphp_res.c unsigned int devfn; devfn 1929 drivers/pci/hotplug/ibmphp_res.c devfn = PCI_DEVFN(device, function); devfn 1930 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_VENDOR_ID, &vendor_id); devfn 1934 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); devfn 1954 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_busno); devfn 1962 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_IO_BASE, &start_io_address); devfn 1963 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_IO_LIMIT, &end_io_address); devfn 1964 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_IO_BASE_UPPER16, &upper_io_start); devfn 1965 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_IO_LIMIT_UPPER16, &upper_io_end); devfn 2011 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_MEMORY_BASE, &start_mem_address); devfn 2012 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_MEMORY_LIMIT, &end_mem_address); devfn 2058 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_BASE, &start_mem_address); devfn 2059 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &end_mem_address); devfn 2060 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, PCI_PREF_BASE_UPPER32, &upper_start); devfn 2061 drivers/pci/hotplug/ibmphp_res.c pci_bus_read_config_dword(ibmphp_pci_bus, devfn, PCI_PREF_LIMIT_UPPER32, &upper_end); devfn 231 drivers/pci/hotplug/pciehp_hpc.c static bool pci_bus_check_dev(struct pci_bus *bus, int devfn) devfn 239 drivers/pci/hotplug/pciehp_hpc.c found = pci_bus_read_dev_vendor_id(bus, devfn, &l, 0); devfn 251 drivers/pci/hotplug/pciehp_hpc.c pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), devfn 252 drivers/pci/hotplug/pciehp_hpc.c PCI_FUNC(devfn), count, step, l); devfn 641 drivers/pci/hotplug/pnv_php.c php_slot->slot_no = PCI_SLOT(PCI_DN(dn->child)->devfn); devfn 146 drivers/pci/hotplug/rpadlpar_core.c dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); devfn 102 drivers/pci/hotplug/rpaphp_slot.c slotno = PCI_SLOT(PCI_DN(child)->devfn); devfn 51 drivers/pci/hotplug/shpchp_pci.c if (PCI_SLOT(dev->devfn) == p_slot->device) devfn 77 drivers/pci/hotplug/shpchp_pci.c if (PCI_SLOT(dev->devfn) != p_slot->device) devfn 24 drivers/pci/iov.c return dev->bus->number + ((dev->devfn + dev->sriov->offset + devfn 32 drivers/pci/iov.c return (dev->devfn + dev->sriov->offset + devfn 156 drivers/pci/iov.c virtfn->devfn = pci_iov_virtfn_devfn(dev, id); devfn 491 drivers/pci/iov.c if (iov->link != dev->devfn) { devfn 543 drivers/pci/iov.c if (iov->link != dev->devfn) devfn 578 drivers/pci/iov.c if (iov->link != dev->devfn) devfn 669 drivers/pci/iov.c iov->link = PCI_DEVFN(PCI_SLOT(dev->devfn), iov->link); devfn 24 drivers/pci/of.c dev->devfn); devfn 109 drivers/pci/of.c int devfn; devfn 111 drivers/pci/of.c devfn = of_pci_get_devfn(node); devfn 112 drivers/pci/of.c if (devfn < 0) devfn 115 drivers/pci/of.c return devfn == data; devfn 119 drivers/pci/of.c unsigned int devfn) devfn 124 drivers/pci/of.c if (__of_pci_pci_compare(node, devfn)) devfn 133 drivers/pci/of.c if (__of_pci_pci_compare(node2, devfn)) { devfn 440 drivers/pci/of.c laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8)); devfn 416 drivers/pci/p2pdma.c (client->bus->number << 8) | client->devfn; devfn 1160 drivers/pci/pci-acpi.c addr = (PCI_SLOT(pci_dev->devfn) << 16) | PCI_FUNC(pci_dev->devfn); devfn 50 drivers/pci/pci-label.c int devfn; devfn 54 drivers/pci/pci-label.c devfn = pdev->devfn; devfn 62 drivers/pci/pci-label.c donboard->devfn == devfn) { devfn 241 drivers/pci/pci.c if (dev->devfn != PCI_DEVFN(slot, func)) { devfn 274 drivers/pci/pci.c dev->devfn == PCI_DEVFN(slot, func)); devfn 361 drivers/pci/pci.c static int __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn, devfn 367 drivers/pci/pci.c pci_bus_read_config_byte(bus, devfn, pos, &pos); devfn 373 drivers/pci/pci.c pci_bus_read_config_word(bus, devfn, pos, &ent); devfn 385 drivers/pci/pci.c static int __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, devfn 390 drivers/pci/pci.c return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl); devfn 395 drivers/pci/pci.c return __pci_find_next_cap(dev->bus, dev->devfn, devfn 401 drivers/pci/pci.c unsigned int devfn, u8 hdr_type) devfn 405 drivers/pci/pci.c pci_bus_read_config_word(bus, devfn, PCI_STATUS, &status); devfn 443 drivers/pci/pci.c pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); devfn 445 drivers/pci/pci.c pos = __pci_find_next_cap(dev->bus, dev->devfn, pos, cap); devfn 464 drivers/pci/pci.c int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) devfn 469 drivers/pci/pci.c pci_bus_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type); devfn 471 drivers/pci/pci.c pos = __pci_bus_find_cap_start(bus, devfn, hdr_type & 0x7f); devfn 473 drivers/pci/pci.c pos = __pci_find_next_cap(bus, devfn, pos, cap); devfn 561 drivers/pci/pci.c pos = __pci_find_next_cap_ttl(dev->bus, dev->devfn, pos, devfn 571 drivers/pci/pci.c pos = __pci_find_next_cap_ttl(dev->bus, dev->devfn, devfn 612 drivers/pci/pci.c pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); devfn 3030 drivers/pci/pci.c pci_bus_read_config_byte(dev->bus, dev->devfn, ea + PCI_EA_NUM_ENT, devfn 3141 drivers/pci/pci.c if (pcie_ari_disabled || !pci_is_pcie(dev) || dev->devfn) devfn 3614 drivers/pci/pci.c slot = PCI_SLOT(dev->devfn); devfn 3652 drivers/pci/pci.c return PCI_SLOT(dev->devfn); devfn 4359 drivers/pci/pci.c bus->ops->read(bus, dev->devfn, PCI_COMMAND, 4, &cmd_status_dword); devfn 4378 drivers/pci/pci.c bus->ops->write(bus, dev->devfn, PCI_COMMAND, 2, newcmd); devfn 6055 drivers/pci/pci.c test_bit(dev2->devfn, dev1->dma_alias_mask)) || devfn 6057 drivers/pci/pci.c test_bit(dev1->devfn, dev2->dma_alias_mask)); devfn 6066 drivers/pci/pci.c return pci_bus_read_dev_vendor_id(pdev->bus, pdev->devfn, &v, 0); devfn 271 drivers/pci/pci.h bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl, devfn 273 drivers/pci/pci.h bool pci_bus_generic_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl, devfn 275 drivers/pci/pci.h int pci_idt_bus_quirk(struct pci_bus *bus, int devfn, u32 *pl, int crs_timeout); devfn 223 drivers/pci/pcie/aer.c p->device == PCI_SLOT(pci->devfn) && devfn 224 drivers/pci/pcie/aer.c p->function == PCI_FUNC(pci->devfn); devfn 748 drivers/pci/pcie/aer.c int id = ((dev->bus->number << 8) | dev->devfn); devfn 783 drivers/pci/pcie/aer.c u8 devfn = info->id & 0xff; devfn 788 drivers/pci/pcie/aer.c pci_domain_nr(dev->bus), bus, PCI_SLOT(devfn), devfn 789 drivers/pci/pcie/aer.c PCI_FUNC(devfn)); devfn 881 drivers/pci/pcie/aer.c if (e_info->id == ((dev->bus->number << 8) | dev->devfn)) devfn 1014 drivers/pci/pcie/aer.c u8 devfn; devfn 1030 drivers/pci/pcie/aer.c entry.devfn); devfn 1034 drivers/pci/pcie/aer.c PCI_SLOT(entry.devfn), PCI_FUNC(entry.devfn)); devfn 1056 drivers/pci/pcie/aer.c void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, devfn 1061 drivers/pci/pcie/aer.c .devfn = devfn, devfn 1072 drivers/pci/pcie/aer.c domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 51 drivers/pci/pcie/aer_inject.c unsigned int devfn; devfn 78 drivers/pci/pcie/aer_inject.c unsigned int bus, unsigned int devfn, devfn 84 drivers/pci/pcie/aer_inject.c err->devfn = devfn; devfn 90 drivers/pci/pcie/aer_inject.c unsigned int devfn) devfn 97 drivers/pci/pcie/aer_inject.c devfn == err->devfn) devfn 109 drivers/pci/pcie/aer_inject.c return __find_aer_error(domain, dev->bus->number, dev->devfn); devfn 181 drivers/pci/pcie/aer_inject.c static int aer_inj_read(struct pci_bus *bus, unsigned int devfn, int where, devfn 193 drivers/pci/pcie/aer_inject.c rv = ops->read(bus, devfn, where, size, val); devfn 199 drivers/pci/pcie/aer_inject.c static int aer_inj_write(struct pci_bus *bus, unsigned int devfn, int where, devfn 211 drivers/pci/pcie/aer_inject.c rv = ops->write(bus, devfn, where, size, val); devfn 217 drivers/pci/pcie/aer_inject.c static int aer_inj_read_config(struct pci_bus *bus, unsigned int devfn, devfn 232 drivers/pci/pcie/aer_inject.c err = __find_aer_error(domain, bus->number, devfn); devfn 243 drivers/pci/pcie/aer_inject.c rv = aer_inj_read(bus, devfn, where, size, val); devfn 248 drivers/pci/pcie/aer_inject.c static int aer_inj_write_config(struct pci_bus *bus, unsigned int devfn, devfn 264 drivers/pci/pcie/aer_inject.c err = __find_aer_error(domain, bus->number, devfn); devfn 278 drivers/pci/pcie/aer_inject.c rv = aer_inj_write(bus, devfn, where, size, val); devfn 327 drivers/pci/pcie/aer_inject.c unsigned int devfn = PCI_DEVFN(einj->dev, einj->fn); devfn 332 drivers/pci/pcie/aer_inject.c dev = pci_get_domain_bus_and_slot(einj->domain, einj->bus, devfn); devfn 389 drivers/pci/pcie/aer_inject.c aer_error_init(err, einj->domain, einj->bus, devfn, devfn 420 drivers/pci/pcie/aer_inject.c rpdev->bus->number, rpdev->devfn, devfn 430 drivers/pci/pcie/aer_inject.c rperr->source_id |= (einj->bus << 8) | devfn; devfn 443 drivers/pci/pcie/aer_inject.c rperr->source_id |= ((einj->bus << 8) | devfn) << 16; devfn 282 drivers/pci/pcie/aspm.c child_reg[PCI_FUNC(child->devfn)] = reg16; devfn 306 drivers/pci/pcie/aspm.c child_reg[PCI_FUNC(child->devfn)]); devfn 447 drivers/pci/pcie/aspm.c acceptable = &link->acceptable[PCI_FUNC(endpoint->devfn)]; devfn 491 drivers/pci/pcie/aspm.c if (PCI_FUNC(child->devfn) == 0) devfn 646 drivers/pci/pcie/aspm.c &link->acceptable[PCI_FUNC(child->devfn)]; devfn 101 drivers/pci/pcie/pme.c static bool pcie_pme_from_pci_bridge(struct pci_bus *bus, u8 devfn) devfn 106 drivers/pci/pcie/pme.c if (devfn) devfn 131 drivers/pci/pcie/pme.c u8 busnr = req_id >> 8, devfn = req_id & 0xff; devfn 137 drivers/pci/pcie/pme.c if (port->devfn == devfn && port->bus->number == busnr) { devfn 166 drivers/pci/pcie/pme.c found = pcie_pme_from_pci_bridge(bus, devfn); devfn 174 drivers/pci/pcie/pme.c if (dev->devfn == devfn) { devfn 193 drivers/pci/pcie/pme.c } else if (devfn) { devfn 200 drivers/pci/pcie/pme.c busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 1749 drivers/pci/probe.c dev->bus->number, PCI_SLOT(dev->devfn), devfn 1750 drivers/pci/probe.c PCI_FUNC(dev->devfn)); devfn 2178 drivers/pci/probe.c static bool pci_bus_wait_crs(struct pci_bus *bus, int devfn, u32 *l, devfn 2198 drivers/pci/probe.c PCI_SLOT(devfn), PCI_FUNC(devfn), delay - 1); devfn 2205 drivers/pci/probe.c PCI_SLOT(devfn), PCI_FUNC(devfn), delay - 1); devfn 2210 drivers/pci/probe.c if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, l)) devfn 2217 drivers/pci/probe.c PCI_SLOT(devfn), PCI_FUNC(devfn), delay - 1); devfn 2222 drivers/pci/probe.c bool pci_bus_generic_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l, devfn 2225 drivers/pci/probe.c if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, l)) devfn 2234 drivers/pci/probe.c return pci_bus_wait_crs(bus, devfn, l, timeout); devfn 2239 drivers/pci/probe.c bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l, devfn 2251 drivers/pci/probe.c return pci_idt_bus_quirk(bus, devfn, l, timeout); devfn 2254 drivers/pci/probe.c return pci_bus_generic_read_dev_vendor_id(bus, devfn, l, timeout); devfn 2262 drivers/pci/probe.c static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn) devfn 2267 drivers/pci/probe.c if (!pci_bus_read_dev_vendor_id(bus, devfn, &l, 60*1000)) devfn 2274 drivers/pci/probe.c dev->devfn = devfn; devfn 2301 drivers/pci/probe.c if (PCI_FUNC(dev->devfn) != 0 || dev->is_virtfn) devfn 2442 drivers/pci/probe.c struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn) devfn 2446 drivers/pci/probe.c dev = pci_get_slot(bus, devfn); devfn 2452 drivers/pci/probe.c dev = pci_scan_device(bus, devfn); devfn 2523 drivers/pci/probe.c int pci_scan_slot(struct pci_bus *bus, int devfn) devfn 2528 drivers/pci/probe.c if (only_one_child(bus) && (devfn > 0)) devfn 2531 drivers/pci/probe.c dev = pci_scan_single_device(bus, devfn); devfn 2538 drivers/pci/probe.c dev = pci_scan_single_device(bus, devfn + fn); devfn 2740 drivers/pci/probe.c unsigned int devfn, fn, cmax, max = start; devfn 2747 drivers/pci/probe.c for (devfn = 0; devfn < 256; devfn += 8) { devfn 2748 drivers/pci/probe.c nr_devs = pci_scan_slot(bus, devfn); devfn 2757 drivers/pci/probe.c dev = pci_scan_single_device(bus, devfn + fn); devfn 3193 drivers/pci/probe.c if (a->devfn < b->devfn) return -1; devfn 3194 drivers/pci/probe.c else if (a->devfn > b->devfn) return 1; devfn 368 drivers/pci/proc.c dev->devfn, devfn 425 drivers/pci/proc.c sprintf(name, "%02x.%x", PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); devfn 1041 drivers/pci/quirks.c dev->sriov->link = dev->devfn; devfn 1093 drivers/pci/quirks.c via_vlink_dev_lo = PCI_SLOT(dev->devfn); devfn 1094 drivers/pci/quirks.c via_vlink_dev_hi = PCI_SLOT(dev->devfn); devfn 1146 drivers/pci/quirks.c if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) > via_vlink_dev_hi || devfn 1147 drivers/pci/quirks.c PCI_SLOT(dev->devfn) < via_vlink_dev_lo) devfn 1712 drivers/pci/quirks.c if (PCI_FUNC(pdev->devfn)) devfn 2775 drivers/pci/quirks.c dev_no = host_bridge->devfn >> 3; devfn 2833 drivers/pci/quirks.c dev_no = dev->devfn >> 3; devfn 3111 drivers/pci/quirks.c if (PCI_FUNC(dev->devfn)) devfn 3142 drivers/pci/quirks.c if (PCI_FUNC(dev->devfn)) devfn 3995 drivers/pci/quirks.c if (PCI_FUNC(dev->devfn) != 0) devfn 3996 drivers/pci/quirks.c pci_add_dma_alias(dev, PCI_DEVFN(PCI_SLOT(dev->devfn), 0), 1); devfn 4009 drivers/pci/quirks.c if (PCI_FUNC(dev->devfn) != 1) devfn 4010 drivers/pci/quirks.c pci_add_dma_alias(dev, PCI_DEVFN(PCI_SLOT(dev->devfn), 1), 1); devfn 5206 drivers/pci/quirks.c if (PCI_FUNC(pdev->devfn) != consumer) devfn 5211 drivers/pci/quirks.c PCI_DEVFN(PCI_SLOT(pdev->devfn), supplier)); devfn 5325 drivers/pci/quirks.c int pci_idt_bus_quirk(struct pci_bus *bus, int devfn, u32 *l, int timeout) devfn 5342 drivers/pci/quirks.c found = pci_bus_generic_read_dev_vendor_id(bus, devfn, l, timeout); devfn 5346 drivers/pci/quirks.c pci_bus_write_config_word(bus, devfn, PCI_VENDOR_ID, 0); devfn 5421 drivers/pci/quirks.c u8 devfn; devfn 5424 drivers/pci/quirks.c devfn = (rid_entry >> 1) & 0xFF; devfn 5427 drivers/pci/quirks.c pp, PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 5428 drivers/pci/quirks.c pci_add_dma_alias(pdev, devfn, 1); devfn 44 drivers/pci/search.c unsigned int devfn; devfn 46 drivers/pci/search.c for_each_set_bit(devfn, pdev->dma_alias_mask, MAX_NR_DEVFNS) { devfn 47 drivers/pci/search.c ret = fn(pdev, PCI_DEVID(pdev->bus->number, devfn), devfn 189 drivers/pci/search.c struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn) devfn 197 drivers/pci/search.c if (dev->devfn == devfn) devfn 225 drivers/pci/search.c unsigned int devfn) devfn 231 drivers/pci/search.c (dev->bus->number == bus && dev->devfn == devfn)) devfn 113 drivers/pci/slot.c if (PCI_SLOT(dev->devfn) == slot->number) devfn 204 drivers/pci/slot.c if (PCI_SLOT(dev->devfn) == slot->number) devfn 320 drivers/pci/slot.c if (PCI_SLOT(dev->devfn) == slot_nr) devfn 323 drivers/pci/vpd.c PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); devfn 338 drivers/pci/vpd.c PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); devfn 352 drivers/pci/vpd.c PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); devfn 530 drivers/pci/vpd.c if (!PCI_FUNC(dev->devfn)) devfn 533 drivers/pci/vpd.c f0 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); devfn 178 drivers/pci/xen-pcifront.c static int pcifront_bus_read(struct pci_bus *bus, unsigned int devfn, devfn 186 drivers/pci/xen-pcifront.c .devfn = devfn, devfn 196 drivers/pci/xen-pcifront.c pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), devfn 197 drivers/pci/xen-pcifront.c PCI_FUNC(devfn), where, size); devfn 217 drivers/pci/xen-pcifront.c static int pcifront_bus_write(struct pci_bus *bus, unsigned int devfn, devfn 224 drivers/pci/xen-pcifront.c .devfn = devfn, devfn 237 drivers/pci/xen-pcifront.c PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); devfn 257 drivers/pci/xen-pcifront.c .devfn = dev->devfn, devfn 310 drivers/pci/xen-pcifront.c .devfn = dev->devfn, devfn 329 drivers/pci/xen-pcifront.c .devfn = dev->devfn, devfn 345 drivers/pci/xen-pcifront.c "%x:%x\n", op.bus, op.devfn); devfn 358 drivers/pci/xen-pcifront.c .devfn = dev->devfn, devfn 421 drivers/pci/xen-pcifront.c unsigned int devfn; devfn 427 drivers/pci/xen-pcifront.c for (devfn = 0; devfn < 0x100; devfn++) { devfn 428 drivers/pci/xen-pcifront.c d = pci_get_slot(b, devfn); devfn 435 drivers/pci/xen-pcifront.c d = pci_scan_single_device(b, devfn); devfn 439 drivers/pci/xen-pcifront.c PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 597 drivers/pci/xen-pcifront.c int devfn = pdev->sh_info->aer_op.devfn; devfn 604 drivers/pci/xen-pcifront.c cmd, bus, devfn); devfn 607 drivers/pci/xen-pcifront.c pcidev = pci_get_domain_bus_and_slot(domain, bus, devfn); devfn 664 drivers/pci/xen-pcifront.c pdev->sh_info->aer_op.bus, pdev->sh_info->aer_op.devfn); devfn 121 drivers/pcmcia/o2micro.h if (PCI_FUNC(socket->dev->devfn) == 0) { devfn 240 drivers/pcmcia/ti113x.h if(PCI_FUNC(socket->dev->devfn)==1) devfn 487 drivers/pcmcia/ti113x.h func0 = pci_get_slot(socket->dev->bus, socket->dev->devfn & ~0x07); devfn 655 drivers/pcmcia/ti113x.h int devfn; devfn 706 drivers/pcmcia/ti113x.h devfn = socket->dev->devfn & ~0x07; devfn 708 drivers/pcmcia/ti113x.h (socket->dev->devfn & 0x07) ? devfn : devfn | 0x01); devfn 789 drivers/pcmcia/ti113x.h if ((PCI_FUNC(socket->dev->devfn) == 0) || devfn 848 drivers/pcmcia/ti113x.h if (disable_clkrun && PCI_FUNC(socket->dev->devfn) == 0) { devfn 871 drivers/pcmcia/ti113x.h if (PCI_FUNC(socket->dev->devfn) == 0) devfn 713 drivers/scsi/BusLogic.c device = pci_device->devfn >> 3; devfn 896 drivers/scsi/BusLogic.c device = pci_device->devfn >> 3; devfn 953 drivers/scsi/BusLogic.c device = pci_device->devfn >> 3; devfn 996 drivers/scsi/aacraid/commctrl.c pci_info.slot = PCI_SLOT(dev->pdev->devfn); devfn 1012 drivers/scsi/aacraid/commctrl.c hbainfo.device_number = (dev->pdev->devfn >> 3); devfn 1013 drivers/scsi/aacraid/commctrl.c hbainfo.function_number = (dev->pdev->devfn & 0x0007); devfn 5662 drivers/scsi/advansys.c if (PCI_FUNC(pdev->devfn) == 0) { devfn 10518 drivers/scsi/advansys.c if (PCI_FUNC(pdev->devfn) != 0) { devfn 470 drivers/scsi/aic7xxx/aic79xx_osm.h return (PCI_FUNC(pci->devfn)); devfn 477 drivers/scsi/aic7xxx/aic79xx_osm.h return (PCI_SLOT(pci->devfn)); devfn 142 drivers/scsi/aic7xxx/aic79xx_osm_pci.c unsigned int master_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); devfn 218 drivers/scsi/aic7xxx/aic79xx_osm_pci.c if ((ahd->features & AHD_MULTI_FUNC) && PCI_FUNC(pdev->devfn) != 0) devfn 480 drivers/scsi/aic7xxx/aic7xxx_osm.h return (PCI_FUNC(pci->devfn)); devfn 487 drivers/scsi/aic7xxx/aic7xxx_osm.h return (PCI_SLOT(pci->devfn)); devfn 185 drivers/scsi/aic7xxx/aic7xxx_osm_pci.c unsigned int master_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); devfn 264 drivers/scsi/aic7xxx/aic7xxx_osm_pci.c if ((ahc->features & AHC_MULTI_FUNC) && PCI_FUNC(pdev->devfn) != 0) devfn 971 drivers/scsi/arcmsr/arcmsr_hba.c dev_fun = pdev->devfn; devfn 755 drivers/scsi/be2iscsi/be_cmds.c PCI_FUNC(ctrl->pdev->devfn)); devfn 808 drivers/scsi/be2iscsi/be_cmds.c PCI_FUNC(ctrl->pdev->devfn)); devfn 879 drivers/scsi/be2iscsi/be_cmds.c PCI_FUNC(phba->pcidev->devfn)); devfn 1008 drivers/scsi/be2iscsi/be_cmds.c pci_func_id, ctxt, PCI_FUNC(ctrl->pdev->devfn)); devfn 743 drivers/scsi/be2iscsi/be_main.c (PCI_FUNC(ctrl->pdev->devfn) * CEV_ISR_SIZE)); devfn 5480 drivers/scsi/be2iscsi/be_main.c if (pdev->devfn == 0) devfn 755 drivers/scsi/bfa/bfad.c bfad->hal_pcidev.pci_slot = PCI_SLOT(pdev->devfn); devfn 756 drivers/scsi/bfa/bfad.c bfad->hal_pcidev.pci_func = PCI_FUNC(pdev->devfn); devfn 766 drivers/scsi/bfa/bfad.c bfad->pci_attr.pcifn = PCI_FUNC(pdev->devfn); devfn 1297 drivers/scsi/bfa/bfad.c (PCI_FUNC(pdev->devfn) != 0)) devfn 811 drivers/scsi/bnx2i/bnx2i_iscsi.c hba->pci_func = PCI_FUNC(hba->pcidev->devfn); devfn 812 drivers/scsi/bnx2i/bnx2i_iscsi.c hba->pci_devno = PCI_SLOT(hba->pcidev->devfn); devfn 598 drivers/scsi/csiostor/csio_hw.h #define CSIO_PCI_DEV(hw) (PCI_SLOT((hw)->pdev->devfn)) devfn 599 drivers/scsi/csiostor/csio_hw.h #define CSIO_PCI_FUNC(hw) (PCI_FUNC((hw)->pdev->devfn)) devfn 1997 drivers/scsi/dpt_i2o.c HbaInfo.pciDeviceNum=PCI_SLOT(pHba->pDev->devfn); devfn 768 drivers/scsi/esas2r/esas2r.h u8 devfn; devfn 1373 drivers/scsi/esas2r/esas2r_flash.c n->sas_addr[7] = a->pcid->devfn; devfn 453 drivers/scsi/esas2r/esas2r_ioctl.c gcc->pci_addr.device_num = PCI_SLOT(a->pcid->devfn); devfn 454 drivers/scsi/esas2r/esas2r_ioctl.c gcc->pci_addr.function_num = PCI_FUNC(a->pcid->devfn); devfn 783 drivers/scsi/esas2r/esas2r_ioctl.c gai->pci.dev_num = PCI_SLOT(a->pcid->devfn); devfn 784 drivers/scsi/esas2r/esas2r_ioctl.c gai->pci.func_num = PCI_FUNC(a->pcid->devfn); devfn 1431 drivers/scsi/esas2r/esas2r_ioctl.c ioctl->data.chaninfo.pci_dev_func = a->pcid->devfn; devfn 429 drivers/scsi/esas2r/esas2r_main.c pcid->devfn); devfn 746 drivers/scsi/esas2r/esas2r_main.c a->pcid->bus->number, a->pcid->devfn, a->pcid->irq, devfn 1841 drivers/scsi/esas2r/esas2r_main.c ae->devfn = a->pcid->devfn; devfn 496 drivers/scsi/gdth.c PCI_SLOT(gdth_pcistr.pdev->devfn), devfn 524 drivers/scsi/gdth.c ha->brd_phys = (pdev->bus->number << 8) | (pdev->devfn & 0xf8); devfn 4112 drivers/scsi/gdth.c PCI_SLOT(pdev->devfn), devfn 6310 drivers/scsi/hpsa.c pciinfo.dev_fn = h->pdev->devfn; devfn 1297 drivers/scsi/hptiop.c pcidev->bus->number, pcidev->devfn >> 3, pcidev->devfn & 7, devfn 6861 drivers/scsi/ips.c func = pci_dev->devfn; devfn 6918 drivers/scsi/ips.c ha->slot_num = PCI_SLOT(pci_dev->devfn); devfn 13549 drivers/scsi/lpfc/lpfc_init.c if (phba->cfg_ras_fwlog_func == PCI_FUNC(phba->pcidev->devfn) && devfn 4357 drivers/scsi/lpfc/lpfc_scsi.c if (ptr->devfn == 0) { devfn 4399 drivers/scsi/lpfc/lpfc_scsi.c phba->pcidev->bus->number, phba->pcidev->devfn, devfn 4172 drivers/scsi/megaraid.c pci_dev_func = pdev->devfn; devfn 415 drivers/scsi/megaraid/megaraid_mbox.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn))); devfn 439 drivers/scsi/megaraid/megaraid_mbox.c adapter->unique_id = pdev->bus->number << 8 | pdev->devfn; devfn 3738 drivers/scsi/megaraid/megaraid_mbox.c hinfo->pci_dev_fn = adapter->pdev->devfn; devfn 3739 drivers/scsi/megaraid/megaraid_mbox.c hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn); devfn 3743 drivers/scsi/megaraid/megaraid_mbox.c hinfo->unique_id = (hinfo->pci_bus << 8) | adapter->pdev->devfn; devfn 7333 drivers/scsi/megaraid/megaraid_sas_base.c instance->unique_id = pdev->bus->number << 8 | pdev->devfn; devfn 1150 drivers/scsi/mpt3sas/mpt3sas_ctl.c karg.pci_information.u.bits.device = PCI_SLOT(ioc->pdev->devfn); devfn 1151 drivers/scsi/mpt3sas/mpt3sas_ctl.c karg.pci_information.u.bits.function = PCI_FUNC(ioc->pdev->devfn); devfn 2495 drivers/scsi/mvumi.c mhba->unique_id = pdev->bus->number << 8 | pdev->devfn; devfn 4090 drivers/scsi/pmcraid.c pinstance->pdev->devfn; devfn 4165 drivers/scsi/qla1280.c bdp->name, pdev->bus->number, PCI_SLOT(pdev->devfn)); devfn 1694 drivers/scsi/qla2xxx/qla_nx.c ha->iobase = ha->nx_pcibase + 0xbc000 + (ha->pdev->devfn << 11); devfn 1699 drivers/scsi/qla2xxx/qla_nx.c (ha->pdev->devfn << 12)), 4); devfn 1710 drivers/scsi/qla2xxx/qla_nx.c (ha->pdev->devfn * 8); devfn 1712 drivers/scsi/qla2xxx/qla_nx.c ha->nxdb_wr_ptr = (void __iomem *)(ha->pdev->devfn == 6 ? devfn 2310 drivers/scsi/qla2xxx/qla_nx.c ha->portnum = PCI_FUNC(ha->pdev->devfn); devfn 2947 drivers/scsi/qla2xxx/qla_nx2.c ((PCI_FUNC(ha->pdev->devfn) & 0xf) << 0x4); devfn 2972 drivers/scsi/qla2xxx/qla_os.c ha->portnum = PCI_FUNC(ha->pdev->devfn); devfn 3003 drivers/scsi/qla2xxx/qla_os.c ha->portnum = PCI_FUNC(ha->pdev->devfn); devfn 3020 drivers/scsi/qla2xxx/qla_os.c ha->portnum = PCI_FUNC(ha->pdev->devfn); devfn 2069 drivers/scsi/qla4xxx/ql4_nx.c dma_desc.cmd.dma_desc_cmd |= ((PCI_FUNC(ha->pdev->devfn) & 0xf) << 0x4); devfn 5531 drivers/scsi/qla4xxx/ql4_os.c (ha->pdev->devfn << 11)); devfn 5532 drivers/scsi/qla4xxx/ql4_os.c ha->nx_db_wr_ptr = (ha->pdev->devfn == 4 ? QLA82XX_CAM_RAM_DB1 : devfn 5895 drivers/scsi/qla4xxx/ql4_os.c func_num = PCI_FUNC(ha->pdev->devfn); devfn 8629 drivers/scsi/qla4xxx/ql4_os.c ha->func_num = PCI_FUNC(ha->pdev->devfn); devfn 8883 drivers/scsi/qla4xxx/ql4_os.c if (PCI_FUNC(ha->pdev->devfn) & BIT_1) devfn 8888 drivers/scsi/qla4xxx/ql4_os.c ha->pdev->bus->number, PCI_DEVFN(PCI_SLOT(ha->pdev->devfn), devfn 9647 drivers/scsi/qla4xxx/ql4_os.c fn = PCI_FUNC(ha->pdev->devfn); devfn 9658 drivers/scsi/qla4xxx/ql4_os.c PCI_DEVFN(PCI_SLOT(ha->pdev->devfn), devfn 9687 drivers/scsi/qla4xxx/ql4_os.c ha->pdev->devfn); devfn 9732 drivers/scsi/qla4xxx/ql4_os.c ha->pdev->devfn); devfn 5833 drivers/scsi/smartpqi/smartpqi_init.c pciinfo.dev_fn = pci_dev->devfn; devfn 375 drivers/scsi/snic/snic_main.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 376 drivers/scsi/snic/snic_main.c PCI_FUNC(pdev->devfn)); devfn 397 drivers/scsi/snic/snic_main.c PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); devfn 746 drivers/scsi/snic/snic_main.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 747 drivers/scsi/snic/snic_main.c PCI_FUNC(pdev->devfn)); devfn 765 drivers/scsi/snic/snic_main.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 766 drivers/scsi/snic/snic_main.c PCI_FUNC(pdev->devfn)); devfn 507 drivers/scsi/stex.c p->slot = hba->pdev->devfn; devfn 1834 drivers/scsi/sym53c8xx_2/sym_glue.c if (PCI_FUNC(pdev->devfn) == 0) { devfn 81 drivers/spi/spi-pxa2xx-pci.c dma_dev = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); devfn 108 drivers/spi/spi-pxa2xx-pci.c switch (PCI_FUNC(dev->devfn)) { devfn 224 drivers/spi/spi-pxa2xx-pci.c spi_pdata.num_chipselect = (c->num_chipselect > 0) ? c->num_chipselect : dev->devfn; devfn 234 drivers/spi/spi-pxa2xx-pci.c ssp->port_id = (c->port_id >= 0) ? c->port_id : dev->devfn; devfn 861 drivers/spi/spi-topcliff-pch.c PCI_DEVFN(PCI_SLOT(data->board_dat->pdev->devfn), 0)); devfn 110 drivers/ssb/driver_gige.c static int ssb_gige_pci_read_config(struct pci_bus *bus, unsigned int devfn, devfn 116 drivers/ssb/driver_gige.c if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0)) devfn 140 drivers/ssb/driver_gige.c static int ssb_gige_pci_write_config(struct pci_bus *bus, unsigned int devfn, devfn 146 drivers/ssb/driver_gige.c if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0)) devfn 204 drivers/ssb/driver_pcicore.c static int ssb_pcicore_read_config(struct pci_bus *bus, unsigned int devfn, devfn 211 drivers/ssb/driver_pcicore.c err = ssb_extpci_read_config(extpci_core, bus->number, PCI_SLOT(devfn), devfn 212 drivers/ssb/driver_pcicore.c PCI_FUNC(devfn), reg, val, size); devfn 218 drivers/ssb/driver_pcicore.c static int ssb_pcicore_write_config(struct pci_bus *bus, unsigned int devfn, devfn 225 drivers/ssb/driver_pcicore.c err = ssb_extpci_write_config(extpci_core, bus->number, PCI_SLOT(devfn), devfn 226 drivers/ssb/driver_pcicore.c PCI_FUNC(devfn), reg, &val, size); devfn 284 drivers/ssb/driver_pcicore.c if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) != 0) devfn 1449 drivers/staging/comedi/drivers/adl_pci9118.c PCI_SLOT(pcidev->devfn) != slot) devfn 142 drivers/staging/isdn/hysdn/hysdn_defs.h unsigned char devfn; /* slot+function bit encoded */ devfn 76 drivers/staging/isdn/hysdn/hysdn_init.c card->devfn = akt_pcidev->devfn; /* slot + function */ devfn 277 drivers/staging/isdn/hysdn/hysdn_procconf.c PCI_SLOT(card->devfn), devfn 176 drivers/staging/mt7621-pci/pci-mt7621.c unsigned int devfn, int where) devfn 179 drivers/staging/mt7621-pci/pci-mt7621.c u32 address = mt7621_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), devfn 180 drivers/staging/mt7621-pci/pci-mt7621.c PCI_FUNC(devfn), where); devfn 2579 drivers/tty/mxser.c pdev->bus->number, PCI_SLOT(pdev->devfn)); devfn 124 drivers/tty/serial/8250/8250_lpss.c unsigned int dma_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); devfn 180 drivers/tty/serial/8250/8250_lpss.c chip->id = pdev->devfn; devfn 72 drivers/tty/serial/8250/8250_mid.c PCI_DEVFN(PCI_SLOT(pdev->devfn), 3)); devfn 110 drivers/tty/serial/8250/8250_mid.c int index = PCI_FUNC(pdev->devfn); devfn 725 drivers/tty/serial/pch_uart.c PCI_DEVFN(PCI_SLOT(priv->pdev->devfn), 0)); devfn 20 drivers/usb/cdns3/cdns3-pci-wrap.c int devfn; devfn 57 drivers/usb/cdns3/cdns3-pci-wrap.c if (func->devfn == pdev->devfn) { devfn 79 drivers/usb/cdns3/cdns3-pci-wrap.c if (!id || (pdev->devfn != PCI_DEV_FN_HOST_DEVICE && devfn 80 drivers/usb/cdns3/cdns3-pci-wrap.c pdev->devfn != PCI_DEV_FN_OTG)) devfn 107 drivers/usb/cdns3/cdns3-pci-wrap.c if (pdev->devfn == PCI_DEV_FN_HOST_DEVICE) { devfn 153 drivers/usb/cdns3/cdns3-pci-wrap.c plat_info.id = pdev->devfn; devfn 154 drivers/usb/cdns3/cdns3-pci-wrap.c wrap->devfn = pdev->devfn; devfn 180 drivers/usb/cdns3/cdns3-pci-wrap.c if (wrap->devfn == pdev->devfn) devfn 51 drivers/usb/core/hcd-pci.c unsigned int slot = PCI_SLOT(pdev->devfn); devfn 61 drivers/usb/core/hcd-pci.c PCI_SLOT(companion->devfn) != slot) devfn 77 drivers/usb/host/ohci-pci.c b = pci_get_slot (pdev->bus, PCI_DEVFN (PCI_SLOT (pdev->devfn), 1)); devfn 577 drivers/vfio/pci/vfio_pci.c fill->devices[fill->cur].devfn = pdev->devfn; devfn 581 drivers/video/fbdev/intelfb/intelfbdrv.c pdev->bus->number, PCI_SLOT(pdev->devfn), devfn 582 drivers/video/fbdev/intelfb/intelfbdrv.c PCI_FUNC(pdev->devfn), dinfo->name, devfn 5881 drivers/video/fbdev/sis/sis_main.c ivideo->pcislot = PCI_SLOT(pdev->devfn); devfn 5882 drivers/video/fbdev/sis/sis_main.c ivideo->pcifunc = PCI_FUNC(pdev->devfn); devfn 1507 drivers/video/fbdev/tgafb.c PCI_SLOT(to_pci_dev(dev)->devfn), devfn 1508 drivers/video/fbdev/tgafb.c PCI_FUNC(to_pci_dev(dev)->devfn)); devfn 28 drivers/xen/dbgp.c dbgp.u.pci.devfn = pdev->devfn; devfn 52 drivers/xen/pci.c .add.devfn = pci_dev->devfn devfn 64 drivers/xen/pci.c add->physfn.devfn = physfn->devfn; devfn 67 drivers/xen/pci.c if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) devfn 118 drivers/xen/pci.c .devfn = pci_dev->devfn, devfn 121 drivers/xen/pci.c .physfn.devfn = physfn->devfn, devfn 128 drivers/xen/pci.c else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { devfn 131 drivers/xen/pci.c .devfn = pci_dev->devfn, devfn 140 drivers/xen/pci.c .devfn = pci_dev->devfn, devfn 159 drivers/xen/pci.c .devfn = pci_dev->devfn devfn 169 drivers/xen/pci.c .devfn = pci_dev->devfn devfn 60 drivers/xen/platform-pci.c ((uint64_t)(pdev->devfn & 0xff) << 8) | devfn 23 drivers/xen/xen-pciback/passthrough.c unsigned int devfn) devfn 34 drivers/xen/xen-pciback/passthrough.c && devfn == dev_entry->dev->devfn) { devfn 51 drivers/xen/xen-pciback/passthrough.c unsigned int domain, bus, devfn; devfn 66 drivers/xen/xen-pciback/passthrough.c devfn = dev->devfn; devfn 67 drivers/xen/xen-pciback/passthrough.c err = publish_cb(pdev, domain, bus, devfn, devid); devfn 180 drivers/xen/xen-pciback/passthrough.c unsigned int *devfn) devfn 184 drivers/xen/xen-pciback/passthrough.c *devfn = pcidev->devfn; devfn 42 drivers/xen/xen-pciback/pci_stub.c unsigned int devfn; devfn 119 drivers/xen/xen-pciback/pci_stub.c .devfn = dev->devfn devfn 164 drivers/xen/xen-pciback/pci_stub.c && slot == PCI_SLOT(psdev->dev->devfn) devfn 165 drivers/xen/xen-pciback/pci_stub.c && func == PCI_FUNC(psdev->dev->devfn)) { devfn 326 drivers/xen/xen-pciback/pci_stub.c && dev->devfn == pdev_id->devfn) devfn 404 drivers/xen/xen-pciback/pci_stub.c .devfn = dev->devfn devfn 485 drivers/xen/xen-pciback/pci_stub.c int domain, int bus, unsigned int devfn) devfn 495 drivers/xen/xen-pciback/pci_stub.c pci_dev_id->devfn == devfn) { devfn 504 drivers/xen/xen-pciback/pci_stub.c new->devfn = devfn; devfn 551 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); devfn 710 drivers/xen/xen-pciback/pci_stub.c &aer_op->domain, &aer_op->bus, &aer_op->devfn); devfn 720 drivers/xen/xen-pciback/pci_stub.c aer_cmd, aer_op->domain, aer_op->bus, aer_op->devfn); devfn 778 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); devfn 783 drivers/xen/xen-pciback/pci_stub.c PCI_SLOT(dev->devfn), devfn 784 drivers/xen/xen-pciback/pci_stub.c PCI_FUNC(dev->devfn)); devfn 836 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); devfn 841 drivers/xen/xen-pciback/pci_stub.c PCI_SLOT(dev->devfn), devfn 842 drivers/xen/xen-pciback/pci_stub.c PCI_FUNC(dev->devfn)); devfn 894 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); devfn 899 drivers/xen/xen-pciback/pci_stub.c PCI_SLOT(dev->devfn), devfn 900 drivers/xen/xen-pciback/pci_stub.c PCI_FUNC(dev->devfn)); devfn 948 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); devfn 953 drivers/xen/xen-pciback/pci_stub.c PCI_SLOT(dev->devfn), devfn 954 drivers/xen/xen-pciback/pci_stub.c PCI_FUNC(dev->devfn)); devfn 1068 drivers/xen/xen-pciback/pci_stub.c int rc = 0, devfn = PCI_DEVFN(slot, func); devfn 1089 drivers/xen/xen-pciback/pci_stub.c || PCI_SLOT(devfn) != slot devfn 1090 drivers/xen/xen-pciback/pci_stub.c || PCI_FUNC(devfn) != func) devfn 1100 drivers/xen/xen-pciback/pci_stub.c pcistub_device_id_add_list(pci_dev_id, domain, bus, devfn); devfn 1115 drivers/xen/xen-pciback/pci_stub.c && (slot < 0 || PCI_SLOT(pci_dev_id->devfn) == slot) devfn 1116 drivers/xen/xen-pciback/pci_stub.c && (func < 0 || PCI_FUNC(pci_dev_id->devfn) == func)) { devfn 1228 drivers/xen/xen-pciback/pci_stub.c PCI_SLOT(pci_dev_id->devfn), devfn 1229 drivers/xen/xen-pciback/pci_stub.c PCI_FUNC(pci_dev_id->devfn)); devfn 1342 drivers/xen/xen-pciback/pci_stub.c PCI_SLOT(quirk->pdev->devfn), devfn 1343 drivers/xen/xen-pciback/pci_stub.c PCI_FUNC(quirk->pdev->devfn), devfn 87 drivers/xen/xen-pciback/pciback.h unsigned int devfn, unsigned int devid); devfn 101 drivers/xen/xen-pciback/pciback.h unsigned int *devfn); devfn 109 drivers/xen/xen-pciback/pciback.h unsigned int devfn); devfn 135 drivers/xen/xen-pciback/pciback.h unsigned int bus, unsigned int devfn) devfn 138 drivers/xen/xen-pciback/pciback.h return xen_pcibk_backend->get(pdev, domain, bus, devfn); devfn 152 drivers/xen/xen-pciback/pciback.h unsigned int *devfn) devfn 156 drivers/xen/xen-pciback/pciback.h devfn); devfn 341 drivers/xen/xen-pciback/pciback_ops.c dev = xen_pcibk_get_pci_dev(pdev, op->domain, op->bus, op->devfn); devfn 33 drivers/xen/xen-pciback/vpci.c unsigned int devfn) devfn 42 drivers/xen/xen-pciback/vpci.c if (PCI_SLOT(devfn) < PCI_SLOT_MAX) { devfn 46 drivers/xen/xen-pciback/vpci.c &vpci_dev->dev_list[PCI_SLOT(devfn)], devfn 48 drivers/xen/xen-pciback/vpci.c if (PCI_FUNC(entry->dev->devfn) == PCI_FUNC(devfn)) { devfn 62 drivers/xen/xen-pciback/vpci.c && l->bus == r->bus && PCI_SLOT(l->devfn) == PCI_SLOT(r->devfn)) devfn 110 drivers/xen/xen-pciback/vpci.c PCI_FUNC(dev->devfn)); devfn 113 drivers/xen/xen-pciback/vpci.c func = PCI_FUNC(dev->devfn); devfn 126 drivers/xen/xen-pciback/vpci.c func = dev->is_virtfn ? 0 : PCI_FUNC(dev->devfn); devfn 233 drivers/xen/xen-pciback/vpci.c unsigned int *devfn) devfn 249 drivers/xen/xen-pciback/vpci.c && dev->devfn == pcidev->devfn) { devfn 253 drivers/xen/xen-pciback/vpci.c *devfn = PCI_DEVFN(slot, devfn 254 drivers/xen/xen-pciback/vpci.c PCI_FUNC(pcidev->devfn)); devfn 204 drivers/xen/xen-pciback/xenbus.c unsigned int devfn, unsigned int devid) devfn 219 drivers/xen/xen-pciback/xenbus.c PCI_SLOT(devfn), PCI_FUNC(devfn)); devfn 71 include/linux/aer.h void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, devfn 37 include/linux/dmar.h u8 devfn; devfn 96 include/linux/dmi.h int devfn; devfn 570 include/linux/intel-iommu.h u8 devfn; /* PCI devfn number */ devfn 702 include/linux/intel-iommu.h u8 devfn, int alloc); devfn 14 include/linux/of_pci.h unsigned int devfn); devfn 19 include/linux/of_pci.h unsigned int devfn) devfn 47 include/linux/pci-ecam.h void __iomem *pci_ecam_map_bus(struct pci_bus *bus, unsigned int devfn, devfn 57 include/linux/pci.h #define PCI_DEVID(bus, devfn) ((((u16)(bus)) << 8) | (devfn)) devfn 300 include/linux/pci.h unsigned int devfn; /* Encoded device & function index */ devfn 610 include/linux/pci.h return PCI_DEVID(dev->bus->number, dev->devfn); devfn 699 include/linux/pci.h void __iomem *(*map_bus)(struct pci_bus *bus, unsigned int devfn, int where); devfn 700 include/linux/pci.h int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val); devfn 701 include/linux/pci.h int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val); devfn 708 include/linux/pci.h int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, devfn 710 include/linux/pci.h int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn, devfn 1009 include/linux/pci.h int pci_scan_slot(struct pci_bus *bus, int devfn); devfn 1010 include/linux/pci.h struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn); devfn 1056 include/linux/pci.h struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn); devfn 1058 include/linux/pci.h unsigned int devfn); devfn 1062 include/linux/pci.h int pci_bus_read_config_byte(struct pci_bus *bus, unsigned int devfn, devfn 1064 include/linux/pci.h int pci_bus_read_config_word(struct pci_bus *bus, unsigned int devfn, devfn 1066 include/linux/pci.h int pci_bus_read_config_dword(struct pci_bus *bus, unsigned int devfn, devfn 1068 include/linux/pci.h int pci_bus_write_config_byte(struct pci_bus *bus, unsigned int devfn, devfn 1070 include/linux/pci.h int pci_bus_write_config_word(struct pci_bus *bus, unsigned int devfn, devfn 1072 include/linux/pci.h int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn, devfn 1075 include/linux/pci.h int pci_generic_config_read(struct pci_bus *bus, unsigned int devfn, devfn 1077 include/linux/pci.h int pci_generic_config_write(struct pci_bus *bus, unsigned int devfn, devfn 1079 include/linux/pci.h int pci_generic_config_read32(struct pci_bus *bus, unsigned int devfn, devfn 1081 include/linux/pci.h int pci_generic_config_write32(struct pci_bus *bus, unsigned int devfn, devfn 1256 include/linux/pci.h int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); devfn 1731 include/linux/pci.h unsigned int devfn) devfn 1734 include/linux/pci.h unsigned int bus, unsigned int devfn) devfn 1018 include/linux/syscalls.h asmlinkage long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn); devfn 1551 include/uapi/linux/kvm.h __u32 devfn; devfn 32 include/uapi/linux/pci.h #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) devfn 33 include/uapi/linux/pci.h #define PCI_FUNC(devfn) ((devfn) & 0x07) devfn 594 include/uapi/linux/vfio.h __u8 devfn; /* Use PCI_SLOT/PCI_FUNC */ devfn 79 include/xen/interface/io/pciif.h uint32_t devfn; devfn 103 include/xen/interface/io/pciif.h uint32_t devfn; devfn 148 include/xen/interface/physdev.h int devfn; devfn 172 include/xen/interface/physdev.h uint8_t devfn; devfn 179 include/xen/interface/physdev.h uint8_t devfn; devfn 186 include/xen/interface/physdev.h uint8_t devfn; devfn 191 include/xen/interface/physdev.h uint8_t devfn; devfn 256 include/xen/interface/physdev.h uint8_t devfn; devfn 260 include/xen/interface/physdev.h uint8_t devfn; devfn 281 include/xen/interface/physdev.h uint8_t devfn; devfn 70 kernel/trace/trace_mmiotrace.c dev->bus->number, dev->devfn, devfn 353 sound/pci/asihpi/hpioctl.c pci_dev->subsystem_device, pci_dev->devfn); devfn 557 sound/pci/asihpi/hpioctl.c pci_dev->devfn, pa->adapter->index); devfn 1423 sound/pci/hda/hda_intel.c if (pci->devfn == 1) { devfn 1551 tools/include/uapi/linux/kvm.h __u32 devfn;