Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddisplay_rq_dlg_calc_32.c275 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()
345 ASSERT(dlg_regs->refcyc_h_blank_end < (unsigned int)dml_pow(2, 13)); in dml32_rq_dlg_get_dlg_reg()
441 dlg_regs->min_dst_y_next_start = min_dst_y_next_start * dml_pow(2, 2); in dml32_rq_dlg_get_dlg_reg()
442 ASSERT(dlg_regs->min_dst_y_next_start < (unsigned int)dml_pow(2, 18)); in dml32_rq_dlg_get_dlg_reg()
446 dlg_regs->dst_y_prefetch = (unsigned int) (dst_y_prefetch * dml_pow(2, 2)); in dml32_rq_dlg_get_dlg_reg()
447 dlg_regs->dst_y_per_vm_vblank = (unsigned int) (dst_y_per_vm_vblank * dml_pow(2, 2)); in dml32_rq_dlg_get_dlg_reg()
448 dlg_regs->dst_y_per_row_vblank = (unsigned int) (dst_y_per_row_vblank * dml_pow(2, 2)); in dml32_rq_dlg_get_dlg_reg()
449 dlg_regs->dst_y_per_vm_flip = (unsigned int) (dst_y_per_vm_flip * dml_pow(2, 2)); in dml32_rq_dlg_get_dlg_reg()
450 dlg_regs->dst_y_per_row_flip = (unsigned int) (dst_y_per_row_flip * dml_pow(2, 2)); in dml32_rq_dlg_get_dlg_reg()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/
Ddml_display_rq_dlg_calc.c315 ASSERT(disp_dlg_regs->refcyc_h_blank_end < (dml_uint_t)dml_pow(2, 13)); 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()
318 temp = dml_pow(2, 8); in dml_rq_dlg_get_dlg_reg()
411 …disp_dlg_regs->min_dst_y_next_start = (dml_uint_t)((dml_float_t) min_dst_y_next_start * dml_pow(2,… in dml_rq_dlg_get_dlg_reg()
412 ASSERT(disp_dlg_regs->min_dst_y_next_start < (dml_uint_t)dml_pow(2, 18)); in dml_rq_dlg_get_dlg_reg()
416 disp_dlg_regs->dst_y_prefetch = (dml_uint_t)(dst_y_prefetch * dml_pow(2, 2)); in dml_rq_dlg_get_dlg_reg()
417 disp_dlg_regs->dst_y_per_vm_vblank = (dml_uint_t)(dst_y_per_vm_vblank * dml_pow(2, 2)); in dml_rq_dlg_get_dlg_reg()
418 disp_dlg_regs->dst_y_per_row_vblank = (dml_uint_t)(dst_y_per_row_vblank * dml_pow(2, 2)); in dml_rq_dlg_get_dlg_reg()
419 disp_dlg_regs->dst_y_per_vm_flip = (dml_uint_t)(dst_y_per_vm_flip * dml_pow(2, 2)); in dml_rq_dlg_get_dlg_reg()
420 disp_dlg_regs->dst_y_per_row_flip = (dml_uint_t)(dst_y_per_row_flip * dml_pow(2, 2)); in dml_rq_dlg_get_dlg_reg()
[all …]
Ddisplay_mode_util.h50 __DML_DLL_EXPORT__ dml_float_t dml_pow(dml_float_t base, int exp);
Ddisplay_mode_util.c196 dml_float_t dml_pow(dml_float_t base, int exp) in dml_pow() function
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn21/
Ddisplay_rq_dlg_calc_21.c971 (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml_rq_dlg_get_dlg_params()
973 * dml_pow(2, 8)); in dml_rq_dlg_get_dlg_params()
977 ASSERT(disp_dlg_regs->refcyc_h_blank_end < (unsigned int)dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
986 disp_dlg_regs->min_dst_y_next_start = (unsigned int) (((double) dlg_vblank_start) * dml_pow(2, 2)); in dml_rq_dlg_get_dlg_params()
987 ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int)dml_pow(2, 18)); in dml_rq_dlg_get_dlg_params()
1372 ASSERT(refcyc_per_req_delivery_pre_l < dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1373 ASSERT(refcyc_per_req_delivery_l < dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1408 ASSERT(refcyc_per_req_delivery_pre_c < dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1409 ASSERT(refcyc_per_req_delivery_c < dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1453 ASSERT(disp_dlg_regs->refcyc_x_after_scaler < (unsigned int)dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn31/
Ddisplay_rq_dlg_calc_31.c830 ASSERT(*refcyc_per_req_delivery_pre_cur < dml_pow(2, 13)); in calculate_ttu_cursor()
845 ASSERT(*refcyc_per_req_delivery_cur < dml_pow(2, 13)); in calculate_ttu_cursor()
979 disp_dlg_regs->ref_freq_to_pix_freq = (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml_rq_dlg_get_dlg_params()
980 …_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal * dml_pow(2, 8)); in dml_rq_dlg_get_dlg_params()
987 disp_dlg_regs->min_dst_y_next_start = (unsigned int) (((double) dlg_vblank_start) * dml_pow(2, 2)); in dml_rq_dlg_get_dlg_params()
989 ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int)dml_pow(2, 18)); in dml_rq_dlg_get_dlg_params()
1093 } ASSERT(disp_dlg_regs->refcyc_h_blank_end < (unsigned int)dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1322 …ASSERT(refcyc_per_req_delivery_pre_l < dml_pow(2, 13)); ASSERT(refcyc_per_req_delivery_l < dml_pow in dml_rq_dlg_get_dlg_params()
1359 …ASSERT(refcyc_per_req_delivery_pre_c < dml_pow(2, 13)); ASSERT(refcyc_per_req_delivery_c < dml_pow in dml_rq_dlg_get_dlg_params()
1407 ASSERT(disp_dlg_regs->refcyc_x_after_scaler < (unsigned int)dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddisplay_rq_dlg_calc_30.c853 ASSERT(*refcyc_per_req_delivery_pre_cur < dml_pow(2, 13)); in calculate_ttu_cursor()
883 ASSERT(*refcyc_per_req_delivery_cur < dml_pow(2, 13)); in calculate_ttu_cursor()
1042 (unsigned int)(ref_freq_to_pix_freq * dml_pow(2, 19)); in dml_rq_dlg_get_dlg_params()
1044 * dml_pow(2, 8)); in dml_rq_dlg_get_dlg_params()
1055 ) * dml_pow(2, 2)); in dml_rq_dlg_get_dlg_params()
1056 ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int)dml_pow(2, 18)); in dml_rq_dlg_get_dlg_params()
1220 ASSERT(disp_dlg_regs->refcyc_h_blank_end < (unsigned int)dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1479 ASSERT(refcyc_per_req_delivery_pre_l < dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1480 ASSERT(refcyc_per_req_delivery_l < dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1511 ASSERT(refcyc_per_req_delivery_pre_c < dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddisplay_rq_dlg_calc_314.c916 ASSERT(*refcyc_per_req_delivery_pre_cur < dml_pow(2, 13)); in calculate_ttu_cursor()
930 ASSERT(*refcyc_per_req_delivery_cur < dml_pow(2, 13)); in calculate_ttu_cursor()
1064 disp_dlg_regs->ref_freq_to_pix_freq = (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml_rq_dlg_get_dlg_params()
1065 …_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal * dml_pow(2, 8)); in dml_rq_dlg_get_dlg_params()
1074 disp_dlg_regs->min_dst_y_next_start = vba__min_dst_y_next_start * dml_pow(2, 2); in dml_rq_dlg_get_dlg_params()
1076 ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int)dml_pow(2, 18)); in dml_rq_dlg_get_dlg_params()
1181 } ASSERT(disp_dlg_regs->refcyc_h_blank_end < (unsigned int)dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
1410 …ASSERT(refcyc_per_req_delivery_pre_l < dml_pow(2, 13)); ASSERT(refcyc_per_req_delivery_l < dml_pow in dml_rq_dlg_get_dlg_params()
1447 …ASSERT(refcyc_per_req_delivery_pre_c < dml_pow(2, 13)); ASSERT(refcyc_per_req_delivery_c < dml_pow in dml_rq_dlg_get_dlg_params()
1495 ASSERT(disp_dlg_regs->refcyc_x_after_scaler < (unsigned int)dml_pow(2, 13)); in dml_rq_dlg_get_dlg_params()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn20/
Ddisplay_rq_dlg_calc_20.c925 (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml20_rq_dlg_get_dlg_params()
927 * dml_pow(2, 8)); in dml20_rq_dlg_get_dlg_params()
931 ASSERT(disp_dlg_regs->refcyc_h_blank_end < (unsigned int) dml_pow(2, 13)); in dml20_rq_dlg_get_dlg_params()
940 disp_dlg_regs->min_dst_y_next_start = (unsigned int) ((double) dlg_vblank_start * dml_pow(2, 2)); in dml20_rq_dlg_get_dlg_params()
941 ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int) dml_pow(2, 18)); in dml20_rq_dlg_get_dlg_params()
1308 ASSERT(refcyc_per_req_delivery_pre_l < dml_pow(2, 13)); in dml20_rq_dlg_get_dlg_params()
1309 ASSERT(refcyc_per_req_delivery_l < dml_pow(2, 13)); in dml20_rq_dlg_get_dlg_params()
1340 ASSERT(refcyc_per_req_delivery_pre_c < dml_pow(2, 13)); in dml20_rq_dlg_get_dlg_params()
1341 ASSERT(refcyc_per_req_delivery_c < dml_pow(2, 13)); in dml20_rq_dlg_get_dlg_params()
1383 ASSERT(disp_dlg_regs->refcyc_x_after_scaler < (unsigned int) dml_pow(2, 13)); in dml20_rq_dlg_get_dlg_params()
[all …]
Ddisplay_rq_dlg_calc_20v2.c925 (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml20v2_rq_dlg_get_dlg_params()
927 * dml_pow(2, 8)); in dml20v2_rq_dlg_get_dlg_params()
931 ASSERT(disp_dlg_regs->refcyc_h_blank_end < (unsigned int) dml_pow(2, 13)); in dml20v2_rq_dlg_get_dlg_params()
941 + min_dst_y_ttu_vblank) * dml_pow(2, 2)); in dml20v2_rq_dlg_get_dlg_params()
942 ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int) dml_pow(2, 18)); in dml20v2_rq_dlg_get_dlg_params()
1309 ASSERT(refcyc_per_req_delivery_pre_l < dml_pow(2, 13)); in dml20v2_rq_dlg_get_dlg_params()
1310 ASSERT(refcyc_per_req_delivery_l < dml_pow(2, 13)); in dml20v2_rq_dlg_get_dlg_params()
1341 ASSERT(refcyc_per_req_delivery_pre_c < dml_pow(2, 13)); in dml20v2_rq_dlg_get_dlg_params()
1342 ASSERT(refcyc_per_req_delivery_c < dml_pow(2, 13)); in dml20v2_rq_dlg_get_dlg_params()
1384 ASSERT(disp_dlg_regs->refcyc_x_after_scaler < (unsigned int) dml_pow(2, 13)); in dml20v2_rq_dlg_get_dlg_params()
[all …]
Ddisplay_mode_vba_20.c289 / dml_pow( in adjust_ReturnBW()
3469 dml_pow((locals->ReturnBWToDCNPerState * locals->UrgentLatency in dml20_ModeSupportAndSystemConfigurationFull()
3492 dml_pow((locals->ReturnBWToDCNPerState * locals->UrgentLatency in dml20_ModeSupportAndSystemConfigurationFull()
Ddisplay_mode_vba_20v2.c313 / dml_pow( in adjust_ReturnBW()
3576 dml_pow((locals->ReturnBWToDCNPerState * locals->UrgentLatency in dml20v2_ModeSupportAndSystemConfigurationFull()
3599 dml_pow((locals->ReturnBWToDCNPerState * locals->UrgentLatency in dml20v2_ModeSupportAndSystemConfigurationFull()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/
Ddml1_display_rq_dlg_calc.c1154 (unsigned int) (ref_freq_to_pix_freq * dml_pow(2, 19)); in dml1_rq_dlg_get_dlg_params()
1156 * dml_pow(2, 8)); in dml1_rq_dlg_get_dlg_params()
1159 ASSERT(disp_dlg_regs->refcyc_h_blank_end < (unsigned int) dml_pow(2, 13)); in dml1_rq_dlg_get_dlg_params()
1176 + min_dst_y_ttu_vblank) * dml_pow(2, 2)); in dml1_rq_dlg_get_dlg_params()
1177 ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int) dml_pow(2, 18)); in dml1_rq_dlg_get_dlg_params()
1441 ASSERT(disp_dlg_regs->refcyc_x_after_scaler < (unsigned int) dml_pow(2, 13)); in dml1_rq_dlg_get_dlg_params()
1451 disp_dlg_regs->dst_y_prefetch = (unsigned int) (dst_y_prefetch * dml_pow(2, 2)); in dml1_rq_dlg_get_dlg_params()
1462 disp_dlg_regs->dst_y_per_vm_vblank = (unsigned int) (dst_y_per_vm_vblank * dml_pow(2, 2)); in dml1_rq_dlg_get_dlg_params()
1466 disp_dlg_regs->dst_y_per_row_vblank = (unsigned int) (dst_y_per_row_vblank * dml_pow(2, 2)); in dml1_rq_dlg_get_dlg_params()
1520 disp_dlg_regs->vratio_prefetch = (unsigned int) dml_pow(2, 21) - 1; in dml1_rq_dlg_get_dlg_params()
[all …]
Ddml_inline_defs.h100 static inline double dml_pow(double a, int exp) in dml_pow() function