Home
last modified time | relevance | path

Searched refs:speed_level (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_ethtool.c369 enum nic_speed_level speed_level = 0; in hinic_is_speed_legal() local
380 speed_level = hinic_ethtool_to_hw_speed_level(speed); in hinic_is_speed_legal()
381 if (speed_level >= LINK_SPEED_LEVELS || in hinic_is_speed_legal()
427 enum nic_speed_level speed_level = 0; in set_link_settings_separate_cmd() local
444 speed_level = hinic_ethtool_to_hw_speed_level(speed); in set_link_settings_separate_cmd()
445 err = hinic_set_speed(nic_dev->hwdev, speed_level); in set_link_settings_separate_cmd()
464 enum nic_speed_level speed_level = 0; in hinic_set_settings_to_hw() local
471 speed_level = hinic_ethtool_to_hw_speed_level(speed); in hinic_set_settings_to_hw()
484 settings.speed = speed_level; in hinic_set_settings_to_hw()
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c2107 uint32_t speed_level; in smu_v11_0_get_current_pcie_link_speed() local
2109 speed_level = smu_v11_0_get_current_pcie_link_speed_level(smu); in smu_v11_0_get_current_pcie_link_speed()
2110 if (speed_level > LINK_SPEED_MAX) in smu_v11_0_get_current_pcie_link_speed()
2111 speed_level = 0; in smu_v11_0_get_current_pcie_link_speed()
2113 return link_speed[speed_level]; in smu_v11_0_get_current_pcie_link_speed()
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_6_ppt.c1939 uint32_t speed_level; in smu_v13_0_6_get_current_pcie_link_speed() local
1947 speed_level = (RREG32_PCIE(smnPCIE_LC_SPEED_CNTL) & in smu_v13_0_6_get_current_pcie_link_speed()
1950 if (speed_level > LINK_SPEED_MAX) in smu_v13_0_6_get_current_pcie_link_speed()
1951 speed_level = 0; in smu_v13_0_6_get_current_pcie_link_speed()
1953 return pcie_gen_to_speed(speed_level + 1); in smu_v13_0_6_get_current_pcie_link_speed()
Dsmu_v13_0.c2055 uint32_t speed_level; in smu_v13_0_get_current_pcie_link_speed() local
2057 speed_level = smu_v13_0_get_current_pcie_link_speed_level(smu); in smu_v13_0_get_current_pcie_link_speed()
2058 if (speed_level > LINK_SPEED_MAX) in smu_v13_0_get_current_pcie_link_speed()
2059 speed_level = 0; in smu_v13_0_get_current_pcie_link_speed()
2061 return link_speed[speed_level]; in smu_v13_0_get_current_pcie_link_speed()
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c2255 uint32_t speed_level; in vega12_get_current_pcie_link_speed() local
2257 speed_level = vega12_get_current_pcie_link_speed_level(hwmgr); in vega12_get_current_pcie_link_speed()
2258 if (speed_level > LINK_SPEED_MAX) in vega12_get_current_pcie_link_speed()
2259 speed_level = 0; in vega12_get_current_pcie_link_speed()
2261 return link_speed[speed_level]; in vega12_get_current_pcie_link_speed()
Dvega20_hwmgr.c3345 uint32_t speed_level; in vega20_get_current_pcie_link_speed() local
3347 speed_level = vega20_get_current_pcie_link_speed_level(hwmgr); in vega20_get_current_pcie_link_speed()
3348 if (speed_level > LINK_SPEED_MAX) in vega20_get_current_pcie_link_speed()
3349 speed_level = 0; in vega20_get_current_pcie_link_speed()
3351 return link_speed[speed_level]; in vega20_get_current_pcie_link_speed()