Home
last modified time | relevance | path

Searched refs:bus_num (Results 1 – 25 of 182) sorted by relevance

12345678

/openbmc/linux/include/trace/events/
H A Dspi.h22 __entry->bus_num = controller->bus_num;
25 TP_printk("spi%d", (int)__entry->bus_num)
50 __field(int, bus_num)
59 __entry->bus_num = spi->controller->bus_num;
68 __entry->bus_num, __entry->chip_select,
83 __field(int, bus_num)
90 __entry->bus_num = spi->controller->bus_num;
97 __entry->bus_num, __entry->chip_select,
115 __entry->bus_num = msg->spi->controller->bus_num;
156 __entry->bus_num = msg->spi->controller->bus_num;
[all …]
/openbmc/linux/drivers/cdx/controller/
H A Dcdx_controller.c50 u8 bus_num, u8 dev_num, in cdx_configure_device() argument
57 ret = cdx_mcdi_reset_device(cdx->priv, bus_num, dev_num); in cdx_configure_device()
69 u8 bus_num, dev_num, num_cdx_bus; in cdx_scan_devices() local
81 for (bus_num = 0; bus_num < num_cdx_bus; bus_num++) { in cdx_scan_devices()
85 ret = cdx_mcdi_get_num_devs(cdx_mcdi, bus_num); in cdx_scan_devices()
88 "Get devices on CDX bus %d failed: %d\n", bus_num, ret); in cdx_scan_devices()
97 ret = cdx_mcdi_get_dev_config(cdx_mcdi, bus_num, in cdx_scan_devices()
102 bus_num, dev_num, ret); in cdx_scan_devices()
116 dev_num, bus_num); in cdx_scan_devices()
H A Dmcdi_functions.c28 int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num) in cdx_mcdi_get_num_devs() argument
35 MCDI_SET_DWORD(inbuf, CDX_BUS_ENUM_DEVICES_IN_BUS, bus_num); in cdx_mcdi_get_num_devs()
49 u8 bus_num, u8 dev_num, in cdx_mcdi_get_dev_config() argument
59 MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_BUS, bus_num); in cdx_mcdi_get_dev_config()
70 dev_params->bus_num = bus_num; in cdx_mcdi_get_dev_config()
127 int cdx_mcdi_reset_device(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num) in cdx_mcdi_reset_device() argument
132 MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_BUS, bus_num); in cdx_mcdi_reset_device()
H A Dmcdi_functions.h32 int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num);
47 u8 bus_num, u8 dev_num,
59 u8 bus_num, u8 dev_num);
/openbmc/qemu/hw/pci/
H A Dpci-qmp-cmds.c31 static PciDeviceInfoList *qmp_query_pci_devices(PCIBus *bus, int bus_num);
69 int bus_num) in qmp_query_pci_bridge() argument
107 int bus_num) in qmp_query_pci_device() argument
115 info->bus = bus_num; in qmp_query_pci_device()
141 info->pci_bridge = qmp_query_pci_bridge(dev, bus, bus_num); in qmp_query_pci_device()
157 static PciDeviceInfoList *qmp_query_pci_devices(PCIBus *bus, int bus_num) in qmp_query_pci_devices() argument
166 QAPI_LIST_APPEND(tail, qmp_query_pci_device(dev, bus, bus_num)); in qmp_query_pci_devices()
173 static PciInfo *qmp_query_pci_bus(PCIBus *bus, int bus_num) in qmp_query_pci_bus() argument
177 bus = pci_find_bus_nr(bus, bus_num); in qmp_query_pci_bus()
180 info->bus = bus_num; in qmp_query_pci_bus()
[all …]
/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dddr3_training_leveling.c54 for (bus_num = 0; bus_num < MAX_BUS_NUM; bus_num++) in ddr3_tip_dynamic_read_leveling()
203 for (bus_num = 0; in ddr3_tip_dynamic_read_leveling()
205 bus_num++) { in ddr3_tip_dynamic_read_leveling()
269 for (bus_num = 0; in ddr3_tip_dynamic_read_leveling()
271 bus_num++) { in ddr3_tip_dynamic_read_leveling()
418 for (bus_num = 0; in ddr3_tip_dynamic_per_bit_read_leveling()
419 bus_num <= octets_per_if_num; bus_num++) { in ddr3_tip_dynamic_per_bit_read_leveling()
596 bus_num, in ddr3_tip_dynamic_per_bit_read_leveling()
652 bus_num); in ddr3_tip_dynamic_per_bit_read_leveling()
681 for (bus_num = 0; bus_num < octets_per_if_num; in ddr3_tip_dynamic_per_bit_read_leveling()
[all …]
/openbmc/qemu/hw/usb/
H A Dhost-libusb.c71 uint32_t bus_num; member
101 int bus_num; member
952 int bus_num = 0; in usb_host_open() local
965 bus_num = libusb_get_bus_number(dev); in usb_host_open()
983 bus_num = libusb_get_bus_number(dev); in usb_host_open()
991 s->bus_num = bus_num; in usb_host_open()
1047 "host:%d.%d", bus_num, addr); in usb_host_open()
1110 trace_usb_host_close(s->bus_num, s->addr); in usb_host_close()
1226 if (s->match.addr && s->match.bus_num && in usb_host_realize()
1651 trace_usb_host_reset(s->bus_num, s->addr); in usb_host_handle_reset()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-designware-pcidrv.c58 u32 bus_num; member
113 c->bus_num = pdev->device - 0x817 + 3; in mfld_setup()
118 c->bus_num = pdev->device - 0x82C + 0; in mfld_setup()
164 .bus_num = -1,
169 .bus_num = -1,
174 .bus_num = -1,
178 .bus_num = -1,
182 .bus_num = -1,
186 .bus_num = -1,
190 .bus_num = -1,
[all …]
H A Di2c-cros-ec-tunnel.c74 int num, u16 bus_num) in ec_i2c_construct_message() argument
84 params->port = bus_num; in ec_i2c_construct_message()
179 const u16 bus_num = bus->remote_bus; in ec_i2c_xfer() local
204 result = ec_i2c_construct_message(msg->data, i2c_msgs, num, bus_num); in ec_i2c_xfer()
/openbmc/linux/drivers/spi/
H A Dspi-dw-pci.c30 u16 bus_num; member
44 clk_cdiv = readl(clk_reg + dws->bus_num * sizeof(u32)); in dw_spi_pci_mid_init()
66 .bus_num = 0,
72 .bus_num = 1,
78 .bus_num = -1,
118 dws->bus_num = desc->bus_num; in dw_spi_pci_probe()
H A Dspi-mpc52xx-psc.c299 u32 bus_num; in mpc52xx_psc_spi_of_probe() local
312 ret = device_property_read_u32(dev, "cell-index", &bus_num); in mpc52xx_psc_spi_of_probe()
313 if (ret || bus_num > 5) in mpc52xx_psc_spi_of_probe()
315 master->bus_num = bus_num + 1; in mpc52xx_psc_spi_of_probe()
340 ret = mpc52xx_psc_spi_port_config(master->bus_num, mps); in mpc52xx_psc_spi_of_probe()
H A Dspi-fsl-lib.c107 master->bus_num = pdata->bus_num; in mpc8xxx_spi_probe()
131 pdata->bus_num = -1; in of_mpc8xxx_spi_probe()
/openbmc/linux/drivers/media/pci/netup_unidvb/
H A Dnetup_unidvb_i2c.c296 static int netup_i2c_init(struct netup_unidvb_dev *ndev, int bus_num) in netup_i2c_init() argument
301 if (bus_num < 0 || bus_num > 1) { in netup_i2c_init()
303 "%s(): invalid bus_num %d\n", __func__, bus_num); in netup_i2c_init()
306 i2c = &ndev->i2c[bus_num]; in netup_i2c_init()
310 (bus_num == 0 ? NETUP_I2C_BUS0_ADDR : NETUP_I2C_BUS1_ADDR)); in netup_i2c_init()
321 bus_num, (bus_num == 0 ? in netup_i2c_init()
327 static void netup_i2c_remove(struct netup_unidvb_dev *ndev, int bus_num) in netup_i2c_remove() argument
331 if (bus_num < 0 || bus_num > 1) { in netup_i2c_remove()
333 "%s(): invalid bus number %d\n", __func__, bus_num); in netup_i2c_remove()
336 i2c = &ndev->i2c[bus_num]; in netup_i2c_remove()
[all …]
/openbmc/qemu/hw/pci-host/
H A Dgpex-acpi.c11 Aml *scope, uint8_t bus_num) in acpi_dsdt_add_pci_route_table() argument
24 aml_append(pkg, aml_name("L%.02X%X", bus_num, gsi)); in acpi_dsdt_add_pci_route_table()
34 Aml *dev_gsi = aml_device("L%.02X%X", bus_num, i); in acpi_dsdt_add_pci_route_table()
142 uint8_t bus_num = pci_bus_num(bus); in acpi_dsdt_add_gpex() local
155 if (bus_num < nr_pcie_buses) { in acpi_dsdt_add_gpex()
156 nr_pcie_buses = bus_num; in acpi_dsdt_add_gpex()
159 dev = aml_device("PC%.02X", bus_num); in acpi_dsdt_add_gpex()
170 aml_append(dev, aml_name_decl("_BBN", aml_int(bus_num))); in acpi_dsdt_add_gpex()
171 aml_append(dev, aml_name_decl("_UID", aml_int(bus_num))); in acpi_dsdt_add_gpex()
178 acpi_dsdt_add_pci_route_table(dev, cfg->irq, scope, bus_num); in acpi_dsdt_add_gpex()
/openbmc/linux/drivers/pci/hotplug/
H A Dibmphp_ebda.c686 u16 slot_num, bus_num, index; in ebda_rsrc_controller() local
706 bus_num = readb(io_mem + addr); in ebda_rsrc_controller()
710 addr += (bus_num * 9); /* offset of ctlr_type */ in ebda_rsrc_controller()
715 hpc_ptr = alloc_ebda_hpc(slot_num, bus_num); in ebda_rsrc_controller()
722 hpc_ptr->bus_count = bus_num; in ebda_rsrc_controller()
727 debug("count of buses controlled by this ctlr: %x\n", bus_num); in ebda_rsrc_controller()
773 for (bus = 0; bus < bus_num; bus++) { in ebda_rsrc_controller()
774 bus_ptr->bus_num = readb(io_mem + addr_bus + bus); in ebda_rsrc_controller()
784 bus_info_ptr2 = ibmphp_find_same_bus_num(bus_ptr->bus_num); in ebda_rsrc_controller()
944 rsrc_ptr->bus_num = readb(io_mem + addr); in ebda_rsrc_rsrc()
[all …]
H A Dcpqphp_pci.c154 int cpqhp_set_irq(u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num) in cpqhp_set_irq() argument
173 fakebus->number = bus_num; in cpqhp_set_irq()
175 __func__, dev_num, bus_num, int_pin, irq_num); in cpqhp_set_irq()
207 ctrl->pci_bus->number = bus_num; in PCI_ScanBusForNonBridge()
213 dbg("Looking for nonbridge bus_num %d dev_num %d\n", bus_num, tdevice); in PCI_ScanBusForNonBridge()
225 dbg("Looking for bridge bus_num %d dev_num %d\n", bus_num, tdevice); in PCI_ScanBusForNonBridge()
252 *bus_num = tbus; in PCI_GetBusDevHelper()
259 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num); in PCI_GetBusDevHelper()
267 *bus_num = tbus; in PCI_GetBusDevHelper()
278 int cpqhp_get_bus_dev(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot) in cpqhp_get_bus_dev() argument
[all …]
/openbmc/linux/arch/powerpc/platforms/83xx/
H A Dmpc832x_rdb.c67 pdata.bus_num = *(u32 *)prop; in of_fsl_spi_probe()
78 if (board_infos[j].bus_num == pdata.bus_num) in of_fsl_spi_probe()
158 .bus_num = 0x4c0,
/openbmc/linux/drivers/pci/controller/
H A Dpci-ixp4xx.c186 static u32 ixp4xx_config_addr(u8 bus_num, u16 devfn, int where) in ixp4xx_config_addr() argument
189 if (bus_num == 0) { in ixp4xx_config_addr()
195 return (PCI_CONF1_ADDRESS(bus_num, PCI_SLOT(devfn), in ixp4xx_config_addr()
298 u8 bus_num = bus->number; in ixp4xx_pci_read_config() local
307 addr = ixp4xx_config_addr(bus_num, devfn, where); in ixp4xx_pci_read_config()
310 where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_read_config()
345 u8 bus_num = bus->number; in ixp4xx_pci_write_config() local
353 addr = ixp4xx_config_addr(bus_num, devfn, where); in ixp4xx_pci_write_config()
358 value, where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_write_config()
/openbmc/qemu/tests/qtest/
H A Dqtest_aspeed.h21 static inline uint32_t ast2600_i2c_calc_bus_addr(uint8_t bus_num) in ast2600_i2c_calc_bus_addr() argument
23 return AST2600_ASPEED_I2C_BASE_ADDR + 0x80 + bus_num * 0x80; in ast2600_i2c_calc_bus_addr()
/openbmc/linux/arch/arm/mach-s3c/
H A Dmach-crag6410-module.c44 .bus_num = 0,
56 .bus_num = 0,
230 .bus_num = 0,
262 .bus_num = 0,
284 .bus_num = 0,
/openbmc/linux/arch/m68k/coldfire/
H A Dstmark2.c49 .bus_num = 0,
59 .bus_num = 0,
/openbmc/u-boot/arch/arm/mach-mvebu/serdes/a38x/
H A Dctrl_pex.c227 int pex_local_bus_num_set(u32 pex_if, u32 bus_num) in pex_local_bus_num_set() argument
233 if (bus_num >= MAX_PEX_BUSSES) { in pex_local_bus_num_set()
235 bus_num, 4); in pex_local_bus_num_set()
242 (bus_num << PXSR_PEX_BUS_NUM_OFFS) & PXSR_PEX_BUS_NUM_MASK; in pex_local_bus_num_set()
/openbmc/linux/drivers/parisc/
H A Dlba_pci.c1073 lba_dev->hba.bus_num.start = p->start; in lba_pat_resources()
1074 lba_dev->hba.bus_num.end = p->end; in lba_pat_resources()
1091 (int)lba_dev->hba.bus_num.start); in lba_pat_resources()
1099 (int)lba_dev->hba.bus_num.start); in lba_pat_resources()
1117 (int)lba_dev->hba.bus_num.start); in lba_pat_resources()
1140 (int)lba_dev->hba.bus_num.start); in lba_pat_resources()
1183 r = &(lba_dev->hba.bus_num); in lba_legacy_resources()
1194 (int)lba_dev->hba.bus_num.start); in lba_legacy_resources()
1303 (int)lba_dev->hba.bus_num.start); in lba_legacy_resources()
1325 (int)lba_dev->hba.bus_num.start); in lba_legacy_resources()
[all …]
/openbmc/linux/arch/arm/mach-ep93xx/
H A Dvision_ep9307.c224 .bus_num = 0,
231 .bus_num = 0,
238 .bus_num = 0,
/openbmc/linux/include/linux/cdx/
H A Dcdx_bus.h34 u8 bus_num, u8 dev_num,
98 u8 bus_num; member

12345678