/linux-6.12.1/drivers/pci/hotplug/ |
D | ibmphp_pci.c | 81 debug("inside configure_card, func->busno = %x\n", func->busno); in ibmphp_configure_card() 94 ibmphp_pci_bus->number = cur_func->busno; in ibmphp_configure_card() 99 cur_func->busno, cur_func->device, cur_func->function); in ibmphp_configure_card() 138 cur_func->device, cur_func->busno); in ibmphp_configure_card() 151 cur_func->device, cur_func->busno); in ibmphp_configure_card() 159 newfunc->busno = cur_func->busno; in ibmphp_configure_card() 177 err("Bus %x, devfunc %x\n", cur_func->busno, cur_func->device); in ibmphp_configure_card() 196 newfunc->busno = sec_number; in ibmphp_configure_card() 223 newfunc->busno = cur_func->busno; in ibmphp_configure_card() 242 debug("cur_func->busno b4 configure_bridge is %x\n", cur_func->busno); in ibmphp_configure_card() [all …]
|
D | ibmphp_res.c | 35 static struct bus_node * __init alloc_error_bus(struct ebda_pci_rsrc *curr, u8 busno, int flag) in alloc_error_bus() argument 49 newbus->busno = busno; in alloc_error_bus() 51 newbus->busno = curr->bus_num; in alloc_error_bus() 69 rs->busno = curr->bus_num; in alloc_resources() 88 newbus->busno = curr->bus_num; in alloc_bus_range() 118 …debug("%d resource Primary Bus inserted on bus %x [%x - %x]\n", flag, newbus->busno, newrange->sta… in alloc_bus_range() 127 …debug("First Memory Primary on bus %x, [%x - %x]\n", newbus->busno, newrange->start, newrange->end… in alloc_bus_range() 137 debug("First IO Primary on bus %x, [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range() 147 …debug("1st PFMemory Primary on Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range() 210 …debug("gbuses = NULL, Memory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange… in ibmphp_rsrc_init() [all …]
|
D | ibmphp_core.c | 539 static struct pci_func *ibm_slot_find(u8 busno, u8 device, u8 function) in ibm_slot_find() argument 547 if ((func_cur->busno == busno) && in ibm_slot_find() 600 temp = pci_get_domain_bus_and_slot(0, func->busno, in ibm_unconfigure_device() 618 static u8 bus_structure_fixup(u8 busno) in bus_structure_fixup() argument 624 if (pci_find_bus(0, busno) || !(ibmphp_find_same_bus_num(busno))) in bus_structure_fixup() 637 bus->number = busno; in bus_structure_fixup() 645 b = pci_scan_bus(busno, ibmphp_pci_bus->ops, NULL); in bus_structure_fixup() 669 if (!(bus_structure_fixup(func->busno))) in ibm_configure_device() 672 func->dev = pci_get_domain_bus_and_slot(0, func->busno, in ibm_configure_device() 676 struct pci_bus *bus = pci_find_bus(0, func->busno); in ibm_configure_device() [all …]
|
D | ibmphp.h | 242 u8 busno; member 328 u8 busno; member 347 u8 busno; member 677 u8 busno; member
|
/linux-6.12.1/include/trace/events/ |
D | siox.h | 15 __field(int, busno) 21 __entry->busno = smaster->busno; 28 __entry->busno, 41 __field(int, busno) 48 __entry->busno = smaster->busno; 56 __entry->busno,
|
/linux-6.12.1/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()
|
/linux-6.12.1/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_pci_dn_read_config() 113 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_pci_dn_write_config()
|
/linux-6.12.1/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 | 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 | 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()
|
/linux-6.12.1/drivers/pci/controller/ |
D | pcie-altera.c | 103 int (*rp_write_cfg)(struct altera_pcie *pcie, u8 busno, 401 static int s10_rp_write_cfg(struct altera_pcie *pcie, u8 busno, in s10_rp_write_cfg() argument 422 if (busno == pcie->root_bus_nr && where == PCI_PRIMARY_BUS) in s10_rp_write_cfg() 428 static int _altera_pcie_cfg_read(struct altera_pcie *pcie, u8 busno, in _altera_pcie_cfg_read() argument 436 if (busno == pcie->root_bus_nr && pcie->pcie_data->ops->rp_read_cfg) in _altera_pcie_cfg_read() 452 ret = tlp_cfg_dword_read(pcie, busno, devfn, in _altera_pcie_cfg_read() 472 static int _altera_pcie_cfg_write(struct altera_pcie *pcie, u8 busno, in _altera_pcie_cfg_write() argument 480 if (busno == pcie->root_bus_nr && pcie->pcie_data->ops->rp_write_cfg) in _altera_pcie_cfg_write() 481 return pcie->pcie_data->ops->rp_write_cfg(pcie, busno, in _altera_pcie_cfg_write() 499 return tlp_cfg_dword_write(pcie, busno, devfn, (where & ~DWORD_MASK), in _altera_pcie_cfg_write() [all …]
|
D | pcie-iproc.c | 460 unsigned int busno, in iproc_pcie_map_ep_cfg_reg() argument 468 val = ALIGN_DOWN(PCIE_ECAM_OFFSET(busno, devfn, where), 4) | in iproc_pcie_map_ep_cfg_reg() 572 unsigned int busno = bus->number; in iproc_pcie_config_read() local 578 if (busno == 0) { in iproc_pcie_config_read() 586 cfg_data_p = iproc_pcie_map_ep_cfg_reg(pcie, busno, devfn, where); in iproc_pcie_config_read() 624 int busno, unsigned int devfn, in iproc_pcie_map_cfg_bus() argument 630 if (busno == 0) { in iproc_pcie_map_cfg_bus() 643 return iproc_pcie_map_ep_cfg_reg(pcie, busno, devfn, where); in iproc_pcie_map_cfg_bus()
|
/linux-6.12.1/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()
|
/linux-6.12.1/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()
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/siox/ |
D | siox.h | 12 int busno; member
|
D | siox-core.c | 698 smaster->busno = -1; in siox_master_alloc() 747 dev_set_name(&smaster->dev, "siox-%d", smaster->busno); in siox_master_register() 754 "siox-%d", smaster->busno); in siox_master_register() 842 smaster->busno, smaster->num_devices); in siox_device_add()
|
/linux-6.12.1/arch/mips/include/asm/ |
D | pci.h | 52 void (*set_busno)(int busno);
|
/linux-6.12.1/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()
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | prom.h | 67 unsigned long *busno, unsigned long *phys,
|