Home
last modified time | relevance | path

Searched refs:source_format (Results 1 – 25 of 26) sorted by relevance

12

/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/
A Ddml2_core_utils.h13 bool dml2_core_utils_is_420(enum dml2_source_format_class source_format);
14 bool dml2_core_utils_is_422_planar(enum dml2_source_format_class source_format);
15 bool dml2_core_utils_is_422_packed(enum dml2_source_format_class source_format);
30 bool dml2_core_utils_is_dual_plane(enum dml2_source_format_class source_format);
A Ddml2_core_utils.c28 bool dml2_core_utils_is_420(enum dml2_source_format_class source_format) in dml2_core_utils_is_420() argument
32 switch (source_format) { in dml2_core_utils_is_420()
91 bool dml2_core_utils_is_422_planar(enum dml2_source_format_class source_format) in dml2_core_utils_is_422_planar() argument
95 switch (source_format) { in dml2_core_utils_is_422_planar()
154 bool dml2_core_utils_is_422_packed(enum dml2_source_format_class source_format) in dml2_core_utils_is_422_packed() argument
158 switch (source_format) { in dml2_core_utils_is_422_packed()
556 bool dml2_core_utils_is_dual_plane(enum dml2_source_format_class source_format) in dml2_core_utils_is_dual_plane() argument
560 …if (dml2_core_utils_is_420(source_format) || dml2_core_utils_is_422_planar(source_format) || (sour… in dml2_core_utils_is_dual_plane()
A Ddml2_core_shared_types.h1569 enum dml2_source_format_class source_format; member
2098 enum dml2_source_format_class source_format; member
A Ddml2_core_dcn4_calcs.c442 static bool dml_is_420(enum dml2_source_format_class source_format) in dml_is_420() argument
446 switch (source_format) { in dml_is_420()
2434 l->is_dual_plane = dml_is_420(p->source_format) || p->source_format == dml2_rgbe_alpha; in calculate_mcache_setting()
9316 calculate_mcache_setting_params->source_format = display_cfg->plane_descriptors[k].pixel_format; in dml_core_mode_support()
12138 static bool is_dual_plane(enum dml2_source_format_class source_format) in is_dual_plane() argument
12142 …if ((source_format == dml2_420_12) || (source_format == dml2_420_8) || (source_format == dml2_420_… in is_dual_plane()
12211 bool dual_plane = is_dual_plane((enum dml2_source_format_class)(source_format)); in rq_dlg_get_rq_reg()
12245 if (source_format == dml2_rgbe_alpha) in rq_dlg_get_rq_reg()
12359 l->source_format = dml2_444_8; in rq_dlg_get_dlg_reg()
12374 l->source_format = display_cfg->plane_descriptors[l->plane_idx].pixel_format; in rq_dlg_get_dlg_reg()
[all …]
/drivers/media/platform/renesas/vsp1/
A Dvsp1_wpf.c48 struct v4l2_mbus_framefmt *source_format; in vsp1_wpf_set_rotation() local
70 source_format = v4l2_subdev_state_get_format(wpf->entity.state, in vsp1_wpf_set_rotation()
76 source_format->width = sink_format->height; in vsp1_wpf_set_rotation()
77 source_format->height = sink_format->width; in vsp1_wpf_set_rotation()
79 source_format->width = sink_format->width; in vsp1_wpf_set_rotation()
80 source_format->height = sink_format->height; in vsp1_wpf_set_rotation()
239 const struct v4l2_mbus_framefmt *source_format; in wpf_configure_stream() local
248 source_format = v4l2_subdev_state_get_format(state, RWPF_PAD_SOURCE); in wpf_configure_stream()
285 if (sink_format->code != source_format->code) { in wpf_configure_stream()
294 ycbcr_enc = source_format->ycbcr_enc; in wpf_configure_stream()
[all …]
A Dvsp1_rpf.c59 const struct v4l2_mbus_framefmt *source_format; in rpf_configure_stream() local
85 source_format = v4l2_subdev_state_get_format(state, RWPF_PAD_SOURCE); in rpf_configure_stream()
95 if (sink_format->code != source_format->code) { in rpf_configure_stream()
104 ycbcr_enc = source_format->ycbcr_enc; in rpf_configure_stream()
105 quantization = source_format->quantization; in rpf_configure_stream()
/drivers/gpu/drm/amd/display/dc/dml/dcn20/
A Ddisplay_rq_dlg_calc_20.c83 if (source_format == dm_444_16) { in get_bytes_per_element()
86 } else if (source_format == dm_444_32) { in get_bytes_per_element()
89 } else if (source_format == dm_444_64) { in get_bytes_per_element()
92 } else if (source_format == dm_420_8) { in get_bytes_per_element()
97 } else if (source_format == dm_420_10) { in get_bytes_per_element()
102 } else if (source_format == dm_444_8) { in get_bytes_per_element()
112 if ((source_format == dm_420_8) || (source_format == dm_420_10)) in is_dual_plane()
339 unsigned int source_format, in get_meta_and_pte_attr() argument
413 bool yuv420 = (source_format == dm_420_8 || source_format == dm_420_10); in get_meta_and_pte_attr()
723 pipe_src_param->source_format, in get_surf_rq_param()
[all …]
A Ddisplay_rq_dlg_calc_20v2.c83 if (source_format == dm_444_16) { in get_bytes_per_element()
86 } else if (source_format == dm_444_32) { in get_bytes_per_element()
89 } else if (source_format == dm_444_64) { in get_bytes_per_element()
92 } else if (source_format == dm_420_8) { in get_bytes_per_element()
97 } else if (source_format == dm_420_10) { in get_bytes_per_element()
102 } else if (source_format == dm_444_8) { in get_bytes_per_element()
112 if ((source_format == dm_420_8) || (source_format == dm_420_10)) in is_dual_plane()
339 unsigned int source_format, in get_meta_and_pte_attr() argument
413 bool yuv420 = (source_format == dm_420_8 || source_format == dm_420_10); in get_meta_and_pte_attr()
723 pipe_src_param->source_format, in get_surf_rq_param()
[all …]
A Ddcn20_fpu.c1565 pipes[pipe_cnt].pipe.src.source_format = dm_444_32; in dcn20_populate_dml_pipes_from_context()
1694 pipes[pipe_cnt].pipe.src.source_format = dm_420_8; in dcn20_populate_dml_pipes_from_context()
1698 pipes[pipe_cnt].pipe.src.source_format = dm_420_10; in dcn20_populate_dml_pipes_from_context()
1704 pipes[pipe_cnt].pipe.src.source_format = dm_444_64; in dcn20_populate_dml_pipes_from_context()
1708 pipes[pipe_cnt].pipe.src.source_format = dm_444_16; in dcn20_populate_dml_pipes_from_context()
1711 pipes[pipe_cnt].pipe.src.source_format = dm_444_8; in dcn20_populate_dml_pipes_from_context()
1714 pipes[pipe_cnt].pipe.src.source_format = dm_rgbe_alpha; in dcn20_populate_dml_pipes_from_context()
1717 pipes[pipe_cnt].pipe.src.source_format = dm_444_32; in dcn20_populate_dml_pipes_from_context()
/drivers/gpu/drm/amd/display/dc/dml/dcn21/
A Ddisplay_rq_dlg_calc_21.c58 if (source_format == dm_444_16) { in get_bytes_per_element()
61 } else if (source_format == dm_444_32) { in get_bytes_per_element()
64 } else if (source_format == dm_444_64) { in get_bytes_per_element()
67 } else if (source_format == dm_420_8) { in get_bytes_per_element()
72 } else if (source_format == dm_420_10) { in get_bytes_per_element()
77 } else if (source_format == dm_444_8) { in get_bytes_per_element()
87 if ((source_format == dm_420_8) || (source_format == dm_420_10)) in is_dual_plane()
326 unsigned int source_format, in get_meta_and_pte_attr() argument
338 (enum source_format_class) (source_format), in get_meta_and_pte_attr()
404 bool yuv420 = (source_format == dm_420_8 || source_format == dm_420_10); in get_meta_and_pte_attr()
[all …]
/drivers/gpu/drm/amd/display/dc/dml/
A Ddml1_display_rq_dlg_calc.c44 if (source_format == dm_444_16) { in get_bytes_per_element()
47 } else if (source_format == dm_444_32) { in get_bytes_per_element()
50 } else if (source_format == dm_444_64) { in get_bytes_per_element()
53 } else if (source_format == dm_420_8) { in get_bytes_per_element()
58 } else if (source_format == dm_420_10) { in get_bytes_per_element()
71 if ((source_format == dm_420_8) || (source_format == dm_420_10)) in is_dual_plane()
388 int source_format, in dml1_rq_dlg_get_row_heights() argument
398 (enum source_format_class) source_format, in dml1_rq_dlg_get_row_heights()
651 (enum source_format_class) pipe_src_param->source_format, in get_surf_rq_param()
932 pipe_src_param->source_format, in get_surf_rq_param()
[all …]
A Ddisplay_mode_vba.c616 …ePixelFormat[mode_lib->vba.NumberOfActivePlanes] = (enum source_format_class) (src->source_format); in fetch_pipe_params()
814 int hdiv_c = src->source_format >= dm_420_8 && src->source_format <= dm_422_10 ? 2 : 1; in fetch_pipe_params()
815 int vdiv_c = src->source_format >= dm_420_8 && src->source_format <= dm_420_12 ? 2 : 1; in fetch_pipe_params()
A Ddisplay_mode_lib.c183 dml_print("DML PARAMS: source_format = %d\n", pipe_src->source_format); in dml_log_pipe_params()
A Ddisplay_mode_structs.h383 int source_format; member
/drivers/gpu/drm/amd/display/dc/dml2/
A Ddml_display_rq_dlg_calc.c29 static dml_bool_t is_dual_plane(enum dml_source_format_class source_format) in is_dual_plane() argument
33 …if ((source_format == dml_420_12) || (source_format == dml_420_8) || (source_format == dml_420_10)… in is_dual_plane()
44 …enum dml_source_format_class source_format = mode_lib->ms.cache_display_cfg.surface.SourcePixelFor… in dml_rq_dlg_get_rq_reg() local
46 dml_bool_t dual_plane = is_dual_plane((enum dml_source_format_class)(source_format)); in dml_rq_dlg_get_rq_reg()
94 if (source_format == dml_rgbe_alpha) in dml_rq_dlg_get_rq_reg()
203 …enum dml_source_format_class source_format = mode_lib->ms.cache_display_cfg.surface.SourcePixelFor… in dml_rq_dlg_get_dlg_reg() local
207 dml_bool_t dual_plane = is_dual_plane(source_format); in dml_rq_dlg_get_dlg_reg()
A Ddisplay_mode_util.h37 __DML_DLL_EXPORT__ dml_bool_t dml_util_is_420(enum dml_source_format_class source_format);
A Ddisplay_mode_util.c44 dml_bool_t dml_util_is_420(enum dml_source_format_class source_format) in dml_util_is_420() argument
48 switch (source_format) { in dml_util_is_420()
/drivers/gpu/drm/amd/display/dc/dml/dcn30/
A Ddisplay_rq_dlg_calc_30.c32 static bool is_dual_plane(enum source_format_class source_format) in is_dual_plane() argument
36 …if ((source_format == dm_420_12) || (source_format == dm_420_8) || (source_format == dm_420_10) ||… in is_dual_plane()
285 unsigned int source_format, in get_meta_and_pte_attr() argument
735 pipe_param->src.source_format, in get_surf_rq_param()
749 rq_param->yuv420 = pipe_param->src.source_format == dm_420_8 in dml_rq_dlg_get_rq_params()
750 || pipe_param->src.source_format == dm_420_10 in dml_rq_dlg_get_rq_params()
751 || pipe_param->src.source_format == dm_rgbe_alpha in dml_rq_dlg_get_rq_params()
752 || pipe_param->src.source_format == dm_420_12; in dml_rq_dlg_get_rq_params()
754 rq_param->yuv420_10bpc = pipe_param->src.source_format == dm_420_10; in dml_rq_dlg_get_rq_params()
756 rq_param->rgbe_alpha = (pipe_param->src.source_format == dm_rgbe_alpha)?1:0; in dml_rq_dlg_get_rq_params()
[all …]
/drivers/gpu/drm/amd/display/dc/dml/dcn31/
A Ddisplay_rq_dlg_calc_31.c32 static bool is_dual_plane(enum source_format_class source_format) in is_dual_plane() argument
36 …if ((source_format == dm_420_12) || (source_format == dm_420_8) || (source_format == dm_420_10) ||… in is_dual_plane()
308 unsigned int source_format, in get_meta_and_pte_attr() argument
384 (enum source_format_class) (source_format), in get_meta_and_pte_attr()
733 pipe_param->src.source_format, in get_surf_rq_param()
745 …uv420 = pipe_param->src.source_format == dm_420_8 || pipe_param->src.source_format == dm_420_10 ||… in dml_rq_dlg_get_rq_params()
746 || pipe_param->src.source_format == dm_420_12; in dml_rq_dlg_get_rq_params()
748 rq_param->yuv420_10bpc = pipe_param->src.source_format == dm_420_10; in dml_rq_dlg_get_rq_params()
750 rq_param->rgbe_alpha = (pipe_param->src.source_format == dm_rgbe_alpha) ? 1 : 0; in dml_rq_dlg_get_rq_params()
754 if (is_dual_plane((enum source_format_class) (pipe_param->src.source_format))) { in dml_rq_dlg_get_rq_params()
[all …]
/drivers/gpu/drm/amd/display/dc/dml/dcn314/
A Ddisplay_rq_dlg_calc_314.c120 static bool is_dual_plane(enum source_format_class source_format) in is_dual_plane() argument
124 …if ((source_format == dm_420_12) || (source_format == dm_420_8) || (source_format == dm_420_10) ||… in is_dual_plane()
396 unsigned int source_format, in get_meta_and_pte_attr() argument
472 (enum source_format_class) (source_format), in get_meta_and_pte_attr()
820 pipe_param->src.source_format, in get_surf_rq_param()
832 …uv420 = pipe_param->src.source_format == dm_420_8 || pipe_param->src.source_format == dm_420_10 ||… in dml_rq_dlg_get_rq_params()
833 || pipe_param->src.source_format == dm_420_12; in dml_rq_dlg_get_rq_params()
835 rq_param->yuv420_10bpc = pipe_param->src.source_format == dm_420_10; in dml_rq_dlg_get_rq_params()
837 rq_param->rgbe_alpha = (pipe_param->src.source_format == dm_rgbe_alpha) ? 1 : 0; in dml_rq_dlg_get_rq_params()
841 if (is_dual_plane((enum source_format_class) (pipe_param->src.source_format))) { in dml_rq_dlg_get_rq_params()
[all …]
/drivers/gpu/drm/amd/display/dc/dml/dcn32/
A Ddisplay_rq_dlg_calc_32.c32 static bool is_dual_plane(enum source_format_class source_format) in is_dual_plane() argument
36 if ((source_format == dm_420_12) || (source_format == dm_420_8) || (source_format == dm_420_10) in is_dual_plane()
37 || (source_format == dm_rgbe_alpha)) in is_dual_plane()
50 bool dual_plane = is_dual_plane((enum source_format_class) (src->source_format)); in dml32_rq_dlg_get_rq_reg()
95 if ((enum source_format_class) src->source_format == dm_rgbe_alpha) in dml32_rq_dlg_get_rq_reg()
286 dual_plane = is_dual_plane((enum source_format_class) (src->source_format)); in dml32_rq_dlg_get_dlg_reg()
/drivers/gpu/drm/amd/display/dc/dml2/dml21/
A Ddml21_utils.h49 bool dml21_is_plane1_enabled(enum dml2_source_format_class source_format);
A Ddml21_utils.c513 bool dml21_is_plane1_enabled(enum dml2_source_format_class source_format) in dml21_is_plane1_enabled() argument
515 return source_format >= dml2_420_8 && source_format <= dml2_rgbe_alpha; in dml21_is_plane1_enabled()
/drivers/gpu/drm/amd/display/dc/dml/calcs/
A Ddcn_calcs.c368 input->src.source_format = dm_420_8; in pipe_ctx_to_e2e_pipe_params()
374 input->src.source_format = dm_420_10; in pipe_ctx_to_e2e_pipe_params()
382 input->src.source_format = dm_444_64; in pipe_ctx_to_e2e_pipe_params()
387 input->src.source_format = dm_rgbe_alpha; in pipe_ctx_to_e2e_pipe_params()
392 input->src.source_format = dm_444_32; in pipe_ctx_to_e2e_pipe_params()
/drivers/media/platform/broadcom/
A Dbcm2835-unicam.c1338 struct v4l2_mbus_framefmt *sink_format, *source_format; in unicam_subdev_set_format() local
1399 source_format = v4l2_subdev_state_get_format(state, source_pad, in unicam_subdev_set_format()
1402 *source_format = format->format; in unicam_subdev_set_format()

Completed in 103 milliseconds

12