Home
last modified time | relevance | path

Searched refs:dml_floor (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddisplay_mode_vba_util_32.c658 DETBufferSizeY[k] = dml_floor(DETBufferSizeInKByte[k] * 1024 * 2 / 3, 1024); in dml32_CalculateSwathAndDETConfiguration()
795 dml_floor(ViewportXStart[k] + in dml32_CalculateSwathWidth()
799 dml_floor(ViewportXStart[k], in dml32_CalculateSwathWidth()
811 dml_floor(ViewportXStartC[k] + SwathWidthC[k] + in dml32_CalculateSwathWidth()
814 dml_floor(ViewportXStartC[k], in dml32_CalculateSwathWidth()
830 swath_width_luma_ub[k] = dml_min(surface_height_ub_l, dml_floor(ViewportYStart[k] + in dml32_CalculateSwathWidth()
833 dml_floor(ViewportYStart[k], Read256BytesBlockHeightY[k])); in dml32_CalculateSwathWidth()
842 dml_floor(ViewportYStartC[k] + SwathWidthC[k] + in dml32_CalculateSwathWidth()
845 dml_floor(ViewportYStartC[k], in dml32_CalculateSwathWidth()
1116 dml_floor((double) DETBufferSizePoolInKByte, in dml32_CalculateDETBufferSize()
[all …]
Ddisplay_rq_dlg_calc_32.c137 rq_regs->rq_regs_l.pte_row_height_linear = dml_floor(dml_log2(pte_row_height_linear), 1) - 3; in dml32_rq_dlg_get_rq_reg()
146 rq_regs->rq_regs_c.pte_row_height_linear = dml_floor(dml_log2(p1_pte_row_height_linear), 1) - 3; in dml32_rq_dlg_get_rq_reg()
520 …dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int) dml_floor(refcyc_per_line_delivery_pre_l… in dml32_rq_dlg_get_dlg_reg()
521 dlg_regs->refcyc_per_line_delivery_l = (unsigned int) dml_floor(refcyc_per_line_delivery_l, 1); in dml32_rq_dlg_get_dlg_reg()
522 …dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int) dml_floor(refcyc_per_line_delivery_pre_c… in dml32_rq_dlg_get_dlg_reg()
523 dlg_regs->refcyc_per_line_delivery_c = (unsigned int) dml_floor(refcyc_per_line_delivery_c, 1); in dml32_rq_dlg_get_dlg_reg()
Ddisplay_mode_vba_32.c698 dml_floor((mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]) / 2.0, 1.0) : in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1442 v->MIN_DST_Y_NEXT_START[k] = ((isInterlaceTiming ? dml_floor((mode_lib->vba.VTotal[k] - in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1448 + dml_floor(4.0 * v->TSetup[k] / (mode_lib->vba.HTotal[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1454 / mode_lib->vba.HTotal[k]) <= (isInterlaceTiming ? dml_floor((mode_lib->vba.VTotal[k] in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2964 dml_floor((mode_lib->vba.VTotal[k] - in dml32_ModeSupportAndSystemConfigurationFull()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/
Ddml_inline_defs.h72 static inline double dml_floor(double a, double granularity) in dml_floor() function
81 return dml_floor(a + round_pt, 1); in dml_round()
Ddml1_display_rq_dlg_calc.c136 double prefill = dml_floor(vinit, 1); in get_vratio_pre()
177 double prefill = dml_floor(vinit, 1); in get_swath_need()
522 log2_dpte_row_height_linear = dml_floor( in dml1_rq_dlg_get_row_heights()
849 log2_dpte_row_height_linear = dml_floor( in get_surf_rq_param()
1349 dst_y_prefetch = dml_floor(4.0 * (dst_y_prefetch + 0.125), 1) / 4; in dml1_rq_dlg_get_dlg_params()
1461 dst_y_per_vm_vblank = dml_floor(4.0 * (dst_y_per_vm_vblank + 0.125), 1) / 4.0; in dml1_rq_dlg_get_dlg_params()
1465 dst_y_per_row_vblank = dml_floor(4.0 * (dst_y_per_row_vblank + 0.125), 1) / 4.0; in dml1_rq_dlg_get_dlg_params()
1689 disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int) dml_floor( in dml1_rq_dlg_get_dlg_params()
1692 disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int) dml_floor( in dml1_rq_dlg_get_dlg_params()
1728 disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int) dml_floor( in dml1_rq_dlg_get_dlg_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn20/
Ddisplay_rq_dlg_calc_20.c198 rq_regs->rq_regs_l.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_l.dpte_row_height), in extract_rq_regs()
203 rq_regs->rq_regs_c.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_c.dpte_row_height), in extract_rq_regs()
610 log2_dpte_row_height_linear = dml_floor(dml_log2(dml_min(64 * 1024 * pde_buf_entries in get_meta_and_pte_attr()
1491 …disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int) dml_floor(refcyc_per_line_delivery_… in dml20_rq_dlg_get_dlg_params()
1493 disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int) dml_floor(refcyc_per_line_delivery_l, in dml20_rq_dlg_get_dlg_params()
1498 …disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int) dml_floor(refcyc_per_line_delivery_… in dml20_rq_dlg_get_dlg_params()
1500 disp_dlg_regs->refcyc_per_line_delivery_c = (unsigned int) dml_floor(refcyc_per_line_delivery_c, in dml20_rq_dlg_get_dlg_params()
Ddisplay_rq_dlg_calc_20v2.c198 rq_regs->rq_regs_l.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_l.dpte_row_height), in extract_rq_regs()
203 rq_regs->rq_regs_c.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_c.dpte_row_height), in extract_rq_regs()
610 log2_dpte_row_height_linear = dml_floor(dml_log2(dml_min(64 * 1024 * pde_buf_entries in get_meta_and_pte_attr()
1492 …disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int) dml_floor(refcyc_per_line_delivery_… in dml20v2_rq_dlg_get_dlg_params()
1494 disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int) dml_floor(refcyc_per_line_delivery_l, in dml20v2_rq_dlg_get_dlg_params()
1499 …disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int) dml_floor(refcyc_per_line_delivery_… in dml20v2_rq_dlg_get_dlg_params()
1501 disp_dlg_regs->refcyc_per_line_delivery_c = (unsigned int) dml_floor(refcyc_per_line_delivery_c, in dml20v2_rq_dlg_get_dlg_params()
Ddisplay_mode_vba_20.c543 *DSTYAfterScaler = dml_floor(DSTTotalPixelsAfterScaler / HTotal, 1); in CalculatePrefetchSchedule()
634 *DestinationLinesForPrefetch = dml_floor(4.0 * (*DestinationLinesForPrefetch + 0.125), 1) in CalculatePrefetchSchedule()
699 *DestinationLinesToRequestVMInVBlank = dml_floor( in CalculatePrefetchSchedule()
703 *DestinationLinesToRequestRowInVBlank = dml_floor( in CalculatePrefetchSchedule()
804 return VCOSpeed * 4 / dml_floor(VCOSpeed * 4 / Clock, 1); in RoundToDFSGranularityUp()
826 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines()
828 *VInitPreFill = dml_floor((VRatio + vtaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1); in CalculatePrefetchSourceLines()
1043 << (unsigned int) dml_floor( in CalculateVMAndRowBytes()
1533 mode_lib->vba.LinesInDETYRoundedDownToSwath[k] = dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1545 mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
Ddisplay_mode_vba_20v2.c535 *DSTYAfterScaler = dml_floor(DSTTotalPixelsAfterScaler / HTotal, 1); in CalculateDelayAfterScaler()
694 *DestinationLinesForPrefetch = dml_floor(4.0 * (*DestinationLinesForPrefetch + 0.125), 1) in CalculatePrefetchSchedule()
759 *DestinationLinesToRequestVMInVBlank = dml_floor( in CalculatePrefetchSchedule()
763 *DestinationLinesToRequestRowInVBlank = dml_floor( in CalculatePrefetchSchedule()
864 return VCOSpeed * 4 / dml_floor(VCOSpeed * 4 / Clock, 1); in RoundToDFSGranularityUp()
886 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines()
888 *VInitPreFill = dml_floor((VRatio + vtaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1); in CalculatePrefetchSourceLines()
1103 << (unsigned int) dml_floor( in CalculateVMAndRowBytes()
1569 mode_lib->vba.LinesInDETYRoundedDownToSwath[k] = dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1581 mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn21/
Ddisplay_rq_dlg_calc_21.c176 rq_regs->rq_regs_l.pte_row_height_linear = dml_floor( in extract_rq_regs()
182 rq_regs->rq_regs_c.pte_row_height_linear = dml_floor( in extract_rq_regs()
608 log2_dpte_row_height_linear = dml_floor( in get_meta_and_pte_attr()
1599 disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int) dml_floor( in dml_rq_dlg_get_dlg_params()
1601 disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int) dml_floor( in dml_rq_dlg_get_dlg_params()
1606 disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int) dml_floor( in dml_rq_dlg_get_dlg_params()
1608 disp_dlg_regs->refcyc_per_line_delivery_c = (unsigned int) dml_floor( in dml_rq_dlg_get_dlg_params()
Ddisplay_mode_vba_21.c752 *DSTYAfterScaler = dml_floor(DSTTotalPixelsAfterScaler / myPipe->HTotal, 1); in CalculatePrefetchSchedule()
839 dst_y_prefetch_equ = dml_floor(4.0 * (dst_y_prefetch_equ + 0.125), 1) / 4.0; in CalculatePrefetchSchedule()
1069 return VCOSpeed * 4 / dml_floor(VCOSpeed * 4 / Clock, 1); in RoundToDFSGranularityUp()
1225 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines()
1227 *VInitPreFill = dml_floor((VRatio + vtaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1); in CalculatePrefetchSourceLines()
1419 1 << (unsigned int) dml_floor( in CalculateVMAndRowBytes()
2640 dml_floor( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2706 locals->LinesInDETYRoundedDownToSwath[k] = dml_floor( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
3318 return dml_floor(16 * DecimalBPP, 1) / 16.0; in TruncToValidBPP()
3336 return dml_floor(16 * DecimalBPP, 1) / 16.0; in TruncToValidBPP()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddisplay_rq_dlg_calc_30.c122 rq_regs->rq_regs_l.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_l.dpte_row_height), in extract_rq_regs()
127 rq_regs->rq_regs_c.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_c.dpte_row_height), in extract_rq_regs()
579 …log2_dpte_row_height_linear = dml_floor(dml_log2(dpte_buf_in_pte_reqs * dpte_req_width / data_pitc… in get_meta_and_pte_attr()
1684 …disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int)dml_floor(refcyc_per_line_delivery_p… in dml_rq_dlg_get_dlg_params()
1686 disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int)dml_floor(refcyc_per_line_delivery_l, in dml_rq_dlg_get_dlg_params()
1691 …disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int)dml_floor(refcyc_per_line_delivery_p… in dml_rq_dlg_get_dlg_params()
1693 disp_dlg_regs->refcyc_per_line_delivery_c = (unsigned int)dml_floor(refcyc_per_line_delivery_c, in dml_rq_dlg_get_dlg_params()
Ddisplay_mode_vba_30.c983 *DSTYAfterScaler = dml_floor(DSTTotalPixelsAfterScaler / myPipe->HTotal, 1); in CalculatePrefetchSchedule()
1029 dst_y_prefetch_equ = dml_floor(4.0 * (dst_y_prefetch_equ + 0.125), 1) / 4.0; in CalculatePrefetchSchedule()
1300 return VCOSpeed * 4 / dml_floor(VCOSpeed * 4 / Clock, 1); in RoundToDFSGranularityUp()
1420 detile_buf_vp_horz_limit = dml_floor(detile_buf_vp_horz_limit - 1, 16); in CalculateDCCConfiguration()
1421 detile_buf_vp_vert_limit = dml_floor(detile_buf_vp_vert_limit - 1, 16); in CalculateDCCConfiguration()
1624 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines()
1626 *VInitPreFill = dml_floor((VRatio + vtaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1); in CalculatePrefetchSourceLines()
1805 …*dpte_row_height = dml_min(128, 1 << (unsigned int) dml_floor(dml_log2(PTEBufferSizeInRequests * *… in CalculateVMAndRowBytes()
3517 return dml_floor(16.0 * MaxLinkBPP, 1.0) / 16.0; in TruncToValidBPP()
5298 …mode_lib->vba.LBLatencyHidingSourceLinesY = dml_min((double) MaxLineBufferLines, dml_floor(LineBuf… in CalculateWatermarksAndDRAMSpeedChangeSupport()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn31/
Ddisplay_rq_dlg_calc_31.c119 …rq_regs->rq_regs_l.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_l.dpte_row_height),… in extract_rq_regs()
123 …rq_regs->rq_regs_c.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_c.dpte_row_height),… in extract_rq_regs()
580 …log2_dpte_row_height_linear = dml_floor(dml_log2(dpte_buf_in_pte_reqs * dpte_req_width / data_pitc… in get_meta_and_pte_attr()
1515 …disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int) dml_floor(refcyc_per_line_delivery_… in dml_rq_dlg_get_dlg_params()
1516 …disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int) dml_floor(refcyc_per_line_delivery_l, 1… in dml_rq_dlg_get_dlg_params()
1519 …disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int) dml_floor(refcyc_per_line_delivery_… in dml_rq_dlg_get_dlg_params()
1520 …disp_dlg_regs->refcyc_per_line_delivery_c = (unsigned int) dml_floor(refcyc_per_line_delivery_c, 1… in dml_rq_dlg_get_dlg_params()
Ddisplay_mode_vba_31.c1015 *DSTYAfterScaler = dml_floor(DSTTotalPixelsAfterScaler / myPipe->HTotal, 1);
1108 dst_y_prefetch_equ = dml_floor(4.0 * (dst_y_prefetch_equ + 0.125), 1) / 4.0;
1464 return VCOSpeed * 4 / dml_floor(VCOSpeed * 4 / Clock, 1);
1567 detile_buf_vp_horz_limit = dml_floor(detile_buf_vp_horz_limit - 1, 16);
1568 detile_buf_vp_vert_limit = dml_floor(detile_buf_vp_vert_limit - 1, 16);
1750 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1);
1752 *VInitPreFill = dml_floor((VRatio + vtaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1);
1951 …*dpte_row_height = dml_min(128, 1 << (unsigned int) dml_floor(dml_log2(PTEBufferSizeInRequests * *…
2554 dml_floor((v->VTotal[k] - v->VActive[k]) / 2.0, 1.0) :
3163 …v->MIN_DST_Y_NEXT_START[k] = ((isInterlaceTiming ? dml_floor((v->VTotal[k] - v->VFrontPorch[k]) / …
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddisplay_rq_dlg_calc_314.c207 …rq_regs->rq_regs_l.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_l.dpte_row_height),… in extract_rq_regs()
211 …rq_regs->rq_regs_c.pte_row_height_linear = dml_floor(dml_log2(rq_param->dlg.rq_c.dpte_row_height),… in extract_rq_regs()
668 …log2_dpte_row_height_linear = dml_floor(dml_log2(dpte_buf_in_pte_reqs * dpte_req_width / data_pitc… in get_meta_and_pte_attr()
1603 …disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int) dml_floor(refcyc_per_line_delivery_… in dml_rq_dlg_get_dlg_params()
1604 …disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int) dml_floor(refcyc_per_line_delivery_l, 1… in dml_rq_dlg_get_dlg_params()
1607 …disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int) dml_floor(refcyc_per_line_delivery_… in dml_rq_dlg_get_dlg_params()
1608 …disp_dlg_regs->refcyc_per_line_delivery_c = (unsigned int) dml_floor(refcyc_per_line_delivery_c, 1… in dml_rq_dlg_get_dlg_params()
Ddisplay_mode_vba_314.c1036 *DSTYAfterScaler = dml_floor(DSTTotalPixelsAfterScaler / myPipe->HTotal, 1);
1129 dst_y_prefetch_equ = dml_floor(4.0 * (dst_y_prefetch_equ + 0.125), 1) / 4.0;
1484 return VCOSpeed * 4 / dml_floor(VCOSpeed * 4 / Clock, 1);
1587 detile_buf_vp_horz_limit = dml_floor(detile_buf_vp_horz_limit - 1, 16);
1588 detile_buf_vp_vert_limit = dml_floor(detile_buf_vp_vert_limit - 1, 16);
1770 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1);
1772 *VInitPreFill = dml_floor((VRatio + vtaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1);
1971 …*dpte_row_height = dml_min(128, 1 << (unsigned int) dml_floor(dml_log2(PTEBufferSizeInRequests * *…
3185 …v->MIN_DST_Y_NEXT_START[k] = dml_floor((v->VTotal[k] - v->VFrontPorch[k] + v->VTotal[k] - v->VActi…
3189 …v->MIN_DST_Y_NEXT_START[k] += dml_floor(4.0 * v->TSetup[k] / ((double)v->HTotal[k] / v->PixelClock…
[all …]