Home
last modified time | relevance | path

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

12345678910>>...80

/linux-6.6.21/tools/testing/selftests/net/forwarding/
Dethtool.sh59 for speed in "${speeds_arr[@]}"; do
61 ethtool_set $h1 speed $speed autoneg off
62 ethtool_set $h2 speed $speed autoneg off
67 check_err $? "speed $speed autoneg off"
69 log_info "speed = $speed"
86 ethtool_set $h1 speed $speed1 autoneg off
87 ethtool_set $h2 speed $speed2 autoneg off
107 for speed in "${speeds_arr[@]}"; do
109 ethtool_set $h1 speed $speed autoneg off
114 check_err $? "h1-speed=$speed autoneg off, h2 autoneg on"
[all …]
/linux-6.6.21/tools/power/cpupower/utils/helpers/
Dmisc.c228 void print_speed(unsigned long speed, int no_rounding) in print_speed() argument
233 if (speed > 1000000) in print_speed()
234 printf("%u.%06u GHz", ((unsigned int)speed / 1000000), in print_speed()
235 ((unsigned int)speed % 1000000)); in print_speed()
236 else if (speed > 1000) in print_speed()
237 printf("%u.%03u MHz", ((unsigned int)speed / 1000), in print_speed()
238 (unsigned int)(speed % 1000)); in print_speed()
240 printf("%lu kHz", speed); in print_speed()
242 if (speed > 1000000) { in print_speed()
243 tmp = speed % 10000; in print_speed()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
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()
109 nvkm_pcie_set_link(pci, pci->pcie.speed, pci->pcie.width); in nvkm_pcie_init()
115 nvkm_pcie_set_link(struct nvkm_pci *pci, enum nvkm_pcie_speed speed, u8 width) in nvkm_pcie_set_link() argument
128 nvkm_trace(subdev, "requested %s\n", nvkm_pcie_speeds[speed]); in nvkm_pcie_set_link()
141 if (speed > max_speed) { in nvkm_pcie_set_link()
143 "requested speed to %s", nvkm_pcie_speeds[speed], in nvkm_pcie_set_link()
145 speed = max_speed; in nvkm_pcie_set_link()
[all …]
Dgk104.c33 gk104_pcie_set_cap_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) in gk104_pcie_set_cap_speed() argument
37 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()
78 gk104_pcie_set_lnkctl_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) in gk104_pcie_set_lnkctl_speed() argument
81 switch (speed) { in gk104_pcie_set_lnkctl_speed()
127 gk104_pcie_set_link_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) in gk104_pcie_set_link_speed() argument
132 switch (speed) { in gk104_pcie_set_link_speed()
182 gk104_pcie_set_link(struct nvkm_pci *pci, enum nvkm_pcie_speed speed, u8 width) in gk104_pcie_set_link() argument
[all …]
/linux-6.6.21/tools/usb/usbip/libsrc/
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()
100 speed = udev_device_get_sysattr_value(sdev, "current_speed"); in read_usb_vudc_device()
[all …]
/linux-6.6.21/drivers/platform/x86/
Dgpd-pocket-fan.c55 static void gpd_pocket_fan_set_speed(struct gpd_pocket_fan_data *fan, int speed) in gpd_pocket_fan_set_speed() argument
57 if (speed == fan->last_speed) in gpd_pocket_fan_set_speed()
60 gpiod_direction_output(fan->gpio0, !!(speed & 1)); in gpd_pocket_fan_set_speed()
61 gpiod_direction_output(fan->gpio1, !!(speed & 2)); 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()
[all …]
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-rk.c33 void (*set_rgmii_speed)(struct rk_priv_data *bsp_priv, int speed);
34 void (*set_rmii_speed)(struct rk_priv_data *bsp_priv, int speed);
117 static void px30_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in px30_set_rmii_speed() argument
128 if (speed == 10) { in px30_set_rmii_speed()
136 } else if (speed == 100) { in px30_set_rmii_speed()
146 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in px30_set_rmii_speed()
215 static void rk3128_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rgmii_speed() argument
224 if (speed == 10) in rk3128_set_rgmii_speed()
227 else if (speed == 100) in rk3128_set_rgmii_speed()
230 else if (speed == 1000) in rk3128_set_rgmii_speed()
[all …]
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/
Dprestera_ethtool.c23 u32 speed; member
30 .speed = 10,
37 .speed = 10,
44 .speed = 100,
51 .speed = 100,
58 .speed = 1000,
65 .speed = 1000,
72 .speed = 1000,
79 .speed = 1000,
86 .speed = 2500,
[all …]
/linux-6.6.21/drivers/cpufreq/
Dqcom-cpufreq-nvmem.c52 int *speed, int *pvs, int *pvs_ver, in get_krait_bin_format_a() argument
59 *speed = pte_efuse & 0xf; in get_krait_bin_format_a()
60 if (*speed == 0xf) in get_krait_bin_format_a()
61 *speed = (pte_efuse >> 4) & 0xf; in get_krait_bin_format_a()
63 if (*speed == 0xf) { in get_krait_bin_format_a()
64 *speed = 0; in get_krait_bin_format_a()
65 dev_warn(cpu_dev, "Speed bin: Defaulting to %d\n", *speed); in get_krait_bin_format_a()
67 dev_dbg(cpu_dev, "Speed bin: %d\n", *speed); in get_krait_bin_format_a()
83 int *speed, int *pvs, int *pvs_ver, in get_krait_bin_format_b() argument
96 *speed = (pte_efuse >> 27) & 0xf; in get_krait_bin_format_b()
[all …]
/linux-6.6.21/drivers/usb/core/
Ddevices.c142 static char *usb_dump_endpoint_descriptor(int speed, char *start, char *end, in usb_dump_endpoint_descriptor() argument
153 if (speed == USB_SPEED_HIGH) in usb_dump_endpoint_descriptor()
175 interval = usb_decode_interval(desc, speed); in usb_dump_endpoint_descriptor()
222 static char *usb_dump_interface(int speed, char *start, char *end, in usb_dump_interface() argument
231 start = usb_dump_endpoint_descriptor(speed, in usb_dump_interface()
259 int active, int speed) in usb_dump_config_descriptor() argument
265 if (speed >= USB_SPEED_SUPER) in usb_dump_config_descriptor()
279 static char *usb_dump_config(int speed, char *start, char *end, in usb_dump_config() argument
292 speed); in usb_dump_config()
303 start = usb_dump_interface(speed, in usb_dump_config()
[all …]
/linux-6.6.21/drivers/ata/
Dpata_sis.c231 int speed = adev->pio_mode - XFER_PIO_0; in sis_old_set_piomode() local
244 t1 |= active[speed]; in sis_old_set_piomode()
245 t2 |= recovery[speed]; in sis_old_set_piomode()
267 int speed = adev->pio_mode - XFER_PIO_0; in sis_100_set_piomode() local
273 pci_write_config_byte(pdev, port, actrec[speed]); in sis_100_set_piomode()
293 int speed = adev->pio_mode - XFER_PIO_0; in sis_133_set_piomode() local
317 t1 |= timing133[speed]; in sis_133_set_piomode()
319 t1 |= timing100[speed]; in sis_133_set_piomode()
339 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_old_set_dmamode() local
352 timing |= mwdma_bits[speed]; in sis_old_set_dmamode()
[all …]
/linux-6.6.21/drivers/net/phy/
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()
Dphy_led_triggers.c9 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()
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_utils_fw2x.c85 static int aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed);
125 static enum hw_atl_fw2x_rate link_speed_mask_2fw2x_ratemask(u32 speed) in link_speed_mask_2fw2x_ratemask() argument
129 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()
147 static u32 fw2x_to_eee_mask(u32 speed) in fw2x_to_eee_mask() argument
151 if (speed & HW_ATL_FW2X_CAP_EEE_10G_MASK) in fw2x_to_eee_mask()
153 if (speed & HW_ATL_FW2X_CAP_EEE_5G_MASK) in fw2x_to_eee_mask()
[all …]
/linux-6.6.21/sound/oss/dmasound/
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()
433 master_outb( speed, SAMPLE_RATE_REG); in Q40PlayNextFrame()
517 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) <= catchRadius) in Q40Init()
[all …]
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()
919 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in TTInit()
922 dmasound.soft.speed = freq[idx]; in TTInit()
930 if (dmasound.hard.speed > 50066) { in TTInit()
[all …]
/linux-6.6.21/drivers/mtd/tests/
Dspeedtest.c176 long speed; in mtd_speedtest_init() local
258 speed = calc_speed(); in mtd_speedtest_init()
259 pr_info("eraseblock write speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
276 speed = calc_speed(); in mtd_speedtest_init()
277 pr_info("eraseblock read speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
298 speed = calc_speed(); in mtd_speedtest_init()
299 pr_info("page write speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
316 speed = calc_speed(); in mtd_speedtest_init()
317 pr_info("page read speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
338 speed = calc_speed(); in mtd_speedtest_init()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/usb/
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-6.6.21/Documentation/ABI/testing/
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-6.6.21/Documentation/hwmon/
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.
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 …]
/linux-6.6.21/drivers/usb/misc/
Dtrancevibrator.c30 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);
/linux-6.6.21/arch/mips/cavium-octeon/executive/
Dcvmx-helper-spi.c154 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()
/linux-6.6.21/crypto/
Dxor.c85 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()
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega20_thermal.c118 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 …]

12345678910>>...80