| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dml/ |
| H A D | dml_inline_defs.h | 47 static inline double dml_max(double a, double b) in dml_max() function 54 return dml_max(dml_max(a, b), c); in dml_max3() 59 return dml_max(dml_max(a, b), dml_max(c, d)); in dml_max4() 64 return dml_max(dml_max4(a, b, c, d), e); in dml_max5()
|
| H A D | dml1_display_rq_dlg_calc.c | 1167 min_ttu_vblank = dml_max(dlg_sys_param.t_sr_wm_us, min_ttu_vblank); in dml1_rq_dlg_get_dlg_params() 1169 min_ttu_vblank = dml_max(dlg_sys_param.t_mclk_wm_us, min_ttu_vblank); in dml1_rq_dlg_get_dlg_params() 1305 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml1_rq_dlg_get_dlg_params() 1307 line_wait = dml_max( in dml1_rq_dlg_get_dlg_params() 1370 max_vinit_l = interlaced ? dml_max(vinit_l, vinit_bot_l) : vinit_l; in dml1_rq_dlg_get_dlg_params() 1371 max_vinit_c = interlaced ? dml_max(vinit_c, vinit_bot_c) : vinit_c; in dml1_rq_dlg_get_dlg_params() 1415 t_vm_us = dml_max( in dml1_rq_dlg_get_dlg_params() 1417 dml_max((double) vm_bytes / prefetch_bw, t_vm_us)); in dml1_rq_dlg_get_dlg_params() 1420 t_vm_us = dml_max(mode_lib->soc.urgent_latency_us, t_vm_us); in dml1_rq_dlg_get_dlg_params() 1422 t_vm_us = dml_max(vm_bytes / flip_bw, t_vm_us); in dml1_rq_dlg_get_dlg_params() [all …]
|
| H A D | display_mode_vba.c | 870 double CalculateWriteBackDISPCLK = 1.01 * PixelClock * dml_max( in CalculateWriteBackDISPCLK() 872 …dml_max((WritebackLumaVTaps * dml_ceil(1.0 / WritebackVRatio, 1) * dml_ceil(WritebackDestinationWi… in CalculateWriteBackDISPCLK() 877 CalculateWriteBackDISPCLK = dml_max(CalculateWriteBackDISPCLK, 1.01 * PixelClock * dml_max( in CalculateWriteBackDISPCLK() 879 …dml_max((WritebackChromaVTaps * dml_ceil(1 / (2 * WritebackVRatio), 1) * dml_ceil(WritebackDestina… in CalculateWriteBackDISPCLK()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
| H A D | display_mode_vba_20.c | 551 *VReadyOffsetPix = dml_max( in CalculatePrefetchSchedule() 563 Tdm = dml_max(0.0, UrgentExtraLatency - TCalc); in CalculatePrefetchSchedule() 594 dst_y_prefetch_equ = VStartup - dml_max(TCalc + TWait, XFCRemoteSurfaceFlipDelay) / LineTime in CalculatePrefetchSchedule() 598 Tsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; in CalculatePrefetchSchedule() 607 dml_max( in CalculatePrefetchSchedule() 609 dml_max( in CalculatePrefetchSchedule() 619 Tr0_oto = dml_max( in CalculatePrefetchSchedule() 621 dml_max(UrgentLatencyPixelDataOnly, dml_max(LineTime - Tvm_oto, LineTime / 4))); in CalculatePrefetchSchedule() 663 dml_max( in CalculatePrefetchSchedule() 667 dml_max( in CalculatePrefetchSchedule() [all …]
|
| H A D | display_mode_vba_20v2.c | 504 …mode_lib->vba.LastPixelOfLineExtraWatermark = dml_max(mode_lib->vba.LastPixelOfLineExtraWatermark,… in CalculateDelayAfterScaler() 508 …mode_lib->vba.LastPixelOfLineExtraWatermark = dml_max(mode_lib->vba.LastPixelOfLineExtraWatermark,… in CalculateDelayAfterScaler() 614 *VReadyOffsetPix = dml_max( in CalculatePrefetchSchedule() 626 Tdm = dml_max(0.0, UrgentExtraLatency - TCalc); in CalculatePrefetchSchedule() 654 dst_y_prefetch_equ = VStartup - dml_max(TCalc + TWait, XFCRemoteSurfaceFlipDelay) / LineTime in CalculatePrefetchSchedule() 658 Tsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; in CalculatePrefetchSchedule() 667 dml_max( in CalculatePrefetchSchedule() 669 dml_max( in CalculatePrefetchSchedule() 679 Tr0_oto = dml_max( in CalculatePrefetchSchedule() 681 dml_max(UrgentLatencyPixelDataOnly, dml_max(LineTime - Tvm_oto, LineTime / 4))); in CalculatePrefetchSchedule() [all …]
|
| H A D | display_rq_dlg_calc_20.c | 1091 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml20_rq_dlg_get_dlg_params() 1093 line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us in dml20_rq_dlg_get_dlg_params()
|
| H A D | display_rq_dlg_calc_20v2.c | 1092 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml20v2_rq_dlg_get_dlg_params() 1094 line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us in dml20v2_rq_dlg_get_dlg_params()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
| H A D | display_mode_vba_21.c | 760 *VReadyOffsetPix = dml_max( in CalculatePrefetchSchedule() 772 Tdm = dml_max(0.0, UrgentExtraLatency - TCalc); in CalculatePrefetchSchedule() 801 dst_y_prefetch_equ = VStartup - dml_max(TCalc + TWait, XFCRemoteSurfaceFlipDelay) / LineTime in CalculatePrefetchSchedule() 805 Tsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; in CalculatePrefetchSchedule() 819 Tvm_oto = dml_max(*Tno_bw + PDEAndMetaPTEBytesFrame * HostVMInefficiencyFactor / prefetch_bw_oto, in CalculatePrefetchSchedule() 820 …dml_max(UrgentExtraLatency + UrgentLatency * (GPUVMPageTableLevels * (HostVMDynamicLevels + 1) - 1… in CalculatePrefetchSchedule() 826 Tr0_oto = dml_max( in CalculatePrefetchSchedule() 828 dml_max(UrgentLatency * (HostVMDynamicLevels + 1), dml_max(LineTime - Tvm_oto, LineTime / 4))); in CalculatePrefetchSchedule() 907 …TimeForFetchingMetaPTE = dml_max(*Tno_bw + (double) PDEAndMetaPTEBytesFrame * HostVMInefficiencyFa… in CalculatePrefetchSchedule() 908 …dml_max(UrgentExtraLatency + UrgentLatency * (GPUVMPageTableLevels * (HostVMDynamicLevels + 1) - 1… in CalculatePrefetchSchedule() [all …]
|
| H A D | display_rq_dlg_calc_21.c | 1138 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml_rq_dlg_get_dlg_params() 1140 line_wait = dml_max( in dml_rq_dlg_get_dlg_params()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
| H A D | display_mode_vba_30.c | 1072 dst_y_prefetch_equ = VStartup - (Tsetup + dml_max(TWait + TCalc, *Tdmdl)) / LineTime in CalculatePrefetchSchedule() 1075 Lsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC); in CalculatePrefetchSchedule() 1269 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0); in CalculatePrefetchSchedule() 1272 *VRatioPrefetchY = dml_max((double) PrefetchSourceLinesY / LinesToRequestPrefetchPixelData, in CalculatePrefetchSchedule() 1274 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0); in CalculatePrefetchSchedule() 1283 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0); in CalculatePrefetchSchedule() 1287 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, in CalculatePrefetchSchedule() 1289 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0); in CalculatePrefetchSchedule() 1347 *prefetch_vmrow_bw = dml_max(prefetch_vm_bw, prefetch_row_bw); in CalculatePrefetchSchedule() 1706 MaxPartialSwath = dml_max(1U, MaxPartialSwath); in CalculatePrefetchSourceLines() [all …]
|
| H A D | display_rq_dlg_calc_30.c | 1331 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml_rq_dlg_get_dlg_params() 1333 line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us in dml_rq_dlg_get_dlg_params()
|