Home
last modified time | relevance | path

Searched refs:planes (Results 1 – 25 of 177) sorted by relevance

12345678

/linux-6.1.9/drivers/media/test-drivers/vivid/
Dvivid-vid-common.c40 .planes = 1,
49 .planes = 1,
57 .planes = 1,
65 .planes = 1,
73 .planes = 3,
81 .planes = 3,
89 .planes = 3,
97 .planes = 2,
105 .planes = 2,
113 .planes = 2,
[all …]
/linux-6.1.9/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_formats.c17 .planes = 1,
25 .planes = 1,
33 .planes = 1,
41 .planes = 1,
49 .planes = 1,
57 .planes = 1,
65 .planes = 1,
73 .planes = 1,
81 .planes = 1,
89 .planes = 1,
[all …]
/linux-6.1.9/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c44 .planes = 1,
52 .planes = 1,
60 .planes = 1,
67 .planes = 1,
75 .planes = 1,
83 .planes = 1,
91 .planes = 1,
99 .planes = 2,
107 .planes = 2,
115 .planes = 2,
[all …]
Drcar_du_plane.c60 old_state->format->planes != new_state->format->planes) in rcar_du_plane_needs_realloc()
78 if (state->format->planes == 2) in rcar_du_plane_hwmask()
100 unsigned int num_planes = state->format->planes; in rcar_du_plane_hwalloc()
155 plane->group->index, plane - plane->group->planes); in rcar_du_atomic_check_planes()
165 index = plane - plane->group->planes; in rcar_du_atomic_check_planes()
181 index = plane - plane->group->planes; in rcar_du_atomic_check_planes()
208 struct rcar_du_plane *plane = &group->planes[i]; in rcar_du_atomic_check_planes()
228 plane - plane->group->planes); in rcar_du_atomic_check_planes()
238 plane - plane->group->planes, in rcar_du_atomic_check_planes()
240 new_plane_state->format->planes : 0, in rcar_du_atomic_check_planes()
[all …]
Drcar_du_vsp.c168 for (i = 0; i < state->format->planes; ++i) in rcar_du_vsp_plane_setup()
393 struct rcar_du_vsp_plane *plane = &vsp->planes[i]; in rcar_du_vsp_cleanup()
398 kfree(vsp->planes); in rcar_du_vsp_cleanup()
430 vsp->planes = kcalloc(num_planes, sizeof(*vsp->planes), GFP_KERNEL); in rcar_du_vsp_init()
431 if (!vsp->planes) in rcar_du_vsp_init()
438 struct rcar_du_vsp_plane *plane = &vsp->planes[i]; in rcar_du_vsp_init()
/linux-6.1.9/drivers/media/common/videobuf2/
Dvideobuf2-v4l2.c70 if (b->m.planes == NULL) { in __verify_planes_array()
108 ? b->m.planes[plane].length in __verify_length()
109 : vb->planes[plane].length; in __verify_length()
110 bytesused = b->m.planes[plane].bytesused in __verify_length()
111 ? b->m.planes[plane].bytesused : length; in __verify_length()
113 if (b->m.planes[plane].bytesused > length) in __verify_length()
116 if (b->m.planes[plane].data_offset > 0 && in __verify_length()
117 b->m.planes[plane].data_offset >= bytesused) in __verify_length()
122 ? b->length : vb->planes[0].length; in __verify_length()
180 struct vb2_plane *planes = vbuf->planes; in vb2_fill_vb2_v4l2_buffer() local
[all …]
Dvideobuf2-core.c227 unsigned long size = PAGE_ALIGN(vb->planes[plane].length); in __vb2_buf_mem_alloc()
230 if (size < vb->planes[plane].length) in __vb2_buf_mem_alloc()
244 vb->planes[plane].mem_priv = mem_priv; in __vb2_buf_mem_alloc()
251 call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); in __vb2_buf_mem_alloc()
252 vb->planes[plane - 1].mem_priv = NULL; in __vb2_buf_mem_alloc()
266 call_void_memop(vb, put, vb->planes[plane].mem_priv); in __vb2_buf_mem_free()
267 vb->planes[plane].mem_priv = NULL; in __vb2_buf_mem_free()
282 if (vb->planes[plane].mem_priv) in __vb2_buf_userptr_put()
283 call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv); in __vb2_buf_userptr_put()
284 vb->planes[plane].mem_priv = NULL; in __vb2_buf_userptr_put()
[all …]
/linux-6.1.9/include/drm/
Ddrm_atomic.h401 struct __drm_planes_state *planes; member
593 return state->planes[drm_plane_index(plane)].state; in drm_atomic_get_existing_plane_state()
608 return state->planes[drm_plane_index(plane)].old_state; in drm_atomic_get_old_plane_state()
623 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state()
719 if (state->planes[drm_plane_index(plane)].state) in __drm_atomic_get_current_plane_state()
720 return state->planes[drm_plane_index(plane)].state; in __drm_atomic_get_current_plane_state()
889 for_each_if ((__state)->planes[__i].ptr && \
890 ((plane) = (__state)->planes[__i].ptr, \
892 (old_plane_state) = (__state)->planes[__i].old_state,\
893 (new_plane_state) = (__state)->planes[__i].new_state, 1))
[all …]
/linux-6.1.9/drivers/staging/media/atomisp/pci/runtime/frame/src/
Dframe.c295 frame_init_raw_single_plane(frame, &frame->planes.raw, in ia_css_frame_init_planes()
301 frame_init_single_plane(frame, &frame->planes.raw, in ia_css_frame_init_planes()
307 frame_init_single_plane(frame, &frame->planes.rgb, in ia_css_frame_init_planes()
312 frame_init_single_plane(frame, &frame->planes.rgb, in ia_css_frame_init_planes()
326 frame_init_single_plane(frame, &frame->planes.yuyv, in ia_css_frame_init_planes()
332 frame_init_single_plane(frame, &frame->planes.yuyv, in ia_css_frame_init_planes()
382 frame_init_single_plane(frame, &frame->planes.binary.data, in ia_css_frame_init_planes()
385 frame->planes.binary.size = 0; in ia_css_frame_init_planes()
643 frame_init_plane(&frame->planes.nv.y, y_width, y_stride, y_height, 0); in frame_init_nv_planes()
644 frame_init_plane(&frame->planes.nv.uv, uv_width, in frame_init_nv_planes()
[all …]
/linux-6.1.9/Documentation/gpu/amdgpu/display/
Dmpo-overview.rst28 reports back the number of planes, CRTCs, and connectors. There are three types
29 of DRM planes that the driver can register and work with:
31 * ``DRM_PLANE_TYPE_PRIMARY``: Primary planes represent a "main" plane for a
32 CRTC, primary planes are the planes operated upon by CRTC modesetting and
34 * ``DRM_PLANE_TYPE_CURSOR``: Cursor planes represent a "cursor" plane for a
35 CRTC. Cursor planes are the planes operated upon by the cursor IOCTLs
36 * ``DRM_PLANE_TYPE_OVERLAY``: Overlay planes represent all non-primary,
37 non-cursor planes. Some drivers refer to these types of planes as "sprites"
41 following planes to userspace:
43 * 4 Primary planes (1 per CRTC).
[all …]
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Dsh_css_sp.c459 sp_frame_out->planes.raw.offset = frame_in->planes.raw.offset; in sh_css_copy_frame_to_spframe()
463 sp_frame_out->planes.rgb.offset = frame_in->planes.rgb.offset; in sh_css_copy_frame_to_spframe()
466 sp_frame_out->planes.planar_rgb.r.offset = in sh_css_copy_frame_to_spframe()
467 frame_in->planes.planar_rgb.r.offset; in sh_css_copy_frame_to_spframe()
468 sp_frame_out->planes.planar_rgb.g.offset = in sh_css_copy_frame_to_spframe()
469 frame_in->planes.planar_rgb.g.offset; in sh_css_copy_frame_to_spframe()
470 sp_frame_out->planes.planar_rgb.b.offset = in sh_css_copy_frame_to_spframe()
471 frame_in->planes.planar_rgb.b.offset; in sh_css_copy_frame_to_spframe()
478 sp_frame_out->planes.yuyv.offset = frame_in->planes.yuyv.offset; in sh_css_copy_frame_to_spframe()
487 sp_frame_out->planes.nv.y.offset = in sh_css_copy_frame_to_spframe()
[all …]
/linux-6.1.9/drivers/gpu/drm/sun4i/
Dsun4i_crtc.c197 struct drm_plane **planes; in sun4i_crtc_init() local
208 planes = sunxi_engine_layers_init(drm, engine); in sun4i_crtc_init()
209 if (IS_ERR(planes)) { in sun4i_crtc_init()
215 for (i = 0; planes[i]; i++) { in sun4i_crtc_init()
216 struct drm_plane *plane = planes[i]; in sun4i_crtc_init()
247 for (i = 0; planes[i]; i++) { in sun4i_crtc_init()
249 struct drm_plane *plane = planes[i]; in sun4i_crtc_init()
Dsun4i_layer.c237 struct drm_plane **planes; in sun4i_layers_init() local
242 planes = devm_kcalloc(drm->dev, SUN4I_BACKEND_NUM_LAYERS + 1, in sun4i_layers_init()
243 sizeof(*planes), GFP_KERNEL); in sun4i_layers_init()
244 if (!planes) in sun4i_layers_init()
258 planes[i] = &layer->plane; in sun4i_layers_init()
261 return planes; in sun4i_layers_init()
Dsun8i_mixer.c261 struct drm_plane **planes; in sun8i_layers_init() local
265 planes = devm_kcalloc(drm->dev, in sun8i_layers_init()
267 sizeof(*planes), GFP_KERNEL); in sun8i_layers_init()
268 if (!planes) in sun8i_layers_init()
281 planes[i] = &layer->plane; in sun8i_layers_init()
294 planes[mixer->cfg->vi_num + i] = &layer->plane; in sun8i_layers_init()
297 return planes; in sun8i_layers_init()
/linux-6.1.9/Documentation/userspace-api/media/v4l/
Dpixfmt-yuv-planar.rst12 - Semi-planar formats use two planes. The first plane is the luma plane and
16 - Fully planar formats use three planes to store the Y, Cb and Cr components
21 the chroma planes may be constrained by the line stride of the luma plane.
23 Some planar formats allow planes to be placed in independent memory locations.
28 planes, formats require the planes to follow each other immediately in memory.
35 use two planes, and store the luma components in the first plane and the chroma
174 .. [2] Indicates if planes have to be contiguous in memory or can be
291 The layouts of the luma and chroma planes are identical.
300 planes are identical.
304 aligned to a multiple of 4. The layouts of the luma and chroma planes are
[all …]
Ddmabuf.rst31 DRM). Buffers (planes) are allocated by a driver on behalf of an
98 struct v4l2_plane planes[VIDEO_MAX_PLANES];
105 buf.m.planes = planes;
108 memset(&planes, 0, sizeof planes);
111 buf.m.planes[i].m.fd = dmafd[i];
Dmmap.rst50 be equal to number of buffers times number of planes in each buffer. The
132 /* Our current format uses 3 planes per buffer */
168 struct v4l2_plane planes[FMT_NUM_PLANES];
175 * of planes array. */
177 buffer.m.planes = planes;
186 buffers[i].length[j] = buffer.m.planes[j].length; /* remember for munmap() */
188 buffers[i].start[j] = mmap(NULL, buffer.m.planes[j].length,
191 fd, buffer.m.planes[j].m.offset);
195 the buffers and planes mapped so far. */
Dpixfmt-v4l2-mplane.rst8 and layout for each of the planes in a multi-planar format. The
10 information common to all planes (such as image width and height) and an
12 describing all planes of that format.
91 - Number of planes (i.e. separate memory buffers) for this format
/linux-6.1.9/Documentation/ABI/testing/
Dsysfs-devices-platform-sh_mobile_lcdc_fb6 to overlay planes.
17 to overlay planes.
30 to overlay planes.
40 to overlay planes.
/linux-6.1.9/include/media/
Dvideobuf2-core.h287 struct vb2_plane planes[VB2_MAX_PLANES]; member
464 int (*fill_vb2_buffer)(struct vb2_buffer *vb, struct vb2_plane *planes);
1163 if (WARN_ON_ONCE(size > vb->planes[plane_no].length)) in vb2_set_plane_payload()
1164 size = vb->planes[plane_no].length; in vb2_set_plane_payload()
1165 vb->planes[plane_no].bytesused = size; in vb2_set_plane_payload()
1179 return vb->planes[plane_no].bytesused; in vb2_get_plane_payload()
1193 return vb->planes[plane_no].length; in vb2_plane_size()
/linux-6.1.9/drivers/gpu/drm/tegra/
Dplane.c321 tegra->planes |= WIN_A_ACT_REQ << plane->index; in tegra_plane_state_add()
489 bool tegra_plane_format_is_yuv(unsigned int format, unsigned int *planes, unsigned int *bpc) in tegra_plane_format_is_yuv() argument
494 if (planes) in tegra_plane_format_is_yuv()
495 *planes = 1; in tegra_plane_format_is_yuv()
511 if (planes) in tegra_plane_format_is_yuv()
512 *planes = 3; in tegra_plane_format_is_yuv()
525 if (planes) in tegra_plane_format_is_yuv()
526 *planes = 2; in tegra_plane_format_is_yuv()
534 if (planes) in tegra_plane_format_is_yuv()
535 *planes = 1; in tegra_plane_format_is_yuv()
Dfb.c113 struct tegra_bo **planes, in tegra_fb_alloc() argument
127 fb->obj[i] = &planes[i]->gem; in tegra_fb_alloc()
145 struct tegra_bo *planes[4]; in tegra_fb_create() local
172 planes[i] = to_tegra_bo(gem); in tegra_fb_create()
175 fb = tegra_fb_alloc(drm, cmd, planes, i); in tegra_fb_create()
185 drm_gem_object_put(&planes[i]->gem); in tegra_fb_create()
/linux-6.1.9/drivers/gpu/drm/hisilicon/kirin/
Dkirin_drm_drv.c36 struct kirin_plane planes[KIRIN_MAX_PLANE]; member
137 ret = kirin_drm_plane_init(dev, &kirin_priv->planes[ch].base, in kirin_drm_private_init()
141 kirin_priv->planes[ch].ch = ch; in kirin_drm_private_init()
142 kirin_priv->planes[ch].hw_ctx = ctx; in kirin_drm_private_init()
146 prim_plane = &kirin_priv->planes[driver_data->prim_plane].base; in kirin_drm_private_init()
/linux-6.1.9/drivers/gpu/drm/mediatek/
Dmtk_drm_crtc.c47 struct drm_plane *planes; member
270 unsigned int local_index = plane - mtk_crtc->planes; in mtk_drm_ddp_comp_for_plane()
303 struct drm_plane *plane = &mtk_crtc->planes[i]; in ddp_cmdq_cb()
315 struct drm_plane *plane = &mtk_crtc->planes[i]; in ddp_cmdq_cb()
402 struct drm_plane *plane = &mtk_crtc->planes[i]; in mtk_crtc_ddp_hw_init()
486 struct drm_plane *plane = &mtk_crtc->planes[i]; in mtk_crtc_ddp_config()
511 struct drm_plane *plane = &mtk_crtc->planes[i]; in mtk_crtc_ddp_config()
552 struct drm_plane *plane = &mtk_crtc->planes[i]; in mtk_drm_crtc_update_config()
703 struct drm_plane *plane = &mtk_crtc->planes[i]; in mtk_drm_crtc_atomic_disable()
794 if (mtk_crtc->planes[i].type == DRM_PLANE_TYPE_PRIMARY) in mtk_drm_crtc_init()
[all …]
/linux-6.1.9/drivers/gpu/drm/omapdrm/
Domap_fb.c55 struct plane planes[2]; member
88 struct plane *plane = &omap_fb->planes[n]; in get_linear_addr()
271 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_pin()
286 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_pin()
312 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_unpin()
424 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_init()

12345678