Home
last modified time | relevance | path

Searched refs:refclk_freq_in_mhz (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/dml2/
H A Ddml_display_rq_dlg_calc.c217 …dml_float_t refclk_freq_in_mhz = (hw->DLGRefClkFreqMHz > 0) ? (dml_float_t) hw->DLGRefClkFreqMHz… in dml_rq_dlg_get_dlg_reg() local
218 dml_float_t ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml_rq_dlg_get_dlg_reg()
272 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in dml_rq_dlg_get_dlg_reg()
282 ASSERT(refclk_freq_in_mhz != 0); in dml_rq_dlg_get_dlg_reg()
369 …very_pre_l = dml_get_refcyc_per_line_delivery_pre_l_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz; in dml_rq_dlg_get_dlg_reg()
370 …_delivery_l = dml_get_refcyc_per_line_delivery_l_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz; in dml_rq_dlg_get_dlg_reg()
376 …very_pre_c = dml_get_refcyc_per_line_delivery_pre_c_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz; in dml_rq_dlg_get_dlg_reg()
377 …_delivery_c = dml_get_refcyc_per_line_delivery_c_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz; in dml_rq_dlg_get_dlg_reg()
383 …dmdata = (dml_uint_t)(dml_get_refcyc_per_vm_dmdata_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz); in dml_rq_dlg_get_dlg_reg()
384 …ta_dl_delta = (dml_uint_t)(dml_get_dmdata_dl_delta_in_us(mode_lib, pipe_idx) * refclk_freq_in_mhz); in dml_rq_dlg_get_dlg_reg()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/
H A Ddisplay_rq_dlg_calc_32.c236 double refclk_freq_in_mhz = clks->refclk_mhz; in dml32_rq_dlg_get_dlg_reg() local
237 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml32_rq_dlg_get_dlg_reg()
269 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in dml32_rq_dlg_get_dlg_reg()
382 …ivery_pre_l_in_us(mode_lib, e2e_pipe_param, num_pipes, pipe_idx) * refclk_freq_in_mhz; // From V… in dml32_rq_dlg_get_dlg_reg()
384 pipe_idx) * refclk_freq_in_mhz; // From VBA in dml32_rq_dlg_get_dlg_reg()
391 num_pipes, pipe_idx) * refclk_freq_in_mhz; // From VBA in dml32_rq_dlg_get_dlg_reg()
393 pipe_idx) * refclk_freq_in_mhz; // From VBA in dml32_rq_dlg_get_dlg_reg()
403 pipe_idx) * refclk_freq_in_mhz; // From VBA in dml32_rq_dlg_get_dlg_reg()
406 * refclk_freq_in_mhz; // From VBA in dml32_rq_dlg_get_dlg_reg()
408 …livery_pre_l_in_us(mode_lib, e2e_pipe_param, num_pipes, pipe_idx) * refclk_freq_in_mhz; // From VBA in dml32_rq_dlg_get_dlg_reg()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/
H A Ddisplay_rq_dlg_calc_31.c44 double refclk_freq_in_mhz, in get_refcyc_per_delivery() argument
58 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) ((unsigned int) odm_combine * 2) in get_refcyc_per_delivery()
61 …refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) recout_width / pclk_freq_in_mhz / (do… in get_refcyc_per_delivery()
63 …refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) delivery_width / (double) hscale_pixe… in get_refcyc_per_delivery()
67 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in get_refcyc_per_delivery()
783 double refclk_freq_in_mhz, in calculate_ttu_cursor() argument
827 …*refcyc_per_req_delivery_pre_cur = (double) refclk_freq_in_mhz * (double) cur_src_width / hscale_p… in calculate_ttu_cursor()
835 …*refcyc_per_req_delivery_cur = (double) refclk_freq_in_mhz * (double) cur_src_width / hscale_pixel… in calculate_ttu_cursor()
883 double refclk_freq_in_mhz = clks->refclk_mhz; in dml_rq_dlg_get_dlg_params() local
886 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml_rq_dlg_get_dlg_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/
H A Ddisplay_rq_dlg_calc_314.c132 double refclk_freq_in_mhz, in get_refcyc_per_delivery() argument
146 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) ((unsigned int) odm_combine * 2) in get_refcyc_per_delivery()
149 …refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) recout_width / pclk_freq_in_mhz / (do… in get_refcyc_per_delivery()
151 …refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) delivery_width / (double) hscale_pixe… in get_refcyc_per_delivery()
155 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in get_refcyc_per_delivery()
870 double refclk_freq_in_mhz, in calculate_ttu_cursor() argument
914 …*refcyc_per_req_delivery_pre_cur = (double) refclk_freq_in_mhz * (double) cur_src_width / hscale_p… in calculate_ttu_cursor()
921 …*refcyc_per_req_delivery_cur = (double) refclk_freq_in_mhz * (double) cur_src_width / hscale_pixel… in calculate_ttu_cursor()
968 double refclk_freq_in_mhz = clks->refclk_mhz; in dml_rq_dlg_get_dlg_params() local
971 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml_rq_dlg_get_dlg_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/
H A Ddisplay_rq_dlg_calc_21.c45 double refclk_freq_in_mhz,
95 double refclk_freq_in_mhz, in get_refcyc_per_delivery() argument
109 refcyc_per_delivery = (double) refclk_freq_in_mhz in get_refcyc_per_delivery()
113 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) recout_width in get_refcyc_per_delivery()
116 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) delivery_width in get_refcyc_per_delivery()
120 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in get_refcyc_per_delivery()
857 double refclk_freq_in_mhz = clks->refclk_mhz; in dml_rq_dlg_get_dlg_params() local
861 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml_rq_dlg_get_dlg_params()
965 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in dml_rq_dlg_get_dlg_params()
1260 refclk_freq_in_mhz, in dml_rq_dlg_get_dlg_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/
H A Ddisplay_rq_dlg_calc_30.c43 double refclk_freq_in_mhz, in get_refcyc_per_delivery() argument
57 refcyc_per_delivery = (double)refclk_freq_in_mhz * (double)((unsigned int)odm_combine*2) in get_refcyc_per_delivery()
61 refcyc_per_delivery = (double)refclk_freq_in_mhz * (double)recout_width in get_refcyc_per_delivery()
64 refcyc_per_delivery = (double)refclk_freq_in_mhz * (double)delivery_width in get_refcyc_per_delivery()
68 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in get_refcyc_per_delivery()
802 double refclk_freq_in_mhz, in calculate_ttu_cursor() argument
848 *refcyc_per_req_delivery_pre_cur = (double)refclk_freq_in_mhz in calculate_ttu_cursor()
859 *refcyc_per_req_delivery_cur = (double)refclk_freq_in_mhz in calculate_ttu_cursor()
923 double refclk_freq_in_mhz = clks->refclk_mhz; in dml_rq_dlg_get_dlg_params() local
927 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml_rq_dlg_get_dlg_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/
H A Ddisplay_rq_dlg_calc_20.c68 double refclk_freq_in_mhz,
119 double refclk_freq_in_mhz, in get_refcyc_per_delivery() argument
133 refcyc_per_delivery = (double) refclk_freq_in_mhz in get_refcyc_per_delivery()
137 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) recout_width in get_refcyc_per_delivery()
140 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) delivery_width in get_refcyc_per_delivery()
144 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in get_refcyc_per_delivery()
811 double refclk_freq_in_mhz = clks->refclk_mhz; in dml20_rq_dlg_get_dlg_params() local
815 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml20_rq_dlg_get_dlg_params()
919 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in dml20_rq_dlg_get_dlg_params()
1206 refclk_freq_in_mhz, in dml20_rq_dlg_get_dlg_params()
[all …]
H A Ddisplay_rq_dlg_calc_20v2.c68 double refclk_freq_in_mhz,
119 double refclk_freq_in_mhz, in get_refcyc_per_delivery() argument
133 refcyc_per_delivery = (double) refclk_freq_in_mhz in get_refcyc_per_delivery()
137 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) recout_width in get_refcyc_per_delivery()
140 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) delivery_width in get_refcyc_per_delivery()
144 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in get_refcyc_per_delivery()
811 double refclk_freq_in_mhz = clks->refclk_mhz; in dml20v2_rq_dlg_get_dlg_params() local
815 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml20v2_rq_dlg_get_dlg_params()
919 dml_print("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, refclk_freq_in_mhz); in dml20v2_rq_dlg_get_dlg_params()
1207 refclk_freq_in_mhz, in dml20v2_rq_dlg_get_dlg_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_dpmm/
H A Ddml2_dpmm_dcn4.c708 …double refclk_freq_in_mhz = (display_cfg->overrides.hw.dlg_ref_clk_mhz > 0) ? (double)display_cfg-… in dpmm_dcn4_map_watermarks() local
711 …T_A].fclk_pstate = (int unsigned)(mode_lib->mp.Watermark.FCLKChangeWatermark * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
712 …_enter = (int unsigned)(mode_lib->mp.Watermark.StutterEnterPlusExitWatermark * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
713 …_SET_A].sr_exit = (int unsigned)(mode_lib->mp.Watermark.StutterExitWatermark * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
714 …ead_or_ppt = (int unsigned)(mode_lib->mp.Watermark.g6_temp_read_watermark_us * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
715 …uclk_pstate = (int unsigned)(mode_lib->mp.Watermark.DRAMClockChangeWatermark * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
716 …ERMARK_SET_A].urgent = (int unsigned)(mode_lib->mp.Watermark.UrgentWatermark * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
717 …RK_SET_A].usr = (int unsigned)(mode_lib->mp.Watermark.USRRetrainingWatermark * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
718 …fcyc_per_trip_to_mem = (unsigned int)(mode_lib->mp.Watermark.UrgentWatermark * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
719 …per_meta_trip_to_mem = (unsigned int)(mode_lib->mp.Watermark.UrgentWatermark * refclk_freq_in_mhz); in dpmm_dcn4_map_watermarks()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/
H A Ddml1_display_rq_dlg_calc.c99 double refclk_freq_in_mhz, in get_refcyc_per_delivery() argument
110 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) recout_width in get_refcyc_per_delivery()
113 refcyc_per_delivery = (double) refclk_freq_in_mhz * (double) delivery_width in get_refcyc_per_delivery()
117 DTRACE("DLG: %s: refclk_freq_in_mhz = %3.2f", __func__, refclk_freq_in_mhz); in get_refcyc_per_delivery()
1018 double refclk_freq_in_mhz = e2e_pipe_param->clks_cfg.refclk_mhz; in dml1_rq_dlg_get_dlg_params() local
1147 DTRACE("DLG: %s: refclk_freq_in_mhz = %3.2f", __func__, refclk_freq_in_mhz); in dml1_rq_dlg_get_dlg_params()
1151 ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml1_rq_dlg_get_dlg_params()
1655 refclk_freq_in_mhz, in dml1_rq_dlg_get_dlg_params()
1665 refclk_freq_in_mhz, in dml1_rq_dlg_get_dlg_params()
1696 refclk_freq_in_mhz, in dml1_rq_dlg_get_dlg_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/
H A Ddml21_translation_helper.c1044 …double refclk_freq_in_mhz = (in_ctx->v21.display_config.overrides.hw.dlg_ref_clk_mhz > 0) ? (doubl… in dml21_extract_legacy_watermark_set() local
1052 …de_programming.programming->global_regs.wm_regs[reg_set_idx].urgent / refclk_freq_in_mhz) * 1000.0; in dml21_extract_legacy_watermark_set()
1053 …de_programming.programming->global_regs.wm_regs[reg_set_idx].urgent / refclk_freq_in_mhz) * 1000.0; in dml21_extract_legacy_watermark_set()
1054 …_programming.programming->global_regs.wm_regs[reg_set_idx].sr_enter / refclk_freq_in_mhz) * 1000.0; in dml21_extract_legacy_watermark_set()
1055 …e_programming.programming->global_regs.wm_regs[reg_set_idx].sr_exit / refclk_freq_in_mhz) * 1000.0; in dml21_extract_legacy_watermark_set()
1056 …ogramming.programming->global_regs.wm_regs[reg_set_idx].uclk_pstate / refclk_freq_in_mhz) * 1000.0; in dml21_extract_legacy_watermark_set()
1057 …de_programming.programming->global_regs.wm_regs[reg_set_idx].urgent / refclk_freq_in_mhz) * 1000.0; in dml21_extract_legacy_watermark_set()
1058 …ogramming.programming->global_regs.wm_regs[reg_set_idx].fclk_pstate / refclk_freq_in_mhz) * 1000.0; in dml21_extract_legacy_watermark_set()
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/
H A Ddml2_core_shared.c11428 …double refclk_freq_in_mhz = (display_cfg->overrides.hw.dlg_ref_clk_mhz > 0) ? (double)display_cfg-… in rq_dlg_get_wm_regs() local
11430 …egs->fclk_pstate = (int unsigned)(mode_lib->mp.Watermark.FCLKChangeWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11431 …_enter = (int unsigned)(mode_lib->mp.Watermark.StutterEnterPlusExitWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11432 …wm_regs->sr_exit = (int unsigned)(mode_lib->mp.Watermark.StutterExitWatermark * refclk_freq_in_mhz in rq_dlg_get_wm_regs()
11434 …uclk_pstate = (int unsigned)(mode_lib->mp.Watermark.DRAMClockChangeWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11435 wm_regs->urgent = (int unsigned)(mode_lib->mp.Watermark.UrgentWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11628 …l->refclk_freq_in_mhz = (display_cfg->overrides.hw.dlg_ref_clk_mhz > 0) ? (double)display_cfg->ove… in rq_dlg_get_dlg_reg()
11643 l->ref_freq_to_pix_freq = l->refclk_freq_in_mhz / l->pclk_freq_in_mhz; in rq_dlg_get_dlg_reg()
11647 dml2_printf("DML_DLG: %s: refclk_freq_in_mhz = %3.2f\n", __func__, l->refclk_freq_in_mhz); in rq_dlg_get_dlg_reg()
11654 DML2_ASSERT(l->refclk_freq_in_mhz != 0); in rq_dlg_get_dlg_reg()
[all …]
H A Ddml2_core_dcn4_calcs.c11734 …double refclk_freq_in_mhz = (display_cfg->overrides.hw.dlg_ref_clk_mhz > 0) ? (double)display_cfg-… in rq_dlg_get_wm_regs() local
11736 …egs->fclk_pstate = (int unsigned)(mode_lib->mp.Watermark.FCLKChangeWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11737 …_enter = (int unsigned)(mode_lib->mp.Watermark.StutterEnterPlusExitWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11738 …wm_regs->sr_exit = (int unsigned)(mode_lib->mp.Watermark.StutterExitWatermark * refclk_freq_in_mhz in rq_dlg_get_wm_regs()
11739 …ead_or_ppt = (int unsigned)(mode_lib->mp.Watermark.g6_temp_read_watermark_us * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11740 …uclk_pstate = (int unsigned)(mode_lib->mp.Watermark.DRAMClockChangeWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11741 wm_regs->urgent = (int unsigned)(mode_lib->mp.Watermark.UrgentWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11742 wm_regs->usr = (int unsigned)(mode_lib->mp.Watermark.USRRetrainingWatermark * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11743 wm_regs->refcyc_per_trip_to_mem = (unsigned int)(mode_lib->mp.UrgentLatency * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
11744 …->refcyc_per_meta_trip_to_mem = (unsigned int)(mode_lib->mp.MetaTripToMemory * refclk_freq_in_mhz); in rq_dlg_get_wm_regs()
[all …]
H A Ddml2_core_shared_types.h1396 double refclk_freq_in_mhz; member