/openbmc/linux/drivers/usb/misc/ |
H A D | trancevibrator.c | 30 unsigned int speed; member 39 return sprintf(buf, "%d\n", tv->speed); in speed_show() 56 old = tv->speed; in speed_store() 57 tv->speed = temp; in speed_store() 59 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); in speed_store() 65 tv->speed, /* speed value */ in speed_store() 68 tv->speed = old; in speed_store() 74 static DEVICE_ATTR_RW(speed);
|
/openbmc/linux/Documentation/hwmon/ |
H A D | g762.rst | 5 and performs closed-loop or open-loop control of the fan speed. Two 25 set desired fan speed. This only makes sense in closed-loop 26 fan speed control (i.e. when pwm1_enable is set to 2). 49 set current fan speed control mode i.e. 1 for manual fan 50 speed control (open-loop) via pwm1 described below, 2 for 51 automatic fan speed control (closed-loop) via fan1_target 60 it run at full speed. 63 when current fan speed control mode is open-loop ('pwm1_enable' set to 1), 64 the fan speed is programmed by setting a value between 0 and 255 via 'pwm1' 65 entry (0 stops the fan, 255 makes it run at full speed). In closed-loop mode [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | omap24xx_i2c.c | 138 unsigned int speed; member 183 speed /= 1000; /* convert speed to kHz */ in omap24_i2c_findpsc() 185 if (speed > 100) in omap24_i2c_findpsc() 194 if (speed > 100) { in omap24_i2c_findpsc() 198 scl = internal_clk / speed; in omap24_i2c_findpsc() 309 if (speed >= OMAP_I2C_HIGH_SPEED) { in __omap24_i2c_setspeed() 347 psc = omap24_i2c_findpsc(&scll, &sclh, speed); in __omap24_i2c_setspeed() 355 *waitdelay = (10000000 / speed) * 2; in __omap24_i2c_setspeed() 915 adap->speed = speed; in omap24_i2c_setspeed() 1032 priv->speed = speed; [all …]
|
H A D | davinci_i2c.c | 26 uint speed; member 88 uint speed) in _davinci_i2c_setspeed() argument 103 uint speed, int slaveadd) in _davinci_i2c_init() argument 110 _davinci_i2c_setspeed(i2c_base, speed); in _davinci_i2c_init() 368 adap->speed = speed; in davinci_i2c_setspeed() 369 ret = _davinci_i2c_setspeed(i2c_base, speed); in davinci_i2c_setspeed() 379 adap->speed = speed; in davinci_i2c_init() 380 _davinci_i2c_init(i2c_base, speed, slaveadd); in davinci_i2c_init() 463 i2c_bus->speed = speed; 464 return _davinci_i2c_setspeed(i2c_bus->regs, speed); [all …]
|
H A D | fsl_i2c.c | 120 uint i2c_clk, uint speed) in set_i2c_bus_speed() argument 122 ushort divider = min(i2c_clk / speed, (uint)USHRT_MAX); in set_i2c_bus_speed() 144 speed = i2c_clk / divider; /* Fake something */ in set_i2c_bus_speed() 162 speed = i2c_clk / est_div; in set_i2c_bus_speed() 167 debug("a: %d, b: %d, speed: %d\n", a, b, speed); in set_i2c_bus_speed() 181 debug("FDR: 0x%.2x, speed: %d\n", fdr, speed); in set_i2c_bus_speed() 193 speed = i2c_clk / fsl_i2c_speed_map[i].divider; in set_i2c_bus_speed() 199 return speed; in set_i2c_bus_speed() 275 set_i2c_bus_speed(base, i2c_clk, speed); in __i2c_init() 487 uint speed, int i2c_clk) in __i2c_set_bus_speed() argument [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | phy_led_triggers.c | 9 unsigned int speed) in phy_speed_to_led_trigger() argument 14 if (phy->phy_led_triggers[i].speed == speed) in phy_speed_to_led_trigger() 36 if (phy->speed == 0) in phy_led_trigger_change_speed() 39 plt = phy_speed_to_led_trigger(phy, phy->speed); in phy_led_trigger_change_speed() 43 phy->speed); in phy_led_trigger_change_speed() 69 unsigned int speed, in phy_led_trigger_register() argument 72 plt->speed = speed; in phy_led_trigger_register()
|
H A D | phy-core.c | 14 const char *phy_speed_to_str(int speed) in phy_speed_to_str() argument 21 switch (speed) { in phy_speed_to_str() 298 if (p->speed == speed && p->duplex == duplex) { in phy_lookup_setting() 303 if (!match && p->speed <= speed) in phy_lookup_setting() 307 if (p->speed < speed) in phy_lookup_setting() 341 if (p->speed > max_speed) in __set_linkmode_max_speed() 452 phydev->speed = settings[i].speed; in phy_resolve_aneg_linkmode() 485 speed = settings[i].speed; in phy_check_downshift() 489 if (speed == SPEED_UNKNOWN || phydev->speed >= speed) in phy_check_downshift() 493 phy_speed_to_str(speed), phy_speed_to_str(phydev->speed)); in phy_check_downshift() [all …]
|
H A D | et1011c.c | 63 static int speed; in et1011c_read_status() local 69 if (speed != phydev->speed) { in et1011c_read_status() 70 speed = phydev->speed; in et1011c_read_status()
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-helper-spi.c | 154 result.s.speed = 10000; in __cvmx_helper_spi_link_get() 160 switch (inband.s.speed) { in __cvmx_helper_spi_link_get() 162 result.s.speed = 10; in __cvmx_helper_spi_link_get() 165 result.s.speed = 100; in __cvmx_helper_spi_link_get() 168 result.s.speed = 1000; in __cvmx_helper_spi_link_get() 171 result.s.speed = 0; in __cvmx_helper_spi_link_get() 180 result.s.speed = 10000; in __cvmx_helper_spi_link_get()
|
/openbmc/u-boot/drivers/net/phy/ |
H A D | xilinx_phy.c | 57 phydev->speed = SPEED_1000; in xilinxphy_startup() 61 phydev->speed = SPEED_100; in xilinxphy_startup() 65 phydev->speed = SPEED_10; in xilinxphy_startup() 80 phydev->speed = SPEED_1000; in xilinxphy_startup() 82 phydev->speed = SPEED_100; in xilinxphy_startup() 84 phydev->speed = SPEED_10; in xilinxphy_startup() 93 phydev->speed = SPEED_1000; in xilinxphy_startup()
|
H A D | et1011c.c | 44 int speed; in et1011c_parse_status() local 53 speed = mii_reg & ET1011C_SPEED_MASK; in et1011c_parse_status() 54 switch (speed) { in et1011c_parse_status() 56 phydev->speed = SPEED_1000; in et1011c_parse_status() 69 phydev->speed = SPEED_100; in et1011c_parse_status() 72 phydev->speed = SPEED_10; in et1011c_parse_status()
|
H A D | realtek.c | 197 unsigned int speed; in rtl8211x_parse_status() local 236 speed = (mii_reg & MIIM_RTL8211x_PHYSTAT_SPEED); in rtl8211x_parse_status() 238 switch (speed) { in rtl8211x_parse_status() 240 phydev->speed = SPEED_1000; in rtl8211x_parse_status() 243 phydev->speed = SPEED_100; in rtl8211x_parse_status() 246 phydev->speed = SPEED_10; in rtl8211x_parse_status() 254 unsigned int speed; in rtl8211f_parse_status() local 283 switch (speed) { in rtl8211f_parse_status() 285 phydev->speed = SPEED_1000; in rtl8211f_parse_status() 288 phydev->speed = SPEED_100; in rtl8211f_parse_status() [all …]
|
/openbmc/linux/crypto/ |
H A D | xor.c | 85 int speed; in do_xor_speed() local 112 speed = (1000 * REPS * BENCH_SIZE) / (unsigned int)ktime_to_ns(min); in do_xor_speed() 113 tmpl->speed = speed; in do_xor_speed() 115 pr_info(" %-16s: %5d MB/sec\n", tmpl->name, speed); in do_xor_speed() 152 if (f->speed > fastest->speed) in calibrate_xor_blocks() 156 fastest->name, fastest->speed); in calibrate_xor_blocks()
|
/openbmc/linux/sound/oss/dmasound/ |
H A D | dmasound_atari.c | 393 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_law() 453 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s8() 507 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u8() 563 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16be() 619 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16be() 677 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16le() 735 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16le() 945 dmasound.hard.speed = 6258; in TTInit() 1512 .speed = 8195 1519 .speed = 12517 [all …]
|
/openbmc/phosphor-fan-presence/monitor/example/ |
H A D | monitor.yaml | 18 # [Time (in secs) actual speed can be outside of deviation of 19 # target speed] 21 # [Percentage that actual speed must be within target speed] 25 # sensors: [array of speed sensors for the fan] 28 # setting a fan speed (otherwise just for reads)] 36 # fan speed. Default is 1 for fan speed target; 38 # offset [The offset to add to calculate the expected fan speed. 39 # Default is 0 for fan speed target; 55 # has a nonzero speed.] 63 # the target speed for the allowed out of range time, if at least [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | vega20_thermal.c | 118 uint32_t *speed) in vega20_fan_ctrl_get_fan_speed_pwm() argument 134 *speed = MIN((uint32_t)tmp64, 255); in vega20_fan_ctrl_get_fan_speed_pwm() 140 uint32_t speed) in vega20_fan_ctrl_set_fan_speed_pwm() argument 147 speed = MIN(speed, 255); in vega20_fan_ctrl_set_fan_speed_pwm() 158 tmp64 = (uint64_t)speed * duty100; in vega20_fan_ctrl_set_fan_speed_pwm() 181 int vega20_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in vega20_fan_ctrl_get_fan_speed_rpm() argument 183 *speed = 0; in vega20_fan_ctrl_get_fan_speed_rpm() 185 return vega20_get_current_rpm(hwmgr, speed); in vega20_fan_ctrl_get_fan_speed_rpm() 188 int vega20_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed) in vega20_fan_ctrl_set_fan_speed_rpm() argument 194 if (!speed) in vega20_fan_ctrl_set_fan_speed_rpm() [all …]
|
H A D | smu7_thermal.c | 55 uint32_t *speed) in smu7_fan_ctrl_get_fan_speed_pwm() argument 75 *speed = MIN((uint32_t)tmp64, 255); in smu7_fan_ctrl_get_fan_speed_pwm() 80 int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in smu7_fan_ctrl_get_fan_speed_rpm() argument 97 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in smu7_fan_ctrl_get_fan_speed_rpm() 204 uint32_t speed) in smu7_fan_ctrl_set_fan_speed_pwm() argument 213 speed = MIN(speed, 255); in smu7_fan_ctrl_set_fan_speed_pwm() 224 tmp64 = (uint64_t)speed * duty100; in smu7_fan_ctrl_set_fan_speed_pwm() 270 speed == 0 || in smu7_fan_ctrl_set_fan_speed_rpm() 271 (speed < hwmgr->thermal_controller.fanInfo.ulMinRPM) || in smu7_fan_ctrl_set_fan_speed_rpm() 272 (speed > hwmgr->thermal_controller.fanInfo.ulMaxRPM)) in smu7_fan_ctrl_set_fan_speed_rpm() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 218.out | 8 {"data": {"device": "mirror", "len": 1048576, "offset": 65536, "speed": 65536, "type": "mirror"}, "… 14 {"data": {"device": "mirror", "len": 1048576, "offset": 65536, "speed": 65536, "type": "mirror"}, "… 20 {"data": {"device": "mirror", "len": 1048576, "offset": 1048576, "speed": 0, "type": "mirror"}, "ev… 23 {"data": {"device": "mirror", "len": 1048576, "offset": 1048576, "speed": 0, "type": "mirror"}, "ev… 27 {"data": {"device": "mirror", "len": 1048576, "offset": 1048576, "speed": 0, "type": "mirror"}, "ev… 30 {"data": {"device": "mirror", "len": 1048576, "offset": 1048576, "speed": 0, "type": "mirror"}, "ev…
|
/openbmc/linux/drivers/ata/ |
H A D | libata-pata-timings.c | 115 int ata_timing_compute(struct ata_device *adev, unsigned short speed, in ata_timing_compute() argument 125 s = ata_timing_find_mode(speed); in ata_timing_compute() 139 if (speed >= XFER_PIO_0 && speed < XFER_SW_DMA_0) { in ata_timing_compute() 140 if (speed <= XFER_PIO_2) in ata_timing_compute() 142 else if ((speed <= XFER_PIO_4) || in ata_timing_compute() 143 (speed == XFER_PIO_5 && !ata_id_is_cfa(id))) in ata_timing_compute() 145 } else if (speed >= XFER_MW_DMA_0 && speed <= XFER_MW_DMA_2) in ata_timing_compute() 163 if (speed > XFER_PIO_6) { in ata_timing_compute()
|
/openbmc/linux/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_ethtool.c | 25 u32 speed; in ehea_get_link_ksettings() local 36 speed = SPEED_10; in ehea_get_link_ksettings() 39 speed = SPEED_100; in ehea_get_link_ksettings() 42 speed = SPEED_1000; in ehea_get_link_ksettings() 45 speed = SPEED_10000; in ehea_get_link_ksettings() 48 speed = -1; in ehea_get_link_ksettings() 54 speed = SPEED_UNKNOWN; in ehea_get_link_ksettings() 57 cmd->base.speed = speed; in ehea_get_link_ksettings() 59 if (cmd->base.speed == SPEED_10000) { in ehea_get_link_ksettings() 96 switch (cmd->base.speed) { in ehea_set_link_ksettings()
|
/openbmc/u-boot/board/ti/ks2_evm/ |
H A D | board_k2l.c | 65 int speed; in get_pll_init_data() local 70 speed = get_max_dev_speed(speeds); in get_pll_init_data() 71 data = &core_pll_config[speed]; in get_pll_init_data() 74 speed = get_max_arm_speed(speeds); in get_pll_init_data() 75 data = &tetris_pll_config[speed]; in get_pll_init_data()
|
H A D | board_k2hk.c | 77 int speed; in get_pll_init_data() local 82 speed = get_max_dev_speed(speeds); in get_pll_init_data() 83 data = &core_pll_config[speed]; in get_pll_init_data() 86 speed = get_max_arm_speed(speeds); in get_pll_init_data() 87 data = &tetris_pll_config[speed]; in get_pll_init_data()
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_port.c | 39 status->speed = SPEED_10; in decode_sgmii_word() 42 status->speed = SPEED_100; in decode_sgmii_word() 45 status->speed = SPEED_1000; in decode_sgmii_word() 165 status->speed = port->conf.speed; in sparx5_get_port_status() 476 switch (speed) { in sparx5_port_fifo_sz() 605 switch (speed) { in sparx5_port_fwd_urg() 685 int portmode, err, speed = conf->speed; in sparx5_serdes_set() local 693 speed = SPEED_25000; in sparx5_serdes_set() 695 speed = SPEED_10000; in sparx5_serdes_set() 697 speed = SPEED_5000; in sparx5_serdes_set() [all …]
|
/openbmc/linux/arch/arm/boot/dts/intel/socfpga/ |
H A D | socfpga_cyclone5_chameleon96.dts | 73 /* On Low speed expansion */ 79 /* On Low speed expansion */ 89 /* On High speed expansion */ 101 /* On High speed expansion */ 107 /* On Low speed expansion */ 113 /* On Low speed expansion */ 119 /* On Low speed expansion */
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_fp.c | 36 uint32_t speed; member 61 value->speed = port->speed; in fp_port_get_info() 89 int fp_port_get_settings(FpPort *port, uint32_t *speed, in fp_port_get_settings() argument 92 *speed = port->speed; in fp_port_get_settings() 99 int fp_port_set_settings(FpPort *port, uint32_t speed, in fp_port_set_settings() argument 104 port->speed = speed; in fp_port_set_settings() 264 port->speed = 10000; /* 10Gbps */ in fp_port_reset()
|