/openbmc/linux/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 | 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() 1425 t_r0_us = dml_max( in dml1_rq_dlg_get_dlg_params() 1428 t_r0_us = dml_max((double) (line_time_in_us - t_vm_us), t_r0_us); in dml1_rq_dlg_get_dlg_params() 1431 t_r0_us = dml_max(mode_lib->soc.urgent_latency_us * 2.0, t_r0_us); in dml1_rq_dlg_get_dlg_params() [all …]
|
H A D | display_mode_vba.c | 1130 double CalculateWriteBackDISPCLK = 1.01 * PixelClock * dml_max( in CalculateWriteBackDISPCLK() 1132 …dml_max((WritebackLumaVTaps * dml_ceil(1.0 / WritebackVRatio, 1) * dml_ceil(WritebackDestinationWi… in CalculateWriteBackDISPCLK() 1137 CalculateWriteBackDISPCLK = dml_max(CalculateWriteBackDISPCLK, 1.01 * PixelClock * dml_max( in CalculateWriteBackDISPCLK() 1139 …dml_max((WritebackChromaVTaps * dml_ceil(1 / (2 * WritebackVRatio), 1) * dml_ceil(WritebackDestina… in CalculateWriteBackDISPCLK()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | display_mode_vba_20.c | 607 dml_max( in CalculatePrefetchSchedule() 663 dml_max( in CalculatePrefetchSchedule() 682 dml_max( in CalculatePrefetchSchedule() 1100 dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1208 dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1218 dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1226 dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1236 dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1466 dml_max( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 2989 dml_max( in CalculateWriteBackDelay() [all …]
|
H A D | display_mode_vba_20v2.c | 667 dml_max( in CalculatePrefetchSchedule() 669 dml_max( in CalculatePrefetchSchedule() 723 dml_max( in CalculatePrefetchSchedule() 742 dml_max( in CalculatePrefetchSchedule() 1160 dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1268 dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1278 dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1286 dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1296 dml_max( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 3062 dml_max( in CalculateWriteBackDelay() [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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
H A D | display_mode_vba_21.c | 925 dml_max( in CalculatePrefetchSchedule() 1484 dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1592 dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1602 dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1610 dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1620 dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 2570 dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 3076 dml_max( in CalculateWriteBackDelay() 3091 dml_max( in CalculateWriteBackDelay() 3848 dml_max( in dml21_ModeSupportAndSystemConfigurationFull() [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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | display_mode_vba_30.c | 1945 v->DPPCLKUsingSingleDPP[k] = dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1975 v->DISPCLKWithRamping = dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1978 v->DISPCLKWithoutRamping = dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 2010 v->GlobalDPPCLK = dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 2643 - dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 2937 v->MinTTUVBlank[k] = dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 2939 dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 2945 v->MinTTUVBlank[k] = dml_max( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 4594 v->WritebackDelayTime[k] = dml_max( in dml30_ModeSupportAndSystemConfigurationFull() 4930 - dml_max( in dml30_ModeSupportAndSystemConfigurationFull() [all …]
|
H A D | display_rq_dlg_calc_30.c | 1242 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
H A D | display_mode_vba_31.c | 1063 min_Lsw = dml_max(1, dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) / max_vratio_pre); 1314 *VRatioPrefetchY = dml_max( 1340 *VRatioPrefetchC = dml_max( 2035 v->WritebackDISPCLK = dml_max( 2061 * dml_max( 2556 - dml_max( 2838 - dml_max( 3097 v->MinTTUVBlank[k] = dml_max( 3543 v->final_flip_bw[k] = dml_max( 5017 - dml_max( [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
H A D | display_mode_vba_314.c | 1084 min_Lsw = dml_max(1, dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) / max_vratio_pre); 1335 *VRatioPrefetchY = dml_max( 1361 *VRatioPrefetchC = dml_max( 2056 v->WritebackDISPCLK = dml_max( 2082 * dml_max( 2120 v->DISPCLKWithRamping = dml_max( 2128 v->DISPCLKWithRamping = dml_max( 2859 - dml_max( 3118 v->MinTTUVBlank[k] = dml_max( 3651 v->final_flip_bw[k] = dml_max( [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | display_mode_vba_util_32.c | 1566 *GlobalDPPCLK = dml_max(*GlobalDPPCLK, Dppclk[k]); in dml32_CalculateDPPCLK() 3069 dml_max(1.0, ExpectedVRatioPrefetch) * in dml32_UseMinimumDCFCLK() 3070 dml_max(1.0, ExpectedVRatioPrefetch / 4); in dml32_UseMinimumDCFCLK() 3218 *VReadyOffsetPix = dml_ceil(dml_max(150.0 / Dppclk, in dml32_CalculateVUpdateAndDynamicMetadataParameters() 3644 min_Lsw = dml_max(min_Lsw, 1.0); in dml32_CalculatePrefetchSchedule() 3946 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0); in dml32_CalculatePrefetchSchedule() 3955 dml_max((double) PrefetchSourceLinesY / in dml32_CalculatePrefetchSchedule() 3973 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0); in dml32_CalculatePrefetchSchedule() 3983 dml_max(*VRatioPrefetchC, in dml32_CalculatePrefetchSchedule() 5951 StutterBurstTime = dml_max(StutterBurstTime, in dml32_CalculateStutterEfficiency() [all …]
|
H A D | display_mode_vba_32.c | 87 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() 1237 v->WritebackAllowDRAMClockChangeEndPosition[k] = dml_max(0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1240 v->WritebackAllowFCLKChangeEndPosition[k] = dml_max(0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1445 + dml_max(1.0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1947 + dml_max(dml_ceil(mode_lib->vba.VRatioChroma[k], 1.0) - 2, in dml32_ModeSupportAndSystemConfigurationFull() 2230 mode_lib->vba.WritebackRequiredDISPCLK = dml_max( in dml32_ModeSupportAndSystemConfigurationFull() 2936 dml_max(mode_lib->vba.WritebackDelayTime[k], in dml32_ModeSupportAndSystemConfigurationFull() 2967 - dml_max(1.0, dml_ceil(1.0 * in dml32_ModeSupportAndSystemConfigurationFull() [all …]
|