Home
last modified time | relevance | path

Searched refs:bus_speed (Results 1 – 24 of 24) sorted by relevance

/Linux-v4.19/drivers/pci/hotplug/
Dshpchp_hpc.c641 enum pci_bus_speed bus_speed = PCI_SPEED_UNKNOWN; in shpc_get_cur_bus_speed() local
653 bus_speed = PCI_SPEED_33MHz; in shpc_get_cur_bus_speed()
656 bus_speed = PCI_SPEED_66MHz; in shpc_get_cur_bus_speed()
659 bus_speed = PCI_SPEED_66MHz_PCIX; in shpc_get_cur_bus_speed()
662 bus_speed = PCI_SPEED_100MHz_PCIX; in shpc_get_cur_bus_speed()
665 bus_speed = PCI_SPEED_133MHz_PCIX; in shpc_get_cur_bus_speed()
668 bus_speed = PCI_SPEED_66MHz_PCIX_ECC; in shpc_get_cur_bus_speed()
671 bus_speed = PCI_SPEED_100MHz_PCIX_ECC; in shpc_get_cur_bus_speed()
674 bus_speed = PCI_SPEED_133MHz_PCIX_ECC; in shpc_get_cur_bus_speed()
677 bus_speed = PCI_SPEED_66MHz_PCIX_266; in shpc_get_cur_bus_speed()
[all …]
Dibmphp_core.c588 u8 bus_speed; in ibmphp_update_slot_info() local
608 bus_speed = slot_cur->bus_on->current_speed; in ibmphp_update_slot_info()
611 switch (bus_speed) { in ibmphp_update_slot_info()
616 bus_speed += 0x01; in ibmphp_update_slot_info()
620 bus_speed = PCI_SPEED_UNKNOWN; in ibmphp_update_slot_info()
624 bus_speed += 0x01; in ibmphp_update_slot_info()
627 bus_speed = PCI_SPEED_UNKNOWN; in ibmphp_update_slot_info()
630 bus->cur_bus_speed = bus_speed; in ibmphp_update_slot_info()
/Linux-v4.19/drivers/i2c/busses/
Di2c-bcm-iproc.c96 unsigned int bus_speed; member
405 unsigned int bus_speed; in bcm_iproc_i2c_cfg_speed() local
408 "clock-frequency", &bus_speed); in bcm_iproc_i2c_cfg_speed()
412 bus_speed = 100000; in bcm_iproc_i2c_cfg_speed()
415 if (bus_speed < 100000) { in bcm_iproc_i2c_cfg_speed()
417 bus_speed); in bcm_iproc_i2c_cfg_speed()
421 } else if (bus_speed < 400000) { in bcm_iproc_i2c_cfg_speed()
422 bus_speed = 100000; in bcm_iproc_i2c_cfg_speed()
424 bus_speed = 400000; in bcm_iproc_i2c_cfg_speed()
427 iproc_i2c->bus_speed = bus_speed; in bcm_iproc_i2c_cfg_speed()
[all …]
Di2c-uniphier.c333 u32 bus_speed; in uniphier_i2c_probe() local
352 if (of_property_read_u32(dev->of_node, "clock-frequency", &bus_speed)) in uniphier_i2c_probe()
353 bus_speed = UNIPHIER_I2C_DEFAULT_SPEED; in uniphier_i2c_probe()
355 if (!bus_speed || bus_speed > UNIPHIER_I2C_MAX_SPEED) { in uniphier_i2c_probe()
356 dev_err(dev, "invalid clock-frequency %d\n", bus_speed); in uniphier_i2c_probe()
377 priv->clk_cycle = clk_rate / bus_speed; in uniphier_i2c_probe()
Di2c-sh_mobile.c118 unsigned long bus_speed; member
274 if (pd->bus_speed == STANDARD_MODE) { in sh_mobile_i2c_init()
278 } else if (pd->bus_speed == FAST_MODE) { in sh_mobile_i2c_init()
284 pd->bus_speed); in sh_mobile_i2c_init()
299 clks_per_cycle = clk_get_rate(pd->clk) / pd->bus_speed; in sh_mobile_i2c_v2_init()
858 u32 bus_speed; in sh_mobile_i2c_probe() local
884 ret = of_property_read_u32(dev->dev.of_node, "clock-frequency", &bus_speed); in sh_mobile_i2c_probe()
885 pd->bus_speed = (ret || !bus_speed) ? STANDARD_MODE : bus_speed; in sh_mobile_i2c_probe()
935 dev_info(&dev->dev, "I2C adapter %d, bus speed %lu Hz\n", adap->nr, pd->bus_speed); in sh_mobile_i2c_probe()
Di2c-ismt.c192 static unsigned int bus_speed; variable
193 module_param(bus_speed, uint, S_IRUGO);
194 MODULE_PARM_DESC(bus_speed, "Bus Speed in kHz (0 = BIOS default)");
715 switch (bus_speed) { in ismt_hw_init()
752 bus_speed = 80; in ismt_hw_init()
755 bus_speed = 100; in ismt_hw_init()
758 bus_speed = 400; in ismt_hw_init()
761 bus_speed = 1000; in ismt_hw_init()
764 dev_dbg(dev, "SMBus clock is running at %d kHz\n", bus_speed); in ismt_hw_init()
Di2c-uniphier-f.c486 u32 bus_speed; in uniphier_fi2c_probe() local
505 if (of_property_read_u32(dev->of_node, "clock-frequency", &bus_speed)) in uniphier_fi2c_probe()
506 bus_speed = UNIPHIER_FI2C_DEFAULT_SPEED; in uniphier_fi2c_probe()
508 if (!bus_speed || bus_speed > UNIPHIER_FI2C_MAX_SPEED) { in uniphier_fi2c_probe()
509 dev_err(dev, "invalid clock-frequency %d\n", bus_speed); in uniphier_fi2c_probe()
530 priv->clk_cycle = clk_rate / bus_speed; in uniphier_fi2c_probe()
Di2c-synquacer.c545 u32 bus_speed; in synquacer_i2c_probe() local
552 bus_speed = i2c_acpi_find_bus_speed(&pdev->dev); in synquacer_i2c_probe()
553 if (!bus_speed) in synquacer_i2c_probe()
555 &bus_speed); in synquacer_i2c_probe()
608 if (bus_speed < 400000) in synquacer_i2c_probe()
Di2c-bcm-kona.c716 unsigned int bus_speed; in bcm_kona_i2c_assign_bus_speed() local
718 &bus_speed); in bcm_kona_i2c_assign_bus_speed()
724 switch (bus_speed) { in bcm_kona_i2c_assign_bus_speed()
740 pr_err("%d hz bus speed not supported\n", bus_speed); in bcm_kona_i2c_assign_bus_speed()
/Linux-v4.19/drivers/ide/
Dali14xx.c118 int bus_speed = ide_vlb_clk ? ide_vlb_clk : 50; in ali14xx_set_pio_mode() local
125 param3 = param1 = (time2 * bus_speed + 999) / 1000; in ali14xx_set_pio_mode()
126 param4 = param2 = (time1 * bus_speed + 999) / 1000 - param1; in ali14xx_set_pio_mode()
Dht6560b.c203 int bus_speed = ide_vlb_clk ? ide_vlb_clk : 50; in ht_pio2timings() local
221 active_cycles = (active_time * bus_speed + 999) / 1000; in ht_pio2timings()
222 recovery_cycles = (recovery_time * bus_speed + 999) / 1000; in ht_pio2timings()
Dalim15x3.c105 int bus_speed = ide_pci_clk ? ide_pci_clk : 33; in ali_set_pio_mode() local
106 unsigned long T = 1000000 / bus_speed; /* PCI clock based */ in ali_set_pio_mode()
169 int bus_speed = ide_pci_clk ? ide_pci_clk : 33; in ali_set_dma_mode() local
170 unsigned long T = 1000000 / bus_speed; /* PCI clock based */ in ali_set_dma_mode()
Dcy82c693.c86 int bus_speed = ide_pci_clk ? ide_pci_clk : 33; in cy82c693_set_pio_mode() local
87 const unsigned long T = 1000000 / bus_speed; in cy82c693_set_pio_mode()
Dcmd640.c520 int bus_speed; in cmd640_set_mode() local
523 bus_speed = ide_vlb_clk ? ide_vlb_clk : 50; in cmd640_set_mode()
525 bus_speed = ide_pci_clk ? ide_pci_clk : 33; in cmd640_set_mode()
535 clock_time = 1000 / bus_speed; in cmd640_set_mode()
Daec62xx.c259 int bus_speed = ide_pci_clk ? ide_pci_clk : 33; in aec62xx_init_one() local
262 if (bus_speed <= 33) in aec62xx_init_one()
Dcmd64x.c58 int bus_speed = ide_pci_clk ? ide_pci_clk : 33; in cmd64x_program_timings() local
59 const unsigned long T = 1000000 / bus_speed; in cmd64x_program_timings()
/Linux-v4.19/drivers/mmc/core/
Dsdio.c444 unsigned int bus_speed, timing; in sdio_set_bus_speed_mode() local
456 bus_speed = SDIO_SPEED_SDR12; in sdio_set_bus_speed_mode()
460 bus_speed = SDIO_SPEED_SDR104; in sdio_set_bus_speed_mode()
466 bus_speed = SDIO_SPEED_DDR50; in sdio_set_bus_speed_mode()
473 bus_speed = SDIO_SPEED_SDR50; in sdio_set_bus_speed_mode()
480 bus_speed = SDIO_SPEED_SDR25; in sdio_set_bus_speed_mode()
488 bus_speed = SDIO_SPEED_SDR12; in sdio_set_bus_speed_mode()
499 speed |= bus_speed; in sdio_set_bus_speed_mode()
507 if (bus_speed) { in sdio_set_bus_speed_mode()
Dmmc.c1501 goto bus_speed; in mmc_select_timing()
1513 bus_speed: in mmc_select_timing()
/Linux-v4.19/Documentation/i2c/busses/
Di2c-ismt13 * bus_speed (unsigned int)
/Linux-v4.19/drivers/net/ethernet/intel/e1000/
De1000_hw.c4830 hw->bus_speed = e1000_bus_speed_unknown; in e1000_get_bus_info()
4839 hw->bus_speed = (hw->bus_type == e1000_bus_type_pci) ? in e1000_get_bus_info()
4842 hw->bus_speed = (status & E1000_STATUS_PCI66) ? in e1000_get_bus_info()
4847 hw->bus_speed = e1000_bus_speed_66; in e1000_get_bus_info()
4850 hw->bus_speed = e1000_bus_speed_100; in e1000_get_bus_info()
4853 hw->bus_speed = e1000_bus_speed_133; in e1000_get_bus_info()
4856 hw->bus_speed = e1000_bus_speed_reserved; in e1000_get_bus_info()
De1000_main.c1209 ((hw->bus_speed == e1000_bus_speed_133) ? 133 : in e1000_probe()
1210 (hw->bus_speed == e1000_bus_speed_120) ? 120 : in e1000_probe()
1211 (hw->bus_speed == e1000_bus_speed_100) ? 100 : in e1000_probe()
1212 (hw->bus_speed == e1000_bus_speed_66) ? 66 : 33), in e1000_probe()
De1000_hw.h1338 e1000_bus_speed bus_speed; member
/Linux-v4.19/drivers/net/ethernet/neterion/
Ds2io.h463 u16 bus_speed; member
Ds2io.c1037 static int bus_speed[8] = {33, 133, 133, 200, 266, 133, 200, 266}; variable
1055 config->bus_speed = bus_speed[mode]; in s2io_print_pci_mode()
1123 int count = (nic->config.bus_speed * 125)/2; in init_tti()
1671 int count = (nic->config.bus_speed * 125)/4; in init_nic()
1790 if (nic->config.bus_speed == 266) { in init_nic()