Home
last modified time | relevance | path

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

12345

/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()
/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 …]
/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.c318 u32 size, unsigned int irq, s16 bus_num) in mpc52xx_psc_spi_do_probe() argument
341 master->bus_num = bus_num; in mpc52xx_psc_spi_do_probe()
346 master->bus_num = pdata->bus_num; in mpc52xx_psc_spi_do_probe()
368 ret = mpc52xx_psc_spi_port_config(master->bus_num, mps); in mpc52xx_psc_spi_do_probe()
Dspi-fsl-lib.c106 master->bus_num = pdata->bus_num; in mpc8xxx_spi_probe()
130 pdata->bus_num = -1; in of_mpc8xxx_spi_probe()
Dspi-bcm63xx.c491 int irq, bus_num; in bcm63xx_spi_probe() local
514 bus_num = -1; in bcm63xx_spi_probe()
519 bus_num = BCM63XX_SPI_BUS_NUM; in bcm63xx_spi_probe()
570 master->bus_num = bus_num; in bcm63xx_spi_probe()
Dspi-altera-dfl.c137 master->bus_num = -1; in dfl_spi_altera_probe()
172 board_info.bus_num = 0; in dfl_spi_altera_probe()
Dspi-sh-sci.c140 sp->bitbang.master->bus_num = sp->info->bus_num; in sh_sci_spi_probe()
Dspi-fsl-dspi.c1058 spi->controller->bus_num, spi->chip_select); in dspi_cleanup()
1239 int ret, cs_num, bus_num = -1; in dspi_probe() local
1270 ctlr->bus_num = pdata->bus_num; in dspi_probe()
1284 of_property_read_u32(np, "bus-num", &bus_num); in dspi_probe()
1285 ctlr->bus_num = bus_num; in dspi_probe()
Dspi.c825 if (ctlr->bus_num != bi->bus_num) in spi_match_controller_to_boardinfo()
2900 ctlr->bus_num = -1; in __spi_alloc_controller()
3095 if (ctlr->bus_num >= 0) { in spi_register_controller()
3098 id = idr_alloc(&spi_master_idr, ctlr, ctlr->bus_num, in spi_register_controller()
3099 ctlr->bus_num + 1, GFP_KERNEL); in spi_register_controller()
3103 ctlr->bus_num = id; in spi_register_controller()
3108 ctlr->bus_num = id; in spi_register_controller()
3110 id = idr_alloc(&spi_master_idr, ctlr, ctlr->bus_num, in spi_register_controller()
3111 ctlr->bus_num + 1, GFP_KERNEL); in spi_register_controller()
3117 if (ctlr->bus_num < 0) { in spi_register_controller()
[all …]
Dspi-npcm-pspi.c405 master->bus_num = -1; in npcm_pspi_probe()
421 pr_info("NPCM Peripheral SPI %d probed\n", master->bus_num); in npcm_pspi_probe()
Dspi-s3c24xx.c482 master->bus_num = pdata->bus_num; in s3c24xx_spi_probe()
Dspi-xtensa-xtfpga.c92 master->bus_num = pdev->dev.id; in xtfpga_spi_probe()
/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 …]
Dibmphp.h175 u32 bus_num; member
224 u8 bus_num; member
/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 (bus_num << 16) | ((PCI_SLOT(devfn)) << 11) | in ixp4xx_config_addr()
297 u8 bus_num = bus->number; in ixp4xx_pci_read_config() local
306 addr = ixp4xx_config_addr(bus_num, devfn, where); in ixp4xx_pci_read_config()
309 where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_read_config()
344 u8 bus_num = bus->number; in ixp4xx_pci_write_config() local
352 addr = ixp4xx_config_addr(bus_num, devfn, where); in ixp4xx_pci_write_config()
357 value, where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_write_config()
/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()
1187 r = &(lba_dev->hba.bus_num); in lba_legacy_resources()
1198 (int)lba_dev->hba.bus_num.start); in lba_legacy_resources()
1307 (int)lba_dev->hba.bus_num.start); in lba_legacy_resources()
[all …]
Ddino.c1029 dino_dev->hba.bus_num.start = dino_current_bus; in dino_probe()
1030 dino_dev->hba.bus_num.end = 255; in dino_probe()
1031 dino_dev->hba.bus_num.flags = IORESOURCE_BUS; in dino_probe()
1032 pci_add_resource(&resources, &dino_dev->hba.bus_num); in dino_probe()
/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);
/drivers/infiniband/hw/hfi1/
Dqsfp.c13 static inline u32 i2c_in_csr(u32 bus_num) in i2c_in_csr() argument
15 return bus_num ? ASIC_QSFP2_IN : ASIC_QSFP1_IN; in i2c_in_csr()
19 static inline u32 i2c_oe_csr(u32 bus_num) in i2c_oe_csr() argument
21 return bus_num ? ASIC_QSFP2_OE : ASIC_QSFP1_OE; in i2c_oe_csr()
/drivers/misc/eeprom/
Ddigsy_mtc_eeprom.c81 .bus_num = EE_SPI_BUS_NUM,
/drivers/staging/greybus/
Dspilib.c474 spi_board.bus_num = master->bus_num; in gb_spi_setup_device()
511 master->bus_num = -1; /* Allow spi-core to allocate it dynamically */ in gb_spilib_master_init()
/drivers/video/fbdev/mmp/hw/
Dmmp_spi.c152 master->bus_num = 5; in lcd_spi_register()

12345