/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()
|
/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 | 61 int nr_virtfn, busnr, rc = 0; in compute_max_vf_buses() local 70 busnr = pci_iov_virtfn_bus(dev, nr_virtfn - 1); in compute_max_vf_buses() 71 if (busnr > iov->max_VF_buses) in compute_max_vf_buses() 72 iov->max_VF_buses = busnr; in compute_max_vf_buses() 80 static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr) in virtfn_add_bus() argument 84 if (bus->number == busnr) in virtfn_add_bus() 87 child = pci_find_bus(pci_domain_nr(bus), busnr); in virtfn_add_bus() 91 child = pci_add_new_bus(bus, NULL, busnr); in virtfn_add_bus() 95 pci_bus_insert_busn_res(child, busnr, busnr); in virtfn_add_bus()
|
D | probe.c | 905 bus->number = bus->busn_res.start = bridge->busnr; in pci_register_host_bridge() 913 b = pci_find_bus(pci_domain_nr(bus), bridge->busnr); in pci_register_host_bridge() 922 bridge->busnr); in pci_register_host_bridge() 1054 struct pci_dev *bridge, int busnr) in pci_alloc_child_bus() argument 1081 dev_set_name(&child->dev, "%04x:%02x", pci_domain_nr(child), busnr); in pci_alloc_child_bus() 1084 child->number = child->busn_res.start = busnr; in pci_alloc_child_bus() 1136 int busnr) in pci_add_new_bus() argument 1140 child = pci_alloc_child_bus(parent, dev, busnr); in pci_add_new_bus() 3007 bridge->busnr = bus; in pci_create_root_bus() 3128 bridge->busnr = window->res->start; in pci_scan_root_bus_bridge() [all …]
|
/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 | 67 if (busn == bridge->busnr + 1) in cdns_pci_map_bus() 431 int r, busnr = 0; in cdns_pcie_host_init_address_translation() local 435 busnr = entry->res->start; in cdns_pcie_host_init_address_translation() 443 desc1 = CDNS_PCIE_AT_OB_REGION_DESC1_BUS(busnr); in cdns_pcie_host_init_address_translation() 462 cdns_pcie_set_outbound_region(pcie, busnr, 0, r, in cdns_pcie_host_init_address_translation() 468 cdns_pcie_set_outbound_region(pcie, busnr, 0, r, in cdns_pcie_host_init_address_translation()
|
D | pcie-cadence.h | 538 void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 busnr, u8 fn, 543 u8 busnr, u8 fn,
|
/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 | 51 unsigned int busnr = bus->number; in versatile_map_bus() local 56 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 | 455 u32 busnr, addr; in vmd_acpi_find_companion() local 461 busnr = pci_dev->bus->number - bridge->bus->number; in vmd_acpi_find_companion() 466 if (busnr > 31) in vmd_acpi_find_companion() 469 addr = (busnr << 24) | ((u32)pci_dev->devfn << 16) | 0x8000FFFFU; in vmd_acpi_find_companion()
|
D | pcie-altera.c | 805 bridge->busnr = pcie->root_bus_nr; in altera_pcie_probe()
|
/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()
|
/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()
|
/drivers/pci/controller/mobiveil/ |
D | pcie-mobiveil-host.c | 40 if ((bus->primary == to_pci_host_bridge(bus->bridge)->busnr) && (PCI_SLOT(devfn) > 0)) in mobiveil_pcie_valid_device()
|