/arch/mips/pci/ |
D | ops-sni.c | 24 static int set_config_address(unsigned int busno, unsigned int devfn, int reg) in set_config_address() argument 29 if (busno == 0 && devfn >= PCI_DEVFN(8, 0)) in set_config_address() 33 ((busno & 0xff) << 16) | in set_config_address() 91 static int pcit_set_config_address(unsigned int busno, unsigned int devfn, int reg) in pcit_set_config_address() argument 93 if ((devfn > 255) || (reg > 255) || (busno > 255)) in pcit_set_config_address() 96 outl((1 << 31) | ((busno & 0xff) << 16) | ((devfn & 0xff) << 8) | (reg & 0xfc), 0xcf8); in pcit_set_config_address()
|
D | pci-xtalk-bridge.c | 160 int busno = bus->number; in pci_conf1_read_config() local 167 bridge_write(bc, b_pci_cfg, (busno << 16) | (slot << 11)); in pci_conf1_read_config() 249 int busno = bus->number; in pci_conf1_write_config() local 254 bridge_write(bc, b_pci_cfg, (busno << 16) | (slot << 11)); in pci_conf1_write_config()
|
/arch/powerpc/kernel/ |
D | pci_dn.c | 87 if (pdn->busno == bus->number && in pci_get_pdn_by_devfn() 119 if (pdn->busno == pdev->bus->number && in pci_get_pdn() 140 edev->bdfn = (pdn->busno << 8) | pdn->devfn; in eeh_dev_init() 149 int busno, int devfn) in add_one_sriov_vf_pdn() argument 163 pdn->busno = busno; in add_one_sriov_vf_pdn() 247 if (pdn->busno != pci_iov_virtfn_bus(pdev, i) || in remove_sriov_vf_pdns() 304 pdn->busno = (addr >> 16) & 0xff; in pci_add_device_node_info() 370 pdn->busno, pdn->devfn); in pci_remove_device_node_info() 515 pdn->devfn = pdn->busno = -1; in pci_devs_phb_init_dynamic()
|
D | prom_parse.c | 12 unsigned long *busno, unsigned long *phys, in of_parse_dma_window() argument 19 *busno = of_read_number(dma_window, 1); in of_parse_dma_window()
|
D | io-workarounds.c | 157 int busno; in iowa_ioremap() local 161 busno = bus - iowa_busses; in iowa_ioremap() 162 PCI_SET_ADDR_TOKEN(res, busno + 1); in iowa_ioremap()
|
D | rtas_pci.c | 61 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config() 112 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_write_config()
|
/arch/sparc/kernel/ |
D | leon_pci_grpci1.c | 243 unsigned int busno = bus->number; in grpci1_read_config() local 246 if (PCI_SLOT(devfn) > 15 || busno > 15) { in grpci1_read_config() 253 ret = grpci1_cfg_r8(priv, busno, devfn, where, val); in grpci1_read_config() 256 ret = grpci1_cfg_r16(priv, busno, devfn, where, val); in grpci1_read_config() 259 ret = grpci1_cfg_r32(priv, busno, devfn, where, val); in grpci1_read_config() 269 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, *val, size); in grpci1_read_config() 282 unsigned int busno = bus->number; in grpci1_write_config() local 284 if (PCI_SLOT(devfn) > 15 || busno > 15) in grpci1_write_config() 290 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); in grpci1_write_config() 297 return grpci1_cfg_w8(priv, busno, devfn, where, val); in grpci1_write_config() [all …]
|
D | leon_pci_grpci2.c | 380 unsigned int busno = bus->number; in grpci2_read_config() local 383 if (PCI_SLOT(devfn) > 15 || busno > 255) { in grpci2_read_config() 390 ret = grpci2_cfg_r8(priv, busno, devfn, where, val); in grpci2_read_config() 393 ret = grpci2_cfg_r16(priv, busno, devfn, where, val); in grpci2_read_config() 396 ret = grpci2_cfg_r32(priv, busno, devfn, where, val); in grpci2_read_config() 405 "size=%d\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, in grpci2_read_config() 419 unsigned int busno = bus->number; in grpci2_write_config() local 421 if (PCI_SLOT(devfn) > 15 || busno > 255) in grpci2_write_config() 426 "val=%x\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), in grpci2_write_config() 434 return grpci2_cfg_w8(priv, busno, devfn, where, val); in grpci2_write_config() [all …]
|
D | pcic.c | 59 unsigned char busno; /* PCI bus number */ member 176 static int pcic_read_config_dword(unsigned int busno, unsigned int devfn, in pcic_read_config_dword() argument 189 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_read_config_dword() 237 static int pcic_write_config_dword(unsigned int busno, unsigned int devfn, in pcic_write_config_dword() argument 246 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_write_config_dword() 549 if (p->busno == dev->bus->number && p->devfn == dev->devfn) in pcic_fill_irq()
|
D | ioport.c | 67 static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys, 177 static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys, in _sparc_alloc_io() argument 208 va = _sparc_ioremap(res, busno, phys, size); in _sparc_alloc_io()
|
/arch/arm/mach-cns3xxx/ |
D | pcie.c | 55 int busno = bus->number; in cns3xxx_pci_map_bus() local 60 if (!cnspci->linked && busno > 0) in cns3xxx_pci_map_bus() 69 if (busno == 0) { /* internal PCIe bus, host bridge device */ in cns3xxx_pci_map_bus() 75 } else if (busno == 1) { /* directly connected PCIe device */ in cns3xxx_pci_map_bus() 81 base = cnspci->cfg1_regs + ((busno & 0xf) << 20); in cns3xxx_pci_map_bus()
|
/arch/x86/pci/ |
D | fixup.c | 20 u8 busno, suba, subb; in pci_fixup_i450nx() local 25 pci_read_config_byte(d, reg++, &busno); in pci_fixup_i450nx() 28 dev_dbg(&d->dev, "i450NX PXB %d: %02x/%02x/%02x\n", pxb, busno, in pci_fixup_i450nx() 30 if (busno) in pci_fixup_i450nx() 31 pcibios_scan_root(busno); /* Bus A */ in pci_fixup_i450nx() 45 u8 busno; in pci_fixup_i450gx() local 46 pci_read_config_byte(d, 0x4a, &busno); in pci_fixup_i450gx() 47 dev_info(&d->dev, "i440KX/GX host bridge; secondary bus %02x\n", busno); in pci_fixup_i450gx() 48 pcibios_scan_root(busno); in pci_fixup_i450gx()
|
/arch/powerpc/include/asm/ |
D | rtas.h | 338 static inline u32 rtas_config_addr(int busno, int devfn, int reg) in rtas_config_addr() argument 340 return ((reg & 0xf00) << 20) | ((busno & 0xff) << 16) | in rtas_config_addr()
|
D | prom.h | 72 unsigned long *busno, unsigned long *phys,
|
D | pci-bridge.h | 188 int busno; /* pci bus number */ member 239 *bus = PCI_DN(np)->busno; in pci_device_from_OF_node()
|
/arch/mips/include/asm/ |
D | pci.h | 53 void (*set_busno)(int busno);
|
/arch/powerpc/platforms/pasemi/ |
D | pci.c | 45 static inline int is_root_port(int busno, int devfn) in is_root_port() argument 47 return ((busno == 0) && (PCI_FUNC(devfn) < 4) && in is_root_port()
|
/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 77 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_pcibios_bus_add_device() 101 int config_addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_eeh_get_pe_config_addr() 704 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_allow_unfreeze() 749 if (pdn->busno != bus || in pseries_call_allow_unfreeze()
|
D | msi.c | 36 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi() 97 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()
|
D | pci.c | 71 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_map_pe()
|
D | iommu.c | 961 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw() 1007 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw() 1081 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window()
|
/arch/powerpc/platforms/powernv/ |
D | pci.c | 636 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); in pnv_pci_config_check_eeh() 657 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read() 685 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read() 693 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_write() 696 __func__, pdn->busno, pdn->devfn, where, size, val); in pnv_pci_cfg_write()
|
D | eeh-powernv.c | 330 int config_addr = (pdn->busno << 8) | (pdn->devfn); in pnv_eeh_probe() 421 pdn->busno); in pnv_eeh_probe() 925 pdn->phb->global_number, pdn->busno, in pnv_eeh_wait_for_pending()
|
/arch/powerpc/platforms/maple/ |
D | pci.c | 581 PCI_DN(np)->busno = 0xf0; in maple_pci_root_bridge_prepare() 583 PCI_DN(child)->busno = 0xf0; in maple_pci_root_bridge_prepare()
|
/arch/powerpc/platforms/powermac/ |
D | pci.c | 890 PCI_DN(np)->busno = 0xf0; in pmac_pci_root_bridge_prepare() 892 PCI_DN(child)->busno = 0xf0; in pmac_pci_root_bridge_prepare()
|