/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 | 161 int busno = bus->number; in pci_conf1_read_config() local 168 bridge_write(bc, b_pci_cfg, (busno << 16) | (slot << 11)); in pci_conf1_read_config() 250 int busno = bus->number; in pci_conf1_write_config() local 255 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() 475 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 | 147 int busno; in iowa_ioremap() local 151 busno = bus - iowa_busses; in iowa_ioremap() 152 PCI_SET_ADDR_TOKEN(res, busno + 1); in iowa_ioremap()
|
D | rtas_pci.c | 62 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config() 113 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_write_config()
|
D | pci_64.c | 294 *bus = PCI_DN(np)->busno; in pci_device_from_OF_node()
|
/arch/sparc/kernel/ |
D | leon_pci_grpci1.c | 244 unsigned int busno = bus->number; in grpci1_read_config() local 247 if (PCI_SLOT(devfn) > 15 || busno > 15) { in grpci1_read_config() 254 ret = grpci1_cfg_r8(priv, busno, devfn, where, val); in grpci1_read_config() 257 ret = grpci1_cfg_r16(priv, busno, devfn, where, val); in grpci1_read_config() 260 ret = grpci1_cfg_r32(priv, busno, devfn, where, val); in grpci1_read_config() 270 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, *val, size); in grpci1_read_config() 283 unsigned int busno = bus->number; in grpci1_write_config() local 285 if (PCI_SLOT(devfn) > 15 || busno > 15) in grpci1_write_config() 291 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); in grpci1_write_config() 298 return grpci1_cfg_w8(priv, busno, devfn, where, val); in grpci1_write_config() [all …]
|
D | leon_pci_grpci2.c | 382 unsigned int busno = bus->number; in grpci2_read_config() local 385 if (PCI_SLOT(devfn) > 15 || busno > 255) { in grpci2_read_config() 392 ret = grpci2_cfg_r8(priv, busno, devfn, where, val); in grpci2_read_config() 395 ret = grpci2_cfg_r16(priv, busno, devfn, where, val); in grpci2_read_config() 398 ret = grpci2_cfg_r32(priv, busno, devfn, where, val); in grpci2_read_config() 407 "size=%d\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, in grpci2_read_config() 421 unsigned int busno = bus->number; in grpci2_write_config() local 423 if (PCI_SLOT(devfn) > 15 || busno > 255) in grpci2_write_config() 428 "val=%x\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), in grpci2_write_config() 436 return grpci2_cfg_w8(priv, busno, devfn, where, val); in grpci2_write_config() [all …]
|
D | ioport.c | 56 static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys, 166 static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys, in _sparc_alloc_io() argument 197 va = _sparc_ioremap(res, busno, phys, size); in _sparc_alloc_io()
|
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()
|
/arch/x86/pci/ |
D | fixup.c | 22 u8 busno, suba, subb; in pci_fixup_i450nx() local 27 pci_read_config_byte(d, reg++, &busno); in pci_fixup_i450nx() 30 dev_dbg(&d->dev, "i450NX PXB %d: %02x/%02x/%02x\n", pxb, busno, in pci_fixup_i450nx() 32 if (busno) in pci_fixup_i450nx() 33 pcibios_scan_root(busno); /* Bus A */ in pci_fixup_i450nx() 47 u8 busno; in pci_fixup_i450gx() local 48 pci_read_config_byte(d, 0x4a, &busno); in pci_fixup_i450gx() 49 dev_info(&d->dev, "i440KX/GX host bridge; secondary bus %02x\n", busno); in pci_fixup_i450gx() 50 pcibios_scan_root(busno); in pci_fixup_i450gx()
|
/arch/powerpc/platforms/pasemi/ |
D | pci.c | 46 static inline int is_root_port(int busno, int devfn) in is_root_port() argument 48 return ((busno == 0) && (PCI_FUNC(devfn) < 4) && in is_root_port()
|
/arch/mips/include/asm/ |
D | pci.h | 52 void (*set_busno)(int busno);
|
/arch/powerpc/include/asm/ |
D | prom.h | 67 unsigned long *busno, unsigned long *phys,
|
D | rtas.h | 517 static inline u32 rtas_config_addr(int busno, int devfn, int reg) in rtas_config_addr() argument 519 return ((reg & 0xf00) << 20) | ((busno & 0xff) << 16) | in rtas_config_addr()
|
D | pci-bridge.h | 205 int busno; /* pci bus number */ member
|
/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 79 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_pcibios_bus_add_device() 103 int config_addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_eeh_get_pe_config_addr() 705 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_allow_unfreeze() 750 if (pdn->busno != bus || in pseries_call_allow_unfreeze()
|
D | msi.c | 38 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi() 99 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()
|
D | iommu.c | 524 static void iommu_table_setparms_common(struct iommu_table *tbl, unsigned long busno, in iommu_table_setparms_common() argument 529 tbl->it_busno = busno; in iommu_table_setparms_common() 1111 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw() 1159 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw() 1222 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window()
|
D | pci.c | 69 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_map_pe()
|
/arch/powerpc/platforms/powernv/ |
D | pci.c | 568 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); in pnv_pci_config_check_eeh() 589 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read() 617 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read() 625 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_write() 628 __func__, pdn->busno, pdn->devfn, where, size, val); in pnv_pci_cfg_write()
|
D | eeh-powernv.c | 331 int config_addr = (pdn->busno << 8) | (pdn->devfn); in pnv_eeh_probe() 422 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 | 584 PCI_DN(np)->busno = 0xf0; in maple_pci_root_bridge_prepare() 586 PCI_DN(child)->busno = 0xf0; in maple_pci_root_bridge_prepare()
|
/arch/powerpc/platforms/powermac/ |
D | pci.c | 895 PCI_DN(np)->busno = 0xf0; in pmac_pci_root_bridge_prepare() 897 PCI_DN(child)->busno = 0xf0; in pmac_pci_root_bridge_prepare()
|