Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/
H A 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()
H A 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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/
H A Ddisplay_mode_vba_util_32.c795 dml_floor(ViewportXStart[k] + in dml32_CalculateSwathWidth()
799 dml_floor(ViewportXStart[k], in dml32_CalculateSwathWidth()
814 dml_floor(ViewportXStartC[k], in dml32_CalculateSwathWidth()
845 dml_floor(ViewportYStartC[k], in dml32_CalculateSwathWidth()
1116 dml_floor((double) DETBufferSizePoolInKByte, in dml32_CalculateDETBufferSize()
1660 return dml_floor(16.0 * MaxLinkBPP, 1.0) / 16.0; in dml32_TruncToValidBPP()
1848 dml_floor(ViewportXStartC[k], 8 * in dml32_CalculateSurfaceSizeInMall()
1855 dml_floor(ViewportYStartC[k], 8 * in dml32_CalculateSurfaceSizeInMall()
2329 - dml_floor(ViewportXStart, *MetaRequestWidth); in dml32_CalculateVMAndRowBytes()
2382 dml_floor(ViewportYStart, MacroTileHeight); in dml32_CalculateVMAndRowBytes()
[all …]
H A 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()
H A 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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/
H A 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()
H A 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()
H A Ddisplay_mode_vba_20.c1043 << (unsigned int) dml_floor( in CalculateVMAndRowBytes()
1710 dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1733 dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2415 (unsigned int) dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2427 (unsigned int) dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2634 dml_floor( in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
3237 return dml_floor(16 * DecimalBPP, 1) / 16; in TruncToValidBPP()
3244 return dml_floor(16 * DecimalBPP, 1) / 16; in TruncToValidBPP()
3251 return dml_floor(16 * DecimalBPP, 1) / 16; in TruncToValidBPP()
4961 if (dml_floor( in dml20_ModeSupportAndSystemConfigurationFull()
[all …]
H A Ddisplay_mode_vba_20v2.c759 *DestinationLinesToRequestVMInVBlank = dml_floor( in CalculatePrefetchSchedule()
763 *DestinationLinesToRequestRowInVBlank = dml_floor( in CalculatePrefetchSchedule()
1103 << (unsigned int) dml_floor( in CalculateVMAndRowBytes()
1746 dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1769 dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2449 (unsigned int) dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2461 (unsigned int) dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2707 dml_floor( in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
3312 return dml_floor(16 * DecimalBPP, 1) / 16.0; in TruncToValidBPP()
5077 if (dml_floor( in dml20v2_ModeSupportAndSystemConfigurationFull()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/
H A 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()
H A 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()
3517 return dml_floor(16.0 * MaxLinkBPP, 1.0) / 16.0; in TruncToValidBPP()
5307 LinesInDETYRoundedDownToSwath[k] = dml_floor(LinesInDETY[k], SwathHeightY[k]); in CalculateWatermarksAndDRAMSpeedChangeSupport()
5311 LinesInDETCRoundedDownToSwath = dml_floor(LinesInDETC, SwathHeightC[k]); in CalculateWatermarksAndDRAMSpeedChangeSupport()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/
H A 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()
H A 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);
2554 dml_floor((v->VTotal[k] - v->VActive[k]) / 2.0, 1.0) :
3661 return dml_floor(16.0 * MaxLinkBPP, 1.0) / 16.0;
5015 dml_floor((v->VTotal[k] - v->VActive[k]) / 2.0, 1.0) :
5664 LinesInDETCRoundedDownToSwath = dml_floor(LinesInDETC, SwathHeightC[k]);
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/
H A 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()
H A 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()
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()
3354 return dml_floor(16 * DecimalBPP, 1) / 16.0; in TruncToValidBPP()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/
H A 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()
H A 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);
3769 return dml_floor(16.0 * MaxLinkBPP, 1.0) / 16.0;
5759 LinesInDETCRoundedDownToSwath = dml_floor(LinesInDETC, SwathHeightC[k]);
6575 LinesInDETYRoundedDownToSwath = dml_floor(LinesInDETY, SwathHeightY[k]);
6884 DETBufferSizeY[k] = dml_floor(actDETBufferSizeInKByte * 1024 * 2 / 3, 1024);
[all …]