Home
last modified time | relevance | path

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

12345678910>>...86

/linux-6.1.9/tools/power/cpupower/utils/helpers/
Dmisc.c173 void print_speed(unsigned long speed, int no_rounding) in print_speed() argument
178 if (speed > 1000000) in print_speed()
179 printf("%u.%06u GHz", ((unsigned int)speed / 1000000), in print_speed()
180 ((unsigned int)speed % 1000000)); in print_speed()
181 else if (speed > 1000) in print_speed()
182 printf("%u.%03u MHz", ((unsigned int)speed / 1000), in print_speed()
183 (unsigned int)(speed % 1000)); in print_speed()
185 printf("%lu kHz", speed); in print_speed()
187 if (speed > 1000000) { in print_speed()
188 tmp = speed % 10000; in print_speed()
[all …]
/linux-6.1.9/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.1.9/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
129 nvkm_trace(subdev, "requested %s\n", nvkm_pcie_speeds[speed]); in nvkm_pcie_set_link()
142 if (speed > max_speed) { in nvkm_pcie_set_link()
144 "requested speed to %s", nvkm_pcie_speeds[speed], in nvkm_pcie_set_link()
146 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.1.9/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.1.9/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.1.9/drivers/net/ethernet/intel/ice/
Dice_vf_mbx.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()
85 speed = ICE_LINK_SPEED_40000MBPS; in ice_conv_link_speed_to_virtchnl()
[all …]
/linux-6.1.9/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);
105 static void px30_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in px30_set_rmii_speed() argument
115 if (speed == 10) { in px30_set_rmii_speed()
123 } else if (speed == 100) { in px30_set_rmii_speed()
133 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in px30_set_rmii_speed()
202 static void rk3128_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rgmii_speed() argument
211 if (speed == 10) in rk3128_set_rgmii_speed()
214 else if (speed == 100) in rk3128_set_rgmii_speed()
217 else if (speed == 1000) in rk3128_set_rgmii_speed()
[all …]
Daltr_tse_pcs.c128 u16 speed = 0; in auto_nego_timer_callback() local
139 speed = val & TSE_PCS_PARTNER_SPEED_MASK; in auto_nego_timer_callback()
142 if (speed == TSE_PCS_PARTNER_SPEED_10 && in auto_nego_timer_callback()
146 else if (speed == TSE_PCS_PARTNER_SPEED_100 && in auto_nego_timer_callback()
150 else if (speed == TSE_PCS_PARTNER_SPEED_1000 && in auto_nego_timer_callback()
154 else if (speed == TSE_PCS_PARTNER_SPEED_10 && in auto_nego_timer_callback()
158 else if (speed == TSE_PCS_PARTNER_SPEED_100 && in auto_nego_timer_callback()
162 else if (speed == TSE_PCS_PARTNER_SPEED_1000 && in auto_nego_timer_callback()
171 (speed == TSE_PCS_PARTNER_SPEED_10 || in auto_nego_timer_callback()
172 speed == TSE_PCS_PARTNER_SPEED_100 || in auto_nego_timer_callback()
[all …]
/linux-6.1.9/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.1.9/drivers/cpufreq/
Dqcom-cpufreq-nvmem.c66 int *speed, int *pvs, int *pvs_ver, in get_krait_bin_format_a() argument
73 *speed = pte_efuse & 0xf; in get_krait_bin_format_a()
74 if (*speed == 0xf) in get_krait_bin_format_a()
75 *speed = (pte_efuse >> 4) & 0xf; in get_krait_bin_format_a()
77 if (*speed == 0xf) { in get_krait_bin_format_a()
78 *speed = 0; in get_krait_bin_format_a()
79 dev_warn(cpu_dev, "Speed bin: Defaulting to %d\n", *speed); in get_krait_bin_format_a()
81 dev_dbg(cpu_dev, "Speed bin: %d\n", *speed); in get_krait_bin_format_a()
97 int *speed, int *pvs, int *pvs_ver, in get_krait_bin_format_b() argument
110 *speed = (pte_efuse >> 27) & 0xf; in get_krait_bin_format_b()
[all …]
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/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.1.9/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.1.9/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.1.9/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.1.9/drivers/net/ethernet/microchip/sparx5/
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()
97 status->speed = SPEED_1000; in sparx5_get_dev2g5_status()
99 status->speed = SPEED_2500; in sparx5_get_dev2g5_status()
148 status->speed = SPEED_5000; in sparx5_get_sfi_status()
150 status->speed = SPEED_10000; in sparx5_get_sfi_status()
152 status->speed = SPEED_25000; in sparx5_get_sfi_status()
164 status->speed = port->conf.speed; in sparx5_get_port_status()
196 conf->speed, phy_modes(conf->portmode)); in sparx5_port_error()
[all …]
/linux-6.1.9/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.1.9/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);

12345678910>>...86