/linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
H A D | display_rq_dlg_calc_21.c | 46 double ref_freq_to_pix_freq, 857 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml_rq_dlg_get_dlg_params() local 964 ASSERT(ref_freq_to_pix_freq < 4.0); in dml_rq_dlg_get_dlg_params() 966 disp_dlg_regs->ref_freq_to_pix_freq = in dml_rq_dlg_get_dlg_params() 967 (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml_rq_dlg_get_dlg_params() 968 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml_rq_dlg_get_dlg_params() 972 * (double) ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_params() 1008 ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_params() 1417 ref_freq_to_pix_freq, in dml_rq_dlg_get_dlg_params() 1434 ref_freq_to_pix_freq, in dml_rq_dlg_get_dlg_params() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | display_rq_dlg_calc_20.c | 69 double ref_freq_to_pix_freq, 811 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml20_rq_dlg_get_dlg_params() local 918 ASSERT(ref_freq_to_pix_freq < 4.0); in dml20_rq_dlg_get_dlg_params() 920 disp_dlg_regs->ref_freq_to_pix_freq = in dml20_rq_dlg_get_dlg_params() 921 (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml20_rq_dlg_get_dlg_params() 922 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml20_rq_dlg_get_dlg_params() 926 * (double) ref_freq_to_pix_freq); in dml20_rq_dlg_get_dlg_params() 956 ref_freq_to_pix_freq); in dml20_rq_dlg_get_dlg_params() 1348 ref_freq_to_pix_freq, in dml20_rq_dlg_get_dlg_params() 1364 ref_freq_to_pix_freq, in dml20_rq_dlg_get_dlg_params() [all …]
|
H A D | display_rq_dlg_calc_20v2.c | 69 double ref_freq_to_pix_freq, 811 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml20v2_rq_dlg_get_dlg_params() local 918 ASSERT(ref_freq_to_pix_freq < 4.0); in dml20v2_rq_dlg_get_dlg_params() 920 disp_dlg_regs->ref_freq_to_pix_freq = in dml20v2_rq_dlg_get_dlg_params() 921 (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml20v2_rq_dlg_get_dlg_params() 922 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml20v2_rq_dlg_get_dlg_params() 926 * (double) ref_freq_to_pix_freq); in dml20v2_rq_dlg_get_dlg_params() 957 ref_freq_to_pix_freq); in dml20v2_rq_dlg_get_dlg_params() 1349 ref_freq_to_pix_freq, in dml20v2_rq_dlg_get_dlg_params() 1365 ref_freq_to_pix_freq, in dml20v2_rq_dlg_get_dlg_params() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | display_rq_dlg_calc_30.c | 799 double ref_freq_to_pix_freq, in calculate_ttu_cursor() argument 841 *refcyc_per_req_delivery_pre_cur = hactive_cur * ref_freq_to_pix_freq in calculate_ttu_cursor() 852 *refcyc_per_req_delivery_cur = hactive_cur * ref_freq_to_pix_freq in calculate_ttu_cursor() 923 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml_rq_dlg_get_dlg_params() local 1035 ASSERT(ref_freq_to_pix_freq < 4.0); in dml_rq_dlg_get_dlg_params() 1037 disp_dlg_regs->ref_freq_to_pix_freq = in dml_rq_dlg_get_dlg_params() 1038 (unsigned int)(ref_freq_to_pix_freq * dml_pow(2, 19)); in dml_rq_dlg_get_dlg_params() 1039 disp_dlg_regs->refcyc_per_htotal = (unsigned int)(ref_freq_to_pix_freq * (double)htotal in dml_rq_dlg_get_dlg_params() 1071 ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_params() 1210 disp_dlg_regs->refcyc_h_blank_end = (unsigned int)((double) hblank_end * ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_params() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | display_rq_dlg_calc_32.c | 237 double ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml32_rq_dlg_get_dlg_reg() local 271 dml_print("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, ref_freq_to_pix_freq); in dml32_rq_dlg_get_dlg_reg() 273 ASSERT(ref_freq_to_pix_freq < 4.0); in dml32_rq_dlg_get_dlg_reg() 275 dlg_regs->ref_freq_to_pix_freq = (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml32_rq_dlg_get_dlg_reg() 276 …dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal * dml_pow(2, … in dml32_rq_dlg_get_dlg_reg() 284 dml_print("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, ref_freq_to_pix_freq); in dml32_rq_dlg_get_dlg_reg() 334 dlg_regs->refcyc_h_blank_end = (unsigned int) ((double) hblank_end * ref_freq_to_pix_freq); in dml32_rq_dlg_get_dlg_reg() 342 + odm_pipe_index * (double) dst->hactive / odm_combine_factor) * ref_freq_to_pix_freq); in dml32_rq_dlg_get_dlg_reg() 445 dlg_regs->refcyc_x_after_scaler = dst_x_after_scaler * ref_freq_to_pix_freq; // in terms of refclk in dml32_rq_dlg_get_dlg_reg() 543 ttu_regs->qos_level_high_wm = (unsigned int) (4.0 * (double) htotal * ref_freq_to_pix_freq); in dml32_rq_dlg_get_dlg_reg()
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/ |
H A D | dml_display_rq_dlg_calc.c | 218 dml_float_t ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml_rq_dlg_get_dlg_reg() local 276 dml_print("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_reg() 284 ASSERT(ref_freq_to_pix_freq < 4.0); in dml_rq_dlg_get_dlg_reg() 290 disp_dlg_regs->refcyc_h_blank_end = (dml_uint_t)((dml_float_t) hblank_end * ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_reg() 307 …idx_in_combine * (dml_float_t) hactive / (dml_float_t) odm_combine_factor) * ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_reg() 317 disp_dlg_regs->ref_freq_to_pix_freq = (dml_uint_t)(ref_freq_to_pix_freq * dml_pow(2, 19)); in dml_rq_dlg_get_dlg_reg() 319 disp_dlg_regs->refcyc_per_htotal = (dml_uint_t)(ref_freq_to_pix_freq * (dml_float_t)htotal * temp); in dml_rq_dlg_get_dlg_reg() 327 dml_print("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_reg() 415 …_x_after_scaler = (dml_uint_t)((dml_float_t) dst_x_after_scaler * ref_freq_to_pix_freq); // in ter… in dml_rq_dlg_get_dlg_reg() 492 disp_ttu_regs->qos_level_high_wm = (dml_uint_t)(4.0 * (dml_float_t)htotal * ref_freq_to_pix_freq); in dml_rq_dlg_get_dlg_reg()
|
H A D | dml2_translation_helper.c | 1486 out->dlg_regs.ref_freq_to_pix_freq = disp_dlg_regs->ref_freq_to_pix_freq; in dml2_update_pipe_ctx_dchub_regs()
|
H A D | display_mode_util.c | 264 dml_print("DML: ref_freq_to_pix_freq = 0x%x\n", dlg_regs->ref_freq_to_pix_freq); in dml_print_dlg_regs_st()
|
H A D | display_mode_core_structs.h | 1941 dml_uint_t ref_freq_to_pix_freq; member
|
/linux/drivers/gpu/drm/amd/display/dc/dml/ |
H A D | dml1_display_rq_dlg_calc.c | 1021 double ref_freq_to_pix_freq; in dml1_rq_dlg_get_dlg_params() local 1150 ref_freq_to_pix_freq = refclk_freq_in_mhz / pclk_freq_in_mhz; in dml1_rq_dlg_get_dlg_params() 1151 ASSERT(ref_freq_to_pix_freq < 4.0); in dml1_rq_dlg_get_dlg_params() 1152 disp_dlg_regs->ref_freq_to_pix_freq = in dml1_rq_dlg_get_dlg_params() 1153 (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml1_rq_dlg_get_dlg_params() 1154 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal in dml1_rq_dlg_get_dlg_params() 1157 * (double) ref_freq_to_pix_freq); in dml1_rq_dlg_get_dlg_params() 1192 ref_freq_to_pix_freq); in dml1_rq_dlg_get_dlg_params() 1439 …disp_dlg_regs->refcyc_x_after_scaler = dst_x_after_scaler * ref_freq_to_pix_freq; /* in terms of r… in dml1_rq_dlg_get_dlg_params() 1531 * ref_freq_to_pix_freq / (double) dpte_groups_per_row_ub_l); in dml1_rq_dlg_get_dlg_params() [all …]
|
H A D | display_rq_dlg_helpers.c | 230 dlg_regs->ref_freq_to_pix_freq); in print__dlg_regs_st()
|
H A D | display_mode_structs.h | 633 unsigned int ref_freq_to_pix_freq; member
|
/linux/drivers/gpu/drm/amd/display/dc/hubp/dcn21/ |
H A D | dcn21_hubp.c | 368 REF_FREQ_TO_PIX_FREQ, &dlg_attr.ref_freq_to_pix_freq); in hubp21_validate_dml_output() 388 if (dlg_attr.ref_freq_to_pix_freq != dml_dlg_attr->ref_freq_to_pix_freq) in hubp21_validate_dml_output() 390 dml_dlg_attr->ref_freq_to_pix_freq, dlg_attr.ref_freq_to_pix_freq); in hubp21_validate_dml_output()
|
/linux/drivers/gpu/drm/amd/display/dc/hubp/dcn20/ |
H A D | dcn20_hubp.c | 104 REF_FREQ_TO_PIX_FREQ, dlg_attr->ref_freq_to_pix_freq); in hubp2_program_deadline() 1183 REF_FREQ_TO_PIX_FREQ, &dlg_attr->ref_freq_to_pix_freq); in hubp2_read_state_common() 1477 REF_FREQ_TO_PIX_FREQ, &dlg_attr.ref_freq_to_pix_freq); in hubp2_validate_dml_output() 1497 if (dlg_attr.ref_freq_to_pix_freq != dml_dlg_attr->ref_freq_to_pix_freq) in hubp2_validate_dml_output() 1499 dml_dlg_attr->ref_freq_to_pix_freq, dlg_attr.ref_freq_to_pix_freq); in hubp2_validate_dml_output()
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/inc/ |
H A D | dml_top_dchub_registers.h | 23 uint32_t ref_freq_to_pix_freq; member
|
/linux/drivers/gpu/drm/amd/display/dc/hubp/dcn401/ |
H A D | dcn401_hubp.c | 237 REF_FREQ_TO_PIX_FREQ, dlg_attr->ref_freq_to_pix_freq); in hubp401_program_deadline() 846 REF_FREQ_TO_PIX_FREQ, &dlg_attr->ref_freq_to_pix_freq); in hubp401_read_state()
|
/linux/drivers/gpu/drm/amd/display/dc/hubp/dcn10/ |
H A D | dcn10_hubp.c | 629 REF_FREQ_TO_PIX_FREQ, dlg_attr->ref_freq_to_pix_freq); in hubp1_program_deadline() 952 REF_FREQ_TO_PIX_FREQ, &dlg_attr->ref_freq_to_pix_freq); in hubp1_read_state_common()
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/ |
H A D | dml2_core_shared_types.h | 1424 double ref_freq_to_pix_freq; member
|
H A D | dml2_core_shared.c | 11629 l->ref_freq_to_pix_freq = 0.0; 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() 11651 dml2_printf("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, l->ref_freq_to_pix_freq); in rq_dlg_get_dlg_reg() 11656 DML2_ASSERT(l->ref_freq_to_pix_freq < 4.0); in rq_dlg_get_dlg_reg() 11662 …isp_dlg_regs->refcyc_h_blank_end = (unsigned int)((double)l->hblank_end * l->ref_freq_to_pix_freq); in rq_dlg_get_dlg_reg() 11684 …pe_idx_in_combine * (double)l->hactive / (double)l->odm_combine_factor) * l->ref_freq_to_pix_freq); in rq_dlg_get_dlg_reg() 11694 disp_dlg_regs->ref_freq_to_pix_freq = (unsigned int)(l->ref_freq_to_pix_freq * math_pow(2, 19)); in rq_dlg_get_dlg_reg() 11695 …disp_dlg_regs->refcyc_per_htotal = (unsigned int)(l->ref_freq_to_pix_freq * (double)l->htotal * ma… in rq_dlg_get_dlg_reg() 11703 dml2_printf("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, l->ref_freq_to_pix_freq); in rq_dlg_get_dlg_reg() 11794 …_after_scaler = (unsigned int)((double)l->dst_x_after_scaler * l->ref_freq_to_pix_freq); // in ter… in rq_dlg_get_dlg_reg() [all …]
|
H A D | dml2_core_dcn4_calcs.c | 12388 l->ref_freq_to_pix_freq = 0.0; in rq_dlg_get_dlg_reg() 12404 l->ref_freq_to_pix_freq = l->refclk_freq_in_mhz / l->pclk_freq_in_mhz; in rq_dlg_get_dlg_reg() 12412 dml2_printf("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, l->ref_freq_to_pix_freq); in rq_dlg_get_dlg_reg() 12417 DML2_ASSERT(l->ref_freq_to_pix_freq < 4.0); in rq_dlg_get_dlg_reg() 12423 …isp_dlg_regs->refcyc_h_blank_end = (unsigned int)((double)l->hblank_end * l->ref_freq_to_pix_freq); in rq_dlg_get_dlg_reg() 12445 …pe_idx_in_combine * (double)l->hactive / (double)l->odm_combine_factor) * l->ref_freq_to_pix_freq); in rq_dlg_get_dlg_reg() 12455 disp_dlg_regs->ref_freq_to_pix_freq = (unsigned int)(l->ref_freq_to_pix_freq * math_pow(2, 19)); in rq_dlg_get_dlg_reg() 12456 …disp_dlg_regs->refcyc_per_htotal = (unsigned int)(l->ref_freq_to_pix_freq * (double)l->htotal * ma… in rq_dlg_get_dlg_reg() 12464 dml2_printf("DML_DLG: %s: ref_freq_to_pix_freq = %3.2f\n", __func__, l->ref_freq_to_pix_freq); in rq_dlg_get_dlg_reg() 12544 …_after_scaler = (unsigned int)((double)l->dst_x_after_scaler * l->ref_freq_to_pix_freq); // in ter… in rq_dlg_get_dlg_reg() [all …]
|