Home
last modified time | relevance | path

Searched refs:speed (Results 1 – 25 of 1757) sorted by relevance

12345678910>>...71

/linux/tools/testing/selftests/net/forwarding/
A Dethtool.sh61 ethtool_set $h1 speed $speed autoneg off
62 ethtool_set $h2 speed $speed autoneg off
69 log_info "speed = $speed"
109 ethtool_set $h1 speed $speed autoneg off
124 local speed=$1; shift
127 speed=$((0x1 << $"shift_size"))
128 printf "%#x" "$speed"
146 speed=$(hex_speed_value_get $speed)
148 $speed))
169 speed=$(hex_speed_value_get $speed)
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
A Dpcie.c33 nvkm_pcie_speed(enum pci_bus_speed speed) in nvkm_pcie_speed() argument
35 switch (speed) { in nvkm_pcie_speed()
44 if (speed == 0x17) in nvkm_pcie_speed()
108 if (pci->pcie.speed != -1) in nvkm_pcie_init()
142 if (speed > max_speed) { in nvkm_pcie_set_link()
146 speed = max_speed; in nvkm_pcie_set_link()
149 pci->pcie.speed = speed; in nvkm_pcie_set_link()
152 if (speed == cur_speed) { in nvkm_pcie_set_link()
154 return speed; in nvkm_pcie_set_link()
158 nvkm_pcie_speeds[speed], width); in nvkm_pcie_set_link()
[all …]
A Dgk104.c37 switch (speed) { in gk104_pcie_set_cap_speed()
56 int speed = gf100_pcie_cap_speed(pci); in gk104_pcie_cap_speed() local
58 if (speed == 0) in gk104_pcie_cap_speed()
61 if (speed >= 1) { in gk104_pcie_cap_speed()
81 switch (speed) { in gk104_pcie_set_lnkctl_speed()
132 switch (speed) { in gk104_pcie_set_link_speed()
188 if (speed > lnk_cap_speed) { in gk104_pcie_set_link()
189 speed = lnk_cap_speed; in gk104_pcie_set_link()
194 if (speed > lnk_ctl_speed) { in gk104_pcie_set_link()
195 speed = lnk_ctl_speed; in gk104_pcie_set_link()
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
A Ddwmac-rk.c112 if (speed == 10) { in px30_set_rmii_speed()
208 if (speed == 10) in rk3128_set_rgmii_speed()
230 if (speed == 10) { in rk3128_set_rmii_speed()
329 if (speed == 10) in rk3228_set_rgmii_speed()
351 if (speed == 10) in rk3228_set_rmii_speed()
446 if (speed == 10) in rk3288_set_rgmii_speed()
617 if (speed == 10) in rk3328_set_rgmii_speed()
643 if (speed == 10) in rk3328_set_rmii_speed()
738 if (speed == 10) in rk3366_set_rgmii_speed()
849 if (speed == 10) in rk3368_set_rgmii_speed()
[all …]
A Daltr_tse_pcs.c132 u16 speed = 0; in auto_nego_timer_callback() local
143 speed = val & TSE_PCS_PARTNER_SPEED_MASK; in auto_nego_timer_callback()
146 if (speed == TSE_PCS_PARTNER_SPEED_10 && in auto_nego_timer_callback()
150 else if (speed == TSE_PCS_PARTNER_SPEED_100 && in auto_nego_timer_callback()
158 else if (speed == TSE_PCS_PARTNER_SPEED_10 && in auto_nego_timer_callback()
162 else if (speed == TSE_PCS_PARTNER_SPEED_100 && in auto_nego_timer_callback()
175 (speed == TSE_PCS_PARTNER_SPEED_10 || in auto_nego_timer_callback()
176 speed == TSE_PCS_PARTNER_SPEED_100 || in auto_nego_timer_callback()
177 speed == TSE_PCS_PARTNER_SPEED_1000)) in auto_nego_timer_callback()
202 unsigned int speed) in tse_pcs_fix_mac_speed() argument
[all …]
/linux/drivers/net/ethernet/intel/ice/
A Dice_sriov.c56 u32 speed; in ice_conv_link_speed_to_virtchnl() local
61 speed = ICE_LINK_SPEED_10MBPS; in ice_conv_link_speed_to_virtchnl()
64 speed = ICE_LINK_SPEED_100MBPS; in ice_conv_link_speed_to_virtchnl()
67 speed = ICE_LINK_SPEED_1000MBPS; in ice_conv_link_speed_to_virtchnl()
70 speed = ICE_LINK_SPEED_2500MBPS; in ice_conv_link_speed_to_virtchnl()
73 speed = ICE_LINK_SPEED_5000MBPS; in ice_conv_link_speed_to_virtchnl()
76 speed = ICE_LINK_SPEED_10000MBPS; in ice_conv_link_speed_to_virtchnl()
79 speed = ICE_LINK_SPEED_20000MBPS; in ice_conv_link_speed_to_virtchnl()
82 speed = ICE_LINK_SPEED_25000MBPS; in ice_conv_link_speed_to_virtchnl()
94 speed = ICE_LINK_SPEED_UNKNOWN; in ice_conv_link_speed_to_virtchnl()
[all …]
/linux/drivers/platform/x86/
A Dgpd-pocket-fan.c57 if (speed == fan->last_speed) in gpd_pocket_fan_set_speed()
63 fan->last_speed = speed; in gpd_pocket_fan_set_speed()
78 int t0, t1, temp, speed, min_speed, i; in gpd_pocket_fan_worker() local
83 speed = MAX_SPEED; in gpd_pocket_fan_worker()
89 speed = fan->last_speed; in gpd_pocket_fan_worker()
97 if (speed < i) in gpd_pocket_fan_worker()
98 speed = i; in gpd_pocket_fan_worker()
105 if (speed > i) in gpd_pocket_fan_worker()
106 speed = i; in gpd_pocket_fan_worker()
108 if (fan->last_speed <= 0 && speed) in gpd_pocket_fan_worker()
[all …]
/linux/tools/usb/usbip/libsrc/
A Dusbip_device_driver.c33 enum usb_device_speed speed; member
37 .speed = USB_SPEED_UNKNOWN,
41 .speed = USB_SPEED_LOW,
45 .speed = USB_SPEED_FULL,
49 .speed = USB_SPEED_HIGH,
53 .speed = USB_SPEED_WIRELESS,
57 .speed = USB_SPEED_SUPER,
71 const char *speed; in read_usb_vudc_device() local
99 dev->speed = USB_SPEED_UNKNOWN; in read_usb_vudc_device()
101 if (speed) { in read_usb_vudc_device()
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_ethtool.c23 u32 speed; member
30 .speed = 10,
37 .speed = 10,
44 .speed = 100,
51 .speed = 100,
58 .speed = 1000,
473 u32 speed; in prestera_port_link_mode_get() local
487 state->speed = speed; in prestera_port_link_mode_get()
493 ecmd->base.speed = port->state_mac.speed; in prestera_port_link_mode_get()
593 speed != port_link_modes[mode].speed) in prestera_port_link_mode_set()
[all …]
/linux/drivers/net/dsa/mv88e6xxx/
A Dport.c217 switch (speed) { in mv88e6xxx_port_set_speed_duplex()
302 speed = 200; in mv88e6065_port_set_speed_duplex()
304 if (speed > 200) in mv88e6065_port_set_speed_duplex()
317 speed = 1000; in mv88e6185_port_set_speed_duplex()
319 if (speed == 200 || speed > 1000) in mv88e6185_port_set_speed_duplex()
331 speed = 100; in mv88e6250_port_set_speed_duplex()
333 if (speed > 100) in mv88e6250_port_set_speed_duplex()
347 if (speed > 2500) in mv88e6341_port_set_speed_duplex()
373 speed = 1000; in mv88e6352_port_set_speed_duplex()
375 if (speed > 1000) in mv88e6352_port_set_speed_duplex()
[all …]
/linux/drivers/ata/
A Dpata_sis.c244 t1 |= active[speed]; in sis_old_set_piomode()
245 t2 |= recovery[speed]; in sis_old_set_piomode()
317 t1 |= timing133[speed]; in sis_133_set_piomode()
319 t1 |= timing100[speed]; in sis_133_set_piomode()
357 timing |= udma_bits[speed]; in sis_old_set_dmamode()
397 timing |= udma_bits[speed]; in sis_66_set_dmamode()
431 timing |= udma_bits[speed]; in sis_100_set_dmamode()
500 t1 |= timing_u133[speed]; in sis_133_set_dmamode()
502 t1 |= timing_u100[speed]; in sis_133_set_dmamode()
513 t1 |= timing_u133[speed]; in sis_133_set_dmamode()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
A Dhw_atl_utils_fw2x.c129 if (speed & AQ_NIC_RATE_10G) in link_speed_mask_2fw2x_ratemask()
132 if (speed & AQ_NIC_RATE_5G) in link_speed_mask_2fw2x_ratemask()
135 if (speed & AQ_NIC_RATE_2G5) in link_speed_mask_2fw2x_ratemask()
138 if (speed & AQ_NIC_RATE_1G) in link_speed_mask_2fw2x_ratemask()
141 if (speed & AQ_NIC_RATE_100M) in link_speed_mask_2fw2x_ratemask()
169 if (speed & AQ_NIC_RATE_EEE_5G) in eee_mask_to_fw2x()
173 if (speed & AQ_NIC_RATE_EEE_1G) in eee_mask_to_fw2x()
251 u32 speed; in aq_fw2x_update_link_status() local
258 if (speed) { in aq_fw2x_update_link_status()
259 if (speed & FW2X_RATE_10G) in aq_fw2x_update_link_status()
[all …]
/linux/drivers/usb/core/
A Ddevices.c153 if (speed == USB_SPEED_HIGH) in usb_dump_endpoint_descriptor()
261 int active, int speed) in usb_dump_config_descriptor() argument
294 speed); in usb_dump_config()
468 switch (usbdev->speed) { in usb_device_dump()
470 speed = "1.5"; break; in usb_device_dump()
473 speed = "12"; break; in usb_device_dump()
476 speed = "480"; break; in usb_device_dump()
478 speed = "5000"; break; in usb_device_dump()
480 speed = "10000"; break; in usb_device_dump()
482 speed = "??"; in usb_device_dump()
[all …]
/linux/tools/power/cpupower/utils/
A Dcpufreq-info.c92 if (speed > 1000000) in print_speed()
95 else if (speed > 1000) in print_speed()
99 printf("%lu kHz", speed); in print_speed()
101 if (speed > 1000000) { in print_speed()
102 tmp = speed%10000; in print_speed()
104 speed += 10000; in print_speed()
108 tmp = speed%1000; in print_speed()
110 speed += 1000; in print_speed()
112 } else if (speed > 1000) { in print_speed()
113 tmp = speed%100; in print_speed()
[all …]
/linux/sound/oss/dmasound/
A Ddmasound_q40.c127 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_law()
163 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_s8()
200 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_u8()
237 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_law()
276 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_s8()
315 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_u8()
405 u_char speed; in Q40PlayNextFrame() local
420 speed=(dmasound.hard.speed==10000 ? 0 : 1); in Q40PlayNextFrame()
534 dmasound.hard.speed = 20000; in Q40Init()
584 .speed = 10000
[all …]
A Ddmasound_atari.c393 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 …]
/linux/drivers/cpufreq/
A Dqcom-cpufreq-nvmem.c75 *speed = pte_efuse & 0xf; in get_krait_bin_format_a()
76 if (*speed == 0xf) in get_krait_bin_format_a()
77 *speed = (pte_efuse >> 4) & 0xf; in get_krait_bin_format_a()
79 if (*speed == 0xf) { in get_krait_bin_format_a()
80 *speed = 0; in get_krait_bin_format_a()
112 *speed = (pte_efuse >> 27) & 0xf; in get_krait_bin_format_b()
116 *speed = pte_efuse & 0x7; in get_krait_bin_format_b()
121 *speed = pte_efuse & 0x7; in get_krait_bin_format_b()
129 *speed = 0; in get_krait_bin_format_b()
239 speed, pvs, pvs_ver); in qcom_cpufreq_krait_name_version()
[all …]
/linux/drivers/mtd/tests/
A Dspeedtest.c177 long speed; in mtd_speedtest_init() local
259 speed = calc_speed(); in mtd_speedtest_init()
277 speed = calc_speed(); in mtd_speedtest_init()
299 speed = calc_speed(); in mtd_speedtest_init()
317 speed = calc_speed(); in mtd_speedtest_init()
339 speed = calc_speed(); in mtd_speedtest_init()
357 speed = calc_speed(); in mtd_speedtest_init()
367 speed = calc_speed(); in mtd_speedtest_init()
368 pr_info("erase speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
395 speed = calc_speed(); in mtd_speedtest_init()
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_port.c38 status->speed = SPEED_10; in decode_sgmii_word()
41 status->speed = SPEED_100; in decode_sgmii_word()
44 status->speed = SPEED_1000; in decode_sgmii_word()
164 status->speed = port->conf.speed; in sparx5_get_port_status()
475 switch (speed) { in sparx5_port_fifo_sz()
604 switch (speed) { in sparx5_port_fwd_urg()
684 int portmode, err, speed = conf->speed; in sparx5_serdes_set() local
692 speed = SPEED_25000; in sparx5_serdes_set()
694 speed = SPEED_10000; in sparx5_serdes_set()
696 speed = SPEED_5000; in sparx5_serdes_set()
[all …]
/linux/drivers/net/phy/
A Dswphy.c41 static const struct swmii_regs speed[] = { variable
71 static int swphy_decode_speed(int speed) in swphy_decode_speed() argument
73 switch (speed) { in swphy_decode_speed()
98 err = swphy_decode_speed(state->speed); in swphy_validate_state()
126 speed_index = swphy_decode_speed(state->speed); in swphy_read_reg()
132 bmsr |= speed[speed_index].bmsr & duplex[duplex_index].bmsr; in swphy_read_reg()
133 estat |= speed[speed_index].estat & duplex[duplex_index].estat; in swphy_read_reg()
138 lpa |= speed[speed_index].lpa & duplex[duplex_index].lpa; in swphy_read_reg()
139 lpagb |= speed[speed_index].lpagb & duplex[duplex_index].lpagb; in swphy_read_reg()
A Dphy-core.c14 const char *phy_speed_to_str(int speed) in phy_speed_to_str() argument
21 switch (speed) { in phy_speed_to_str()
209 if (p->speed == speed && p->duplex == duplex) { in phy_lookup_setting()
214 if (!match && p->speed <= speed) in phy_lookup_setting()
218 if (p->speed < speed) in phy_lookup_setting()
252 if (p->speed > max_speed) in __set_linkmode_max_speed()
371 phydev->speed = settings[i].speed; in phy_resolve_aneg_linkmode()
404 speed = settings[i].speed; in phy_check_downshift()
408 if (speed == SPEED_UNKNOWN || phydev->speed >= speed) in phy_check_downshift()
412 phy_speed_to_str(speed), phy_speed_to_str(phydev->speed)); in phy_check_downshift()
[all …]
/linux/Documentation/ABI/testing/
A Dsysfs-bus-pci-drivers-ehci_hcd7 PCI-based EHCI USB controllers (i.e., high-speed USB-2.0
9 "companion" full/low-speed USB-1.1 controllers. When a
10 high-speed device is plugged in, the connection is routed
11 to the EHCI controller; when a full- or low-speed device
15 Sometimes you want to force a high-speed device to connect
16 at full speed, which can be accomplished by forcing the
23 For example: To force the high-speed device attached to
24 port 4 on bus 2 to run at full speed::
28 To return the port to high-speed operation::
39 cannot be used to force a port on a high-speed hub to
[all …]
/linux/Documentation/devicetree/bindings/usb/
A Dusb.yaml44 maximum-speed:
46 Tells USB controllers we want to work up to a certain speed. In case this
51 - low-speed
52 - full-speed
53 - high-speed
54 - super-speed
55 - super-speed-plus
56 - super-speed-plus-gen2x1
57 - super-speed-plus-gen1x2
58 - super-speed-plus-gen2x2
/linux/Documentation/hwmon/
A Dg762.rst5 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 …]
A Dg760a.rst20 and performs closed-loop control of the fan speed.
22 The fan speed is programmed by setting the period via 'pwm1' of two
23 consecutive speed pulses. The period is defined in terms of clock
27 fan to maximum speed.
29 The measured fan rotation speed returned via 'fan1_input' is derived
30 from the measured speed pulse period by assuming again a 32kHz clock
35 speed differs more than 20% with respect to the programmed fan speed;
36 bit 1 is set when fan speed is below 1920 RPM.

Completed in 62 milliseconds

12345678910>>...71