/linux-6.12.1/drivers/pci/hotplug/ |
D | shpchp_sysfs.c | 30 int busnr; in show_ctrl() local 65 for (busnr = bus->busn_res.start; busnr <= bus->busn_res.end; busnr++) { in show_ctrl() 66 if (!pci_find_bus(pci_domain_nr(bus), busnr)) in show_ctrl() 69 if (busnr < bus->busn_res.end) in show_ctrl() 72 busnr, (int)(bus->busn_res.end - busnr)); in show_ctrl()
|
/linux-6.12.1/arch/arm/kernel/ |
D | bios32.c | 395 static int pcibios_init_resource(int busnr, struct pci_sys_data *sys) in pcibios_init_resource() argument 409 sys->io_res.start = (busnr * SZ_64K) ? : pcibios_min_io; in pcibios_init_resource() 410 sys->io_res.end = (busnr + 1) * SZ_64K - 1; in pcibios_init_resource() 413 sprintf(sys->io_res_name, "PCI%d I/O", busnr); in pcibios_init_resource() 431 int nr, busnr; in pcibios_init_hw() local 433 for (nr = busnr = 0; nr < hw->nr_controllers; nr++) { in pcibios_init_hw() 442 sys->busnr = busnr; in pcibios_init_hw() 470 bridge->busnr = sys->busnr; in pcibios_init_hw() 483 busnr = sys->bus->busn_res.end + 1; in pcibios_init_hw()
|
/linux-6.12.1/arch/arm/mach-dove/ |
D | pcie.c | 45 pp->root_bus_nr = sys->busnr; in dove_pcie_setup() 50 orion_pcie_set_local_bus_nr(pp->base, sys->busnr); in dove_pcie_setup() 54 realio.start = sys->busnr * SZ_64K; in dove_pcie_setup() 171 bridge->busnr = sys->busnr; in dove_pcie_scan_bus()
|
/linux-6.12.1/drivers/pci/ |
D | search.c | 116 static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) in pci_do_find_bus() argument 121 if (bus->number == busnr) in pci_do_find_bus() 125 child = pci_do_find_bus(tmp, busnr); in pci_do_find_bus() 141 struct pci_bus *pci_find_bus(int domain, int busnr) in pci_find_bus() argument 149 tmp_bus = pci_do_find_bus(bus, busnr); in pci_find_bus()
|
D | iov.c | 103 int nr_virtfn, busnr, rc = 0; in compute_max_vf_buses() local 112 busnr = pci_iov_virtfn_bus(dev, nr_virtfn - 1); in compute_max_vf_buses() 113 if (busnr > iov->max_VF_buses) in compute_max_vf_buses() 114 iov->max_VF_buses = busnr; in compute_max_vf_buses() 122 static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr) in virtfn_add_bus() argument 126 if (bus->number == busnr) in virtfn_add_bus() 129 child = pci_find_bus(pci_domain_nr(bus), busnr); in virtfn_add_bus() 133 child = pci_add_new_bus(bus, NULL, busnr); in virtfn_add_bus() 137 pci_bus_insert_busn_res(child, busnr, busnr); in virtfn_add_bus()
|
D | probe.c | 923 bus->number = bus->busn_res.start = bridge->busnr; in pci_register_host_bridge() 935 b = pci_find_bus(pci_domain_nr(bus), bridge->busnr); in pci_register_host_bridge() 944 bridge->busnr); in pci_register_host_bridge() 1110 struct pci_dev *bridge, int busnr) in pci_alloc_child_bus() argument 1137 dev_set_name(&child->dev, "%04x:%02x", pci_domain_nr(child), busnr); in pci_alloc_child_bus() 1140 child->number = child->busn_res.start = busnr; in pci_alloc_child_bus() 1192 int busnr) in pci_add_new_bus() argument 1196 child = pci_alloc_child_bus(parent, dev, busnr); in pci_add_new_bus() 3065 bridge->busnr = bus; in pci_create_root_bus() 3188 bridge->busnr = window->res->start; in pci_scan_root_bus_bridge() [all …]
|
/linux-6.12.1/arch/sh/drivers/pci/ |
D | common.c | 12 int top_bus, int busnr, int devfn) in fake_pci_dev() argument 20 bus.number = busnr; in fake_pci_dev() 24 if(busnr != top_bus) in fake_pci_dev()
|
D | pci.c | 60 bridge->busnr = next_busno; in pcibios_scanbus()
|
/linux-6.12.1/arch/arm/mach-orion5x/ |
D | pci.c | 165 realio.start = sys->busnr * SZ_64K; in pcie_setup() 486 realio.start = sys->busnr * SZ_64K; in pci_setup() 555 orion_pcie_set_local_bus_nr(PCIE_BASE, sys->busnr); in orion5x_pci_sys_setup() 560 orion5x_pci_set_bus_nr(sys->busnr); in orion5x_pci_sys_setup() 574 bridge->busnr = sys->busnr; in orion5x_pci_sys_scan_bus()
|
/linux-6.12.1/drivers/pci/controller/cadence/ |
D | pcie-cadence.c | 27 void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 busnr, u8 fn, in cdns_pcie_set_outbound_region() argument 80 desc1 |= CDNS_PCIE_AT_OB_REGION_DESC1_BUS(busnr); in cdns_pcie_set_outbound_region() 105 u8 busnr, u8 fn, in cdns_pcie_set_outbound_region_for_normal_msg() argument 117 desc1 |= CDNS_PCIE_AT_OB_REGION_DESC1_BUS(busnr); in cdns_pcie_set_outbound_region_for_normal_msg()
|
D | pcie-cadence-host.c | 67 if (busn == bridge->busnr + 1) in cdns_pci_map_bus() 439 int r, busnr = 0; in cdns_pcie_host_init_address_translation() local 443 busnr = entry->res->start; in cdns_pcie_host_init_address_translation() 451 desc1 = CDNS_PCIE_AT_OB_REGION_DESC1_BUS(busnr); in cdns_pcie_host_init_address_translation() 470 cdns_pcie_set_outbound_region(pcie, busnr, 0, r, in cdns_pcie_host_init_address_translation() 476 cdns_pcie_set_outbound_region(pcie, busnr, 0, r, in cdns_pcie_host_init_address_translation()
|
D | pcie-cadence.h | 562 void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 busnr, u8 fn, 567 u8 busnr, u8 fn,
|
/linux-6.12.1/arch/arm/mach-mv78xx0/ |
D | pcie.c | 108 pp->root_bus_nr = sys->busnr; in mv78xx0_pcie_setup() 113 orion_pcie_set_local_bus_nr(pp->base, sys->busnr); in mv78xx0_pcie_setup() 214 bridge->busnr = sys->busnr; in mv78xx0_pcie_scan_bus()
|
/linux-6.12.1/drivers/pci/controller/ |
D | pcie-hisi-error.c | 151 u32 domain, busnr, devfn; in hisi_pcie_port_do_recovery() local 162 busnr = root_bus->number; in hisi_pcie_port_do_recovery() 164 pdev = pci_get_domain_bus_and_slot(domain, busnr, devfn); in hisi_pcie_port_do_recovery() 167 domain, busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); in hisi_pcie_port_do_recovery()
|
D | pci-versatile.c | 50 unsigned int busnr = bus->number; in versatile_map_bus() local 55 return versatile_cfg_base[1] + ((busnr << 16) | (devfn << 8) | offset); in versatile_map_bus()
|
D | pci-v3-semi.c | 314 unsigned int address, mapaddress, busnr; in v3_map_bus() local 316 busnr = bus->number; in v3_map_bus() 317 if (busnr == 0) { in v3_map_bus() 357 address = (busnr << 16) | (devfn << 8); in v3_map_bus()
|
D | vmd.c | 460 u32 busnr, addr; in vmd_acpi_find_companion() local 466 busnr = pci_dev->bus->number - bridge->bus->number; in vmd_acpi_find_companion() 471 if (busnr > 31) in vmd_acpi_find_companion() 474 addr = (busnr << 24) | ((u32)pci_dev->devfn << 16) | 0x8000FFFFU; in vmd_acpi_find_companion()
|
/linux-6.12.1/drivers/pci/pcie/ |
D | pme.c | 132 u8 busnr = req_id >> 8, devfn = req_id & 0xff; in pcie_pme_handle_request() local 138 if (port->devfn == devfn && port->bus->number == busnr) { in pcie_pme_handle_request() 162 bus = pci_find_bus(pci_domain_nr(port->bus), busnr); in pcie_pme_handle_request() 201 busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); in pcie_pme_handle_request()
|
/linux-6.12.1/drivers/pci/controller/dwc/ |
D | pcie-al.c | 222 unsigned int busnr = bus->number; in al_pcie_conf_addr_map_bus() local 224 unsigned int busnr_ecam = busnr & target_bus_cfg->ecam_mask; in al_pcie_conf_addr_map_bus() 225 unsigned int busnr_reg = busnr & target_bus_cfg->reg_mask; in al_pcie_conf_addr_map_bus()
|
/linux-6.12.1/arch/arm/include/asm/mach/ |
D | pci.h | 36 int busnr; /* primary bus number */ member
|
/linux-6.12.1/arch/sparc/kernel/ |
D | leon_pci.c | 46 bridge->busnr = 0; in leon_pci_init()
|
/linux-6.12.1/arch/alpha/kernel/ |
D | sys_nautilus.c | 220 bridge->busnr = 0; in nautilus_init_pci()
|
/linux-6.12.1/arch/m68k/coldfire/ |
D | pci.c | 237 bridge->busnr = 0; in mcf_pci_init()
|
/linux-6.12.1/arch/mips/pci/ |
D | pci-legacy.c | 95 bridge->busnr = next_busno; in pcibios_scanbus()
|
/linux-6.12.1/arch/powerpc/kernel/ |
D | pci-common.c | 1600 fake_pci_bus(struct pci_controller *hose, int busnr) in fake_pci_bus() argument 1605 printk(KERN_ERR "Can't find hose for PCI bus %d!\n", busnr); in fake_pci_bus() 1607 bus.number = busnr; in fake_pci_bus()
|