Home
last modified time | relevance | path

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

123456

/Linux-v6.6/include/trace/events/
Dspi.h18 __field( int, bus_num )
22 __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,
109 __field( int, bus_num )
[all …]
/Linux-v6.6/drivers/cdx/controller/
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()
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()
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);
/Linux-v6.6/drivers/i2c/busses/
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()
134 c->bus_num = PCI_FUNC(pdev->devfn) + 0 + 1; in mrfld_setup()
137 c->bus_num = PCI_FUNC(pdev->devfn) + 4 + 1; in mrfld_setup()
164 .bus_num = -1,
169 .bus_num = -1,
174 .bus_num = -1,
178 .bus_num = -1,
182 .bus_num = -1,
[all …]
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()
/Linux-v6.6/drivers/media/pci/netup_unidvb/
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 …]
/Linux-v6.6/drivers/spi/
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()
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()
Dspi-fsl-lib.c107 master->bus_num = pdata->bus_num; in mpc8xxx_spi_probe()
131 pdata->bus_num = -1; in of_mpc8xxx_spi_probe()
Dspi-bcm63xx.c481 int irq, bus_num; in bcm63xx_spi_probe() local
504 bus_num = -1; in bcm63xx_spi_probe()
509 bus_num = BCM63XX_SPI_BUS_NUM; in bcm63xx_spi_probe()
559 host->bus_num = bus_num; in bcm63xx_spi_probe()
Dspi-altera-dfl.c137 host->bus_num = -1; in dfl_spi_altera_probe()
172 board_info.bus_num = 0; in dfl_spi_altera_probe()
/Linux-v6.6/drivers/pci/hotplug/
Dibmphp_ebda.c166 __func__, ptr->rsrc_type, ptr->bus_num, ptr->dev_fun, ptr->start_addr, ptr->end_addr); in print_ebda_pci_rsrc()
205 …ug("%s - bus# of each bus controlled by this ctlr: %x\n", __func__, hpc_ptr->buses[index].bus_num); in print_ebda_hpc()
686 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()
[all …]
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()
201 static int PCI_ScanBusForNonBridge(struct controller *ctrl, u8 bus_num, u8 *dev_num) in PCI_ScanBusForNonBridge() argument
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()
239 static int PCI_GetBusDevHelper(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot, u8 nobri… in PCI_GetBusDevHelper() argument
252 *bus_num = tbus; in PCI_GetBusDevHelper()
259 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num); in PCI_GetBusDevHelper()
[all …]
/Linux-v6.6/arch/powerpc/platforms/83xx/
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,
/Linux-v6.6/drivers/pci/controller/
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()
/Linux-v6.6/arch/arm/mach-s3c/
Dmach-crag6410-module.c44 .bus_num = 0,
56 .bus_num = 0,
230 .bus_num = 0,
262 .bus_num = 0,
284 .bus_num = 0,
/Linux-v6.6/drivers/parisc/
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()
1075 lba_dev->hba.bus_num.flags = IORESOURCE_BUS; 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()
[all …]
/Linux-v6.6/arch/arm/mach-ep93xx/
Dvision_ep9307.c224 .bus_num = 0,
231 .bus_num = 0,
238 .bus_num = 0,
/Linux-v6.6/arch/m68k/coldfire/
Dstmark2.c49 .bus_num = 0,
59 .bus_num = 0,
/Linux-v6.6/include/linux/cdx/
Dcdx_bus.h34 u8 bus_num, u8 dev_num,
98 u8 bus_num; member
/Linux-v6.6/drivers/staging/vme_user/
Dvme_user.c43 static unsigned int bus_num; variable
508 for (i = 0; i < bus_num; i++) in vme_user_match()
735 if (bus_num == 0) { in vme_user_init()
744 if (bus_num > VME_USER_BUS_MAX) { in vme_user_init()
747 bus_num = VME_USER_BUS_MAX; in vme_user_init()
773 module_param_array(bus, int, &bus_num, 0000);
/Linux-v6.6/drivers/cdx/
Dcdx.c96 ret = cdx->ops->dev_configure(cdx, cdx_dev->bus_num, in cdx_dev_reset()
483 cdx_dev->bus_num = dev_params->bus_num; in cdx_device_add()
497 ((cdx->id << CDX_CONTROLLER_ID_SHIFT) | (cdx_dev->bus_num & CDX_BUS_NUM_MASK)), in cdx_device_add()
/Linux-v6.6/include/linux/spi/
Dspi-fsl-dspi.h18 u32 bus_num; member
/Linux-v6.6/arch/sh/include/asm/
Dspi.h8 int bus_num; member

123456