/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | rv740_dpm.c | 130 u32 reference_clock = rdev->clock.spll.reference_freq; in rv740_populate_sclk_value() local 143 do_div(tmp, reference_clock); in rv740_populate_sclk_value() 163 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in rv740_populate_sclk_value() 250 u32 reference_clock = rdev->clock.mpll.reference_freq; in rv740_populate_mclk_value() local 252 u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate); in rv740_populate_mclk_value()
|
D | rv730_dpm.c | 49 u32 reference_clock = rdev->clock.spll.reference_freq; in rv730_populate_sclk_value() local 68 do_div(tmp, reference_clock); in rv730_populate_sclk_value() 94 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in rv730_populate_sclk_value() 169 u32 reference_clock = rdev->clock.mpll.reference_freq; in rv730_populate_mclk_value() local 170 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in rv730_populate_mclk_value()
|
D | rv770_dpm.c | 320 u32 reference_clock, in rv770_calculate_fractional_mpll_feedback_divider() argument 338 (8 * fyclk * reference_divider * post_divider) / reference_clock; in rv770_calculate_fractional_mpll_feedback_divider() 405 u32 reference_clock = rdev->clock.mpll.reference_freq; in rv770_populate_mclk_value() local 419 rv770_calculate_fractional_mpll_feedback_divider(memory_clock, reference_clock, in rv770_populate_mclk_value() 447 reference_clock, in rv770_populate_mclk_value() 502 u32 reference_clock = rdev->clock.spll.reference_freq; in rv770_populate_sclk_value() local 520 do_div(tmp, reference_clock); in rv770_populate_sclk_value() 545 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in rv770_populate_sclk_value() 1707 u32 reference_clock; in rv770_program_response_times() local 1721 reference_clock = radeon_get_xclk(rdev); in rv770_program_response_times() [all …]
|
D | ni_dpm.c | 1224 u32 reference_clock; in ni_program_response_times() local 1240 reference_clock = radeon_get_xclk(rdev); in ni_program_response_times() 1242 vddc_dly = (voltage_response_time * reference_clock) / 1600; in ni_program_response_times() 1243 bb_dly = (backbias_response_time * reference_clock) / 1600; in ni_program_response_times() 1244 acpi_dly = (acpi_delay_time * reference_clock) / 1600; in ni_program_response_times() 1245 vbi_dly = (vbi_time_out * reference_clock) / 1600; in ni_program_response_times() 1247 mclk_switch_limit = (460 * reference_clock) / 100; in ni_program_response_times() 2012 u32 reference_clock = rdev->clock.spll.reference_freq; in ni_calculate_sclk_params() local 2026 do_div(tmp, reference_clock); in ni_calculate_sclk_params() 2046 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in ni_calculate_sclk_params() [all …]
|
D | cypress_dpm.c | 275 u32 reference_clock; in cypress_program_response_times() local 278 reference_clock = radeon_get_xclk(rdev); in cypress_program_response_times() 279 mclk_switch_limit = (460 * reference_clock) / 100; in cypress_program_response_times() 558 u32 reference_clock = rdev->clock.mpll.reference_freq; in cypress_populate_mclk_value() local 560 u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate); in cypress_populate_mclk_value()
|
D | si_dpm.c | 3625 u32 reference_clock; in si_program_response_times() local 3637 reference_clock = radeon_get_xclk(rdev); in si_program_response_times() 3639 vddc_dly = (voltage_response_time * reference_clock) / 100; in si_program_response_times() 3640 acpi_dly = (acpi_delay_time * reference_clock) / 100; in si_program_response_times() 3641 vbi_dly = (vbi_time_out * reference_clock) / 100; in si_program_response_times() 4777 u32 reference_clock = rdev->clock.spll.reference_freq; in si_calculate_sclk_params() local 4790 do_div(tmp, reference_clock); in si_calculate_sclk_params() 4810 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in si_calculate_sclk_params() 4899 u32 reference_clock = rdev->clock.mpll.reference_freq; in si_populate_mclk_value() local 4906 tmp = freq_nom / reference_clock; in si_populate_mclk_value() [all …]
|
D | rv770.c | 799 u32 reference_clock = rdev->clock.spll.reference_freq; in rv770_get_xclk() local 806 return reference_clock / 4; in rv770_get_xclk() 808 return reference_clock; in rv770_get_xclk()
|
D | ci_dpm.c | 939 u32 reference_clock, tmp; in ci_thermal_setup_fan_table() local 985 reference_clock = radeon_get_xclk(rdev); in ci_thermal_setup_fan_table() 988 reference_clock) / 1600); in ci_thermal_setup_fan_table() 2792 u32 reference_clock = rdev->clock.mpll.reference_freq; in ci_calculate_mclk_params() local 2799 tmp = (freq_nom / reference_clock); in ci_calculate_mclk_params() 2803 u32 clks = reference_clock * 5 / ss.rate; in ci_calculate_mclk_params() 3130 u32 reference_clock = rdev->clock.spll.reference_freq; in ci_calculate_sclk_params() local 3154 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in ci_calculate_sclk_params()
|
D | cik.c | 1707 u32 reference_clock = rdev->clock.spll.reference_freq; in cik_get_xclk() local 1711 return reference_clock / 2; in cik_get_xclk() 1714 return reference_clock / 4; in cik_get_xclk() 1716 return reference_clock; in cik_get_xclk()
|
D | si.c | 1340 u32 reference_clock = rdev->clock.spll.reference_freq; in si_get_xclk() local 1349 return reference_clock / 4; in si_get_xclk() 1351 return reference_clock; in si_get_xclk()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | iceland_smumgr.c | 805 uint32_t reference_clock; in iceland_calculate_sclk_params() local 817 reference_clock = atomctrl_get_reference_clock(hwmgr); in iceland_calculate_sclk_params() 849 uint32_t clkS = reference_clock * 5 / (reference_divider * ss_info.speed_spectrum_rate); in iceland_calculate_sclk_params() 1115 uint32_t reference_clock = atomctrl_get_mpll_reference_clock(hwmgr); in iceland_calculate_mclk_params() local 1124 tmp = (freq_nom / reference_clock); in iceland_calculate_mclk_params() 1132 uint32_t clks = reference_clock * 5 / ss_info.speed_spectrum_rate; in iceland_calculate_mclk_params() 2092 uint32_t reference_clock; in iceland_thermal_setup_fan_table() local 2147 reference_clock = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in iceland_thermal_setup_fan_table() 2149 …e32((hwmgr->thermal_controller.advanceFanControlParameters.ulCycleDelay * reference_clock) / 1600); in iceland_thermal_setup_fan_table()
|
D | tonga_smumgr.c | 548 uint32_t reference_clock; in tonga_calculate_sclk_params() local 560 reference_clock = atomctrl_get_reference_clock(hwmgr); in tonga_calculate_sclk_params() 592 uint32_t clkS = reference_clock * 5 / (reference_divider * ss_info.speed_spectrum_rate); in tonga_calculate_sclk_params() 867 uint32_t reference_clock = atomctrl_get_mpll_reference_clock(hwmgr); in tonga_calculate_mclk_params() local 876 tmp = (freq_nom / reference_clock); in tonga_calculate_mclk_params() 884 uint32_t clks = reference_clock * 5 / ss_info.speed_spectrum_rate; in tonga_calculate_mclk_params() 2468 uint32_t reference_clock; in tonga_thermal_setup_fan_table() local 2532 reference_clock = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in tonga_thermal_setup_fan_table() 2534 …e32((hwmgr->thermal_controller.advanceFanControlParameters.ulCycleDelay * reference_clock) / 1600); in tonga_thermal_setup_fan_table()
|
D | ci_smumgr.c | 1075 uint32_t reference_clock = atomctrl_get_mpll_reference_clock(hwmgr); in ci_calculate_mclk_params() local 1084 tmp = (freq_nom / reference_clock); in ci_calculate_mclk_params() 1088 uint32_t clks = reference_clock * 5 / ss_info.speed_spectrum_rate; in ci_calculate_mclk_params() 2133 uint32_t reference_clock; in ci_thermal_setup_fan_table() local 2188 reference_clock = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in ci_thermal_setup_fan_table() 2190 …e32((hwmgr->thermal_controller.advanceFanControlParameters.ulCycleDelay * reference_clock) / 1600); in ci_thermal_setup_fan_table()
|
D | fiji_smumgr.c | 2136 uint32_t reference_clock; in fiji_thermal_setup_fan_table() local 2200 reference_clock = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in fiji_thermal_setup_fan_table() 2204 reference_clock) / 1600); in fiji_thermal_setup_fan_table()
|
D | polaris10_smumgr.c | 2174 uint32_t reference_clock; in polaris10_thermal_setup_fan_table() local 2242 reference_clock = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in polaris10_thermal_setup_fan_table() 2246 reference_clock) / 1600); in polaris10_thermal_setup_fan_table()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | cik.c | 919 u32 reference_clock = adev->clock.spll.reference_freq; in cik_get_xclk() local 923 return reference_clock / 2; in cik_get_xclk() 926 return reference_clock / 4; in cik_get_xclk() 928 return reference_clock; in cik_get_xclk()
|
D | soc15.c | 342 u32 reference_clock = adev->clock.spll.reference_freq; in soc15_get_xclk() local 349 return reference_clock / 4; in soc15_get_xclk() 351 return reference_clock; in soc15_get_xclk()
|
D | vi.c | 546 u32 reference_clock = adev->clock.spll.reference_freq; in vi_get_xclk() local 550 return reference_clock; in vi_get_xclk() 558 return reference_clock / 4; in vi_get_xclk() 560 return reference_clock; in vi_get_xclk()
|
D | si.c | 1469 u32 reference_clock = adev->clock.spll.reference_freq; in si_get_xclk() local 1478 return reference_clock / 4; in si_get_xclk() 1480 return reference_clock; in si_get_xclk()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | si_dpm.c | 4099 u32 reference_clock; in si_program_response_times() local 4111 reference_clock = amdgpu_asic_get_xclk(adev); in si_program_response_times() 4113 vddc_dly = (voltage_response_time * reference_clock) / 100; in si_program_response_times() 4114 acpi_dly = (acpi_delay_time * reference_clock) / 100; in si_program_response_times() 4115 vbi_dly = (vbi_time_out * reference_clock) / 100; in si_program_response_times() 5279 u32 reference_clock = adev->clock.spll.reference_freq; in si_calculate_sclk_params() local 5292 do_div(tmp, reference_clock); in si_calculate_sclk_params() 5312 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in si_calculate_sclk_params() 5401 u32 reference_clock = adev->clock.mpll.reference_freq; in si_populate_mclk_value() local 5408 tmp = freq_nom / reference_clock; in si_populate_mclk_value() [all …]
|