/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
D | display_mode_vba_21.c | 155 unsigned int BytePerPixel, 177 unsigned int BytePerPixel, 1083 unsigned int BytePerPixel, in CalculateDCCConfiguration() argument 1099 if (DETBufferSize >= RequestHeight256Byte * ViewportWidth * BytePerPixel in CalculateDCCConfiguration() 1105 < RequestHeight256Byte * ViewportWidth * BytePerPixel in CalculateDCCConfiguration() 1106 && (BytePerPixel == 2 || BytePerPixel == 4)) in CalculateDCCConfiguration() 1110 && BytePerPixel == 8 in CalculateDCCConfiguration() 1131 if (BytePerPixel == 1) { in CalculateDCCConfiguration() 1137 } else if (BytePerPixel == 2) { in CalculateDCCConfiguration() 1145 } else if (BytePerPixel == 4) { in CalculateDCCConfiguration() [all …]
|
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | display_mode_vba_20.c | 139 unsigned int BytePerPixel, 863 unsigned int BytePerPixel, in CalculateVMAndRowBytes() argument 902 *MetaRowByte = MetaSurfWidth * MetaRequestHeight * BytePerPixel / 256.0; in CalculateVMAndRowBytes() 907 *MetaRowByte = MetaSurfHeight * MetaRequestWidth * BytePerPixel / 256.0; in CalculateVMAndRowBytes() 912 + 64 * BlockHeight256Bytes) * BytePerPixel in CalculateVMAndRowBytes() 919 + 64 * BlockHeight256Bytes) * BytePerPixel in CalculateVMAndRowBytes() 955 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; in CalculateVMAndRowBytes() 968 * BytePerPixel) in CalculateVMAndRowBytes() 983 * BytePerPixel) in CalculateVMAndRowBytes() 1007 PixelPTEReqWidth = 8.0 * VMMPageSize / BytePerPixel; in CalculateVMAndRowBytes() [all …]
|
D | display_mode_vba_20v2.c | 163 unsigned int BytePerPixel, 923 unsigned int BytePerPixel, in CalculateVMAndRowBytes() argument 962 *MetaRowByte = MetaSurfWidth * MetaRequestHeight * BytePerPixel / 256.0; in CalculateVMAndRowBytes() 967 *MetaRowByte = MetaSurfHeight * MetaRequestWidth * BytePerPixel / 256.0; in CalculateVMAndRowBytes() 972 + 64 * BlockHeight256Bytes) * BytePerPixel in CalculateVMAndRowBytes() 979 + 64 * BlockHeight256Bytes) * BytePerPixel in CalculateVMAndRowBytes() 1015 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; in CalculateVMAndRowBytes() 1028 * BytePerPixel) in CalculateVMAndRowBytes() 1043 * BytePerPixel) in CalculateVMAndRowBytes() 1067 PixelPTEReqWidth = 8.0 * VMMPageSize / BytePerPixel; in CalculateVMAndRowBytes() [all …]
|
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | display_mode_vba_util_32.c | 2270 unsigned int BytePerPixel, in dml32_CalculateVMAndRowBytes() argument 2340 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; in dml32_CalculateVMAndRowBytes() 2349 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; in dml32_CalculateVMAndRowBytes() 2361 DCCMetaSurfaceBytes = DCCMetaPitch * vp_height_meta_ub * BytePerPixel / 256.0; in dml32_CalculateVMAndRowBytes() 2378 MacroTileSizeBytes = MacroTileWidth * BytePerPixel * MacroTileHeight; in dml32_CalculateVMAndRowBytes() 2390 …*DPDE0BytesFrame = 64 * (dml_ceil((Pitch * vp_height_dpte_ub * BytePerPixel - MacroTileSizeBytes) / in dml32_CalculateVMAndRowBytes() 2405 dml_print("DML::%s: BytePerPixel = %d\n", __func__, BytePerPixel); in dml32_CalculateVMAndRowBytes() 2426 *PixelPTEReqWidth = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in dml32_CalculateVMAndRowBytes() 2427 PixelPTEReqWidth_linear = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in dml32_CalculateVMAndRowBytes() 2435 *PixelPTEReqWidth = 8 * 1024 * GPUVMMinPageSizeKBytes / (MacroTileHeight * BytePerPixel); in dml32_CalculateVMAndRowBytes()
|
D | display_mode_vba_util_32.h | 442 unsigned int BytePerPixel,
|
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
D | display_mode_vba_30.c | 188 unsigned int BytePerPixel, 1661 unsigned int BytePerPixel, in CalculateVMAndRowBytes() argument 1718 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; in CalculateVMAndRowBytes() 1723 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; in CalculateVMAndRowBytes() 1726 + 64 * BlockHeight256Bytes) * BytePerPixel / 256; in CalculateVMAndRowBytes() 1748 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; in CalculateVMAndRowBytes() 1752 …* (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… in CalculateVMAndRowBytes() 1754 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… in CalculateVMAndRowBytes() 1772 *PixelPTEReqWidth = 32768.0 / BytePerPixel; in CalculateVMAndRowBytes()
|
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
D | display_mode_vba_31.c | 205 unsigned int BytePerPixel, 1795 unsigned int BytePerPixel, argument 1851 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; 1855 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; 1857 …eil(ViewportHeight - 1, 64 * BlockHeight256Bytes) + 64 * BlockHeight256Bytes) * BytePerPixel / 256; 1879 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; 1885 …((Pitch * (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - Macr… 1891 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… 1921 *PixelPTEReqWidth = 32768.0 / BytePerPixel;
|
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
D | display_mode_vba_314.c | 214 unsigned int BytePerPixel, 1812 unsigned int BytePerPixel, argument 1868 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; 1872 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; 1874 …eil(ViewportHeight - 1, 64 * BlockHeight256Bytes) + 64 * BlockHeight256Bytes) * BytePerPixel / 256; 1896 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; 1902 …((Pitch * (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - Macr… 1908 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… 1938 *PixelPTEReqWidth = 32768.0 / BytePerPixel;
|
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/ |
D | dml2_core_dcn4_calcs.c | 1642 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes() 1650 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes() 1658 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestWidth * p->BytePerPixel / … in CalculateVMAndRowBytes() 1669 meta_surface_bytes = (unsigned int)(p->DCCMetaPitch * vp_height_meta_ub * p->BytePerPixel / 256.0); in CalculateVMAndRowBytes() 1707 MacroTileSizeBytes = p->MacroTileWidth * p->BytePerPixel * p->MacroTileHeight; in CalculateVMAndRowBytes() 1718 …gned int)(64 * (math_ceil2((double)(p->Pitch * vp_height_dpte_ub * p->BytePerPixel - MacroTileSize… in CalculateVMAndRowBytes() 1731 dml2_printf("DML::%s: BytePerPixel = %u\n", __func__, p->BytePerPixel); in CalculateVMAndRowBytes() 1749 *p->PixelPTEReqWidth = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes() 1750 PixelPTEReqWidth_linear = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes() 1754 *p->vmpg_width = p->GPUVMMinPageSizeKBytes * 1024 / p->BytePerPixel; in CalculateVMAndRowBytes() [all …]
|
D | dml2_core_shared.c | 4302 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes() 4310 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes() 4318 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestWidth * p->BytePerPixel / … in CalculateVMAndRowBytes() 4329 meta_surface_bytes = (unsigned int)(p->DCCMetaPitch * vp_height_meta_ub * p->BytePerPixel / 256.0); in CalculateVMAndRowBytes() 4367 MacroTileSizeBytes = p->MacroTileWidth * p->BytePerPixel * p->MacroTileHeight; in CalculateVMAndRowBytes() 4378 …gned int)(64 * (math_ceil2((double)(p->Pitch * vp_height_dpte_ub * p->BytePerPixel - MacroTileSize… in CalculateVMAndRowBytes() 4391 dml2_printf("DML::%s: BytePerPixel = %u\n", __func__, p->BytePerPixel); in CalculateVMAndRowBytes() 4411 *p->PixelPTEReqWidth = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes() 4412 PixelPTEReqWidth_linear = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes() 4416 *p->vmpg_width = p->GPUVMMinPageSizeKBytes * 1024 / p->BytePerPixel; in CalculateVMAndRowBytes() [all …]
|
D | dml2_core_shared_types.h | 1293 unsigned int BytePerPixel; member
|
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml2/ |
D | display_mode_core.c | 240 dml_uint_t BytePerPixel, 2456 dml_uint_t BytePerPixel, in CalculateVMAndRowBytes() argument 2513 *MetaRowByte = (dml_uint_t)(*meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0); in CalculateVMAndRowBytes() 2521 *MetaRowByte = (dml_uint_t)(*meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0); in CalculateVMAndRowBytes() 2532 DCCMetaSurfaceBytes = (dml_uint_t)(DCCMetaPitch * vp_height_meta_ub * BytePerPixel / 256.0); in CalculateVMAndRowBytes() 2548 MacroTileSizeBytes = MacroTileWidth * BytePerPixel * MacroTileHeight; in CalculateVMAndRowBytes() 2559 …dml_uint_t)(64 * (dml_ceil((dml_float_t) (Pitch * vp_height_dpte_ub * BytePerPixel - MacroTileSize… in CalculateVMAndRowBytes() 2572 dml_print("DML::%s: BytePerPixel = %u\n", __func__, BytePerPixel); in CalculateVMAndRowBytes() 2590 *PixelPTEReqWidth = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in CalculateVMAndRowBytes() 2591 PixelPTEReqWidth_linear = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in CalculateVMAndRowBytes() [all …]
|