/kernel/linux/linux-5.10/drivers/ide/ |
H A D | umc8672.c | 57 * Default speeds. These can be changed with "auto-tune" and/or hdparm. 59 #define UMC_DRIVE0 1 /* DOS measured drive speeds */ 86 static void umc_set_speeds(u8 speeds[]) in umc_set_speeds() argument 92 out_umc(0xd7, (speedtab[0][speeds[2]] | (speedtab[0][speeds[3]]<<4))); in umc_set_speeds() 93 out_umc(0xd6, (speedtab[0][speeds[0]] | (speedtab[0][speeds[1]]<<4))); in umc_set_speeds() 96 tmp = (tmp << 2) | speedtab[1][speeds[i]]; in umc_set_speeds() 99 out_umc(0xd0 + i, speedtab[2][speeds[i]]); in umc_set_speeds() 100 out_umc(0xd8 + i, speedtab[2][speeds[ in umc_set_speeds() [all...] |
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | phy_led_triggers.c | 87 unsigned int speeds[50]; in phy_led_triggers_register() local 89 phy->phy_num_led_triggers = phy_supported_speeds(phy, speeds, in phy_led_triggers_register() 90 ARRAY_SIZE(speeds)); in phy_led_triggers_register() 117 speeds[i], in phy_led_triggers_register() 118 phy_speed_to_str(speeds[i])); in phy_led_triggers_register()
|
H A D | phy-core.c | 320 size_t phy_speeds(unsigned int *speeds, size_t size, in phy_speeds() argument 329 (count == 0 || speeds[count - 1] != settings[i].speed)) in phy_speeds() 330 speeds[count++] = settings[i].speed; in phy_speeds()
|
/kernel/linux/linux-5.10/drivers/net/phy/ |
H A D | phy_led_triggers.c | 87 unsigned int speeds[50]; in phy_led_triggers_register() local 89 phy->phy_num_led_triggers = phy_supported_speeds(phy, speeds, in phy_led_triggers_register() 90 ARRAY_SIZE(speeds)); in phy_led_triggers_register() 122 speeds[i]); in phy_led_triggers_register()
|
H A D | phy-core.c | 230 size_t phy_speeds(unsigned int *speeds, size_t size, in phy_speeds() argument 239 (count == 0 || speeds[count - 1] != settings[i].speed)) in phy_speeds() 240 speeds[count++] = settings[i].speed; in phy_speeds()
|
H A D | phy.c | 225 * phy_supported_speeds - return all speeds currently supported by a phy device 226 * @phy: The phy device to return supported speeds of. 227 * @speeds: buffer to store supported speeds in. 228 * @size: size of speeds buffer. 230 * Description: Returns the number of supported speeds, and fills the speeds 231 * buffer with the supported speeds. If speeds buffer is too small to contain 232 * all currently supported speeds, wil 234 phy_supported_speeds(struct phy_device *phy, unsigned int *speeds, unsigned int size) phy_supported_speeds() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/lpfc/ |
H A D | lpfc_ct.c | 2800 u32 speeds = 0; in lpfc_fdmi_port_attr_support_speed() local 2815 speeds |= HBA_PORTSPEED_256GFC; in lpfc_fdmi_port_attr_support_speed() 2817 speeds |= HBA_PORTSPEED_128GFC; in lpfc_fdmi_port_attr_support_speed() 2819 speeds |= HBA_PORTSPEED_64GFC; in lpfc_fdmi_port_attr_support_speed() 2822 speeds |= HBA_PORTSPEED_256GFC; in lpfc_fdmi_port_attr_support_speed() 2824 speeds |= HBA_PORTSPEED_128GFC; in lpfc_fdmi_port_attr_support_speed() 2826 speeds |= HBA_PORTSPEED_64GFC; in lpfc_fdmi_port_attr_support_speed() 2828 speeds |= HBA_PORTSPEED_32GFC; in lpfc_fdmi_port_attr_support_speed() 2831 speeds |= HBA_PORTSPEED_256GFC; in lpfc_fdmi_port_attr_support_speed() 2833 speeds | in lpfc_fdmi_port_attr_support_speed() 2876 u32 speeds = 0; lpfc_fdmi_port_attr_speed() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | ethtool.sh | 55 # Check that when each of the reported speeds is forced, the links come 78 # Test that when we force different speeds, links are not up and ping 92 check_fail $? "ping with different speeds" 94 log_test "force of different speeds autoneg off" 182 # Test that when one device advertises a subset of speeds and another 191 log_test "advertise subset of speeds" 196 # Check only speeds that h1 advertised. Remove the first speed. 211 log_test "advertise subset of speeds" 221 # Test that when one device advertises a subset of speeds, the other 262 # Test that when we configure links to advertise different speeds, [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | ethtool.sh | 55 # Check that when each of the reported speeds is forced, the links come 78 # Test that when we force different speeds, links are not up and ping 92 check_fail $? "ping with different speeds" 94 log_test "force of different speeds autoneg off" 182 # Test that when one device advertises a subset of speeds and another 191 log_test "advertise subset of speeds" 196 # Check only speeds that h1 advertised. Remove the first speed. 211 log_test "advertise subset of speeds" 221 # Test that when one device advertises a subset of speeds, the other 262 # Test that when we configure links to advertise different speeds, [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_common.h | 155 fw_port_cap32_t speeds, high_speeds; in is_x_10g_port() local 157 speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps)); in is_x_10g_port() 159 speeds & ~(FW_PORT_CAP32_SPEED_100M | FW_PORT_CAP32_SPEED_1G); in is_x_10g_port()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_common.h | 155 fw_port_cap32_t speeds, high_speeds; in is_x_10g_port() local 157 speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps)); in is_x_10g_port() 159 speeds & ~(FW_PORT_CAP32_SPEED_100M | FW_PORT_CAP32_SPEED_1G); in is_x_10g_port()
|
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | longhaul.c | 410 static const int speeds[] = { 666, 1000, 1333, 2000 }; in guess_fsb() local 413 for (i = 0; i < ARRAY_SIZE(speeds); i++) { in guess_fsb() 414 f_max = ((speeds[i] * mult) + 50) / 100; in guess_fsb() 418 return speeds[i] / 10; in guess_fsb()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | longhaul.c | 410 int speeds[] = { 666, 1000, 1333, 2000 }; in guess_fsb() local 414 f_max = ((speeds[i] * mult) + 50) / 100; in guess_fsb() 418 return speeds[i] / 10; in guess_fsb()
|
/kernel/linux/linux-6.6/drivers/net/usb/ |
H A D | cdc_ether.c | 397 static void speed_change(struct usbnet *dev, __le32 *speeds) in speed_change() argument 399 dev->tx_speed = __le32_to_cpu(speeds[0]); in speed_change() 400 dev->rx_speed = __le32_to_cpu(speeds[1]); in speed_change()
|
/kernel/linux/linux-5.10/drivers/input/tablet/ |
H A D | aiptek.c | 1675 int speeds[] = { 0, in aiptek_probe() local 1686 * delay is kept. We make it the first element of speeds[], in aiptek_probe() 1691 speeds[0] = programmableDelay; in aiptek_probe() 1836 for (i = 0; i < ARRAY_SIZE(speeds); ++i) { in aiptek_probe() 1837 aiptek->curSetting.programmableDelay = speeds[i]; in aiptek_probe() 1849 if (i == ARRAY_SIZE(speeds)) { in aiptek_probe() 1851 "Aiptek tried all speeds, no sane response\n"); in aiptek_probe()
|
/kernel/linux/linux-6.6/drivers/input/tablet/ |
H A D | aiptek.c | 1658 int speeds[] = { 0, in aiptek_probe() local 1669 * delay is kept. We make it the first element of speeds[], in aiptek_probe() 1674 speeds[0] = programmableDelay; in aiptek_probe() 1819 for (i = 0; i < ARRAY_SIZE(speeds); ++i) { in aiptek_probe() 1820 aiptek->curSetting.programmableDelay = speeds[i]; in aiptek_probe() 1832 if (i == ARRAY_SIZE(speeds)) { in aiptek_probe() 1834 "Aiptek tried all speeds, no sane response\n"); in aiptek_probe()
|
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
H A D | qla_attr.c | 3277 qla2x00_get_host_supported_speeds(scsi_qla_host_t *vha, uint speeds) in qla2x00_get_host_supported_speeds() argument 3281 if (speeds & FDMI_PORT_SPEED_64GB) in qla2x00_get_host_supported_speeds() 3283 if (speeds & FDMI_PORT_SPEED_32GB) in qla2x00_get_host_supported_speeds() 3285 if (speeds & FDMI_PORT_SPEED_16GB) in qla2x00_get_host_supported_speeds() 3287 if (speeds & FDMI_PORT_SPEED_8GB) in qla2x00_get_host_supported_speeds() 3289 if (speeds & FDMI_PORT_SPEED_4GB) in qla2x00_get_host_supported_speeds() 3291 if (speeds & FDMI_PORT_SPEED_2GB) in qla2x00_get_host_supported_speeds() 3293 if (speeds & FDMI_PORT_SPEED_1GB) in qla2x00_get_host_supported_speeds() 3303 u32 speeds = 0, fdmi_speed = 0; in qla2x00_init_host_attr() local 3314 speeds in qla2x00_init_host_attr() [all...] |
H A D | qla_gs.c | 1506 uint speeds = 0; in qla25xx_fdmi_port_speed_capability() local 1513 speeds |= FDMI_PORT_SPEED_64GB; in qla25xx_fdmi_port_speed_capability() 1518 speeds |= FDMI_PORT_SPEED_32GB; in qla25xx_fdmi_port_speed_capability() 1524 speeds |= FDMI_PORT_SPEED_16GB; in qla25xx_fdmi_port_speed_capability() 1529 speeds |= FDMI_PORT_SPEED_8GB; in qla25xx_fdmi_port_speed_capability() 1533 speeds |= FDMI_PORT_SPEED_4GB; in qla25xx_fdmi_port_speed_capability() 1535 return speeds; in qla25xx_fdmi_port_speed_capability() 1540 speeds = FDMI_PORT_SPEED_16GB; in qla25xx_fdmi_port_speed_capability() 1542 speeds = FDMI_PORT_SPEED_16GB|FDMI_PORT_SPEED_8GB| in qla25xx_fdmi_port_speed_capability() 1545 return speeds; in qla25xx_fdmi_port_speed_capability() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/qla2xxx/ |
H A D | qla_attr.c | 3344 qla2x00_get_host_supported_speeds(scsi_qla_host_t *vha, uint speeds) in qla2x00_get_host_supported_speeds() argument 3348 if (speeds & FDMI_PORT_SPEED_64GB) in qla2x00_get_host_supported_speeds() 3350 if (speeds & FDMI_PORT_SPEED_32GB) in qla2x00_get_host_supported_speeds() 3352 if (speeds & FDMI_PORT_SPEED_16GB) in qla2x00_get_host_supported_speeds() 3354 if (speeds & FDMI_PORT_SPEED_8GB) in qla2x00_get_host_supported_speeds() 3356 if (speeds & FDMI_PORT_SPEED_4GB) in qla2x00_get_host_supported_speeds() 3358 if (speeds & FDMI_PORT_SPEED_2GB) in qla2x00_get_host_supported_speeds() 3360 if (speeds & FDMI_PORT_SPEED_1GB) in qla2x00_get_host_supported_speeds() 3370 u32 speeds = 0, fdmi_speed = 0; in qla2x00_init_host_attr() local 3381 speeds in qla2x00_init_host_attr() [all...] |
H A D | qla_gs.c | 1507 uint speeds = 0; in qla25xx_fdmi_port_speed_capability() local 1514 speeds |= FDMI_PORT_SPEED_64GB; in qla25xx_fdmi_port_speed_capability() 1519 speeds |= FDMI_PORT_SPEED_32GB; in qla25xx_fdmi_port_speed_capability() 1525 speeds |= FDMI_PORT_SPEED_16GB; in qla25xx_fdmi_port_speed_capability() 1530 speeds |= FDMI_PORT_SPEED_8GB; in qla25xx_fdmi_port_speed_capability() 1534 speeds |= FDMI_PORT_SPEED_4GB; in qla25xx_fdmi_port_speed_capability() 1536 return speeds; in qla25xx_fdmi_port_speed_capability() 1542 speeds = FDMI_PORT_SPEED_16GB; in qla25xx_fdmi_port_speed_capability() 1544 speeds = FDMI_PORT_SPEED_16GB|FDMI_PORT_SPEED_8GB| in qla25xx_fdmi_port_speed_capability() 1547 return speeds; in qla25xx_fdmi_port_speed_capability() [all...] |
/kernel/linux/linux-5.10/drivers/net/usb/ |
H A D | cdc_ether.c | 382 static void dumpspeed(struct usbnet *dev, __le32 *speeds) in dumpspeed() argument 385 "link speeds: %u kbps up, %u kbps down\n", in dumpspeed() 386 __le32_to_cpu(speeds[0]) / 1000, in dumpspeed() 387 __le32_to_cpu(speeds[1]) / 1000); in dumpspeed()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.c | 839 u32 speeds[] = {SPEED_10, SPEED_100, SPEED_1000, SPEED_10000, in hinic_ndo_set_vf_bw() local 876 if (max_tx_rate < 0 || max_tx_rate > speeds[port_cap.speed]) { in hinic_ndo_set_vf_bw() 878 speeds[port_cap.speed]); in hinic_ndo_set_vf_bw()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.c | 859 static const u32 speeds[] = { in hinic_ndo_set_vf_bw() local 892 if (max_tx_rate < 0 || max_tx_rate > speeds[port_cap.speed]) { in hinic_ndo_set_vf_bw() 894 speeds[port_cap.speed]); in hinic_ndo_set_vf_bw()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | phy.h | 151 * phy_supported_speeds - return all speeds currently supported by a PHY device 154 unsigned int *speeds, 913 size_t phy_speeds(unsigned int *speeds, size_t size,
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | phy.h | 206 * phy_supported_speeds - return all speeds currently supported by a PHY device 209 unsigned int *speeds, 929 * then that interface's rate can be adapted to all slower link speeds 1211 size_t phy_speeds(unsigned int *speeds, size_t size,
|