Home
last modified time | relevance | path

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

12345678910>>...77

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_sriov.c57 u32 speed; in ice_conv_link_speed_to_virtchnl() local
62 speed = ICE_LINK_SPEED_10MBPS; in ice_conv_link_speed_to_virtchnl()
65 speed = ICE_LINK_SPEED_100MBPS; in ice_conv_link_speed_to_virtchnl()
68 speed = ICE_LINK_SPEED_1000MBPS; in ice_conv_link_speed_to_virtchnl()
71 speed = ICE_LINK_SPEED_2500MBPS; in ice_conv_link_speed_to_virtchnl()
74 speed = ICE_LINK_SPEED_5000MBPS; in ice_conv_link_speed_to_virtchnl()
77 speed = ICE_LINK_SPEED_10000MBPS; in ice_conv_link_speed_to_virtchnl()
80 speed = ICE_LINK_SPEED_20000MBPS; in ice_conv_link_speed_to_virtchnl()
83 speed = ICE_LINK_SPEED_25000MBPS; in ice_conv_link_speed_to_virtchnl()
86 speed = ICE_LINK_SPEED_40000MBPS; in ice_conv_link_speed_to_virtchnl()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/platform/x86/
Dgpd-pocket-fan.c54 static void gpd_pocket_fan_set_speed(struct gpd_pocket_fan_data *fan, int speed) in gpd_pocket_fan_set_speed() argument
56 if (speed == fan->last_speed) in gpd_pocket_fan_set_speed()
59 gpiod_direction_output(fan->gpio0, !!(speed & 1)); in gpd_pocket_fan_set_speed()
60 gpiod_direction_output(fan->gpio1, !!(speed & 2)); in gpd_pocket_fan_set_speed()
62 fan->last_speed = speed; in gpd_pocket_fan_set_speed()
77 int t0, t1, temp, speed, min_speed, i; in gpd_pocket_fan_worker() local
82 speed = MAX_SPEED; in gpd_pocket_fan_worker()
88 speed = fan->last_speed; in gpd_pocket_fan_worker()
96 if (speed < i) in gpd_pocket_fan_worker()
97 speed = i; in gpd_pocket_fan_worker()
[all …]
/kernel/linux/linux-5.10/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);
99 static void px30_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in px30_set_rmii_speed() argument
109 if (speed == 10) { in px30_set_rmii_speed()
117 } else if (speed == 100) { in px30_set_rmii_speed()
127 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in px30_set_rmii_speed()
196 static void rk3128_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rgmii_speed() argument
205 if (speed == 10) in rk3128_set_rgmii_speed()
208 else if (speed == 100) in rk3128_set_rgmii_speed()
211 else if (speed == 1000) in rk3128_set_rgmii_speed()
[all …]
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()
154 else if (speed == TSE_PCS_PARTNER_SPEED_1000 && 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()
166 else if (speed == TSE_PCS_PARTNER_SPEED_1000 && 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()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
160 if (speed == USB_SPEED_HIGH) /* uframes per NAK */ in usb_dump_endpoint_descriptor()
172 if (speed == USB_SPEED_HIGH && dir == 'O') /* uframes per NAK */ in usb_dump_endpoint_descriptor()
179 if (speed == USB_SPEED_HIGH || speed >= USB_SPEED_SUPER) in usb_dump_endpoint_descriptor()
187 interval *= (speed == USB_SPEED_HIGH || in usb_dump_endpoint_descriptor()
188 speed >= USB_SPEED_SUPER) ? 125 : 1000; in usb_dump_endpoint_descriptor()
235 static char *usb_dump_interface(int speed, char *start, char *end, in usb_dump_interface() argument
246 start = usb_dump_endpoint_descriptor(speed, in usb_dump_interface()
274 int active, int speed) in usb_dump_config_descriptor() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
Dport.c166 int port, int speed, bool alt_bit, in mv88e6xxx_port_set_speed_duplex() argument
172 switch (speed) { in mv88e6xxx_port_set_speed_duplex()
232 if (speed != SPEED_UNFORCED) in mv88e6xxx_port_set_speed_duplex()
241 if (speed) in mv88e6xxx_port_set_speed_duplex()
242 dev_dbg(chip->dev, "p%d: Speed set to %d Mbps\n", port, speed); in mv88e6xxx_port_set_speed_duplex()
254 int speed, int duplex) in mv88e6065_port_set_speed_duplex() argument
256 if (speed == SPEED_MAX) in mv88e6065_port_set_speed_duplex()
257 speed = 200; in mv88e6065_port_set_speed_duplex()
259 if (speed > 200) in mv88e6065_port_set_speed_duplex()
263 return mv88e6xxx_port_set_speed_duplex(chip, port, speed, false, false, in mv88e6065_port_set_speed_duplex()
[all …]
/kernel/linux/linux-5.10/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
71 plt->speed = speed; in phy_led_trigger_register()
73 phy_speed_to_str(speed)); in phy_led_trigger_register()
/kernel/linux/linux-5.10/drivers/ata/
Dpata_sis.c232 int speed = adev->pio_mode - XFER_PIO_0; in sis_old_set_piomode() local
245 t1 |= active[speed]; in sis_old_set_piomode()
246 t2 |= recovery[speed]; in sis_old_set_piomode()
268 int speed = adev->pio_mode - XFER_PIO_0; in sis_100_set_piomode() local
274 pci_write_config_byte(pdev, port, actrec[speed]); in sis_100_set_piomode()
294 int speed = adev->pio_mode - XFER_PIO_0; in sis_133_set_piomode() local
318 t1 |= timing133[speed]; in sis_133_set_piomode()
320 t1 |= timing100[speed]; in sis_133_set_piomode()
340 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_old_set_dmamode() local
353 timing |= mwdma_bits[speed]; in sis_old_set_dmamode()
[all …]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/
Dcpufreq-info.c87 static void print_speed(unsigned long speed) in print_speed() argument
92 if (speed > 1000000) in print_speed()
93 printf("%u.%06u GHz", ((unsigned int) speed/1000000), in print_speed()
94 ((unsigned int) speed%1000000)); in print_speed()
95 else if (speed > 1000) in print_speed()
96 printf("%u.%03u MHz", ((unsigned int) speed/1000), in print_speed()
97 (unsigned int) (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()
[all …]
/kernel/linux/linux-5.10/drivers/cpufreq/
Dqcom-cpufreq-nvmem.c68 int *speed, int *pvs, int *pvs_ver, in get_krait_bin_format_a() argument
75 *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()
81 dev_warn(cpu_dev, "Speed bin: Defaulting to %d\n", *speed); in get_krait_bin_format_a()
83 dev_dbg(cpu_dev, "Speed bin: %d\n", *speed); in get_krait_bin_format_a()
99 int *speed, int *pvs, int *pvs_ver, in get_krait_bin_format_b() argument
112 *speed = (pte_efuse >> 27) & 0xf; in get_krait_bin_format_b()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dspeedtest.c177 long speed; in mtd_speedtest_init() local
259 speed = calc_speed(); in mtd_speedtest_init()
260 pr_info("eraseblock write speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
277 speed = calc_speed(); in mtd_speedtest_init()
278 pr_info("eraseblock read speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
299 speed = calc_speed(); in mtd_speedtest_init()
300 pr_info("page write speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
317 speed = calc_speed(); in mtd_speedtest_init()
318 pr_info("page read speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
339 speed = calc_speed(); in mtd_speedtest_init()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/ide/
Dide-timings.c57 struct ide_timing *ide_timing_find_mode(u8 speed) in ide_timing_find_mode() argument
61 for (t = ide_timing; t->mode != speed; t++) in ide_timing_find_mode()
131 int ide_timing_compute(ide_drive_t *drive, u8 speed, in ide_timing_compute() argument
140 s = ide_timing_find_mode(speed); in ide_timing_compute()
156 if (speed >= XFER_PIO_0 && speed < XFER_SW_DMA_0) { in ide_timing_compute()
157 if (speed <= XFER_PIO_2) in ide_timing_compute()
159 else if ((speed <= XFER_PIO_4) || in ide_timing_compute()
160 (speed == XFER_PIO_5 && !ata_id_is_cfa(id))) in ide_timing_compute()
162 } else if (speed >= XFER_MW_DMA_0 && speed <= XFER_MW_DMA_2) in ide_timing_compute()
178 if (speed >= XFER_SW_DMA_0) { in ide_timing_compute()
Dide-iops.c348 int ide_config_drive_speed(ide_drive_t *drive, u8 speed) in ide_config_drive_speed() argument
363 if ((speed & 0xf8) == XFER_PIO_0 && ata_id_has_iordy(drive->id) == 0) in ide_config_drive_speed()
381 tf.nsect = speed; in ide_config_drive_speed()
401 if (speed >= XFER_SW_DMA_0) { in ide_config_drive_speed()
412 if (speed >= XFER_SW_DMA_0 && (drive->dev_flags & IDE_DFLAG_USING_DMA)) in ide_config_drive_speed()
418 if (speed >= XFER_UDMA_0) { in ide_config_drive_speed()
419 i = 1 << (speed - XFER_UDMA_0); in ide_config_drive_speed()
421 } else if (ata_id_is_cfa(id) && speed >= XFER_MW_DMA_3) { in ide_config_drive_speed()
422 i = speed - XFER_MW_DMA_2; in ide_config_drive_speed()
424 } else if (speed >= XFER_MW_DMA_0) { in ide_config_drive_speed()
[all …]
/kernel/linux/linux-5.10/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>>...77