Searched refs:speed_level (Results 1 – 6 of 6) sorted by relevance
369 enum nic_speed_level speed_level = 0; in hinic_is_speed_legal() local380 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() local444 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() local471 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()
2107 uint32_t speed_level; in smu_v11_0_get_current_pcie_link_speed() local2109 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()
1939 uint32_t speed_level; in smu_v13_0_6_get_current_pcie_link_speed() local1947 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()
2055 uint32_t speed_level; in smu_v13_0_get_current_pcie_link_speed() local2057 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()
2255 uint32_t speed_level; in vega12_get_current_pcie_link_speed() local2257 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()
3345 uint32_t speed_level; in vega20_get_current_pcie_link_speed() local3347 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()