/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/ |
D | dml_inline_defs.h | 32 static inline double dml_min(double a, double b) in dml_min() function 39 return dml_min(dml_min(a, b), c); in dml_min3() 44 return dml_min(dml_min(a, b), dml_min(c, d)); in dml_min4()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | display_mode_vba_util_32.c | 221 *PSCL_THROUGHPUT = dml_min(MaxDCHUBToPSCLThroughput, MaxPSCLToLBThroughput * HRatio / in dml32_CalculateSinglePipeDPPCLKAndSCLThroughput() 224 *PSCL_THROUGHPUT = dml_min(MaxDCHUBToPSCLThroughput, MaxPSCLToLBThroughput); in dml32_CalculateSinglePipeDPPCLKAndSCLThroughput() 227 DPPCLKUsingSingleDPPLuma = PixelClock * dml_max3(VTaps / 6 * dml_min(1, HRatio), HRatio * VRatio / in dml32_CalculateSinglePipeDPPCLKAndSCLThroughput() 239 *PSCL_THROUGHPUT_CHROMA = dml_min(MaxDCHUBToPSCLThroughput, MaxPSCLToLBThroughput * in dml32_CalculateSinglePipeDPPCLKAndSCLThroughput() 242 *PSCL_THROUGHPUT_CHROMA = dml_min(MaxDCHUBToPSCLThroughput, MaxPSCLToLBThroughput); in dml32_CalculateSinglePipeDPPCLKAndSCLThroughput() 244 DPPCLKUsingSingleDPPChroma = PixelClock * dml_max3(VTapsChroma / 6 * dml_min(1, HRatioChroma), in dml32_CalculateSinglePipeDPPCLKAndSCLThroughput() 753 SwathWidthY[k] = dml_min(SwathWidthdoubleDPPY[k], in dml32_CalculateSwathWidth() 756 SwathWidthY[k] = dml_min(SwathWidthdoubleDPPY[k], in dml32_CalculateSwathWidth() 794 swath_width_luma_ub[k] = dml_min(surface_width_ub_l, in dml32_CalculateSwathWidth() 802 swath_width_luma_ub[k] = dml_min(surface_width_ub_l, in dml32_CalculateSwathWidth() [all …]
|
D | display_mode_vba_32.c | 792 dml_min(v->VStartupLines, v->MaxVStartupLines[k]), in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 842 v->VStartup[k] = dml_min(v->VStartupLines, v->MaxVStartupLines[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1950 …v->MaximumSwathWidthLuma[k] = dml_min(v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.Ma… in dml32_ModeSupportAndSystemConfigurationFull() 1952 …v->MaximumSwathWidthChroma[k] = dml_min(v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.… in dml32_ModeSupportAndSystemConfigurationFull() 3300 dml_min(v->MaxVStartup, v->MaximumVStartup[i][j][k]), in dml32_ModeSupportAndSystemConfigurationFull()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | display_mode_vba_20.c | 237 mode_lib->vba.FabricAndDRAMBandwidth = dml_min( in dml20_recalculate() 257 dml_min( in adjust_ReturnBW() 280 dml_min( in adjust_ReturnBW() 1040 dml_min( in CalculateVMAndRowBytes() 1045 dml_min( in CalculateVMAndRowBytes() 1064 *dpte_row_height = dml_min(PixelPTEReqWidth, *MacroTileWidth); in CalculateVMAndRowBytes() 1119 mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1128 mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1137 * dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1160 dml_min( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
D | display_mode_vba_20v2.c | 261 mode_lib->vba.FabricAndDRAMBandwidth = dml_min( in dml20v2_recalculate() 281 dml_min( in adjust_ReturnBW() 304 dml_min( in adjust_ReturnBW() 1100 dml_min( in CalculateVMAndRowBytes() 1105 dml_min( in CalculateVMAndRowBytes() 1124 *dpte_row_height = dml_min(PixelPTEReqWidth, *MacroTileWidth); in CalculateVMAndRowBytes() 1179 mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1188 mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1197 * dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1220 dml_min( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
D | display_rq_dlg_calc_20.c | 134 * dml_min((double) recout_width, (double) hactive / 2.0) in get_refcyc_per_delivery() 607 log2_dpte_row_height_linear = dml_floor(dml_log2(dml_min(64 * 1024 * pde_buf_entries in get_meta_and_pte_attr()
|
D | display_rq_dlg_calc_20v2.c | 134 * dml_min((double) recout_width, (double) hactive / 2.0) in get_refcyc_per_delivery() 607 log2_dpte_row_height_linear = dml_floor(dml_log2(dml_min(64 * 1024 * pde_buf_entries in get_meta_and_pte_attr()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
D | display_mode_vba_314.c | 1076 prefetch_bw_pr = dml_min(1, myPipe->VRatio) * prefetch_bw_pr; 1589 max_vp_horz_width = dml_min((double) MAS_vp_horz_limit, detile_buf_vp_horz_limit); 1590 max_vp_vert_height = dml_min((double) MAS_vp_vert_limit, detile_buf_vp_vert_limit); 1959 …*dpte_row_height = dml_min(128, 1 << (unsigned int) dml_floor(dml_log2(PTEBufferSizeInRequests * *… 1967 *dpte_row_height = dml_min(*PixelPTEReqWidth, *MacroTileWidth); 2023 double IdealFabricAndSDPPortBandwidthPerState = dml_min( 2029 v->ReturnBW = dml_min( 2033 v->ReturnBW = dml_min( 2062 v->PSCL_THROUGHPUT_LUMA[k] = dml_min( 2066 v->PSCL_THROUGHPUT_LUMA[k] = dml_min(v->MaxDCHUBToPSCLThroughput, v->MaxPSCLToLBThroughput); [all …]
|
D | display_rq_dlg_calc_314.c | 147 …* dml_min((double) recout_width, (double) hactive / ((unsigned int) odm_combine * 2)) / pclk_freq_… in get_refcyc_per_delivery() 785 vp_width = dml_min(full_src_vp_width, src_hactive_odm); in get_surf_rq_param() 788 vp_height = dml_min(full_src_vp_width, src_hactive_odm); in get_surf_rq_param()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
D | display_mode_vba_31.c | 1058 prefetch_bw_pr = dml_min(1, myPipe->VRatio) * prefetch_bw_pr; 1572 max_vp_horz_width = dml_min((double) MAS_vp_horz_limit, detile_buf_vp_horz_limit); 1573 max_vp_vert_height = dml_min((double) MAS_vp_vert_limit, detile_buf_vp_vert_limit); 1942 …*dpte_row_height = dml_min(128, 1 << (unsigned int) dml_floor(dml_log2(PTEBufferSizeInRequests * *… 1950 *dpte_row_height = dml_min(*PixelPTEReqWidth, *MacroTileWidth); 2006 double IdealFabricAndSDPPortBandwidthPerState = dml_min( 2011 v->ReturnBW = dml_min( 2015 v->ReturnBW = dml_min( 2044 v->PSCL_THROUGHPUT_LUMA[k] = dml_min( 2048 v->PSCL_THROUGHPUT_LUMA[k] = dml_min(v->MaxDCHUBToPSCLThroughput, v->MaxPSCLToLBThroughput); [all …]
|
D | display_rq_dlg_calc_31.c | 59 …* dml_min((double) recout_width, (double) hactive / ((unsigned int) odm_combine * 2)) / pclk_freq_… in get_refcyc_per_delivery() 697 vp_width = dml_min(full_src_vp_width, src_hactive_odm); in get_surf_rq_param() 700 vp_height = dml_min(full_src_vp_width, src_hactive_odm); in get_surf_rq_param()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
D | display_mode_vba_21.c | 847 *DestinationLinesForPrefetch = dml_min(*DestinationLinesForPrefetch, 63.75); in CalculatePrefetchSchedule() 1418 *dpte_row_height = dml_min(128, in CalculateVMAndRowBytes() 1430 *dpte_row_height = dml_min(*PixelPTEReqWidth, *MacroTileWidth); in CalculateVMAndRowBytes() 1503 locals->PSCL_THROUGHPUT_LUMA[k] = dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1512 locals->PSCL_THROUGHPUT_LUMA[k] = dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1521 * dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1544 dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1554 locals->PSCL_THROUGHPUT_CHROMA[k] = dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1563 * dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1700 locals->SwathWidthY[k] = dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
D | display_rq_dlg_calc_21.c | 110 * dml_min((double) recout_width, (double) hactive / 2.0) in get_refcyc_per_delivery() 607 dml_min( in get_meta_and_pte_attr() 732 vp_width = dml_min(full_src_vp_width, src_hactive_half); in get_surf_rq_param() 735 vp_height = dml_min(full_src_vp_width, src_hactive_half); in get_surf_rq_param()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
D | display_mode_vba_30.c | 1425 max_vp_horz_width = dml_min((double) MAS_vp_horz_limit, detile_buf_vp_horz_limit); in CalculateDCCConfiguration() 1426 max_vp_vert_height = dml_min((double) MAS_vp_vert_limit, detile_buf_vp_vert_limit); in CalculateDCCConfiguration() 1805 …*dpte_row_height = dml_min(128, 1 << (unsigned int) dml_floor(dml_log2(PTEBufferSizeInRequests * *… in CalculateVMAndRowBytes() 1813 *dpte_row_height = dml_min(*PixelPTEReqWidth, *MacroTileWidth); in CalculateVMAndRowBytes() 1902 v->PSCL_THROUGHPUT_LUMA[k] = dml_min(v->MaxDCHUBToPSCLThroughput, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1905 v->PSCL_THROUGHPUT_LUMA[k] = dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1911 * dml_max(v->vtaps[k] / 6.0 * dml_min(1.0, v->HRatio[k]), in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1927 v->PSCL_THROUGHPUT_CHROMA[k] = dml_min(v->MaxDCHUBToPSCLThroughput, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1930 v->PSCL_THROUGHPUT_CHROMA[k] = dml_min( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1935 * dml_max3(v->VTAPsChroma[k] / 6.0 * dml_min(1.0, v->HRatioChroma[k]), in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
D | display_rq_dlg_calc_30.c | 58 * dml_min((double)recout_width, (double)hactive / ((unsigned int)odm_combine*2)) in get_refcyc_per_delivery() 701 vp_width = dml_min(full_src_vp_width, src_hactive_odm); in get_surf_rq_param() 704 vp_height = dml_min(full_src_vp_width, src_hactive_odm); in get_surf_rq_param()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/ |
D | display_mode_util.c | 124 dml_float_t dml_min(dml_float_t x, dml_float_t y) in dml_min() function 138 return dml_min(dml_min(x, y), z); in dml_min3() 143 return dml_min(dml_min(dml_min(x, y), z), w); in dml_min4()
|
D | display_mode_util.h | 40 __DML_DLL_EXPORT__ dml_float_t dml_min(dml_float_t x, dml_float_t y);
|
D | display_mode_core.c | 2037 …min_row_time = dml_min(dpte_row_height * LineTime / VRatio, dpte_row_height_chroma * LineTime / VR… in CalculateFlipSchedule() 2039 …min_row_time = dml_min(meta_row_height * LineTime / VRatio, meta_row_height_chroma * LineTime / VR… in CalculateFlipSchedule() 2049 min_row_time = dml_min(dpte_row_height * LineTime / VRatio, meta_row_height * LineTime / VRatio); in CalculateFlipSchedule() 2196 …max_vp_horz_width = (dml_uint_t)(dml_min((dml_float_t) MAS_vp_horz_limit, detile_buf_vp_horz_limit… in CalculateDCCConfiguration() 2197 …max_vp_vert_height = (dml_uint_t)(dml_min((dml_float_t) MAS_vp_vert_limit, detile_buf_vp_vert_limi… in CalculateDCCConfiguration() 2616 …*dpte_row_height = (dml_uint_t)(dml_min(128, 1 << (dml_uint_t) dml_floor(dml_log2(PTEBufferSizeInR… in CalculateVMAndRowBytes() 2653 *dpte_row_height = (dml_uint_t)(dml_min(*PixelPTEReqWidth, MacroTileWidth)); in CalculateVMAndRowBytes() 2772 MaxLinkBPP = dml_min(MaxLinkBPP, 16); in TruncToValidBPP() 2774 MaxLinkBPP = dml_min(MaxLinkBPP, 32); in TruncToValidBPP() 2780 MaxLinkBPP = dml_min(MaxLinkBPP, 16); in TruncToValidBPP() [all …]
|