Home
last modified time | relevance | path

Searched refs:planes (Results 1 - 25 of 258) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-rotate/
H A 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
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/sunxi/sun8i-rotate/
H A 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
[all...]
/kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/
H A 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
[all...]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/
H A 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
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
H A Drcar_du_kms.c42 .planes = 1,
50 .planes = 1,
58 .planes = 1,
65 .planes = 1,
73 .planes = 1,
81 .planes = 1,
89 .planes = 1,
97 .planes = 2,
105 .planes = 2,
113 .planes
[all...]
H A Drcar_du_plane.c32 * The core idea is to avoid using a free planes bitmask that would need to be
35 * over all plane states to compute the free planes bitmask, allocates hardware
36 * planes based on that bitmask, and stores the result back in the plane states.
38 * For this to work we need to access the current state of planes not touched by
40 * planes using drm_atomic_get_plane_state(). This effectively serializes atomic
54 * Lowering the number of planes doesn't strictly require reallocation in rcar_du_plane_needs_realloc()
59 old_state->format->planes != new_state->format->planes) in rcar_du_plane_needs_realloc()
62 /* Reallocate hardware planes if the source has changed. */ in rcar_du_plane_needs_realloc()
77 if (state->format->planes in rcar_du_plane_hwmask()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_kms.c46 .planes = 1,
54 .planes = 1,
62 .planes = 1,
69 .planes = 1,
77 .planes = 1,
85 .planes = 1,
93 .planes = 1,
101 .planes = 2,
109 .planes = 2,
117 .planes
[all...]
H A Drcar_du_plane.c33 * The core idea is to avoid using a free planes bitmask that would need to be
36 * over all plane states to compute the free planes bitmask, allocates hardware
37 * planes based on that bitmask, and stores the result back in the plane states.
39 * For this to work we need to access the current state of planes not touched by
41 * planes using drm_atomic_get_plane_state(). This effectively serializes atomic
55 * Lowering the number of planes doesn't strictly require reallocation in rcar_du_plane_needs_realloc()
60 old_state->format->planes != new_state->format->planes) in rcar_du_plane_needs_realloc()
63 /* Reallocate hardware planes if the source has changed. */ in rcar_du_plane_needs_realloc()
78 if (state->format->planes in rcar_du_plane_hwmask()
[all...]
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
H A Dvideobuf2-v4l2.c61 * __verify_planes_array() - verify that the planes array passed in struct
70 if (b->m.planes == NULL) { in __verify_planes_array()
72 "multi-planar buffer passed but planes array not provided\n"); in __verify_planes_array()
78 "incorrect planes array length, expected %d, got %d\n", 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[plan in __verify_length()
180 struct vb2_plane *planes = vbuf->planes; vb2_fill_vb2_v4l2_buffer() local
631 __fill_vb2_buffer(struct vb2_buffer *vb, struct vb2_plane *planes) __fill_vb2_buffer() argument
[all...]
H A Dvideobuf2-core.c222 * Allocate memory for all planes in this buffer in __vb2_buf_mem_alloc()
227 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()
243 vb->planes[plane].mem_priv = mem_priv; in __vb2_buf_mem_alloc()
250 call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); in __vb2_buf_mem_alloc()
251 vb->planes[plane - 1].mem_priv = NULL; in __vb2_buf_mem_alloc()
265 call_void_memop(vb, put, vb->planes[plane].mem_priv); in __vb2_buf_mem_free()
266 vb->planes[plane].mem_priv = NULL; in __vb2_buf_mem_free()
281 if (vb->planes[plane].mem_priv) in __vb2_buf_userptr_put()
282 call_void_memop(vb, put_userptr, vb->planes[plan in __vb2_buf_userptr_put()
1112 struct vb2_plane planes[VB2_MAX_PLANES]; __prepare_userptr() local
1227 struct vb2_plane planes[VB2_MAX_PLANES]; __prepare_dmabuf() local
[all...]
/kernel/linux/linux-6.6/drivers/media/common/videobuf2/
H A Dvideobuf2-v4l2.c61 * __verify_planes_array() - verify that the planes array passed in struct
70 if (b->m.planes == NULL) { in __verify_planes_array()
72 "multi-planar buffer passed but planes array not provided\n"); in __verify_planes_array()
78 "incorrect planes array length, expected %d, got %d\n", 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[plan in __verify_length()
180 struct vb2_plane *planes = vbuf->planes; vb2_fill_vb2_v4l2_buffer() local
601 __fill_vb2_buffer(struct vb2_buffer *vb, struct vb2_plane *planes) __fill_vb2_buffer() argument
[all...]
H A Dvideobuf2-core.c222 * Allocate memory for all planes in this buffer in __vb2_buf_mem_alloc()
227 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[plan in __vb2_buf_userptr_put()
1129 struct vb2_plane planes[VB2_MAX_PLANES]; __prepare_userptr() local
1245 struct vb2_plane planes[VB2_MAX_PLANES]; __prepare_dmabuf() local
[all...]
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_atomic.h353 * @planes: pointer to array of structures with per-plane data
401 struct __drm_planes_state *planes; member
413 * Used for signaling unbound planes/connectors.
600 return state->planes[drm_plane_index(plane)].state; in drm_atomic_get_existing_plane_state()
615 return state->planes[drm_plane_index(plane)].old_state; in drm_atomic_get_old_plane_state()
630 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state()
704 * not change, state of other planes, since it avoids threading an error code
712 * example is when planes are fixed to a single CRTC, and the driver knows that
714 * read-lock on all planes connected to that CRTC. But if planes ca
[all...]
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_atomic.h313 * @planes: pointer to array of structures with per-plane data
350 struct __drm_planes_state *planes; member
362 * Used for signaling unbound planes/connectors.
540 return state->planes[drm_plane_index(plane)].state; in drm_atomic_get_existing_plane_state()
555 return state->planes[drm_plane_index(plane)].old_state; in drm_atomic_get_old_plane_state()
570 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state()
644 * not change, state of other planes, since it avoids threading an error code
652 * example is when planes are fixed to a single CRTC, and the driver knows that
654 * read-lock on all planes connected to that CRTC. But if planes ca
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/frame/src/
H A Dframe.c174 frame_init_raw_single_plane(frame, &frame->planes.raw, in ia_css_frame_init_planes()
180 frame_init_single_plane(frame, &frame->planes.raw, in ia_css_frame_init_planes()
186 frame_init_single_plane(frame, &frame->planes.rgb, in ia_css_frame_init_planes()
191 frame_init_single_plane(frame, &frame->planes.rgb, in ia_css_frame_init_planes()
205 frame_init_single_plane(frame, &frame->planes.yuyv, in ia_css_frame_init_planes()
211 frame_init_single_plane(frame, &frame->planes.yuyv, in ia_css_frame_init_planes()
261 frame_init_single_plane(frame, &frame->planes.binary.data, in ia_css_frame_init_planes()
264 frame->planes.binary.size = 0; in ia_css_frame_init_planes()
277 * all planes aligned, this means double the alignment for the in ia_css_frame_pad_width()
533 frame_init_plane(&frame->planes in frame_init_nv_planes()
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/frame/src/
H A Dframe.c348 frame_init_mipi_plane(frame, &frame->planes.raw, in ia_css_frame_init_planes()
354 frame_init_raw_single_plane(frame, &frame->planes.raw, in ia_css_frame_init_planes()
360 frame_init_single_plane(frame, &frame->planes.raw, in ia_css_frame_init_planes()
366 frame_init_single_plane(frame, &frame->planes.rgb, in ia_css_frame_init_planes()
371 frame_init_single_plane(frame, &frame->planes.rgb, in ia_css_frame_init_planes()
385 frame_init_single_plane(frame, &frame->planes.yuyv, in ia_css_frame_init_planes()
391 frame_init_single_plane(frame, &frame->planes.yuyv, in ia_css_frame_init_planes()
441 frame_init_single_plane(frame, &frame->planes.binary.data, in ia_css_frame_init_planes()
444 frame->planes.binary.size = 0; in ia_css_frame_init_planes()
472 all planes aligne in ia_css_frame_info_set_width()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/
H A Dfb.c106 struct tegra_bo **planes, in tegra_fb_alloc()
120 fb->obj[i] = &planes[i]->gem; in tegra_fb_alloc()
138 struct tegra_bo *planes[4]; in tegra_fb_create() local
166 planes[i] = to_tegra_bo(gem); in tegra_fb_create()
169 fb = tegra_fb_alloc(drm, cmd, planes, i); in tegra_fb_create()
179 drm_gem_object_put(&planes[i]->gem); in tegra_fb_create()
104 tegra_fb_alloc(struct drm_device *drm, const struct drm_mode_fb_cmd2 *mode_cmd, struct tegra_bo **planes, unsigned int num_planes) tegra_fb_alloc() argument
H A Dplane.c259 * Sub-sampling is relevant for chroma planes only and vertical in tegra_plane_calculate_memory_bandwidth()
321 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()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
H A Dsun4i_crtc.c191 struct drm_plane **planes; in sun4i_crtc_init() local
202 planes = sunxi_engine_layers_init(drm, engine); in sun4i_crtc_init()
203 if (IS_ERR(planes)) { in sun4i_crtc_init()
204 dev_err(drm->dev, "Couldn't create the planes\n"); in sun4i_crtc_init()
208 /* find primary and cursor planes for drm_crtc_init_with_planes */ in sun4i_crtc_init()
209 for (i = 0; planes[i]; i++) { in sun4i_crtc_init()
210 struct drm_plane *plane = planes[i]; in sun4i_crtc_init()
240 /* Set possible_crtcs to this crtc for overlay planes */ in sun4i_crtc_init()
241 for (i = 0; planes[i]; i++) { in sun4i_crtc_init()
243 struct drm_plane *plane = planes[ in sun4i_crtc_init()
[all...]
H A Dsun4i_layer.c234 struct drm_plane **planes; in sun4i_layers_init() local
239 planes = devm_kcalloc(drm->dev, SUN4I_BACKEND_NUM_LAYERS + 1, in sun4i_layers_init()
240 sizeof(*planes), GFP_KERNEL); in sun4i_layers_init()
241 if (!planes) in sun4i_layers_init()
256 planes[i] = &layer->plane; in sun4i_layers_init()
259 return planes; in sun4i_layers_init()
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/
H A 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()
210 dev_err(drm->dev, "Couldn't create the planes\n"); in sun4i_crtc_init()
214 /* find primary and cursor planes for drm_crtc_init_with_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()
246 /* Set possible_crtcs to this crtc for overlay planes */ in sun4i_crtc_init()
247 for (i = 0; planes[i]; i++) { in sun4i_crtc_init()
249 struct drm_plane *plane = planes[ in sun4i_crtc_init()
[all...]
H A 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()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
H A Dsh_css_sp.c463 sp_frame_out->planes.raw.offset = frame_in->planes.raw.offset; in sh_css_copy_frame_to_spframe()
467 sp_frame_out->planes.rgb.offset = frame_in->planes.rgb.offset; in sh_css_copy_frame_to_spframe()
470 sp_frame_out->planes.planar_rgb.r.offset = in sh_css_copy_frame_to_spframe()
471 frame_in->planes.planar_rgb.r.offset; in sh_css_copy_frame_to_spframe()
472 sp_frame_out->planes.planar_rgb.g.offset = in sh_css_copy_frame_to_spframe()
473 frame_in->planes.planar_rgb.g.offset; in sh_css_copy_frame_to_spframe()
474 sp_frame_out->planes.planar_rgb.b.offset = in sh_css_copy_frame_to_spframe()
475 frame_in->planes in sh_css_copy_frame_to_spframe()
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/
H A Dsh_css_sp.c460 sp_frame_out->planes.raw.offset = frame_in->planes.raw.offset; in sh_css_copy_frame_to_spframe()
464 sp_frame_out->planes.rgb.offset = frame_in->planes.rgb.offset; in sh_css_copy_frame_to_spframe()
467 sp_frame_out->planes.planar_rgb.r.offset = in sh_css_copy_frame_to_spframe()
468 frame_in->planes.planar_rgb.r.offset; in sh_css_copy_frame_to_spframe()
469 sp_frame_out->planes.planar_rgb.g.offset = in sh_css_copy_frame_to_spframe()
470 frame_in->planes.planar_rgb.g.offset; in sh_css_copy_frame_to_spframe()
471 sp_frame_out->planes.planar_rgb.b.offset = in sh_css_copy_frame_to_spframe()
472 frame_in->planes in sh_css_copy_frame_to_spframe()
[all...]
/kernel/linux/linux-6.6/include/media/
H A Dvideobuf2-core.h242 * @num_planes: number of planes in the buffer
287 struct vb2_plane planes[VB2_MAX_PLANES]; member
337 * in \*num_buffers, the required number of planes per
346 * describes the requested number of planes and sizes\[\]
459 * enough planes for the buffer. This is called
476 int (*fill_vb2_buffer)(struct vb2_buffer *vb, struct vb2_plane *planes);
779 * #) negotiates number of buffers and planes per buffer with the driver
802 * @requested_planes: number of planes requested.
803 * @requested_sizes: array with the size of the planes.
1177 if (WARN_ON_ONCE(size > vb->planes[plane_n in vb2_set_plane_payload()
[all...]

Completed in 19 milliseconds

1234567891011