/openbmc/linux/drivers/usb/common/ |
H A D | common.c | 92 const char *usb_speed_string(enum usb_device_speed speed) in usb_speed_string() argument 94 if (speed < 0 || speed >= ARRAY_SIZE(speed_names)) in usb_speed_string() 95 speed = USB_SPEED_UNKNOWN; in usb_speed_string() 96 return speed_names[speed]; in usb_speed_string() 233 enum usb_device_speed speed) in usb_decode_interval() argument 240 if (speed == USB_SPEED_HIGH) in usb_decode_interval() 248 if (speed == USB_SPEED_HIGH && usb_endpoint_dir_out(epd)) in usb_decode_interval() 252 if (speed >= USB_SPEED_HIGH) in usb_decode_interval() 259 interval *= (speed >= USB_SPEED_HIGH) ? 125 : 1000; in usb_decode_interval()
|
/openbmc/u-boot/drivers/net/ |
H A D | gmac_rockchip.c | 87 switch (priv->phydev->speed) { in rk3228_gmac_fix_mac_speed() 98 debug("Unknown phy speed: %d\n", priv->phydev->speed); in rk3228_gmac_fix_mac_speed() 113 switch (priv->phydev->speed) { in rk3288_gmac_fix_mac_speed() 146 switch (priv->phydev->speed) { in rk3328_gmac_fix_mac_speed() 178 switch (priv->phydev->speed) { in rk3368_gmac_fix_mac_speed() 204 switch (priv->phydev->speed) { in rk3399_gmac_fix_mac_speed() 228 int clk, speed; in rv1108_set_rmii_speed() local 238 switch (priv->phydev->speed) { in rv1108_set_rmii_speed() 241 speed = RV1108_GMAC_SPEED_10M; in rv1108_set_rmii_speed() 245 speed = RV1108_GMAC_SPEED_100M; in rv1108_set_rmii_speed() [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | fan_utils.robot | 15 # Criteria for a fan at maximum speed. 94 [Documentation] Set the target speed of a fan. 121 [Documentation] Return the fan target speed setting, the speed of the 131 # Get the fan target speed and the clockwise blade speed. 137 # Get the counter-clockwise blade speed. 148 ... speed of the fastest blade. 262 # tolerance The speed tolerance criteria. 269 # Compare the fan's speed with its target speed. 275 # Calculate upper and lower speed limits. 347 FOR ${speed} IN @{speeds} [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | gpio-fan.c | 39 struct gpio_fan_speed *speed; member 143 if (fan_data->speed[i].ctrl_val == ctrl_val) in get_fan_speed_index() 154 struct gpio_fan_speed *speed = fan_data->speed; in rpm_to_speed_index() local 158 if (speed[i].rpm >= rpm) in rpm_to_speed_index() 411 struct gpio_fan_speed *speed; in gpio_fan_get_of_data() local 463 speed = devm_kcalloc(dev, in gpio_fan_get_of_data() 466 if (!speed) in gpio_fan_get_of_data() 473 speed[i].rpm = u; in gpio_fan_get_of_data() 477 speed[i].ctrl_val = u; in gpio_fan_get_of_data() 479 fan_data->speed = speed; in gpio_fan_get_of_data() [all …]
|
/openbmc/linux/drivers/pcmcia/ |
H A D | pxa2xx_base.c | 119 val = ((pxa2xx_mcxx_setup(speed, clock) in pxa2xx_pcmcia_mcmem() 121 | ((pxa2xx_mcxx_asst(speed, clock) in pxa2xx_pcmcia_mcmem() 123 | ((pxa2xx_mcxx_hold(speed, clock) in pxa2xx_pcmcia_mcmem() 129 static int pxa2xx_pcmcia_mcio(int sock, int speed, int clock) in pxa2xx_pcmcia_mcio() argument 133 val = ((pxa2xx_mcxx_setup(speed, clock) in pxa2xx_pcmcia_mcio() 135 | ((pxa2xx_mcxx_asst(speed, clock) in pxa2xx_pcmcia_mcio() 137 | ((pxa2xx_mcxx_hold(speed, clock) in pxa2xx_pcmcia_mcio() 144 static int pxa2xx_pcmcia_mcatt(int sock, int speed, int clock) in pxa2xx_pcmcia_mcatt() argument 148 val = ((pxa2xx_mcxx_setup(speed, clock) in pxa2xx_pcmcia_mcatt() 150 | ((pxa2xx_mcxx_asst(speed, clock) in pxa2xx_pcmcia_mcatt() [all …]
|
/openbmc/u-boot/drivers/phy/marvell/ |
H A D | comphy_core.c | 20 static const char *get_speed_string(u32 speed) in get_speed_string() argument 28 if (speed < 0 || speed > PHY_SPEED_MAX) in get_speed_string() 31 return speed_strings[speed]; in get_speed_string() 58 if (comphy_map_data->speed == PHY_SPEED_INVALID) { in comphy_print() 64 get_speed_string(comphy_map_data->speed)); in comphy_print() 134 comphy_map_data[lane].speed = fdtdec_get_int( in comphy_probe()
|
/openbmc/linux/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_ethtool.c | 159 static inline int ib_speed_enum_to_int(int speed) in ib_speed_enum_to_int() argument 161 switch (speed) { in ib_speed_enum_to_int() 187 int ret, speed, width; in ipoib_get_link_ksettings() local 190 cmd->base.speed = SPEED_UNKNOWN; in ipoib_get_link_ksettings() 199 speed = ib_speed_enum_to_int(attr.active_speed); in ipoib_get_link_ksettings() 202 if (speed < 0 || width < 0) in ipoib_get_link_ksettings() 209 cmd->base.speed = speed * width; in ipoib_get_link_ksettings()
|
/openbmc/obmc-console/ |
H A D | config.c | 147 speed_t speed; member 189 int config_parse_baud(speed_t *speed, const char *baud_string) in config_parse_baud() argument 195 *speed = terminal_speeds[i].speed; in config_parse_baud() 202 uint32_t parse_baud_to_int(speed_t speed) in parse_baud_to_int() argument 207 if (terminal_speeds[i].speed == speed) { in parse_baud_to_int() 220 return terminal_speeds[i].speed; in parse_int_to_baud()
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | port.c | 226 switch (speed) { in mv88e6xxx_port_set_speed_duplex() 295 if (speed != SPEED_UNFORCED) in mv88e6xxx_port_set_speed_duplex() 310 if (speed == 200 || speed > 1000) in mv88e6185_port_set_speed_duplex() 321 if (speed > 100) in mv88e6250_port_set_speed_duplex() 332 if (speed > 2500) in mv88e6341_port_set_speed_duplex() 358 if (speed > 1000) in mv88e6352_port_set_speed_duplex() 372 if (speed > 2500) in mv88e6390_port_set_speed_duplex() 428 speed > 2500) in mv88e6393x_port_set_speed_duplex() 437 switch (speed) { in mv88e6393x_port_set_speed_duplex() 490 if (speed != SPEED_UNFORCED) in mv88e6393x_port_set_speed_duplex() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | udbg_16550.c | 96 void __init udbg_uart_setup(unsigned int speed, unsigned int clock) in udbg_uart_setup() argument 105 if (speed == 0) in udbg_uart_setup() 106 speed = 9600; in udbg_uart_setup() 109 dll = base_bauds / speed; in udbg_uart_setup() 127 unsigned int dll, dlm, divisor, prescaler, speed; in udbg_probe_uart_speed() local 150 speed = (clock / prescaler) / (divisor * 16); in udbg_probe_uart_speed() 153 if (speed > (clock / 16)) in udbg_probe_uart_speed() 154 speed = 9600; in udbg_probe_uart_speed() 156 return speed; in udbg_probe_uart_speed()
|
/openbmc/linux/Documentation/hwmon/ |
H A D | adt7470.rst | 24 external temperatures. It has four (4) 16-bit counters for measuring fan speed. 25 There are four (4) PWM outputs that can be used to control fan speed. 28 that allows fan speed to be adjusted automatically based on any of the ten 34 Each of the measured inputs (temperature, fan speed) has corresponding high/low 40 automatic fan pwm control to set the fan speed. The driver will not read the 63 - point1: Set the pwm speed at a lower temperature bound. 64 - point2: Set the pwm speed at a higher temperature bound. 66 The ADT7470 will scale the pwm between the lower and higher pwm speed when 68 from 0 (off) to 255 (full speed). Fan speed will be set to maximum when the
|
H A D | adm9240.rst | 57 high speed successive approximation ADC allows frequent sampling of all 81 LM81 measurement cycle is about once per 400ms including fan speed. 104 - low speed alarm is disabled 106 - auto fan clock adjuster enabled for valid fan speed reading 110 - low speed alarm is enabled 114 - low speed alarm will be asserted if fan speed is 115 less than minimum measurable speed 118 * User sets reasonable fan speed 120 - low speed alarm is enabled 124 * User sets unreasonably high low fan speed limit [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_ethtool.c | 1272 u32 speed; member 1279 .speed = SPEED_100, 1285 .speed = SPEED_1000, 1296 .speed = SPEED_10000, 1304 .speed = SPEED_10000, 1497 if (cmd->base.speed == mlxsw_sp1_port_link_mode[i].speed) in mlxsw_sp1_to_ptys_speed_lanes() 1714 u32 speed; member 1728 .speed = SPEED_100, 1739 .speed = SPEED_1000, 1750 .speed = SPEED_5000, [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-helper-sgmii.c | 250 switch (link_info.s.speed) { in __cvmx_helper_sgmii_hardware_init_link_speed() 252 gmxx_prtx_cfg.s.speed = 0; in __cvmx_helper_sgmii_hardware_init_link_speed() 261 gmxx_prtx_cfg.s.speed = 0; in __cvmx_helper_sgmii_hardware_init_link_speed() 269 gmxx_prtx_cfg.s.speed = 1; in __cvmx_helper_sgmii_hardware_init_link_speed() 411 result.s.speed = 1000; in __cvmx_helper_sgmii_link_get() 421 result.s.speed = 1000; in __cvmx_helper_sgmii_link_get() 467 result.s.speed = 10; in __cvmx_helper_sgmii_link_get() 470 result.s.speed = 100; in __cvmx_helper_sgmii_link_get() 473 result.s.speed = 1000; in __cvmx_helper_sgmii_link_get() 476 result.s.speed = 0; in __cvmx_helper_sgmii_link_get() [all …]
|
/openbmc/linux/drivers/bluetooth/ |
H A D | hci_serdev.c | 183 unsigned int speed; in hci_uart_setup() local 188 speed = hu->init_speed; in hci_uart_setup() 190 speed = hu->proto->init_speed; in hci_uart_setup() 192 speed = 0; in hci_uart_setup() 194 if (speed) in hci_uart_setup() 195 serdev_device_set_baudrate(hu->serdev, speed); in hci_uart_setup() 199 speed = hu->oper_speed; in hci_uart_setup() 201 speed = hu->proto->oper_speed; in hci_uart_setup() 203 speed = 0; in hci_uart_setup() 205 if (hu->proto->set_baudrate && speed) { in hci_uart_setup() [all …]
|
/openbmc/linux/drivers/net/pcs/ |
H A D | pcs-xpcs.c | 364 switch (speed) { in xpcs_config_usxgmii() 538 int speed = SPEED_UNKNOWN; in xpcs_get_max_xlgmii_speed() local 581 if (new_speed > speed) in xpcs_get_max_xlgmii_speed() 582 speed = new_speed; in xpcs_get_max_xlgmii_speed() 585 return speed; in xpcs_get_max_xlgmii_speed() 1020 state->speed = SPEED_10; in xpcs_get_state_c37_sgmii() 1027 int speed, duplex; in xpcs_get_state_c37_sgmii() local 1032 if (speed < 0) in xpcs_get_state_c37_sgmii() 1033 return speed; in xpcs_get_state_c37_sgmii() 1040 else if (speed == 0) in xpcs_get_state_c37_sgmii() [all …]
|
/openbmc/linux/drivers/net/ |
H A D | mdio.c | 188 u32 speed; in mdio45_ethtool_gset_npage() local 294 speed = SPEED_10000; in mdio45_ethtool_gset_npage() 299 speed = SPEED_1000; in mdio45_ethtool_gset_npage() 303 speed = SPEED_100; in mdio45_ethtool_gset_npage() 306 speed = SPEED_10; in mdio45_ethtool_gset_npage() 316 speed == SPEED_10000); in mdio45_ethtool_gset_npage() 466 speed = SPEED_10000; in mdio45_ethtool_ksettings_get_npage() 471 speed = SPEED_1000; in mdio45_ethtool_ksettings_get_npage() 475 speed = SPEED_100; in mdio45_ethtool_ksettings_get_npage() 478 speed = SPEED_10; in mdio45_ethtool_ksettings_get_npage() [all …]
|
H A D | mii.c | 199 cmd->base.speed = SPEED_10; in mii_ethtool_get_link_ksettings() 240 if (speed != SPEED_10 && in mii_ethtool_sset() 241 speed != SPEED_100 && in mii_ethtool_sset() 242 speed != SPEED_1000) in mii_ethtool_sset() 303 if (speed == SPEED_1000) in mii_ethtool_sset() 305 else if (speed == SPEED_100) in mii_ethtool_sset() 331 u32 speed = cmd->base.speed; in mii_ethtool_set_link_ksettings() local 333 if (speed != SPEED_10 && in mii_ethtool_set_link_ksettings() 334 speed != SPEED_100 && in mii_ethtool_set_link_ksettings() 335 speed != SPEED_1000) in mii_ethtool_set_link_ksettings() [all …]
|
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_ethtool.c | 61 u32 speed; member 69 u32 speed; member 86 .speed = SPEED_10000, 131 .speed = SPEED_1000, 149 switch (speed) { in set_link_speed() 345 u32 speed) in hinic_is_support_speed() argument 358 if (hw_to_ethtool_link_mode_table[idx].speed == speed) in hinic_is_support_speed() 425 u32 speed) in set_link_settings_separate_cmd() argument 448 speed); in set_link_settings_separate_cmd() 451 speed); in set_link_settings_separate_cmd() [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | longhaul.c | 92 if (speed < 1000) { in print_speed() 97 if (speed%1000 == 0) in print_speed() 99 "%dGHz", speed/1000); in print_speed() 102 "%d.%dGHz", speed/1000, (speed%1000)/100); in print_speed() 249 int speed, mult; in longhaul_setstate() local 263 speed = calc_speed(mult); in longhaul_setstate() 264 if ((speed > highest_speed) || (speed < lowest_speed)) in longhaul_setstate() 272 freqs.new = speed; in longhaul_setstate() 408 int speed = cpu_khz / 1000; in guess_fsb() local 417 if ((speed <= f_max) && (speed >= f_min)) in guess_fsb() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_phylink.c | 19 if (a->speed != b->speed || in port_conf_has_changed() 49 int speed, int duplex, in sparx5_phylink_mac_link_up() argument 61 conf.speed = speed; in sparx5_phylink_mac_link_up() 89 state->speed = status.speed; in sparx5_pcs_get_state()
|
/openbmc/linux/tools/usb/usbip/libsrc/ |
H A D | usbip_common.c | 21 char *speed; member 62 for (int i = 0; speed_strings[i].speed != NULL; i++) in usbip_speed_string() 134 usbip_speed_string(udev->speed)); in dump_usb_device() 181 const char *speed; in read_attr_speed() local 183 speed = udev_device_get_sysattr_value(dev, "speed"); in read_attr_speed() 184 if (!speed) { in read_attr_speed() 189 for (int i = 0; speed_strings[i].speed != NULL; i++) { in read_attr_speed() 190 if (!strcmp(speed, speed_strings[i].speed)) in read_attr_speed() 224 udev->speed = read_attr_speed(sdev); in read_usb_device()
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | nvidia,tegra194-xusb-padctl.yaml | 22 super-speed USB. Other lanes are for various types of low-speed, full-speed 379 maximum-speed: 386 const: super-speed-plus 389 const: super-speed 412 maximum-speed: 422 const: super-speed 445 maximum-speed: 455 const: super-speed 478 maximum-speed: 488 const: super-speed [all …]
|
/openbmc/qemu/ |
H A D | blockjob.c | 294 int64_t old_speed = job->speed; in block_job_set_speed_locked() 301 if (speed < 0) { in block_job_set_speed_locked() 309 job->speed = speed; in block_job_set_speed_locked() 313 drv->set_speed(job, speed); in block_job_set_speed_locked() 317 if (speed && speed <= old_speed) { in block_job_set_speed_locked() 330 return block_job_set_speed_locked(job, speed, errp); in block_job_set_speed() 400 info->speed = job->speed; in block_job_query_locked() 445 job->speed); in block_job_event_cancelled_locked() 470 job->speed, in block_job_event_completed_locked() 504 job->speed); in block_job_event_ready_locked() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | smu7_thermal.h | 44 extern int smu7_fan_ctrl_get_fan_speed_pwm(struct pp_hwmgr *hwmgr, uint32_t *speed); 47 extern int smu7_fan_ctrl_set_fan_speed_pwm(struct pp_hwmgr *hwmgr, uint32_t speed); 50 extern int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed); 51 extern int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed);
|