Searched refs:math_max2 (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/ |
| H A D | lib_float_math.c | 38 double math_max2(const double arg1, const double arg2) in math_max2() function 71 return v3 > math_max2(v1, v2) ? v3 : math_max2(v1, v2); in math_max3() 81 return math_max3(v1, v2, v3) > math_max2(v4, v5) ? math_max3(v1, v2, v3) : math_max2(v4, v5); in math_max5()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/ |
| H A D | dml2_core_dcn5_calcs_dchub.c | 508 DETBufferSizeInKByte[0] = (unsigned int)math_max2(128.0, math_ceil2(2.0 * ((double)full_swath_bytes_l[0] + (double)full_swath_bytes_c[0]) / 1024.0, ConfigReturnBufferSegmentSizeInkByte)); in dcn5_calculate_det_buffer_size() 536 l->minDET_pipe = (unsigned int)(math_max2(128, math_ceil2(((double)full_swath_bytes_l[k] + (double)full_swath_bytes_c[k]) / 1024.0, ConfigReturnBufferSegmentSizeInkByte))); in dcn5_calculate_det_buffer_size() 910 *p->compbuf_reserved_space_64b = (unsigned int)math_ceil2(math_max2(*p->compbuf_reserved_space_64b, in dcn5_calculate_swath_and_det_configuration() 945 HostVMDynamicLevels = (unsigned int)math_max2(0, (double)HostVMMaxNonCachedPageTableLevels - 1); in dcn5_calculate_host_vm_dynamic_levels() 947 HostVMDynamicLevels = (unsigned int)math_max2(0, (double)HostVMMaxNonCachedPageTableLevels - 2); in dcn5_calculate_host_vm_dynamic_levels() 1019 MaxPartialSwath = (unsigned int)(math_max2(1, (unsigned int)(vp_start_rot + *VInitPreFill - 1) % SwathHeight)); in dcn5_calculate_prefetch_source_lines() 1023 MaxPartialSwath = (unsigned int)(math_max2(1, (unsigned int)(*VInitPreFill - 2) % SwathHeight)); in dcn5_calculate_prefetch_source_lines() 1025 MaxPartialSwath = (unsigned int)(math_max2(1, (unsigned int)(*VInitPreFill + SwathHeight - 2) % SwathHeight)); in dcn5_calculate_prefetch_source_lines() 1916 DCFClkDeepSleepPerSurface[k] = math_max2(__DML2_CALCS_DCFCLK_FACTOR__ * SwathWidthY[k] * BytePerPixelY[k] / 32.0 / DisplayPipeLineDeliveryTimeLuma, in dcn5_calculate_dcfclk_deep_sleep() 1921 DCFClkDeepSleepPerSurface[k] = math_max2(DCFClkDeepSleepPerSurfac in dcn5_calculate_dcfclk_deep_sleep() [all...] |
| H A D | dml2_core_dcn6_calcs_dchub.c | 32 max_vstartup_lines = vblank_size - (unsigned int)math_max2(1.0, math_ceil2(write_back_delay_us / line_time_us, 1.0)); in dcn6_calculate_max_vstartup() 559 p->nom_req_limit_alt[i] = (unsigned int)math_max2(p->svp_req_limit[i], math_ceil((copy_time_us) / line_time_us)); in dcn6_calculate_flip_schedule() 560 p->min_lead_dst_lines[i] = (unsigned int)math_ceil((copy_time_us + fw_delay + math_max2(svp_req_lim_us, max_prefetch_time_us)) / line_time_us); in dcn6_calculate_flip_schedule() 636 math_max2(Tvm_trips_flip_rounded + 2 * Tr0_trips_flip_rounded, (double)max_flip_time_us)); in dcn6_calculate_flip_schedule() 694 *final_flip_bw = math_max2(vm_bytes * HostVMInefficiencyFactor / (*dst_y_per_vm_flip * LineTime), in dcn6_rq_dlg_get_dlg_reg() 1242 s->LBLatencyHidingSourceLinesY[k] = (unsigned int)(math_min2((double)p->MaxLineBufferLines, math_floor2((double)p->LineBufferSize / LBBitPerPixel / ((double)p->SwathWidthY[k] / math_max2(h_ratio, 1.0)), 1)) - (v_taps - 1)); in dcn6_calculate_watermarks_and_dram_speed_change_support() 1243 s->LBLatencyHidingSourceLinesC[k] = (unsigned int)(math_min2((double)p->MaxLineBufferLines, math_floor2((double)p->LineBufferSize / LBBitPerPixel / ((double)p->SwathWidthC[k] / math_max2(h_ratio_c, 1.0)), 1)) - (v_taps_c - 1)); in dcn6_calculate_watermarks_and_dram_speed_change_support() 1612 *p->StutterEfficiencyNotIncludingVBlank = math_max2(0., 1 - (p->SRExitTime + l->StutterBurstTime) / *p->StutterPeriod) * 100; in dcn6_calculate_stutter_efficiency() 1613 *p->Z8StutterEfficiencyNotIncludingVBlank = math_max2(0., 1 - (p->SRExitZ8Time + l->StutterBurstTime) / *p->StutterPeriod) * 100; in dcn6_calculate_stutter_efficiency() 1614 *p->LowPowerStutterEfficiencyNotIncludingVBlank = math_max2( in dcn6_calculate_stutter_efficiency() [all...] |
| H A D | dml2_core_dcn5_funcs_mode_programming.c | 495 mode_lib->mp.WritebackDelay[k] = math_max2(mode_lib->mp.WritebackDelay[k], in dcn5_mode_programming() 552 mode_lib->mp.TripToMemory = math_max2(mode_lib->mp.UrgentLatency, mode_lib->mp.TripToMemory); in dcn5_mode_programming() 1142 mode_lib->mp.WritebackAllowDRAMClockChangeEndPosition[k] = math_max2(0, mode_lib->mp.VStartupMin[k] * display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total / in dcn5_mode_programming() 1144 mode_lib->mp.WritebackAllowFCLKChangeEndPosition[k] = math_max2(0, mode_lib->mp.VStartupMin[k] * display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total / in dcn5_mode_programming() 1431 mode_lib->mp.dcfclk_deep_sleep_hysteresis = (unsigned int)math_max2(32, (double)mode_lib->ip.pixel_chunk_size_kbytes * 1024 * 3 / 4 / 64 - min_return_latency_in_DCFCLK_cycles); in dcn5_mode_programming() 1739 (unsigned int) math_max2(0.0, (tmclk_us - (tvstartup_us - (tsetup_us + tcalc_us + tpre_us + tout_us))) / line_time_us);
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/ |
| H A D | dml2_pmo_dcn6_stage_optimizers.c | 143 *blackout_us = math_max2( in dcn6_get_params_for_pstate_type() 151 *blackout_us = math_max2( in dcn6_get_params_for_pstate_type() 461 math_max2(0.0, in dcn6_update_worksheet_for_pstate_admissibility() 468 math_max2(0.0, in dcn6_update_worksheet_for_pstate_admissibility() 498 reserved_vblank_time_ns = (long)math_max2( in dcn6_update_worksheet_for_pstate_admissibility() 697 math_max2(ip_caps->fams2.drr_programming_delay_us, ip_caps->fams2.allow_programming_delay_us)) * in dcn6_build_pstate_meta_per_stream() 776 math_max2(0.0, in dcn6_build_pstate_meta_per_stream() 777 timing->v_active - math_max2(1.0, stream_pstate_meta->min_allow_width_otg_vlines) - in dcn6_build_pstate_meta_per_stream() 801 math_max2(0.0, in dcn6_build_pstate_meta_per_stream() 807 stream_pstate_meta->method_vactive.max_vactive_det_fill_delay_otg_vlines = (int)math_max2(0.0, in dcn6_build_pstate_meta_per_stream() [all …]
|