Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/huawei/hinic/
Dhinic_ethtool.c370 enum nic_speed_level speed_level = 0; in hinic_is_speed_legal() local
381 speed_level = hinic_ethtool_to_hw_speed_level(speed); in hinic_is_speed_legal()
382 if (speed_level >= LINK_SPEED_LEVELS || in hinic_is_speed_legal()
428 enum nic_speed_level speed_level = 0; in set_link_settings_separate_cmd() local
445 speed_level = hinic_ethtool_to_hw_speed_level(speed); in set_link_settings_separate_cmd()
446 err = hinic_set_speed(nic_dev->hwdev, speed_level); in set_link_settings_separate_cmd()
465 enum nic_speed_level speed_level = 0; in hinic_set_settings_to_hw() local
472 speed_level = hinic_ethtool_to_hw_speed_level(speed); in hinic_set_settings_to_hw()
485 settings.speed = speed_level; in hinic_set_settings_to_hw()
/linux-5.19.10/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c2121 uint32_t speed_level; in smu_v11_0_get_current_pcie_link_speed() local
2123 speed_level = smu_v11_0_get_current_pcie_link_speed_level(smu); in smu_v11_0_get_current_pcie_link_speed()
2124 if (speed_level > LINK_SPEED_MAX) in smu_v11_0_get_current_pcie_link_speed()
2125 speed_level = 0; in smu_v11_0_get_current_pcie_link_speed()
2127 return link_speed[speed_level]; in smu_v11_0_get_current_pcie_link_speed()
/linux-5.19.10/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0.c2091 uint32_t speed_level; in smu_v13_0_get_current_pcie_link_speed() local
2093 speed_level = smu_v13_0_get_current_pcie_link_speed_level(smu); in smu_v13_0_get_current_pcie_link_speed()
2094 if (speed_level > LINK_SPEED_MAX) in smu_v13_0_get_current_pcie_link_speed()
2095 speed_level = 0; in smu_v13_0_get_current_pcie_link_speed()
2097 return link_speed[speed_level]; in smu_v13_0_get_current_pcie_link_speed()
/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c2234 uint32_t speed_level; in vega12_get_current_pcie_link_speed() local
2236 speed_level = vega12_get_current_pcie_link_speed_level(hwmgr); in vega12_get_current_pcie_link_speed()
2237 if (speed_level > LINK_SPEED_MAX) in vega12_get_current_pcie_link_speed()
2238 speed_level = 0; in vega12_get_current_pcie_link_speed()
2240 return link_speed[speed_level]; in vega12_get_current_pcie_link_speed()
Dvega20_hwmgr.c3343 uint32_t speed_level; in vega20_get_current_pcie_link_speed() local
3345 speed_level = vega20_get_current_pcie_link_speed_level(hwmgr); in vega20_get_current_pcie_link_speed()
3346 if (speed_level > LINK_SPEED_MAX) in vega20_get_current_pcie_link_speed()
3347 speed_level = 0; in vega20_get_current_pcie_link_speed()
3349 return link_speed[speed_level]; in vega20_get_current_pcie_link_speed()