/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_fourcc.c | 150 { .format = DRM_FORMAT_C1, .depth = 1, .num_planes = 1, in __drm_format_info() 152 { .format = DRM_FORMAT_C2, .depth = 2, .num_planes = 1, in __drm_format_info() 154 { .format = DRM_FORMAT_C4, .depth = 4, .num_planes = 1, in __drm_format_info() 156 { .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1, .is_color_indexed = true }, in __drm_format_info() 157 { .format = DRM_FORMAT_D1, .depth = 1, .num_planes = 1, in __drm_format_info() 159 { .format = DRM_FORMAT_D2, .depth = 2, .num_planes = 1, in __drm_format_info() 161 { .format = DRM_FORMAT_D4, .depth = 4, .num_planes = 1, in __drm_format_info() 163 { .format = DRM_FORMAT_D8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 }, in __drm_format_info() 164 { .format = DRM_FORMAT_R1, .depth = 1, .num_planes = 1, in __drm_format_info() 166 { .format = DRM_FORMAT_R2, .depth = 2, .num_planes in __drm_format_info() [all...] |
H A D | drm_gem_framebuffer_helper.c | 71 struct drm_gem_object **obj, unsigned int num_planes, in drm_gem_fb_init() 79 for (i = 0; i < num_planes; i++) in drm_gem_fb_init() 101 for (i = 0; i < fb->format->num_planes; i++) in drm_gem_fb_destroy() 176 for (i = 0; i < info->num_planes; i++) { in drm_gem_fb_init_with_funcs() 345 * fb->format->num_planes elements. 359 for (i = 0; i < fb->format->num_planes; ++i) { in drm_gem_fb_vmap() 371 for (i = 0; i < fb->format->num_planes; ++i) { in drm_gem_fb_vmap() 404 unsigned int i = fb->format->num_planes; in drm_gem_fb_vunmap() 420 unsigned int num_planes) in __drm_gem_fb_end_cpu_access() 426 while (num_planes) { in __drm_gem_fb_end_cpu_access() 68 drm_gem_fb_init(struct drm_device *dev, struct drm_framebuffer *fb, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **obj, unsigned int num_planes, const struct drm_framebuffer_funcs *funcs) drm_gem_fb_init() argument 419 __drm_gem_fb_end_cpu_access(struct drm_framebuffer *fb, enum dma_data_direction dir, unsigned int num_planes) __drm_gem_fb_end_cpu_access() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_fourcc.c | 160 { .format = DRM_FORMAT_C8, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 }, in __drm_format_info() 161 { .format = DRM_FORMAT_RGB332, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 }, in __drm_format_info() 162 { .format = DRM_FORMAT_BGR233, .depth = 8, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 }, in __drm_format_info() 163 { .format = DRM_FORMAT_XRGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 }, in __drm_format_info() 164 { .format = DRM_FORMAT_XBGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 }, in __drm_format_info() 165 { .format = DRM_FORMAT_RGBX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 }, in __drm_format_info() 166 { .format = DRM_FORMAT_BGRX4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1 }, in __drm_format_info() 167 { .format = DRM_FORMAT_ARGB4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true }, in __drm_format_info() 168 { .format = DRM_FORMAT_ABGR4444, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true }, in __drm_format_info() 169 { .format = DRM_FORMAT_RGBA4444, .depth = 0, .num_planes in __drm_format_info() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/mdp3/ |
H A D | mdp_cfg_data.c | 170 .num_planes = 1, 177 .num_planes = 1, 184 .num_planes = 1, 191 .num_planes = 1, 198 .num_planes = 1, 205 .num_planes = 1, 212 .num_planes = 1, 219 .num_planes = 1, 227 .num_planes = 1, 235 .num_planes [all...] |
/kernel/linux/linux-5.10/include/drm/ |
H A D | drm_fourcc.h | 69 /** @num_planes: Number of color planes (1 to 3) */ 70 u8 num_planes; member 157 return info->is_yuv && info->num_planes == 1; in drm_format_info_is_yuv_packed() 171 return info->is_yuv && info->num_planes == 2; in drm_format_info_is_yuv_semiplanar() 185 return info->is_yuv && info->num_planes == 3; in drm_format_info_is_yuv_planar() 276 if (!info || plane >= info->num_planes) in drm_format_info_plane_width() 298 if (!info || plane >= info->num_planes) in drm_format_info_plane_height()
|
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_fourcc.h | 74 /** @num_planes: Number of color planes (1 to 3) */ 75 u8 num_planes; member 157 return info->is_yuv && info->num_planes == 1; in drm_format_info_is_yuv_packed() 171 return info->is_yuv && info->num_planes == 2; in drm_format_info_is_yuv_semiplanar() 185 return info->is_yuv && info->num_planes == 3; in drm_format_info_is_yuv_planar() 276 if (!info || plane >= info->num_planes) in drm_format_info_plane_width() 298 if (!info || plane >= info->num_planes) in drm_format_info_plane_height()
|
/kernel/linux/linux-5.10/drivers/media/platform/exynos-gsc/ |
H A D | gsc-core.c | 33 .num_planes = 1, 39 .num_planes = 1, 47 .num_planes = 1, 56 .num_planes = 1, 65 .num_planes = 1, 74 .num_planes = 1, 83 .num_planes = 1, 91 .num_planes = 1, 99 .num_planes = 1, 107 .num_planes [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 32 .num_planes = 1, 38 .num_planes = 1, 46 .num_planes = 1, 55 .num_planes = 1, 64 .num_planes = 1, 73 .num_planes = 1, 82 .num_planes = 1, 90 .num_planes = 1, 98 .num_planes = 1, 106 .num_planes [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_formats.c | 48 .num_planes = np, \ 67 .num_planes = np, \ 87 .num_planes = np, \ 105 .num_planes = np, \ 124 .num_planes = np, \ 142 .num_planes = np, \ 161 .num_planes = np, \ 181 .num_planes = np, \ 612 layout->num_planes = fmt->num_planes; in _dpu_format_get_plane_sizes_ubwc() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_formats.c | 49 .num_planes = np, \ 68 .num_planes = np, \ 88 .num_planes = np, \ 106 .num_planes = np, \ 125 .num_planes = np, \ 143 .num_planes = np, \ 162 .num_planes = np, \ 182 .num_planes = np, \ 646 layout->num_planes = fmt->num_planes; in _dpu_format_get_plane_sizes_ubwc() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_fb.c | 33 { .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 2, 35 { .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 2, 37 { .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 2, 39 { .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 2, 51 { .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 2, 54 { .format = DRM_FORMAT_XBGR8888, .depth = 24, .num_planes = 2, 57 { .format = DRM_FORMAT_ARGB8888, .depth = 32, .num_planes = 2, 60 { .format = DRM_FORMAT_ABGR8888, .depth = 32, .num_planes = 2, 63 { .format = DRM_FORMAT_YUYV, .num_planes = 2, 66 { .format = DRM_FORMAT_YVYU, .num_planes 1600 int i, num_planes = fb->base.format->num_planes; intel_fill_fb_info() local 1686 int i, num_planes = fb->format->num_planes; intel_plane_remap_gtt() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 261 pix->num_planes = f->planes; in video_mbus_to_pix_mp() 262 for (i = 0; i < pix->num_planes; i++) { in video_mbus_to_pix_mp() 327 unsigned int *num_buffers, unsigned int *num_planes, in video_queue_setup() 335 if (*num_planes) { in video_queue_setup() 336 if (*num_planes != format->num_planes) in video_queue_setup() 339 for (i = 0; i < *num_planes; i++) in video_queue_setup() 346 *num_planes = format->num_planes; in video_queue_setup() 348 for (i = 0; i < *num_planes; in video_queue_setup() 326 video_queue_setup(struct vb2_queue *q, unsigned int *num_buffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]) video_queue_setup() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 312 pix->num_planes = f->planes; in video_mbus_to_pix_mp() 313 for (i = 0; i < pix->num_planes; i++) { in video_mbus_to_pix_mp() 379 unsigned int *num_buffers, unsigned int *num_planes, in video_queue_setup() 387 if (*num_planes) { in video_queue_setup() 388 if (*num_planes != format->num_planes) in video_queue_setup() 391 for (i = 0; i < *num_planes; i++) in video_queue_setup() 398 *num_planes = format->num_planes; in video_queue_setup() 400 for (i = 0; i < *num_planes; in video_queue_setup() 378 video_queue_setup(struct vb2_queue *q, unsigned int *num_buffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]) video_queue_setup() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tidss/ |
H A D | tidss_kms.c | 118 u32 max_planes = feat->num_planes; in tidss_dispc_modeset_init() 192 u32 hw_plane_id = feat->vid_order[tidss->num_planes]; in tidss_dispc_modeset_init() 203 tidss->planes[tidss->num_planes++] = &tplane->plane; in tidss_dispc_modeset_init() 225 while (tidss->num_planes < max_planes) { in tidss_dispc_modeset_init() 227 u32 hw_plane_id = feat->vid_order[tidss->num_planes]; in tidss_dispc_modeset_init() 238 tidss->planes[tidss->num_planes++] = &tplane->plane; in tidss_dispc_modeset_init()
|
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_dma.c | 53 unsigned int num_planes = csi->fmt.num_planes; in sun4i_csi_queue_setup() local 57 if (*nplanes != num_planes) in sun4i_csi_queue_setup() 60 for (i = 0; i < num_planes; i++) in sun4i_csi_queue_setup() 66 *nplanes = num_planes; in sun4i_csi_queue_setup() 67 for (i = 0; i < num_planes; i++) in sun4i_csi_queue_setup() 78 for (i = 0; i < csi->fmt.num_planes; i++) { in sun4i_csi_buffer_prepare() 102 for (plane = 0; plane < csi->fmt.num_planes; plane++) { in sun4i_csi_setup_scratch_buffer() 133 for (plane = 0; plane < csi->fmt.num_planes; plane++) { in sun4i_csi_buffer_fill_slot() 256 for (i = 0; i < csi->fmt.num_planes; in sun4i_csi_start_streaming() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_dma.c | 53 unsigned int num_planes = csi->fmt.num_planes; in sun4i_csi_queue_setup() local 57 if (*nplanes != num_planes) in sun4i_csi_queue_setup() 60 for (i = 0; i < num_planes; i++) in sun4i_csi_queue_setup() 66 *nplanes = num_planes; in sun4i_csi_queue_setup() 67 for (i = 0; i < num_planes; i++) in sun4i_csi_queue_setup() 78 for (i = 0; i < csi->fmt.num_planes; i++) { in sun4i_csi_buffer_prepare() 102 for (plane = 0; plane < csi->fmt.num_planes; plane++) { in sun4i_csi_setup_scratch_buffer() 133 for (plane = 0; plane < csi->fmt.num_planes; plane++) { in sun4i_csi_buffer_fill_slot() 256 for (i = 0; i < csi->fmt.num_planes; in sun4i_csi_start_streaming() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/nvidia/tegra-vde/ |
H A D | v4l2.c | 85 unsigned int *num_planes, in tegra_queue_setup() 98 if (*num_planes) { in tegra_queue_setup() 99 if (*num_planes != f->fmt.pix_mp.num_planes) in tegra_queue_setup() 102 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) { in tegra_queue_setup() 107 *num_planes = f->fmt.pix_mp.num_planes; in tegra_queue_setup() 109 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) in tegra_queue_setup() 159 if (V4L2_TYPE_IS_CAPTURE(vq->type) && vb->num_planes > 1) { in tegra_buf_init() 175 for (i = 0; i < vb->num_planes; in tegra_buf_init() 83 tegra_queue_setup(struct vb2_queue *vq, unsigned int *nbufs, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]) tegra_queue_setup() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_vsp.c | 265 for (i = 0; i < fb->format->num_planes; ++i) { in rcar_du_vsp_map_fb() 346 for (i = 0; i < fb->format->num_planes; ++i) { in rcar_du_vsp_unmap_fb() 453 for (i = 0; i < vsp->num_planes; ++i) { in rcar_du_vsp_cleanup() 470 unsigned int num_planes; in rcar_du_vsp_init() local 489 num_planes = rcdu->info->num_rpf; in rcar_du_vsp_init() 491 vsp->planes = kcalloc(num_planes, sizeof(*vsp->planes), GFP_KERNEL); in rcar_du_vsp_init() 495 for (i = 0; i < num_planes; ++i) { in rcar_du_vsp_init() 526 num_planes - 1); in rcar_du_vsp_init() 533 vsp->num_planes++; in rcar_du_vsp_init()
|
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
H A D | videobuf2-core.c | 225 for (plane = 0; plane < vb->num_planes; ++plane) { in __vb2_buf_mem_alloc() 264 for (plane = 0; plane < vb->num_planes; ++plane) { in __vb2_buf_mem_free() 280 for (plane = 0; plane < vb->num_planes; ++plane) { in __vb2_buf_userptr_put() 314 for (plane = 0; plane < vb->num_planes; ++plane) in __vb2_buf_dmabuf_put() 330 for (plane = 0; plane < vb->num_planes; ++plane) in __vb2_buf_mem_prepare() 349 for (plane = 0; plane < vb->num_planes; ++plane) in __vb2_buf_mem_finish() 368 struct vb2_plane *p = &prev->planes[prev->num_planes - 1]; in __setup_offsets() 373 for (plane = 0; plane < vb->num_planes; ++plane) { in __setup_offsets() 392 unsigned int num_buffers, unsigned int num_planes, in __vb2_queue_alloc() 413 vb->num_planes in __vb2_queue_alloc() 391 __vb2_queue_alloc(struct vb2_queue *q, enum vb2_memory memory, unsigned int num_buffers, unsigned int num_planes, const unsigned plane_sizes[VB2_MAX_PLANES]) __vb2_queue_alloc() argument 738 unsigned int num_buffers, allocated_buffers, num_planes = 0; vb2_core_reqbufs() local 897 unsigned int num_planes = 0, num_buffers, allocated_buffers; vb2_core_create_bufs() local [all...] |
/kernel/linux/linux-6.6/drivers/media/common/videobuf2/ |
H A D | videobuf2-core.c | 225 for (plane = 0; plane < vb->num_planes; ++plane) { in __vb2_buf_mem_alloc() 265 for (plane = 0; plane < vb->num_planes; ++plane) { in __vb2_buf_mem_free() 281 for (plane = 0; plane < vb->num_planes; ++plane) { in __vb2_buf_userptr_put() 315 for (plane = 0; plane < vb->num_planes; ++plane) in __vb2_buf_dmabuf_put() 331 for (plane = 0; plane < vb->num_planes; ++plane) in __vb2_buf_mem_prepare() 347 for (plane = 0; plane < vb->num_planes; ++plane) in __vb2_buf_mem_finish() 363 struct vb2_plane *p = &prev->planes[prev->num_planes - 1]; in __setup_offsets() 368 for (plane = 0; plane < vb->num_planes; ++plane) { in __setup_offsets() 408 unsigned int num_buffers, unsigned int num_planes, in __vb2_queue_alloc() 429 vb->num_planes in __vb2_queue_alloc() 407 __vb2_queue_alloc(struct vb2_queue *q, enum vb2_memory memory, unsigned int num_buffers, unsigned int num_planes, const unsigned plane_sizes[VB2_MAX_PLANES]) __vb2_queue_alloc() argument 750 unsigned int num_buffers, allocated_buffers, num_planes = 0; vb2_core_reqbufs() local 910 unsigned int num_planes = 0, num_buffers, allocated_buffers; vb2_core_create_bufs() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc_dec.c | 35 .num_planes = 2, 42 .num_planes = 2, 49 .num_planes = 2, 56 .num_planes = 2, 63 .num_planes = 1, 70 .num_planes = 1, 77 .num_planes = 1, 84 .num_planes = 1, 91 .num_planes = 1, 98 .num_planes [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_dec.c | 35 .num_planes = 2, 42 .num_planes = 2, 49 .num_planes = 2, 56 .num_planes = 2, 63 .num_planes = 1, 72 .num_planes = 1, 81 .num_planes = 1, 89 .num_planes = 1, 98 .num_planes = 1, 107 .num_planes [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/visl/ |
H A D | visl-video.c | 65 dprintk(ctx->dev, "num_planes: %d\n", pix_mp->num_planes); in visl_print_fmt() 70 for (i = 0; i < pix_mp->num_planes; i++) { in visl_print_fmt() 260 pix_mp->num_planes = 1; in visl_reset_coded_fmt() 409 pix_mp->num_planes = 1; in visl_try_fmt_vid_out() 537 unsigned int *num_planes, in visl_queue_setup() 554 if (*num_planes) { in visl_queue_setup() 555 if (*num_planes != f->fmt.pix_mp.num_planes) in visl_queue_setup() 558 for (i = 0; i < f->fmt.pix_mp.num_planes; in visl_queue_setup() 535 visl_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]) visl_queue_setup() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/tidss/ |
H A D | tidss_kms.c | 121 u32 max_planes = feat->num_planes; in tidss_dispc_modeset_init() 196 u32 hw_plane_id = feat->vid_order[tidss->num_planes]; in tidss_dispc_modeset_init() 207 tidss->planes[tidss->num_planes++] = &tplane->plane; in tidss_dispc_modeset_init() 234 while (tidss->num_planes < max_planes) { in tidss_dispc_modeset_init() 236 u32 hw_plane_id = feat->vid_order[tidss->num_planes]; in tidss_dispc_modeset_init() 247 tidss->planes[tidss->num_planes++] = &tplane->plane; in tidss_dispc_modeset_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun4i_frontend.c | 182 if (fb->format->num_planes > 1) { in sun4i_frontend_update_buffer() 190 if (fb->format->num_planes > 2) { in sun4i_frontend_update_buffer() 200 if (fb->format->num_planes > 1) in sun4i_frontend_update_buffer() 203 if (fb->format->num_planes > 2) in sun4i_frontend_update_buffer() 212 if (fb->format->num_planes > 1) in sun4i_frontend_update_buffer() 216 if (fb->format->num_planes > 2) in sun4i_frontend_update_buffer() 229 if (fb->format->num_planes > 1) { in sun4i_frontend_update_buffer() 237 if (fb->format->num_planes > 2) { in sun4i_frontend_update_buffer() 273 switch (format->num_planes) { in sun4i_frontend_drm_format_to_input_mode() 446 ch1_phase_idx = (format->num_planes > in sun4i_frontend_update_formats() [all...] |