Home
last modified time | relevance | path

Searched refs:dml_max (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/
Ddml_inline_defs.h47 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()
Ddml1_display_rq_dlg_calc.c1167 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()
1366 max_vinit_l = interlaced ? dml_max(vinit_l, vinit_bot_l) : vinit_l; in dml1_rq_dlg_get_dlg_params()
1367 max_vinit_c = interlaced ? dml_max(vinit_c, vinit_bot_c) : vinit_c; in dml1_rq_dlg_get_dlg_params()
1411 t_vm_us = dml_max( in dml1_rq_dlg_get_dlg_params()
1413 dml_max((double) vm_bytes / prefetch_bw, t_vm_us)); in dml1_rq_dlg_get_dlg_params()
1416 t_vm_us = dml_max(mode_lib->soc.urgent_latency_us, t_vm_us); in dml1_rq_dlg_get_dlg_params()
1418 t_vm_us = dml_max(vm_bytes / flip_bw, t_vm_us); in dml1_rq_dlg_get_dlg_params()
[all …]
Ddisplay_mode_vba.c1125 double CalculateWriteBackDISPCLK = 1.01 * PixelClock * dml_max( in CalculateWriteBackDISPCLK()
1127dml_max((WritebackLumaVTaps * dml_ceil(1.0 / WritebackVRatio, 1) * dml_ceil(WritebackDestinationWi… in CalculateWriteBackDISPCLK()
1132 CalculateWriteBackDISPCLK = dml_max(CalculateWriteBackDISPCLK, 1.01 * PixelClock * dml_max( in CalculateWriteBackDISPCLK()
1134dml_max((WritebackChromaVTaps * dml_ceil(1 / (2 * WritebackVRatio), 1) * dml_ceil(WritebackDestina… in CalculateWriteBackDISPCLK()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn20/
Ddisplay_mode_vba_20.c551 *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 …]
Ddisplay_mode_vba_20v2.c504 …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 …]
Ddisplay_rq_dlg_calc_20.c1091 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()
Ddisplay_rq_dlg_calc_20v2.c1092 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()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn21/
Ddisplay_mode_vba_21.c760 *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()
821 Tvm_oto = dml_max(*Tno_bw + PDEAndMetaPTEBytesFrame * HostVMInefficiencyFactor / prefetch_bw_oto, in CalculatePrefetchSchedule()
822dml_max(UrgentExtraLatency + UrgentLatency * (GPUVMPageTableLevels * (HostVMDynamicLevels + 1) - 1… in CalculatePrefetchSchedule()
828 Tr0_oto = dml_max( in CalculatePrefetchSchedule()
830 dml_max(UrgentLatency * (HostVMDynamicLevels + 1), dml_max(LineTime - Tvm_oto, LineTime / 4))); in CalculatePrefetchSchedule()
912 …TimeForFetchingMetaPTE = dml_max(*Tno_bw + (double) PDEAndMetaPTEBytesFrame * HostVMInefficiencyFa… in CalculatePrefetchSchedule()
913dml_max(UrgentExtraLatency + UrgentLatency * (GPUVMPageTableLevels * (HostVMDynamicLevels + 1) - 1… in CalculatePrefetchSchedule()
[all …]
Ddisplay_rq_dlg_calc_21.c1138 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()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddisplay_mode_vba_30.c1003 dst_y_prefetch_equ = VStartup - (Tsetup + dml_max(TWait + TCalc, *Tdmdl)) / LineTime in CalculatePrefetchSchedule()
1006 Lsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC); in CalculatePrefetchSchedule()
1200 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0); in CalculatePrefetchSchedule()
1203 *VRatioPrefetchY = dml_max((double) PrefetchSourceLinesY / LinesToRequestPrefetchPixelData, in CalculatePrefetchSchedule()
1205 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0); in CalculatePrefetchSchedule()
1214 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0); in CalculatePrefetchSchedule()
1218 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, in CalculatePrefetchSchedule()
1220 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0); in CalculatePrefetchSchedule()
1278 *prefetch_vmrow_bw = dml_max(prefetch_vm_bw, prefetch_row_bw); in CalculatePrefetchSchedule()
1637 MaxPartialSwath = dml_max(1U, MaxPartialSwath); in CalculatePrefetchSourceLines()
[all …]
Ddisplay_rq_dlg_calc_30.c1242 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml_rq_dlg_get_dlg_params()
1244 line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us in dml_rq_dlg_get_dlg_params()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn31/
Ddisplay_mode_vba_31.c1059 max_Tsw = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime;
1061 prefetch_bw_oto = dml_max(prefetch_bw_pr, prefetch_sw_bytes / max_Tsw);
1063 min_Lsw = dml_max(1, dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) / max_vratio_pre);
1064 Lsw_oto = dml_ceil(4 * dml_max(prefetch_sw_bytes / prefetch_bw_oto / LineTime, min_Lsw), 1) / 4;
1107 …dst_y_prefetch_equ = VStartup - (*TSetup + dml_max(TWait + TCalc, *Tdmdl)) / LineTime - (*DSTYAft…
1111 …dep_bytes = dml_max(PDEAndMetaPTEBytesFrame * HostVMInefficiencyFactor, MetaRowByte + PixelPTEByte…
1306 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0);
1314 *VRatioPrefetchY = dml_max(
1317 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0);
1331 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0);
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddisplay_mode_vba_314.c1080 max_Tsw = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime;
1082 prefetch_bw_oto = dml_max(prefetch_bw_pr, prefetch_sw_bytes / max_Tsw);
1084 min_Lsw = dml_max(1, dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) / max_vratio_pre);
1085 Lsw_oto = dml_ceil(4 * dml_max(prefetch_sw_bytes / prefetch_bw_oto / LineTime, min_Lsw), 1) / 4;
1128 …dst_y_prefetch_equ = VStartup - (*TSetup + dml_max(TWait + TCalc, *Tdmdl)) / LineTime - (*DSTYAft…
1132 …dep_bytes = dml_max(PDEAndMetaPTEBytesFrame * HostVMInefficiencyFactor, MetaRowByte + PixelPTEByte…
1327 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0);
1335 *VRatioPrefetchY = dml_max(
1338 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0);
1352 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0);
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddisplay_mode_vba_util_32.c248 *DPPCLKUsingSingleDPP = dml_max(DPPCLKUsingSingleDPPLuma, DPPCLKUsingSingleDPPChroma); in dml32_CalculateSinglePipeDPPCLKAndSCLThroughput()
957 DETBufferSizeInKByte[0] = dml_max(nomDETInKByte, dml_ceil(2.0 * in dml32_CalculateDETBufferSize()
994 minDET_pipe = dml_max(128, dml_ceil(((double)RoundedUpMaxSwathSizeBytesY[k] + in dml32_CalculateDETBufferSize()
1566 *GlobalDPPCLK = dml_max(*GlobalDPPCLK, Dppclk[k]); in dml32_CalculateDPPCLK()
1703 return dml_max(PixelClock / 4.0 * OutputBpp / 24.0, 25.0); in dml32_RequiredDTBCLK()
2319 HostVMDynamicLevels = dml_max(0, (int) HostVMMaxNonCachedPageTableLevels - 1); in dml32_CalculateVMAndRowBytes()
2321 HostVMDynamicLevels = dml_max(0, (int) HostVMMaxNonCachedPageTableLevels - 2); in dml32_CalculateVMAndRowBytes()
2585 MaxPartialSwath = dml_max(1, (unsigned int) (vp_start_rot + *VInitPreFill - 1) % SwathHeight); in dml32_CalculatePrefetchSourceLines()
2589 MaxPartialSwath = dml_max(1, (unsigned int) (*VInitPreFill - 2) % SwathHeight); in dml32_CalculatePrefetchSourceLines()
2591 MaxPartialSwath = dml_max(1, (unsigned int) (*VInitPreFill + SwathHeight - 2) % SwathHeight); in dml32_CalculatePrefetchSourceLines()
[all …]
Ddisplay_mode_vba_32.c87 v->WritebackDISPCLK = dml_max(v->WritebackDISPCLK, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
105 v->DISPCLK_calculated = dml_max(v->DISPCLK_calculated, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
618 dml_max(v->WritebackDelay[mode_lib->vba.VoltageLevel][k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
699 mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]) - dml_max(1.0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
717 v->MaximumMaxVStartupLines = dml_max(v->MaximumMaxVStartupLines, v->MaxVStartupLines[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1237 v->WritebackAllowDRAMClockChangeEndPosition[k] = dml_max(0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1240 v->WritebackAllowFCLKChangeEndPosition[k] = dml_max(0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1377 v->MinTTUVBlank[k] = dml_max(v->Watermark.StutterEnterPlusExitWatermark, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1445 + dml_max(1.0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1939 * dml_max(mode_lib->vba.HRatio[k], 1.0) / mode_lib->vba.LBBitPerPixel[k] in dml32_ModeSupportAndSystemConfigurationFull()
[all …]