Home
last modified time | relevance | path

Searched full:planes (Results 1 – 25 of 660) sorted by relevance

12345678910>>...27

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/drivers/media/platform/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
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 = 2,
[all …]
Drcar_du_plane.c3 * rcar_du_plane.c -- R-Car Display Unit Planes
32 * 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 == 2) in rcar_du_plane_hwmask()
[all …]
Drcar_du_group.h3 * rcar_du_group.c -- R-Car Display Unit Planes and CRTCs Group
20 * struct rcar_du_group - CRTCs and planes group
30 * @dptsr_planes: bitmask of planes driven by dot-clock and timing generator 1
31 * @num_planes: number of planes in the group
32 * @planes: planes handled by the group
50 struct rcar_du_plane planes[RCAR_DU_NUM_KMS_PLANES]; member
Drcar_du_plane.h3 * rcar_du_plane.h -- R-Car Display Unit Planes
19 * The RCAR DU has 8 hardware planes, shared between primary and overlay planes.
20 * As using overlay planes requires at least one of the CRTCs being enabled, no
21 * more than 7 overlay planes can be available. We thus create 1 primary plane
22 * per CRTC and 7 overlay planes, for a total of up to 9 KMS planes.
/kernel/linux/linux-4.19/drivers/gpu/drm/rcar-du/
Drcar_du_plane.c2 * rcar_du_plane.c -- R-Car Display Unit Planes
36 * The core idea is to avoid using a free planes bitmask that would need to be
39 * over all plane states to compute the free planes bitmask, allocates hardware
40 * planes based on that bitmask, and stores the result back in the plane states.
42 * For this to work we need to access the current state of planes not touched by
44 * planes using drm_atomic_get_plane_state(). This effectively serializes atomic
58 * Lowering the number of planes doesn't strictly require reallocation in rcar_du_plane_needs_realloc()
63 old_state->format->planes != new_state->format->planes) in rcar_du_plane_needs_realloc()
66 /* Reallocate hardware planes if the source has changed. */ in rcar_du_plane_needs_realloc()
81 if (state->format->planes == 2) in rcar_du_plane_hwmask()
[all …]
Drcar_du_group.h2 * rcar_du_group.c -- R-Car Display Unit Planes and CRTCs Group
24 * struct rcar_du_group - CRTCs and planes group
33 * @dptsr_planes: bitmask of planes driven by dot-clock and timing generator 1
34 * @num_planes: number of planes in the group
35 * @planes: planes handled by the group
52 struct rcar_du_plane planes[RCAR_DU_NUM_KMS_PLANES]; member
Drcar_du_plane.h2 * rcar_du_plane.h -- R-Car Display Unit Planes
24 * The RCAR DU has 8 hardware planes, shared between primary and overlay planes.
25 * As using overlay planes requires at least one of the CRTCs being enabled, no
26 * more than 7 overlay planes can be available. We thus create 1 primary plane
27 * per CRTC and 7 overlay planes, for a total of up to 9 KMS planes.
Drcar_du_kms.c41 .planes = 1,
47 .planes = 1,
53 .planes = 1,
59 .planes = 1,
65 .planes = 1,
71 .planes = 1,
77 .planes = 1,
83 .planes = 2,
89 .planes = 2,
95 .planes = 2,
[all …]
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
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[plane].data_offset > 0 && in __verify_length()
[all …]
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[plane].mem_priv); in __vb2_buf_userptr_put()
[all …]
/kernel/linux/linux-4.19/drivers/media/common/videobuf2/
Dvideobuf2-core.c204 * Allocate memory for all planes in this buffer in __vb2_buf_mem_alloc()
208 unsigned long size = PAGE_ALIGN(vb->planes[plane].length); in __vb2_buf_mem_alloc()
211 if (size < vb->planes[plane].length) in __vb2_buf_mem_alloc()
224 vb->planes[plane].mem_priv = mem_priv; in __vb2_buf_mem_alloc()
231 call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); in __vb2_buf_mem_alloc()
232 vb->planes[plane - 1].mem_priv = NULL; in __vb2_buf_mem_alloc()
246 call_void_memop(vb, put, vb->planes[plane].mem_priv); in __vb2_buf_mem_free()
247 vb->planes[plane].mem_priv = NULL; in __vb2_buf_mem_free()
261 if (vb->planes[plane].mem_priv) in __vb2_buf_userptr_put()
262 call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv); in __vb2_buf_userptr_put()
[all …]
Dvideobuf2-v4l2.c53 * __verify_planes_array() - verify that the planes array passed in struct
62 if (b->m.planes == NULL) { in __verify_planes_array()
63 dprintk(1, "multi-planar buffer passed but planes array not provided\n"); in __verify_planes_array()
68 dprintk(1, "incorrect planes array length, expected %d, got %d\n", in __verify_planes_array()
98 ? b->m.planes[plane].length in __verify_length()
99 : vb->planes[plane].length; in __verify_length()
100 bytesused = b->m.planes[plane].bytesused in __verify_length()
101 ? b->m.planes[plane].bytesused : length; in __verify_length()
103 if (b->m.planes[plane].bytesused > length) in __verify_length()
106 if (b->m.planes[plane].data_offset > 0 && in __verify_length()
[all …]
/kernel/linux/linux-4.19/include/drm/
Ddrm_plane.h132 * Note that multiple active planes on the same crtc can have an
145 * number of active planes for given crtc. Note that the driver must set
256 * with the frame buffer ID set to 0. Disabled planes must not be
481 * For historical reasons not all planes are made the same. This enumeration is
482 * used to tell the different types of planes apart to implement the different
484 * which is using that atomic IOCTL there's no difference between these planes
487 * For compatibility with legacy userspace, only overlay planes are made
500 * Overlay planes represent all non-primary, non-cursor planes. Some
501 * drivers refer to these types of planes as "sprites" internally.
508 * Primary planes represent a "main" plane for a CRTC. Primary planes
[all …]
Ddrm_atomic.h270 * @planes: pointer to array of structures with per-plane data
289 struct __drm_planes_state *planes; member
301 * Used for signaling unbound planes/connectors.
468 return state->planes[drm_plane_index(plane)].state; in drm_atomic_get_existing_plane_state()
483 return state->planes[drm_plane_index(plane)].old_state; in drm_atomic_get_old_plane_state()
498 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state()
572 * not change, state of other planes, since it avoids threading an error code
580 * example is when planes are fixed to a single CRTC, and the driver knows that
582 * read-lock on all planes connected to that CRTC. But if planes can be
594 if (state->planes[drm_plane_index(plane)].state) in __drm_atomic_get_current_plane_state()
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_plane.h144 * planes on the same CRTC have identical zpos values. This is a
157 * number of active planes for given crtc. Note that the driver must set
296 * with the frame buffer ID set to 0. Disabled planes must not be
521 * For historical reasons not all planes are made the same. This enumeration is
522 * used to tell the different types of planes apart to implement the different
524 * which is using that atomic IOCTL there's no difference between these planes
527 * For compatibility with legacy userspace, only overlay planes are made
540 * Overlay planes represent all non-primary, non-cursor planes. Some
541 * drivers refer to these types of planes as "sprites" internally.
548 * Primary planes represent a "main" plane for a CRTC. Primary planes
[all …]
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 can be
666 if (state->planes[drm_plane_index(plane)].state) in __drm_atomic_get_current_plane_state()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
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[i]; in sun4i_crtc_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_blend.c132 * planes. Without this property the primary plane is always below the cursor
133 * plane, and ordering between all other planes is undefined. The positive
134 * Z axis points towards the user, i.e. planes with lower Z position values
135 * are underneath planes with higher Z position values. Two planes with the
138 * stacking of planes, see drm_plane_create_zpos_immutable_property(). If
140 * planes shall have a zpos property.
340 * for it in drm core. Drivers can then attach this property to planes to enable
341 * support for configurable planes arrangement during blending operation.
346 * should be set to 0 and max to maximal number of planes for given crtc - 1.
348 * If zpos of some planes cannot be changed (like fixed background or
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/
Ddrm_blend.c107 * planes. Without this property the primary plane is always below the cursor
108 * plane, and ordering between all other planes is undefined.
256 * for it in drm core. Drivers can then attach this property to planes to enable
257 * support for configurable planes arrangement during blending operation.
262 * should be set to 0 and max to maximal number of planes for given crtc - 1.
264 * If zpos of some planes cannot be changed (like fixed background or
265 * cursor/topmost planes), driver should adjust min/max values and assign those
266 * planes immutable zpos property with lower or higher values (for more
268 * case driver should also assign proper initial zpos values for all planes in
269 * its plane_reset() callback, so the planes will be always sorted properly.
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/sun4i/
Dsun4i_crtc.c194 struct drm_plane **planes; in sun4i_crtc_init() local
205 planes = sunxi_engine_layers_init(drm, engine); in sun4i_crtc_init()
206 if (IS_ERR(planes)) { in sun4i_crtc_init()
207 dev_err(drm->dev, "Couldn't create the planes\n"); in sun4i_crtc_init()
211 /* find primary and cursor planes for drm_crtc_init_with_planes */ in sun4i_crtc_init()
212 for (i = 0; planes[i]; i++) { in sun4i_crtc_init()
213 struct drm_plane *plane = planes[i]; in sun4i_crtc_init()
243 /* Set possible_crtcs to this crtc for overlay planes */ in sun4i_crtc_init()
244 for (i = 0; planes[i]; i++) { in sun4i_crtc_init()
246 struct drm_plane *plane = planes[i]; in sun4i_crtc_init()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
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.planar_rgb.b.offset; in sh_css_copy_frame_to_spframe()
482 sp_frame_out->planes.yuyv.offset = frame_in->planes.yuyv.offset; in sh_css_copy_frame_to_spframe()
491 sp_frame_out->planes.nv.y.offset = in sh_css_copy_frame_to_spframe()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/frame/src/
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 aligned, this means double the alignment for the in ia_css_frame_info_set_width()
[all …]

12345678910>>...27