| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/ ! |
| H A 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/drivers/gpu/drm/amd/display/dc/dml/dcn20/ ! |
| H A 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 …]
|
| H A 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/drivers/gpu/drm/amd/display/dc/dml/dcn32/ ! |
| H A 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()
|
| H A D | display_mode_vba_util_32.h | 442 unsigned int BytePerPixel,
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ ! |
| H A D | display_mode_vba_30.c | 159 unsigned int BytePerPixel, 1568 unsigned int BytePerPixel, in CalculateVMAndRowBytes() argument 1625 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; in CalculateVMAndRowBytes() 1630 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; in CalculateVMAndRowBytes() 1633 + 64 * BlockHeight256Bytes) * BytePerPixel / 256; in CalculateVMAndRowBytes() 1655 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; in CalculateVMAndRowBytes() 1659 …* (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… in CalculateVMAndRowBytes() 1661 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… in CalculateVMAndRowBytes() 1679 *PixelPTEReqWidth = 32768.0 / BytePerPixel; in CalculateVMAndRowBytes()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/ ! |
| H A D | display_mode_vba_314.c | 214 unsigned int BytePerPixel, 1813 unsigned int BytePerPixel, argument 1869 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; 1873 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; 1875 …eil(ViewportHeight - 1, 64 * BlockHeight256Bytes) + 64 * BlockHeight256Bytes) * BytePerPixel / 256; 1897 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; 1903 …((Pitch * (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - Macr… 1909 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… 1939 *PixelPTEReqWidth = 32768.0 / BytePerPixel;
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/ ! |
| H A D | display_mode_vba_31.c | 205 unsigned int BytePerPixel, 1796 unsigned int BytePerPixel, argument 1852 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; 1856 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; 1858 …eil(ViewportHeight - 1, 64 * BlockHeight256Bytes) + 64 * BlockHeight256Bytes) * BytePerPixel / 256; 1880 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; 1886 …((Pitch * (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - Macr… 1892 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… 1922 *PixelPTEReqWidth = 32768.0 / BytePerPixel;
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/ ! |
| H A D | dml2_core_dcn4_calcs.c | 1603 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes() 1611 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes() 1619 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestWidth * p->BytePerPixel / … in CalculateVMAndRowBytes() 1630 meta_surface_bytes = (unsigned int)(p->DCCMetaPitch * vp_height_meta_ub * p->BytePerPixel / 256.0); in CalculateVMAndRowBytes() 1666 MacroTileSizeBytes = p->MacroTileWidth * p->BytePerPixel * p->MacroTileHeight; in CalculateVMAndRowBytes() 1677 …gned int)(64 * (math_ceil2((double)(p->Pitch * vp_height_dpte_ub * p->BytePerPixel - MacroTileSize… in CalculateVMAndRowBytes() 1689 DML_LOG_VERBOSE("DML::%s: BytePerPixel = %u\n", __func__, p->BytePerPixel); in CalculateVMAndRowBytes() 1706 *p->PixelPTEReqWidth = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes() 1707 PixelPTEReqWidth_linear = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes() 1711 *p->vmpg_width = p->GPUVMMinPageSizeKBytes * 1024 / p->BytePerPixel; in CalculateVMAndRowBytes() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/ ! |
| H A D | display_mode_core.c | 241 dml_uint_t BytePerPixel, 2457 dml_uint_t BytePerPixel, in CalculateVMAndRowBytes() argument 2514 *MetaRowByte = (dml_uint_t)(*meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0); in CalculateVMAndRowBytes() 2522 *MetaRowByte = (dml_uint_t)(*meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0); in CalculateVMAndRowBytes() 2533 DCCMetaSurfaceBytes = (dml_uint_t)(DCCMetaPitch * vp_height_meta_ub * BytePerPixel / 256.0); in CalculateVMAndRowBytes() 2549 MacroTileSizeBytes = MacroTileWidth * BytePerPixel * MacroTileHeight; in CalculateVMAndRowBytes() 2560 …dml_uint_t)(64 * (dml_ceil((dml_float_t) (Pitch * vp_height_dpte_ub * BytePerPixel - MacroTileSize… in CalculateVMAndRowBytes() 2573 dml_print("DML::%s: BytePerPixel = %u\n", __func__, BytePerPixel); in CalculateVMAndRowBytes() 2591 *PixelPTEReqWidth = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in CalculateVMAndRowBytes() 2592 PixelPTEReqWidth_linear = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in CalculateVMAndRowBytes() [all …]
|