/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_gt_clock.c | 81 gt->info.reference_clock = freq; in xe_gt_clock_init() 100 return div_u64_roundup(count * MSEC_PER_SEC, gt->info.reference_clock); in xe_gt_clock_interval_to_ms()
|
D | xe_gt_types.h | 122 u32 reference_clock; member
|
D | xe_query.c | 389 gt_list->gt_list[id].reference_clock = gt->info.reference_clock; in query_gt_list()
|
D | xe_device.c | 928 drm_printf(p, "\tCS reference clock: %u\n", gt->info.reference_clock); in xe_device_snapshot_print()
|
D | xe_oa.c | 1542 return gt->info.reference_clock << (3 - shift); in xe_oa_timestamp_frequency() 1545 return gt->info.reference_clock; in xe_oa_timestamp_frequency()
|
/linux-6.12.1/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 256 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 564 clk_s = reference_clock * 5 / (decoded_ref * ss.rate); in cypress_populate_mclk_value()
|
D | si_dpm.c | 3581 u32 reference_clock; in si_program_response_times() local 3593 reference_clock = radeon_get_xclk(rdev); in si_program_response_times() 3595 vddc_dly = (voltage_response_time * reference_clock) / 100; in si_program_response_times() 3596 acpi_dly = (acpi_delay_time * reference_clock) / 100; in si_program_response_times() 3597 vbi_dly = (vbi_time_out * reference_clock) / 100; in si_program_response_times() 4733 u32 reference_clock = rdev->clock.spll.reference_freq; in si_calculate_sclk_params() local 4746 do_div(tmp, reference_clock); in si_calculate_sclk_params() 4766 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in si_calculate_sclk_params() 4855 u32 reference_clock = rdev->clock.mpll.reference_freq; in si_populate_mclk_value() local 4862 tmp = freq_nom / reference_clock; in si_populate_mclk_value() [all …]
|
D | rv770.c | 788 u32 reference_clock = rdev->clock.spll.reference_freq; in rv770_get_xclk() local 795 return reference_clock / 4; in rv770_get_xclk() 797 return reference_clock; in rv770_get_xclk()
|
D | ci_dpm.c | 934 u32 reference_clock, tmp; in ci_thermal_setup_fan_table() local 980 reference_clock = radeon_get_xclk(rdev); in ci_thermal_setup_fan_table() 983 reference_clock) / 1600); in ci_thermal_setup_fan_table() 2787 u32 reference_clock = rdev->clock.mpll.reference_freq; in ci_calculate_mclk_params() local 2794 tmp = (freq_nom / reference_clock); in ci_calculate_mclk_params() 2798 u32 clks = reference_clock * 5 / ss.rate; in ci_calculate_mclk_params() 3125 u32 reference_clock = rdev->clock.spll.reference_freq; in ci_calculate_sclk_params() local 3149 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in ci_calculate_sclk_params()
|
D | si.c | 1320 u32 reference_clock = rdev->clock.spll.reference_freq; in si_get_xclk() local 1329 return reference_clock / 4; in si_get_xclk() 1331 return reference_clock; in si_get_xclk()
|
/linux-6.12.1/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 | 1074 uint32_t reference_clock = atomctrl_get_mpll_reference_clock(hwmgr); in ci_calculate_mclk_params() local 1083 tmp = (freq_nom / reference_clock); in ci_calculate_mclk_params() 1087 uint32_t clks = reference_clock * 5 / ss_info.speed_spectrum_rate; in ci_calculate_mclk_params() 2132 uint32_t reference_clock; in ci_thermal_setup_fan_table() local 2187 reference_clock = amdgpu_asic_get_xclk((struct amdgpu_device *)hwmgr->adev); in ci_thermal_setup_fan_table() 2189 …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.12.1/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 | vi.c | 542 u32 reference_clock = adev->clock.spll.reference_freq; in vi_get_xclk() local 551 return reference_clock; in vi_get_xclk() 561 return reference_clock / 4; in vi_get_xclk() 563 return reference_clock; in vi_get_xclk()
|
D | soc15.c | 325 u32 reference_clock = adev->clock.spll.reference_freq; in soc15_get_xclk() local 334 return reference_clock / 4; in soc15_get_xclk() 336 return reference_clock; in soc15_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.12.1/include/uapi/drm/ |
D | xe_drm.h | 443 __u32 reference_clock; member
|
/linux-6.12.1/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 …]
|