/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | display_mode_vba_20.c | 130 double *VInitPreFill, 820 double *VInitPreFill, in CalculatePrefetchSourceLines() argument 826 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines() 832 *MaxNumSwath = dml_ceil((*VInitPreFill - 1.0) / SwathHeight, 1) + 1.0; in CalculatePrefetchSourceLines() 834 if (*VInitPreFill > 1.0) in CalculatePrefetchSourceLines() 835 MaxPartialSwath = (unsigned int) (*VInitPreFill - 2) % SwathHeight; in CalculatePrefetchSourceLines() 837 MaxPartialSwath = (unsigned int) (*VInitPreFill + SwathHeight - 2) in CalculatePrefetchSourceLines() 847 *MaxNumSwath = dml_ceil(*VInitPreFill / SwathHeight, 1); in CalculatePrefetchSourceLines() 849 if (*VInitPreFill > 1.0) in CalculatePrefetchSourceLines() 850 MaxPartialSwath = (unsigned int) (*VInitPreFill - 1) % SwathHeight; in CalculatePrefetchSourceLines() [all …]
|
H A D | display_mode_vba_20v2.c | 154 double *VInitPreFill, 880 double *VInitPreFill, in CalculatePrefetchSourceLines() argument 886 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines() 892 *MaxNumSwath = dml_ceil((*VInitPreFill - 1.0) / SwathHeight, 1) + 1.0; in CalculatePrefetchSourceLines() 894 if (*VInitPreFill > 1.0) in CalculatePrefetchSourceLines() 895 MaxPartialSwath = (unsigned int) (*VInitPreFill - 2) % SwathHeight; in CalculatePrefetchSourceLines() 897 MaxPartialSwath = (unsigned int) (*VInitPreFill + SwathHeight - 2) in CalculatePrefetchSourceLines() 907 *MaxNumSwath = dml_ceil(*VInitPreFill / SwathHeight, 1); in CalculatePrefetchSourceLines() 909 if (*VInitPreFill > 1.0) in CalculatePrefetchSourceLines() 910 MaxPartialSwath = (unsigned int) (*VInitPreFill - 1) % SwathHeight; in CalculatePrefetchSourceLines() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | display_mode_vba_util_32.c | 2546 double *VInitPreFill, in dml32_CalculatePrefetchSourceLines() argument 2564 *VInitPreFill = dml_floor((VRatio + (double) VTaps + 1) / 2.0, 1); in dml32_CalculatePrefetchSourceLines() 2566 *VInitPreFill = dml_floor((VRatio + (double) VTaps + 1 + Interlace * 0.5 * VRatio) / 2.0, 1); in dml32_CalculatePrefetchSourceLines() 2581 if (sw0_tmp < *VInitPreFill) in dml32_CalculatePrefetchSourceLines() 2582 *MaxNumSwath = dml_ceil((*VInitPreFill - sw0_tmp) / SwathHeight, 1) + 1; in dml32_CalculatePrefetchSourceLines() 2585 MaxPartialSwath = dml_max(1, (unsigned int) (vp_start_rot + *VInitPreFill - 1) % SwathHeight); in dml32_CalculatePrefetchSourceLines() 2587 *MaxNumSwath = dml_ceil((*VInitPreFill - 1.0) / SwathHeight, 1) + 1; in dml32_CalculatePrefetchSourceLines() 2588 if (*VInitPreFill > 1) in dml32_CalculatePrefetchSourceLines() 2589 MaxPartialSwath = dml_max(1, (unsigned int) (*VInitPreFill - 2) % SwathHeight); in dml32_CalculatePrefetchSourceLines() 2591 MaxPartialSwath = dml_max(1, (unsigned int) (*VInitPreFill + SwathHeight - 2) % SwathHeight); in dml32_CalculatePrefetchSourceLines() [all …]
|
H A D | display_mode_vba_util_32.h | 493 double *VInitPreFill,
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
H A D | display_mode_vba_21.c | 168 double *VInitPreFill, 1219 double *VInitPreFill, in CalculatePrefetchSourceLines() argument 1225 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines() 1231 *MaxNumSwath = dml_ceil((*VInitPreFill - 1.0) / SwathHeight, 1) + 1.0; in CalculatePrefetchSourceLines() 1233 if (*VInitPreFill > 1.0) in CalculatePrefetchSourceLines() 1234 MaxPartialSwath = (unsigned int) (*VInitPreFill - 2) % SwathHeight; in CalculatePrefetchSourceLines() 1236 MaxPartialSwath = (unsigned int) (*VInitPreFill + SwathHeight - 2) in CalculatePrefetchSourceLines() 1246 *MaxNumSwath = dml_ceil(*VInitPreFill / SwathHeight, 1); in CalculatePrefetchSourceLines() 1248 if (*VInitPreFill > 1.0) in CalculatePrefetchSourceLines() 1249 MaxPartialSwath = (unsigned int) (*VInitPreFill - 1) % SwathHeight; in CalculatePrefetchSourceLines() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | display_mode_vba_30.c | 179 double *VInitPreFill, 1618 double *VInitPreFill, in CalculatePrefetchSourceLines() argument 1624 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); in CalculatePrefetchSourceLines() 1630 *MaxNumSwath = dml_ceil((*VInitPreFill - 1.0) / SwathHeight, 1) + 1.0; in CalculatePrefetchSourceLines() 1632 if (*VInitPreFill > 1.0) in CalculatePrefetchSourceLines() 1633 MaxPartialSwath = (unsigned int) (*VInitPreFill - 2) % SwathHeight; in CalculatePrefetchSourceLines() 1635 MaxPartialSwath = (unsigned int) (*VInitPreFill + SwathHeight - 2) in CalculatePrefetchSourceLines() 1645 *MaxNumSwath = dml_ceil(*VInitPreFill / SwathHeight, 1); in CalculatePrefetchSourceLines() 1647 if (*VInitPreFill > 1.0) in CalculatePrefetchSourceLines() 1648 MaxPartialSwath = (unsigned int) (*VInitPreFill - 1) % SwathHeight; in CalculatePrefetchSourceLines() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
H A D | display_mode_vba_31.c | 196 double *VInitPreFill, 1743 double *VInitPreFill, argument 1750 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); 1756 *MaxNumSwath = dml_ceil((*VInitPreFill - 1.0) / SwathHeight, 1) + 1.0; 1758 if (*VInitPreFill > 1.0) 1759 MaxPartialSwath = (unsigned int) (*VInitPreFill - 2) % SwathHeight; 1761 MaxPartialSwath = (unsigned int) (*VInitPreFill + SwathHeight - 2) % SwathHeight; 1769 *MaxNumSwath = dml_ceil(*VInitPreFill / SwathHeight, 1); 1771 if (*VInitPreFill > 1.0) 1772 MaxPartialSwath = (unsigned int) (*VInitPreFill - 1) % SwathHeight; [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
H A D | display_mode_vba_314.c | 208 double *VInitPreFill, 1763 double *VInitPreFill, argument 1770 *VInitPreFill = dml_floor((VRatio + vtaps + 1) / 2.0, 1); 1776 *MaxNumSwath = dml_ceil((*VInitPreFill - 1.0) / SwathHeight, 1) + 1.0; 1778 if (*VInitPreFill > 1.0) 1779 MaxPartialSwath = (unsigned int) (*VInitPreFill - 2) % SwathHeight; 1781 MaxPartialSwath = (unsigned int) (*VInitPreFill + SwathHeight - 2) % SwathHeight; 1789 *MaxNumSwath = dml_ceil(*VInitPreFill / SwathHeight, 1); 1791 if (*VInitPreFill > 1.0) 1792 MaxPartialSwath = (unsigned int) (*VInitPreFill - 1) % SwathHeight; [all …]
|