Home
last modified time | relevance | path

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

/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 double floor = dml_floor(a, 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()
1353 dst_y_prefetch = dml_floor(4.0 * (dst_y_prefetch + 0.125), 1) / 4; in dml1_rq_dlg_get_dlg_params()
1465 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()
1469 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()
1693 disp_dlg_regs->refcyc_per_line_delivery_pre_l = (unsigned int) dml_floor( in dml1_rq_dlg_get_dlg_params()
1696 disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int) dml_floor( in dml1_rq_dlg_get_dlg_params()
1732 disp_dlg_regs->refcyc_per_line_delivery_pre_c = (unsigned int) dml_floor( in dml1_rq_dlg_get_dlg_params()
[all …]
/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 …]
/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()
837 dst_y_prefetch_equ = dml_floor(4.0 * (dst_y_prefetch_equ + 0.125), 1) / 4.0; in CalculatePrefetchSchedule()
1064 return VCOSpeed * 4 / dml_floor(VCOSpeed * 4 / Clock, 1); in RoundToDFSGranularityUp()
1220 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines()
1222 *VInitPreFill = dml_floor((VRatio + vtaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1); in CalculatePrefetchSourceLines()
1414 1 << (unsigned int) dml_floor( in CalculateVMAndRowBytes()
2634 dml_floor( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
2700 locals->LinesInDETYRoundedDownToSwath[k] = dml_floor( in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
3312 return dml_floor(16 * DecimalBPP, 1) / 16.0; in TruncToValidBPP()
3330 return dml_floor(16 * DecimalBPP, 1) / 16.0; in TruncToValidBPP()
[all …]
/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddisplay_rq_dlg_calc_30.c123 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()
128 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()
670 …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()
1773 …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()
1775 disp_dlg_regs->refcyc_per_line_delivery_l = (unsigned int)dml_floor(refcyc_per_line_delivery_l, in dml_rq_dlg_get_dlg_params()
1780 …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()
1782 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.c1052 *DSTYAfterScaler = dml_floor(DSTTotalPixelsAfterScaler / myPipe->HTotal, 1); in CalculatePrefetchSchedule()
1098 dst_y_prefetch_equ = dml_floor(4.0 * (dst_y_prefetch_equ + 0.125), 1) / 4.0; in CalculatePrefetchSchedule()
1369 return VCOSpeed * 4 / dml_floor(VCOSpeed * 4 / Clock, 1); in RoundToDFSGranularityUp()
1489 detile_buf_vp_horz_limit = dml_floor(detile_buf_vp_horz_limit - 1, 16); in CalculateDCCConfiguration()
1490 detile_buf_vp_vert_limit = dml_floor(detile_buf_vp_vert_limit - 1, 16); in CalculateDCCConfiguration()
1693 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines()
1695 *VInitPreFill = dml_floor((VRatio + vtaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1); in CalculatePrefetchSourceLines()
1874 …*dpte_row_height = dml_min(128, 1 << (unsigned int) dml_floor(dml_log2(PTEBufferSizeInRequests * *… in CalculateVMAndRowBytes()
3621 return dml_floor(16.0 * MaxLinkBPP, 1.0) / 16.0; in TruncToValidBPP()
5458 …mode_lib->vba.LBLatencyHidingSourceLinesY = dml_min((double) MaxLineBufferLines, dml_floor(LineBuf… in CalculateWatermarksAndDRAMSpeedChangeSupport()
[all …]