/Linux-v5.4/drivers/net/ethernet/intel/ice/ |
D | ice_sriov.c | 45 * @adv_link_support: determines the format of the returned link speed 48 * Convert link speed supported by HW to link speed supported by virtchnl. 49 * If adv_link_support is true, then return link speed in Mbps. Else return 50 * link speed as a VIRTCHNL_LINK_SPEED_* casted to a u32. Note that the caller 53 * expect the speed in Mbps. 57 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() [all …]
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
D | gk104.c | 33 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() 163 nvkm_trace(subdev, "adjusting cap to max speed\n"); in gk104_pcie_init() [all …]
|
D | pcie.c | 33 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() 83 nvkm_debug(&pci->subdev, "pcie max speed: %s\n", in nvkm_pcie_oneinit() 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() 140 nvkm_trace(subdev, "current speed: %s\n", nvkm_pcie_speeds[cur_speed]); in nvkm_pcie_set_link() 142 if (speed > max_speed) { in nvkm_pcie_set_link() [all …]
|
/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-rk.c | 33 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 …]
|
/Linux-v5.4/drivers/mtd/tests/ |
D | speedtest.c | 5 * Test read and write speed of a MTD device. 177 long speed; in mtd_speedtest_init() local 245 pr_info("testing eraseblock write speed\n"); in mtd_speedtest_init() 259 speed = calc_speed(); in mtd_speedtest_init() 260 pr_info("eraseblock write speed is %ld KiB/s\n", speed); in mtd_speedtest_init() 263 pr_info("testing eraseblock read speed\n"); 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() 285 pr_info("testing page write speed\n"); in mtd_speedtest_init() 299 speed = calc_speed(); in mtd_speedtest_init() [all …]
|
/Linux-v5.4/drivers/platform/x86/ |
D | gpd-pocket-fan.c | 22 "Millicelsius values above which the fan speed increases"); 27 "Hysteresis in millicelsius before lowering the fan speed"); 32 "minimum fan speed to allow when system is powered by AC"); 44 static void gpd_pocket_fan_set_speed(struct gpd_pocket_fan_data *fan, int speed) in gpd_pocket_fan_set_speed() argument 46 if (speed == fan->last_speed) in gpd_pocket_fan_set_speed() 49 gpiod_direction_output(fan->gpio0, !!(speed & 1)); in gpd_pocket_fan_set_speed() 50 gpiod_direction_output(fan->gpio1, !!(speed & 2)); in gpd_pocket_fan_set_speed() 52 fan->last_speed = speed; in gpd_pocket_fan_set_speed() 67 int t0, t1, temp, speed, min_speed, i; in gpd_pocket_fan_worker() local 72 speed = MAX_SPEED; in gpd_pocket_fan_worker() [all …]
|
/Linux-v5.4/tools/usb/usbip/libsrc/ |
D | usbip_device_driver.c | 33 enum usb_device_speed speed; member 37 .speed = USB_SPEED_UNKNOWN, 41 .speed = USB_SPEED_LOW, 42 .name = "low-speed", 45 .speed = USB_SPEED_FULL, 46 .name = "full-speed", 49 .speed = USB_SPEED_HIGH, 50 .name = "high-speed", 53 .speed = USB_SPEED_WIRELESS, 57 .speed = USB_SPEED_SUPER, [all …]
|
D | usbip_common.c | 21 char *speed; member 26 { USB_SPEED_UNKNOWN, "unknown", "Unknown Speed"}, 27 { USB_SPEED_LOW, "1.5", "Low Speed(1.5Mbps)" }, 28 { USB_SPEED_FULL, "12", "Full Speed(12Mbps)" }, 29 { USB_SPEED_HIGH, "480", "High Speed(480Mbps)" }, 31 { USB_SPEED_SUPER, "5000", "Super Speed(5000Mbps)" }, 62 for (int i = 0; speed_strings[i].speed != NULL; i++) in usbip_speed_string() 66 return "Unknown Speed"; in usbip_speed_string() 133 dbg("%-20s = %s", "speed", in dump_usb_device() 134 usbip_speed_string(udev->speed)); in dump_usb_device() [all …]
|
/Linux-v5.4/Documentation/hwmon/ |
D | g762.rst | 4 The GMT G762 Fan Speed PWM Controller is connected directly to a fan 5 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' [all …]
|
D | g760a.rst | 19 The GMT G760A Fan Speed PWM Controller is connected directly to a fan 20 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.
|
D | nct6775.rst | 100 There are 4 to 5 fan rotation speed sensors, 8 to 15 analog voltage sensors, 114 triggered if the rotation speed has dropped below a programmable limit. On 117 do not have a fan speed divider. The driver sets the most suitable fan divisor 118 itself; specifically, it increases the divider value each time a fan speed 119 reading returns an invalid value, and it reduces it if the fan speed reading 138 - this file stores PWM duty cycle or DC value (fan speed) in range: 140 0 (lowest speed) to 255 (full) 145 * 0 Fan control disabled (fans set to maximum speed) 148 * 3 "Fan Speed Cruise" mode 200 There are no changes to fan speed. Once the temperature leaves the interval, fan [all …]
|
D | adm9240.rst | 57 high speed successive approximation ADC allows frequent sampling of all 76 with independent fan speed measurement cycles counting alternating rising 79 DS1780 measurement cycle is about once per second including fan speed. 81 LM81 measurement cycle is about once per 400ms including fan speed. 93 Fan Speed 96 clock via a divider to an 8-bit counter. Fan speed (rpm) is calculated by: 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 [all …]
|
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
|
/Linux-v5.4/drivers/net/dsa/mv88e6xxx/ |
D | port.c | 63 * For port's MAC speed, ForceSpd (or SpdValue) bits 1:0 program the value. 204 int speed, bool alt_bit, bool force_bit) in mv88e6xxx_port_set_speed() argument 209 switch (speed) { in mv88e6xxx_port_set_speed() 251 if (speed != SPEED_UNFORCED) in mv88e6xxx_port_set_speed() 260 if (speed) in mv88e6xxx_port_set_speed() 261 dev_dbg(chip->dev, "p%d: Speed set to %d Mbps\n", port, speed); in mv88e6xxx_port_set_speed() 263 dev_dbg(chip->dev, "p%d: Speed unforced\n", port); in mv88e6xxx_port_set_speed() 269 int mv88e6065_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) in mv88e6065_port_set_speed() argument 271 if (speed == SPEED_MAX) in mv88e6065_port_set_speed() 272 speed = 200; in mv88e6065_port_set_speed() [all …]
|
/Linux-v5.4/Documentation/ABI/testing/ |
D | sysfs-bus-pci-drivers-ehci_hcd | 7 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-v5.4/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_utils_fw2x.c | 68 static int aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed); 104 static enum hw_atl_fw2x_rate link_speed_mask_2fw2x_ratemask(u32 speed) in link_speed_mask_2fw2x_ratemask() argument 108 if (speed & AQ_NIC_RATE_10G) in link_speed_mask_2fw2x_ratemask() 111 if (speed & AQ_NIC_RATE_5G) in link_speed_mask_2fw2x_ratemask() 114 if (speed & AQ_NIC_RATE_5GSR) in link_speed_mask_2fw2x_ratemask() 117 if (speed & AQ_NIC_RATE_2GS) in link_speed_mask_2fw2x_ratemask() 120 if (speed & AQ_NIC_RATE_1G) in link_speed_mask_2fw2x_ratemask() 123 if (speed & AQ_NIC_RATE_100M) in link_speed_mask_2fw2x_ratemask() 129 static u32 fw2x_to_eee_mask(u32 speed) in fw2x_to_eee_mask() argument 133 if (speed & HW_ATL_FW2X_CAP_EEE_10G_MASK) in fw2x_to_eee_mask() [all …]
|
/Linux-v5.4/drivers/usb/gadget/udc/ |
D | Kconfig | 39 full speed USB Device Port with support for five configurable 62 USBA is the integrated high-speed USB Device controller on 85 high speed USB Device Port with support for four fixed endpoints 95 Some of Freescale PowerPC and i.MX processors have a High Speed 116 high speed or full speed USB device. This driver supppors 135 speed USB device controllers, with support for up to 30 150 an integrated full speed USB 1.1 device controller. The 175 supports both full and high speed USB 2.0 data transfers. 187 that supports both full and high speed USB 2.0 data transfers. 201 that supports super, high, and full speed USB 3.0 data transfers. [all …]
|
/Linux-v5.4/drivers/usb/misc/ |
D | trancevibrator.c | 30 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() 61 /* Set speed */ in speed_store() 63 0x01, /* vendor request: set 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-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu7_thermal.c | 55 uint32_t *speed) in smu7_fan_ctrl_get_fan_speed_percent() argument 75 *speed = (uint32_t)tmp64; in smu7_fan_ctrl_get_fan_speed_percent() 77 if (*speed > 100) in smu7_fan_ctrl_get_fan_speed_percent() 78 *speed = 100; in smu7_fan_ctrl_get_fan_speed_percent() 83 int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in smu7_fan_ctrl_get_fan_speed_rpm() argument 100 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in smu7_fan_ctrl_get_fan_speed_rpm() 106 * Set Fan Speed Control to static mode, so that the user can decide what speed to use. 132 * Reset Fan Speed Control to default mode. 190 * Set Fan Speed in percent. 192 * @param speed is the percentage value (0% - 100%) to be set. [all …]
|
/Linux-v5.4/Documentation/usb/ |
D | ehci.rst | 7 The EHCI driver is used to talk to high speed USB 2.0 devices using 11 - "High Speed" 480 Mbit/sec (60 MByte/sec) 12 - "Full Speed" 12 Mbit/sec (1.5 MByte/sec) 13 - "Low Speed" 1.5 Mbit/sec 15 USB 1.1 only addressed full speed and low speed. High speed devices 23 (TT) in the hub, which turns low or full speed transactions into 24 high speed "split transactions" that don't waste transfer bandwidth. 33 been available since late 2001, and other kinds of high speed devices 62 High Speed Isochronous (ISO) transfer support is also functional, but 65 Full Speed Isochronous transfer support, through transaction translators, [all …]
|
/Linux-v5.4/drivers/usb/gadget/function/ |
D | u_uvc.h | 32 * Control descriptors array pointers for full-/high-speed and 33 * super-speed. They point by default to the uvc_fs_control_cls and 41 * Streaming descriptors array pointers for full-speed, high-speed and 42 * super-speed. They will point to the uvc_[fhs]s_streaming_cls arrays 57 * Control descriptors pointers arrays for full-/high-speed and 58 * super-speed. The first element is a configurable control header 67 * Streaming descriptors for full-speed, high-speed and super-speed.
|
/Linux-v5.4/drivers/net/phy/ |
D | swphy.c | 38 * This means the speed table must contain both duplex settings, and the 39 * duplex table must contain all speed settings. 41 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() 100 pr_warn("swphy: unknown speed\n"); 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() [all …]
|
/Linux-v5.4/drivers/tty/ |
D | tty_baudrate.c | 53 * Convert termios baud rate data into a speed. This should be called 56 * function but should use ->c_[io]speed directly as they are updated. 68 /* Magic token for arbitrary speed via c_ispeed/c_ospeed */ in tty_termios_baud_rate() 88 * Convert termios baud rate data into a speed. This should be called 91 * function but should use ->c_[io]speed directly as they are updated. 104 /* Magic token for arbitrary speed via c_ispeed*/ in tty_termios_input_baud_rate() 126 * @ispeed: input speed 127 * @ospeed: output speed 131 * the actual speed selected when it differs from the speed requested 135 * desired speed. We allow small margins and preserve as much of possible [all …]
|
/Linux-v5.4/drivers/ide/ |
D | cs5535.c | 67 * cs5535_set_speed - Configure the chipset to the new speed 69 * @speed: desired speed 71 * cs5535_set_speed() configures the chipset to a new speed. 73 static void cs5535_set_speed(ide_drive_t *drive, const u8 speed) in cs5535_set_speed() argument 79 if (speed < XFER_SW_DMA_0) { in cs5535_set_speed() 83 cmd = pioa = speed - XFER_PIO_0; in cs5535_set_speed() 92 /* Write the speed of the current drive */ in cs5535_set_speed() 97 /* And if nessesary - change the speed of the other drive */ in cs5535_set_speed() 116 if (speed >= XFER_UDMA_0 && speed <= XFER_UDMA_4) in cs5535_set_speed() 117 reg |= cs5535_udma_timings[speed - XFER_UDMA_0]; in cs5535_set_speed() [all …]
|
/Linux-v5.4/drivers/hwmon/ |
D | gpio-fan.c | 38 struct gpio_fan_speed *speed; member 134 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed() 144 if (fan_data->speed[i].ctrl_val == ctrl_val) in get_fan_speed_index() 148 "missing speed array entry for GPIO value 0x%x\n", ctrl_val); in get_fan_speed_index() 155 struct gpio_fan_speed *speed = fan_data->speed; in rpm_to_speed_index() local 159 if (speed[i].rpm >= rpm) in rpm_to_speed_index() 226 /* Disable manual control mode: set fan at full speed. */ in pwm1_enable_store() 246 return sprintf(buf, "%d\n", fan_data->speed[0].rpm); in fan1_min_show() 255 fan_data->speed[fan_data->num_speed - 1].rpm); in fan1_max_show() 263 return sprintf(buf, "%d\n", fan_data->speed[fan_data->speed_index].rpm); in fan1_input_show() [all …]
|