/linux/drivers/media/platform/aspeed/ |
H A D | aspeed-video.c | 316 bool yuv420; member 498 static void aspeed_video_init_jpeg_table(u32 *table, bool yuv420) in aspeed_video_init_jpeg_table() argument 516 if (yuv420) in aspeed_video_init_jpeg_table() 522 static void aspeed_video_update_jpeg_table(u32 *table, bool yuv420) in aspeed_video_update_jpeg_table() argument 532 table[base + 2] = (yuv420) ? 0x00220103 : 0x00110103; in aspeed_video_update_jpeg_table() 1226 video->yuv420 ? "420" : "444"); in aspeed_video_update_regs() 1245 if (video->yuv420) in aspeed_video_update_regs() 1249 aspeed_video_update_jpeg_table(video->jpeg.virt, video->yuv420); in aspeed_video_update_regs() 1661 video->yuv420 = (ctrl->val == V4L2_JPEG_CHROMA_SUBSAMPLING_420); in aspeed_video_set_ctrl() 1940 v->yuv420 ? "420" : "444"); in aspeed_video_debugfs_show() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
H A D | display_rq_dlg_calc_31.c | 121 if (rq_param->yuv420) { in extract_rq_regs() 131 …if (rq_param->sizing.rq_l.chunk_bytes >= 32 * 1024 || (rq_param->yuv420 && rq_param->sizing.rq_c.c… in extract_rq_regs() 141 if (rq_param->yuv420) { in extract_rq_regs() 199 if (rq_param->yuv420) in handle_det_buf_split() 214 } else if (!rq_param->yuv420) { in handle_det_buf_split() 245 if (rq_param->yuv420) in handle_det_buf_split() 749 …rq_param->yuv420 = pipe_param->src.source_format == dm_420_8 || pipe_param->src.source_format == d… in dml_rq_dlg_get_rq_params()
|
H A D | display_mode_vba_31.c | 1496 int yuv420; local 1534 …yuv420 = ((SourcePixelFormat == dm_420_8 || SourcePixelFormat == dm_420_10 || SourcePixelFormat ==… 1557 + (double) RequestHeight256ByteChroma * BytePerPixelC / (1 + horz_div_c) / (1 + yuv420)); 1559 …yteLuma / (1 + vert_div_l) + 256.0 / RequestHeight256ByteChroma / (1 + vert_div_c) / (1 + yuv420)); 1575 eff_surf_width_c = eff_surf_width_l / (1 + yuv420); 1577 eff_surf_height_c = eff_surf_height_l / (1 + yuv420);
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | display_rq_dlg_calc_30.c | 125 if (rq_param->yuv420) { in extract_rq_regs() 136 …if (rq_param->sizing.rq_l.chunk_bytes >= 32 * 1024 || (rq_param->yuv420 && rq_param->sizing.rq_c.c… in extract_rq_regs() 145 if (rq_param->yuv420) { in extract_rq_regs() 187 if (rq_param->yuv420) in handle_det_buf_split() 197 } else if (!rq_param->yuv420) { in handle_det_buf_split() 228 if (rq_param->yuv420) in handle_det_buf_split() 753 rq_param->yuv420 = pipe_param->src.source_format == dm_420_8 in dml_rq_dlg_get_rq_params()
|
H A D | display_mode_vba_30.c | 1332 int yuv420 = 0; in CalculateDCCConfiguration() local 1375 …yuv420 = ((SourcePixelFormat == dm_420_8 || SourcePixelFormat == dm_420_10 || SourcePixelFormat ==… in CalculateDCCConfiguration() 1408 / (1 + yuv420)); in CalculateDCCConfiguration() 1412 / (1 + vert_div_c) / (1 + yuv420)); in CalculateDCCConfiguration() 1429 eff_surf_width_c = eff_surf_width_l / (1 + yuv420); in CalculateDCCConfiguration() 1433 eff_surf_height_c = eff_surf_height_l / (1 + yuv420); in CalculateDCCConfiguration()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | display_rq_dlg_calc_20.c | 201 if (rq_param->yuv420) { in extract_rq_regs() 221 if (rq_param->yuv420) { in extract_rq_regs() 263 if (rq_param->yuv420) { in handle_det_buf_split() 413 bool yuv420 = (source_format == dm_420_8 || source_format == dm_420_10); in get_meta_and_pte_attr() local 603 pde_buf_entries = yuv420 ? (pde_proc_buffer_size_64k_reqs >> 1) : pde_proc_buffer_size_64k_reqs; in get_meta_and_pte_attr() 739 rq_param->yuv420 = pipe_src_param->source_format == dm_420_8 in dml20_rq_dlg_get_rq_params()
|
H A D | display_rq_dlg_calc_20v2.c | 201 if (rq_param->yuv420) { in extract_rq_regs() 221 if (rq_param->yuv420) { in extract_rq_regs() 263 if (rq_param->yuv420) { in handle_det_buf_split() 413 bool yuv420 = (source_format == dm_420_8 || source_format == dm_420_10); in get_meta_and_pte_attr() local 603 pde_buf_entries = yuv420 ? (pde_proc_buffer_size_64k_reqs >> 1) : pde_proc_buffer_size_64k_reqs; in get_meta_and_pte_attr() 739 rq_param->yuv420 = pipe_src_param->source_format == dm_420_8 in dml20v2_rq_dlg_get_rq_params()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
H A D | display_rq_dlg_calc_21.c | 180 if (rq_param->yuv420) { in extract_rq_regs() 201 if (rq_param->yuv420) { in extract_rq_regs() 247 if (rq_param->yuv420) { in handle_det_buf_split() 404 bool yuv420 = (source_format == dm_420_8 || source_format == dm_420_10); in get_meta_and_pte_attr() local 601 yuv420 ? (pde_proc_buffer_size_64k_reqs >> 1) : pde_proc_buffer_size_64k_reqs; in get_meta_and_pte_attr() 781 rq_param->yuv420 = pipe_param->src.source_format == dm_420_8 in dml_rq_dlg_get_rq_params()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
H A D | display_rq_dlg_calc_314.c | 209 if (rq_param->yuv420) { in extract_rq_regs() 219 …if (rq_param->sizing.rq_l.chunk_bytes >= 32 * 1024 || (rq_param->yuv420 && rq_param->sizing.rq_c.c… in extract_rq_regs() 229 if (rq_param->yuv420) { in extract_rq_regs() 287 if (rq_param->yuv420) in handle_det_buf_split() 302 } else if (!rq_param->yuv420) { in handle_det_buf_split() 333 if (rq_param->yuv420) in handle_det_buf_split() 836 …rq_param->yuv420 = pipe_param->src.source_format == dm_420_8 || pipe_param->src.source_format == d… in dml_rq_dlg_get_rq_params()
|
H A D | display_mode_vba_314.c | 1513 int yuv420; local 1551 …yuv420 = ((SourcePixelFormat == dm_420_8 || SourcePixelFormat == dm_420_10 || SourcePixelFormat ==… 1574 + (double) RequestHeight256ByteChroma * BytePerPixelC / (1 + horz_div_c) / (1 + yuv420)); 1576 …yteLuma / (1 + vert_div_l) + 256.0 / RequestHeight256ByteChroma / (1 + vert_div_c) / (1 + yuv420)); 1592 eff_surf_width_c = eff_surf_width_l / (1 + yuv420); 1594 eff_surf_height_c = eff_surf_height_l / (1 + yuv420);
|
/linux/drivers/gpu/drm/amd/display/dc/dml/ |
H A D | dml1_display_rq_dlg_calc.c | 240 if (rq_param->yuv420) in dml1_extract_rq_regs() 258 if (rq_param->yuv420) { in dml1_extract_rq_regs() 304 if (rq_param->yuv420) { in handle_det_buf_split() 966 rq_param->yuv420 = pipe_src_param->source_format == dm_420_8 in dml1_rq_dlg_get_rq_params()
|
H A D | display_mode_structs.h | 612 unsigned char yuv420; member
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | display_mode_vba_util_32.c | 5355 unsigned int yuv420; in dml32_CalculateDCCConfiguration() local 5365 yuv420 = ((SourcePixelFormat == dm_420_8 || SourcePixelFormat == dm_420_10 || in dml32_CalculateDCCConfiguration() 5387 BytePerPixelC / (1 + horz_div_c) / (1 + yuv420)); in dml32_CalculateDCCConfiguration() 5390 (1 + vert_div_c) / (1 + yuv420)); in dml32_CalculateDCCConfiguration() 5406 eff_surf_width_c = eff_surf_width_l / (1 + yuv420); in dml32_CalculateDCCConfiguration() 5408 eff_surf_height_c = eff_surf_height_l / (1 + yuv420); in dml32_CalculateDCCConfiguration()
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/ |
H A D | display_mode_core.c | 2121 dml_uint_t yuv420; in CalculateDCCConfiguration() local 2165 …yuv420 = ((SourcePixelFormat == dml_420_8 || SourcePixelFormat == dml_420_10 || SourcePixelFormat … in CalculateDCCConfiguration() 2182 …v_l) + (dml_float_t) RequestHeight256ByteChroma * BytePerPixelC / (1 + horz_div_c) / (1 + yuv420)); in CalculateDCCConfiguration() 2183 …yteLuma / (1 + vert_div_l) + 256.0 / RequestHeight256ByteChroma / (1 + vert_div_c) / (1 + yuv420)); in CalculateDCCConfiguration() 2199 eff_surf_width_c = eff_surf_width_l / (1 + yuv420); in CalculateDCCConfiguration() 2201 eff_surf_height_c = eff_surf_height_l / (1 + yuv420); in CalculateDCCConfiguration()
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/ |
H A D | dml2_core_dcn4_calcs.c | 2064 unsigned int yuv420; in CalculateDCCConfiguration() local 2089 yuv420 = 1; in CalculateDCCConfiguration() 2091 yuv420 = 0; in CalculateDCCConfiguration() 2109 …orz_div_l) + (double)RequestHeight256ByteChroma * BytePerPixelC / (1 + horz_div_c) / (1 + yuv420)); in CalculateDCCConfiguration() 2110 …yteLuma / (1 + vert_div_l) + 256.0 / RequestHeight256ByteChroma / (1 + vert_div_c) / (1 + yuv420)); in CalculateDCCConfiguration() 2126 eff_surf_width_c = eff_surf_width_l / (1 + yuv420); in CalculateDCCConfiguration() 2128 eff_surf_height_c = eff_surf_height_l / (1 + yuv420); in CalculateDCCConfiguration()
|
H A D | dml2_core_shared.c | 4731 unsigned int yuv420; in CalculateDCCConfiguration() local 4741 yuv420 = dml2_core_shared_is_420(SourcePixelFormat); in CalculateDCCConfiguration() 4758 …orz_div_l) + (double)RequestHeight256ByteChroma * BytePerPixelC / (1 + horz_div_c) / (1 + yuv420)); in CalculateDCCConfiguration() 4759 …yteLuma / (1 + vert_div_l) + 256.0 / RequestHeight256ByteChroma / (1 + vert_div_c) / (1 + yuv420)); in CalculateDCCConfiguration() 4789 eff_surf_width_c = eff_surf_width_l / (1 + yuv420); in CalculateDCCConfiguration() 4791 eff_surf_height_c = eff_surf_height_l / (1 + yuv420); in CalculateDCCConfiguration()
|