Home
last modified time | relevance | path

Searched refs:math_min2 (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/
H A Dlib_float_math.c29 double math_min2(const double arg1, const double arg2) in math_min2() function
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_dpmm/
H A Ddml2_dpmm_dcn4.c264 …*rounded_dispclk_khz = pll_frequency_khz / (unsigned long) math_min2(pll_frequency_khz / dispclk_k… in round_to_non_dfs_granularity()
266 …*rounded_dpprefclk_khz = pll_frequency_khz / (unsigned long) math_min2(pll_frequency_khz / dpprefc… in round_to_non_dfs_granularity()
269 …*rounded_dtbrefclk_khz = pll_frequency_khz / (unsigned long) math_min2(pll_frequency_khz / dtbrefc… in round_to_non_dfs_granularity()
654 dispclk_khz = math_min2(dispclk_khz, in_out->min_clk_table->max_clocks_khz.dispclk); in map_mode_to_soc_dpm()
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/
H A Ddml2_core_dcn4_calcs.c790 *PSCL_THROUGHPUT = math_min2(MaxDCHUBToPSCLThroughput, MaxPSCLToLBThroughput * HRatio / math_ceil2((double)HTaps / 6.0, 1.0)); in CalculateSinglePipeDPPCLKAndSCLThroughput()
792 *PSCL_THROUGHPUT = math_min2(MaxDCHUBToPSCLThroughput, MaxPSCLToLBThroughput); in CalculateSinglePipeDPPCLKAndSCLThroughput()
795 DPPCLKUsingSingleDPPLuma = PixelClock * math_max3(VTaps / 6 * math_min2(1, HRatio), HRatio * VRatio / *PSCL_THROUGHPUT, 1); in CalculateSinglePipeDPPCLKAndSCLThroughput()
805 *PSCL_THROUGHPUT_CHROMA = math_min2(MaxDCHUBToPSCLThroughput, MaxPSCLToLBThroughput * HRatioChroma / math_ceil2((double)HTapsChroma / 6.0, 1.0)); in CalculateSinglePipeDPPCLKAndSCLThroughput()
807 *PSCL_THROUGHPUT_CHROMA = math_min2(MaxDCHUBToPSCLThroughput, MaxPSCLToLBThroughput); in CalculateSinglePipeDPPCLKAndSCLThroughput()
809 DPPCLKUsingSingleDPPChroma = PixelClock * math_max3(VTapsChroma / 6 * math_min2(1, HRatioChroma), in CalculateSinglePipeDPPCLKAndSCLThroughput()
881 SwathWidthY[k] = (unsigned int)(math_min2((double)SwathWidthSingleDPPY[k], math_round((double)display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_active / odm_hactive_factor * display_cfg->plane_descriptors[k].composition.scaler_info.plane0.h_ratio))); in CalculateSwathWidth()
943 swath_width_luma_ub[k] = (unsigned int)(math_min2(surface_width_ub_l, math_floor2(display_cfg->plane_descriptors[k].composition.viewport.plane0.x_start + SwathWidthY[k] + req_width_horz_y - 1, req_width_horz_y) - math_floor2(display_cfg->plane_descriptors[k].composition.viewport.plane0.x_start, req_width_horz_y))); in CalculateSwathWidth()
945 swath_width_luma_ub[k] = (unsigned int)(math_min2(surface_width_ub_l, math_ceil2((double)SwathWidthY[k] - 1, req_width_horz_y) + req_width_horz_y)); in CalculateSwathWidth()
951 swath_width_chroma_ub[k] = (unsigned int)(math_min2(surface_width_ub_ in CalculateSwathWidth()
[all...]
H A Ddml2_core_utils.c597 phantom->composition.viewport.plane0.height = (long int unsigned) math_min2(math_ceil2( in create_phantom_plane_from_main_plane()
600 phantom->composition.viewport.plane1.height = (long int unsigned) math_min2(math_ceil2( in create_phantom_plane_from_main_plane()
H A Ddml2_core_dcn4.c291 phantom->composition.viewport.plane0.height = (long int unsigned) math_min2(math_ceil2( in create_phantom_plane_from_main_plane()
294 phantom->composition.viewport.plane1.height = (long int unsigned) math_min2(math_ceil2( in create_phantom_plane_from_main_plane()
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/
H A Ddml2_pmo_dcn4_fams2.c1453 max_allow_time_us = math_min2( in is_config_schedulable()