/linux-6.1.9/drivers/pci/hotplug/ |
D | shpchp_sysfs.c | 27 int index, 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.1.9/arch/arm/kernel/ |
D | bios32.c | 397 static int pcibios_init_resource(int busnr, struct pci_sys_data *sys) in pcibios_init_resource() argument 411 sys->io_res.start = (busnr * SZ_64K) ? : pcibios_min_io; in pcibios_init_resource() 412 sys->io_res.end = (busnr + 1) * SZ_64K - 1; in pcibios_init_resource() 415 sprintf(sys->io_res_name, "PCI%d I/O", busnr); in pcibios_init_resource() 433 int nr, busnr; in pcibios_init_hw() local 435 for (nr = busnr = 0; nr < hw->nr_controllers; nr++) { in pcibios_init_hw() 444 sys->busnr = busnr; in pcibios_init_hw() 472 bridge->busnr = sys->busnr; in pcibios_init_hw() 485 busnr = sys->bus->busn_res.end + 1; in pcibios_init_hw()
|
/linux-6.1.9/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 | 104 int nr_virtfn, busnr, rc = 0; in compute_max_vf_buses() local 113 busnr = pci_iov_virtfn_bus(dev, nr_virtfn - 1); in compute_max_vf_buses() 114 if (busnr > iov->max_VF_buses) in compute_max_vf_buses() 115 iov->max_VF_buses = busnr; in compute_max_vf_buses() 123 static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr) in virtfn_add_bus() argument 127 if (bus->number == busnr) in virtfn_add_bus() 130 child = pci_find_bus(pci_domain_nr(bus), busnr); in virtfn_add_bus() 134 child = pci_add_new_bus(bus, NULL, busnr); in virtfn_add_bus() 138 pci_bus_insert_busn_res(child, busnr, busnr); in virtfn_add_bus()
|
D | probe.c | 903 bus->number = bus->busn_res.start = bridge->busnr; in pci_register_host_bridge() 911 b = pci_find_bus(pci_domain_nr(bus), bridge->busnr); in pci_register_host_bridge() 920 bridge->busnr); in pci_register_host_bridge() 1077 struct pci_dev *bridge, int busnr) in pci_alloc_child_bus() argument 1104 dev_set_name(&child->dev, "%04x:%02x", pci_domain_nr(child), busnr); in pci_alloc_child_bus() 1107 child->number = child->busn_res.start = busnr; in pci_alloc_child_bus() 1159 int busnr) in pci_add_new_bus() argument 1163 child = pci_alloc_child_bus(parent, dev, busnr); in pci_add_new_bus() 3031 bridge->busnr = bus; in pci_create_root_bus() 3152 bridge->busnr = window->res->start; in pci_scan_root_bus_bridge() [all …]
|
/linux-6.1.9/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.1.9/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()
|
/linux-6.1.9/drivers/pci/controller/cadence/ |
D | pcie-cadence.c | 26 void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 busnr, u8 fn, in cdns_pcie_set_outbound_region() argument 79 desc1 |= CDNS_PCIE_AT_OB_REGION_DESC1_BUS(busnr); in cdns_pcie_set_outbound_region() 104 u8 busnr, u8 fn, in cdns_pcie_set_outbound_region_for_normal_msg() argument 116 desc1 |= CDNS_PCIE_AT_OB_REGION_DESC1_BUS(busnr); in cdns_pcie_set_outbound_region_for_normal_msg()
|
D | pcie-cadence-host.c | 65 if (busn == bridge->busnr + 1) in cdns_pci_map_bus() 412 int r, busnr = 0; in cdns_pcie_host_init_address_translation() local 416 busnr = entry->res->start; in cdns_pcie_host_init_address_translation() 424 desc1 = CDNS_PCIE_AT_OB_REGION_DESC1_BUS(busnr); in cdns_pcie_host_init_address_translation() 443 cdns_pcie_set_outbound_region(pcie, busnr, 0, r, in cdns_pcie_host_init_address_translation() 449 cdns_pcie_set_outbound_region(pcie, busnr, 0, r, in cdns_pcie_host_init_address_translation()
|
D | pcie-cadence.h | 545 void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 busnr, u8 fn, 550 u8 busnr, u8 fn,
|
/linux-6.1.9/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.1.9/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 | 316 unsigned int address, mapaddress, busnr; in v3_map_bus() local 318 busnr = bus->number; in v3_map_bus() 319 if (busnr == 0) { in v3_map_bus() 359 address = (busnr << 16) | (devfn << 8); in v3_map_bus()
|
D | vmd.c | 456 u32 busnr, addr; in vmd_acpi_find_companion() local 462 busnr = pci_dev->bus->number - bridge->bus->number; in vmd_acpi_find_companion() 467 if (busnr > 31) in vmd_acpi_find_companion() 470 addr = (busnr << 24) | ((u32)pci_dev->devfn << 16) | 0x8000FFFFU; in vmd_acpi_find_companion()
|
/linux-6.1.9/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.1.9/drivers/pci/pcie/ |
D | pme.c | 131 u8 busnr = req_id >> 8, devfn = req_id & 0xff; in pcie_pme_handle_request() local 137 if (port->devfn == devfn && port->bus->number == busnr) { in pcie_pme_handle_request() 161 bus = pci_find_bus(pci_domain_nr(port->bus), busnr); in pcie_pme_handle_request() 200 busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); in pcie_pme_handle_request()
|
/linux-6.1.9/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.1.9/arch/arm/include/asm/mach/ |
D | pci.h | 36 int busnr; /* primary bus number */ member
|
/linux-6.1.9/arch/sparc/kernel/ |
D | leon_pci.c | 45 bridge->busnr = 0; in leon_pci_init()
|
/linux-6.1.9/arch/alpha/kernel/ |
D | sys_nautilus.c | 222 bridge->busnr = 0; in nautilus_init_pci()
|
/linux-6.1.9/arch/m68k/coldfire/ |
D | pci.c | 237 bridge->busnr = 0; in mcf_pci_init()
|
/linux-6.1.9/arch/microblaze/pci/ |
D | pci-common.c | 1035 fake_pci_bus(struct pci_controller *hose, int busnr) in fake_pci_bus() argument 1040 pr_err("Can't find hose for PCI bus %d!\n", busnr); in fake_pci_bus() 1042 bus.number = busnr; in fake_pci_bus()
|
/linux-6.1.9/arch/arm/mach-iop32x/ |
D | pci.c | 41 if (sys->busnr == bus->number) in iop3xx_cfg_address()
|
/linux-6.1.9/arch/mips/pci/ |
D | pci-legacy.c | 95 bridge->busnr = next_busno; in pcibios_scanbus()
|