Home
last modified time | relevance | path

Searched refs:crystal_clock_freq (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/
Dsmu7_thermal.c86 uint32_t crystal_clock_freq; in smu7_fan_ctrl_get_fan_speed_rpm() local
98 crystal_clock_freq = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in smu7_fan_ctrl_get_fan_speed_rpm()
100 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in smu7_fan_ctrl_get_fan_speed_rpm()
258 uint32_t crystal_clock_freq; in smu7_fan_ctrl_set_fan_speed_rpm() local
271 crystal_clock_freq = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in smu7_fan_ctrl_set_fan_speed_rpm()
273 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu7_fan_ctrl_set_fan_speed_rpm()
Dvega10_thermal.c96 uint32_t crystal_clock_freq; in vega10_fan_ctrl_get_fan_speed_rpm() local
113 crystal_clock_freq = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in vega10_fan_ctrl_get_fan_speed_rpm()
115 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in vega10_fan_ctrl_get_fan_speed_rpm()
311 uint32_t crystal_clock_freq; in vega10_fan_ctrl_set_fan_speed_rpm() local
324 crystal_clock_freq = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in vega10_fan_ctrl_set_fan_speed_rpm()
325 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in vega10_fan_ctrl_set_fan_speed_rpm()
Dvega20_thermal.c189 uint32_t tach_period, crystal_clock_freq; in vega20_fan_ctrl_set_fan_speed_rpm() local
201 crystal_clock_freq = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in vega20_fan_ctrl_set_fan_speed_rpm()
202 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in vega20_fan_ctrl_set_fan_speed_rpm()
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/
Dsmu_v11_0.c1480 uint32_t tach_period, crystal_clock_freq; in smu_v11_0_set_fan_speed_rpm() local
1490 crystal_clock_freq = amdgpu_asic_get_xclk(adev); in smu_v11_0_set_fan_speed_rpm()
1491 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu_v11_0_set_fan_speed_rpm()