Home
last modified time | relevance | path

Searched refs:busnr (Results 1 – 15 of 15) sorted by relevance

/drivers/pci/hotplug/
Dshpchp_sysfs.c27 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()
/drivers/pci/
Dsearch.c116 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()
Diov.c104 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()
Dprobe.c903 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()
1080 struct pci_dev *bridge, int busnr) in pci_alloc_child_bus() argument
1107 dev_set_name(&child->dev, "%04x:%02x", pci_domain_nr(child), busnr); in pci_alloc_child_bus()
1110 child->number = child->busn_res.start = busnr; in pci_alloc_child_bus()
1162 int busnr) in pci_add_new_bus() argument
1166 child = pci_alloc_child_bus(parent, dev, busnr); in pci_add_new_bus()
3034 bridge->busnr = bus; in pci_create_root_bus()
3155 bridge->busnr = window->res->start; in pci_scan_root_bus_bridge()
[all …]
/drivers/pci/controller/cadence/
Dpcie-cadence.c26 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()
Dpcie-cadence-host.c67 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()
Dpcie-cadence.h545 void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 busnr, u8 fn,
550 u8 busnr, u8 fn,
/drivers/pci/controller/
Dpcie-hisi-error.c151 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()
Dpci-versatile.c50 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()
Dpci-v3-semi.c316 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()
Dvmd.c456 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()
Dpcie-altera.c803 bridge->busnr = pcie->root_bus_nr; in altera_pcie_probe()
/drivers/pci/pcie/
Dpme.c131 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()
/drivers/pci/controller/dwc/
Dpcie-al.c222 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()
/drivers/pci/controller/mobiveil/
Dpcie-mobiveil-host.c40 if ((bus->primary == to_pci_host_bridge(bus->bridge)->busnr) && (PCI_SLOT(devfn) > 0)) in mobiveil_pcie_valid_device()