Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/pci/hotplug/
H A Dshpchp_sysfs.c30 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()
/openbmc/linux/arch/arm/kernel/
H A Dbios32.c395 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()
/openbmc/qemu/hw/usb/
H A Ddev-serial.c197 trace_usb_serial_set_flow_control(bus->busnr, dev->addr, flow_control); in usb_serial_set_flow_control()
208 trace_usb_serial_set_xonxoff(bus->busnr, dev->addr, s->xon, s->xoff); in usb_serial_set_xonxoff()
226 trace_usb_serial_reset(bus->busnr, dev->addr); in usb_serial_handle_reset()
267 trace_usb_serial_handle_control(bus->busnr, dev->addr, request, value); in usb_serial_handle_control()
339 trace_usb_serial_set_baud(bus->busnr, dev->addr, s->params.speed); in usb_serial_handle_control()
356 trace_usb_serial_unsupported_data_bits(bus->busnr, dev->addr, in usb_serial_handle_control()
372 trace_usb_serial_unsupported_parity(bus->busnr, dev->addr, in usb_serial_handle_control()
385 trace_usb_serial_unsupported_stopbits(bus->busnr, dev->addr, in usb_serial_handle_control()
390 trace_usb_serial_set_data(bus->busnr, dev->addr, s->params.parity, in usb_serial_handle_control()
417 trace_usb_serial_unsupported_control(bus->busnr, dev->addr, request, in usb_serial_handle_control()
[all …]
H A Dbus.c90 bus->busnr = next_usb_bus++; in usb_bus_new()
427 trace_usb_port_claim(bus->busnr, port->path); in usb_claim_port()
445 trace_usb_port_release(bus->busnr, port->path); in usb_release_port()
493 trace_usb_port_attach(bus->busnr, port->path, in usb_check_attach()
528 trace_usb_port_detach(bus->busnr, port->path); in usb_device_detach()
554 indent, "", bus->busnr, dev->addr, in usb_bus_dev_print()
621 bus->busnr, dev->addr, port->path, in qmp_x_query_usb()
/openbmc/linux/arch/arm/mach-dove/
H A Dpcie.c45 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()
/openbmc/linux/drivers/pci/
H A 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()
H A Diov.c103 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()
H A Dprobe.c921 bridge->busnr); in pci_register_host_bridge()
1084 struct pci_dev *bridge, int busnr) in pci_alloc_child_bus() argument
1166 int busnr) in pci_add_new_bus() argument
3055 bridge->busnr = bus; in pci_create_root_bus()
3176 bridge->busnr = window->res->start; in pci_scan_root_bus_bridge()
3186 bus = bridge->busnr; in pci_scan_root_bus_bridge()
3347 int busnr, start = parent->busn_res.start; in pci_hp_add_bridge() local
3351 for (busnr = start; busnr <= end; busnr++) { in pci_hp_add_bridge()
3355 if (busnr-- > end) { in pci_hp_add_bridge()
3361 busnr = pci_scan_bridge(parent, dev, busnr, 0); in pci_hp_add_bridge()
[all …]
/openbmc/linux/arch/sh/drivers/pci/
H A Dcommon.c12 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()
/openbmc/linux/drivers/pci/controller/cadence/
H A Dpcie-cadence.c27 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()
H A 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()
H A Dpcie-cadence.h545 void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 busnr, u8 fn,
550 u8 busnr, u8 fn,
/openbmc/linux/arch/arm/mach-orion5x/
H A Dpci.c165 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()
/openbmc/u-boot/board/armltd/integrator/
H A Dpci.c91 unsigned int busnr = PCI_BUS(bdf); in v3_open_config_window() local
99 if (busnr > 255) in v3_open_config_window()
104 if (busnr == 0) { in v3_open_config_window()
148 address = (busnr << 16) | (devfn << 8); in v3_open_config_window()
/openbmc/linux/arch/arm/mach-mv78xx0/
H A Dpcie.c108 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()
/openbmc/linux/drivers/pci/controller/
H A 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()
H A 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()
H A Dpci-v3-semi.c314 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()
H A Dvmd.c471 u32 busnr, addr; in vmd_acpi_find_companion() local
477 busnr = pci_dev->bus->number - bridge->bus->number; in vmd_acpi_find_companion()
482 if (busnr > 31) in vmd_acpi_find_companion()
485 addr = (busnr << 24) | ((u32)pci_dev->devfn << 16) | 0x8000FFFFU; in vmd_acpi_find_companion()
/openbmc/linux/drivers/pci/pcie/
H A 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()
/openbmc/linux/drivers/pci/controller/dwc/
H A 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()
/openbmc/linux/arch/arm/include/asm/mach/
H A Dpci.h36 int busnr; /* primary bus number */ member
/openbmc/linux/arch/sparc/kernel/
H A Dleon_pci.c46 bridge->busnr = 0; in leon_pci_init()
/openbmc/linux/arch/alpha/kernel/
H A Dsys_nautilus.c222 bridge->busnr = 0; in nautilus_init_pci()
/openbmc/linux/arch/m68k/coldfire/
H A Dpci.c237 bridge->busnr = 0; in mcf_pci_init()

12