Home
last modified time | relevance | path

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

12

/linux-4.19.296/drivers/pci/hotplug/
Dshpchp_sysfs.c28 int index, busnr; in show_ctrl() local
62 for (busnr = bus->busn_res.start; busnr <= bus->busn_res.end; busnr++) { in show_ctrl()
63 if (!pci_find_bus(pci_domain_nr(bus), busnr)) in show_ctrl()
66 if (busnr < bus->busn_res.end) in show_ctrl()
68 busnr, (int)(bus->busn_res.end - busnr)); in show_ctrl()
/linux-4.19.296/drivers/pci/controller/
Dpci-rcar-gen2.c101 unsigned busnr; member
116 if (sys->busnr != bus->number || PCI_FUNC(devfn)) in rcar_pci_cfg_base()
204 dev_info(dev, "PCI: bus%u revision %x\n", sys->busnr, val); in rcar_pci_setup()
284 sys->busnr = priv->busnr; in rcar_pci_setup()
378 struct resource busnr; in rcar_pci_probe() local
381 ret = of_pci_parse_bus_range(dev->of_node, &busnr); in rcar_pci_probe()
387 priv->busnr = busnr.start; in rcar_pci_probe()
388 if (busnr.end != busnr.start) in rcar_pci_probe()
397 priv->busnr = pdev->id; in rcar_pci_probe()
Dpci-versatile.c51 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()
203 bridge->busnr = 0; in versatile_pci_probe()
Dpci-v3-semi.c319 unsigned int address, mapaddress, busnr; in v3_map_bus() local
321 busnr = bus->number; in v3_map_bus()
322 if (busnr == 0) { in v3_map_bus()
362 address = (busnr << 16) | (devfn << 8); in v3_map_bus()
604 host->busnr = win->res->start; in v3_pci_setup_resource()
752 host->busnr = 0; in v3_pci_probe()
Dpci-host-common.c93 bridge->busnr = cfg->busr.start; in pci_host_common_probe()
Dpcie-cadence-host.c324 bridge->busnr = pcie->bus; in cdns_pcie_host_probe()
Dpcie-xilinx.c672 bridge->busnr = 0; in xilinx_pcie_probe()
Dpci-ftpci100.c452 host->busnr = 0; in faraday_pci_probe()
Dpcie-altera.c610 bridge->busnr = pcie->root_bus_nr; in altera_pcie_probe()
Dpci-xgene.c653 bridge->busnr = 0; in xgene_pcie_probe()
Dpcie-xilinx-nwl.c890 bridge->busnr = pcie->root_busno; in nwl_pcie_probe()
Dpcie-mobiveil.c835 bridge->busnr = pcie->root_bus_nr; in mobiveil_pcie_probe()
Dpcie-rockchip-host.c1049 bridge->busnr = 0; in rockchip_pcie_probe()
Dpcie-iproc.c1465 host->busnr = 0; in iproc_pcie_setup()
Dpcie-rcar.c474 bridge->busnr = pcie->root_bus_nr; in rcar_pcie_enable()
Dpci-mvebu.c1308 bridge->busnr = 0; in mvebu_pcie_probe()
Dpci-aardvark.c1307 bridge->busnr = 0; in advk_pcie_probe()
Dpcie-mediatek.c1148 host->busnr = pcie->busn.start; in mtk_pcie_register_host()
/linux-4.19.296/drivers/pci/
Dsearch.c115 static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) in pci_do_find_bus() argument
120 if (bus->number == busnr) in pci_do_find_bus()
124 child = pci_do_find_bus(tmp, busnr); in pci_do_find_bus()
140 struct pci_bus *pci_find_bus(int domain, int busnr) in pci_find_bus() argument
148 tmp_bus = pci_do_find_bus(bus, busnr); in pci_find_bus()
Diov.c62 int nr_virtfn, busnr, rc = 0; in compute_max_vf_buses() local
71 busnr = pci_iov_virtfn_bus(dev, nr_virtfn - 1); in compute_max_vf_buses()
72 if (busnr > iov->max_VF_buses) in compute_max_vf_buses()
73 iov->max_VF_buses = busnr; in compute_max_vf_buses()
81 static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr) in virtfn_add_bus() argument
85 if (bus->number == busnr) in virtfn_add_bus()
88 child = pci_find_bus(pci_domain_nr(bus), busnr); in virtfn_add_bus()
92 child = pci_add_new_bus(bus, NULL, busnr); in virtfn_add_bus()
96 pci_bus_insert_busn_res(child, busnr, busnr); in virtfn_add_bus()
Dprobe.c851 bus->number = bus->busn_res.start = bridge->busnr; in pci_register_host_bridge()
856 b = pci_find_bus(pci_domain_nr(bus), bridge->busnr); in pci_register_host_bridge()
865 bridge->busnr); in pci_register_host_bridge()
985 struct pci_dev *bridge, int busnr) in pci_alloc_child_bus() argument
1007 dev_set_name(&child->dev, "%04x:%02x", pci_domain_nr(child), busnr); in pci_alloc_child_bus()
1010 child->number = child->busn_res.start = busnr; in pci_alloc_child_bus()
1062 int busnr) in pci_add_new_bus() argument
1066 child = pci_alloc_child_bus(parent, dev, busnr); in pci_add_new_bus()
3002 bridge->busnr = bus; in pci_create_root_bus()
3134 bus = bridge->busnr; in pci_scan_root_bus_bridge()
[all …]
/linux-4.19.296/drivers/pci/pcie/
Dpme.c129 u8 busnr = req_id >> 8, devfn = req_id & 0xff; in pcie_pme_handle_request() local
135 if (port->devfn == devfn && port->bus->number == busnr) { in pcie_pme_handle_request()
159 bus = pci_find_bus(pci_domain_nr(port->bus), busnr); in pcie_pme_handle_request()
198 busnr, PCI_SLOT(devfn), PCI_FUNC(devfn)); in pcie_pme_handle_request()
/linux-4.19.296/include/linux/
Dpci.h481 int busnr; member
915 struct pci_bus *pci_find_bus(int domain, int busnr);
930 int busnr);
/linux-4.19.296/drivers/pci/controller/dwc/
Dpcie-designware-host.c491 bridge->busnr = pp->root_bus_nr; in dw_pcie_host_init()
/linux-4.19.296/include/uapi/linux/
Dkvm.h1491 __u32 busnr; member

12