Home
last modified time | relevance | path

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

123

/drivers/media/platform/vivid/
Dvivid-vid-common.c52 .planes = 1,
61 .planes = 1,
69 .planes = 1,
77 .planes = 1,
85 .planes = 3,
93 .planes = 3,
101 .planes = 3,
109 .planes = 2,
117 .planes = 2,
125 .planes = 2,
[all …]
Dvivid-vid-out.c41 unsigned planes = vfmt->buffers; in vid_out_queue_setup() local
46 for (p = vfmt->buffers; p < vfmt->planes; p++) in vid_out_queue_setup()
80 if (mp->num_planes != planes) in vid_out_queue_setup()
85 for (p = 1; p < planes; p++) { in vid_out_queue_setup()
91 for (p = 0; p < planes; p++) in vid_out_queue_setup()
98 *nplanes = planes; in vid_out_queue_setup()
106 for (p = 0; p < planes; p++) in vid_out_queue_setup()
116 unsigned planes; in vid_out_buf_prepare() local
124 planes = dev->fmt_out->planes; in vid_out_buf_prepare()
141 for (p = 0; p < planes; p++) { in vid_out_buf_prepare()
[all …]
Dvivid-tpg.c181 tpg->planes = 1; in tpg_s_fourcc()
207 tpg->planes = 2; in tpg_s_fourcc()
251 tpg->planes = 3; in tpg_s_fourcc()
259 tpg->planes = 3; in tpg_s_fourcc()
271 tpg->planes = 2; in tpg_s_fourcc()
283 tpg->planes = 2; in tpg_s_fourcc()
290 tpg->planes = 2; in tpg_s_fourcc()
422 for (p = 0; p < tpg->planes; p++) in tpg_reset_source()
1495 for (p = 0; p < tpg->planes; p++) { in tpg_precalculate_line()
1505 if (tpg->vdownsampling[tpg->planes - 1] > 1) { in tpg_precalculate_line()
[all …]
/drivers/media/v4l2-core/
Dvideobuf2-core.c64 vb->planes[plane].mem_priv = mem_priv; in __vb2_buf_mem_alloc()
65 vb->planes[plane].length = q->plane_sizes[plane]; in __vb2_buf_mem_alloc()
72 call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); in __vb2_buf_mem_alloc()
73 vb->planes[plane - 1].mem_priv = NULL; in __vb2_buf_mem_alloc()
87 call_void_memop(vb, put, vb->planes[plane].mem_priv); in __vb2_buf_mem_free()
88 vb->planes[plane].mem_priv = NULL; in __vb2_buf_mem_free()
102 if (vb->planes[plane].mem_priv) in __vb2_buf_userptr_put()
103 call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv); in __vb2_buf_userptr_put()
104 vb->planes[plane].mem_priv = NULL; in __vb2_buf_userptr_put()
136 __vb2_plane_dmabuf_put(vb, &vb->planes[plane]); in __vb2_buf_dmabuf_put()
[all …]
Dvideobuf2-v4l2.c55 if (NULL == b->m.planes) { in __verify_planes_array()
92 ? b->m.planes[plane].length in __verify_length()
93 : vb->planes[plane].length; in __verify_length()
94 bytesused = b->m.planes[plane].bytesused in __verify_length()
95 ? b->m.planes[plane].bytesused : length; in __verify_length()
97 if (b->m.planes[plane].bytesused > length) in __verify_length()
100 if (b->m.planes[plane].data_offset > 0 && in __verify_length()
101 b->m.planes[plane].data_offset >= bytesused) in __verify_length()
106 ? b->length : vb->planes[0].length; in __verify_length()
211 struct v4l2_plane *pdst = &b->m.planes[plane]; in __fill_v4l2_buffer()
[all …]
/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c40 .planes = 1,
46 .planes = 1,
52 .planes = 1,
58 .planes = 1,
64 .planes = 1,
70 .planes = 1,
76 .planes = 1,
82 .planes = 2,
88 .planes = 2,
95 .planes = 2,
[all …]
Drcar_du_crtc.c209 struct rcar_du_plane *planes[RCAR_DU_NUM_HW_PLANES]; in rcar_du_crtc_update_planes() local
218 struct rcar_du_plane *plane = &rcrtc->group->planes[i]; in rcar_du_crtc_update_planes()
226 if (plane_zpos(planes[j-1]) <= plane_zpos(plane)) in rcar_du_crtc_update_planes()
228 planes[j] = planes[j-1]; in rcar_du_crtc_update_planes()
231 planes[j] = plane; in rcar_du_crtc_update_planes()
232 prio += plane_format(plane)->planes * 4; in rcar_du_crtc_update_planes()
236 struct rcar_du_plane *plane = planes[i]; in rcar_du_crtc_update_planes()
244 if (plane_format(plane)->planes == 2) { in rcar_du_crtc_update_planes()
453 struct rcar_du_plane *plane = &rcrtc->group->planes[i]; in rcar_du_crtc_resume()
637 &rgrp->planes[index % 2].plane, in rcar_du_crtc_create()
Drcar_du_plane.c64 if (state->format->planes == 2) in rcar_du_plane_setup_fb()
93 if (state->format->planes == 2) { in rcar_du_plane_setup_fb()
191 if (state->format->planes == 2) { in __rcar_du_plane_setup()
228 if (state->format->planes == 2) in rcar_du_plane_setup()
407 struct rcar_du_plane *plane = &rgrp->planes[i]; in rcar_du_planes_init()
Drcar_du_kms.h27 unsigned int planes; member
Drcar_du_group.h49 struct rcar_du_plane planes[RCAR_DU_NUM_KMS_PLANES]; member
/drivers/gpu/drm/omapdrm/
Domap_fb.c37 } planes[4]; member
91 struct plane planes[4]; member
102 omap_fb->planes[0].bo, handle); in omap_framebuffer_create_handle()
115 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_destroy()
142 (x * format->planes[n].stride_bpp) + in get_linear_addr()
143 (y * plane->pitch / format->planes[n].sub_y); in get_linear_addr()
155 struct plane *plane = &omap_fb->planes[0]; in omap_framebuffer_update_scanout()
232 info->screen_width /= format->planes[0].stride_bpp; in omap_framebuffer_update_scanout()
235 plane = &omap_fb->planes[1]; in omap_framebuffer_update_scanout()
264 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_pin()
[all …]
/drivers/gpu/drm/tegra/
Dfb.c36 return fb->planes[index]; in tegra_fb_get_plane()
43 if (fb->planes[0]->flags & TEGRA_BO_BOTTOM_UP) in tegra_fb_is_bottom_up()
55 *tiling = fb->planes[0]->tiling; in tegra_fb_get_tiling()
66 struct tegra_bo *bo = fb->planes[i]; in tegra_fb_destroy()
77 kfree(fb->planes); in tegra_fb_destroy()
86 return drm_gem_handle_create(file, &fb->planes[0]->gem, handle); in tegra_fb_create_handle()
96 struct tegra_bo **planes, in tegra_fb_alloc() argument
107 fb->planes = kzalloc(num_planes * sizeof(*planes), GFP_KERNEL); in tegra_fb_alloc()
108 if (!fb->planes) { in tegra_fb_alloc()
118 fb->planes[i] = planes[i]; in tegra_fb_alloc()
[all …]
/drivers/gpu/drm/msm/
Dmsm_fb.c27 struct drm_gem_object *planes[MAX_PLANE]; member
38 msm_fb->planes[0], handle); in msm_framebuffer_create_handle()
51 struct drm_gem_object *bo = msm_fb->planes[i]; in msm_framebuffer_destroy()
85 msm_gem_describe(msm_fb->planes[i], m); in msm_framebuffer_describe()
102 ret = msm_gem_get_iova(msm_fb->planes[i], id, &iova); in msm_framebuffer_prepare()
117 msm_gem_put_iova(msm_fb->planes[i], id); in msm_framebuffer_cleanup()
123 if (!msm_fb->planes[plane]) in msm_framebuffer_iova()
125 return msm_gem_iova(msm_fb->planes[plane], id) + fb->offsets[plane]; in msm_framebuffer_iova()
131 return msm_fb->planes[plane]; in msm_framebuffer_bo()
207 if (n > ARRAY_SIZE(msm_fb->planes)) { in msm_framebuffer_init()
[all …]
/drivers/video/fbdev/
Dsh_mobile_meram.c138 struct sh_mobile_meram_fb_plane planes[2]; member
273 struct sh_mobile_meram_icb *icb = cache->planes[0].marker; in meram_set_next_addr()
280 meram_write_icb(priv->base, cache->planes[0].cache->index, target, in meram_set_next_addr()
282 meram_write_icb(priv->base, cache->planes[0].marker->index, target, in meram_set_next_addr()
283 base_addr_y + cache->planes[0].marker->cache_unit); in meram_set_next_addr()
286 meram_write_icb(priv->base, cache->planes[1].cache->index, in meram_set_next_addr()
288 meram_write_icb(priv->base, cache->planes[1].marker->index, in meram_set_next_addr()
290 cache->planes[1].marker->cache_unit); in meram_set_next_addr()
300 struct sh_mobile_meram_icb *icb = cache->planes[0].marker; in meram_get_next_icb_addr()
308 *icb_addr_y = icb_offset | (cache->planes[0].marker->index << 24); in meram_get_next_icb_addr()
[all …]
/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_dc.c435 struct atmel_hlcdc_planes *planes; in atmel_hlcdc_dc_modeset_init() local
447 planes = atmel_hlcdc_create_planes(dev); in atmel_hlcdc_dc_modeset_init()
448 if (IS_ERR(planes)) { in atmel_hlcdc_dc_modeset_init()
450 return PTR_ERR(planes); in atmel_hlcdc_dc_modeset_init()
453 dc->planes = planes; in atmel_hlcdc_dc_modeset_init()
455 dc->layers[planes->primary->layer.desc->id] = in atmel_hlcdc_dc_modeset_init()
456 &planes->primary->layer; in atmel_hlcdc_dc_modeset_init()
458 if (planes->cursor) in atmel_hlcdc_dc_modeset_init()
459 dc->layers[planes->cursor->layer.desc->id] = in atmel_hlcdc_dc_modeset_init()
460 &planes->cursor->layer; in atmel_hlcdc_dc_modeset_init()
[all …]
Datmel_hlcdc_crtc.c339 struct atmel_hlcdc_planes *planes = dc->planes; in atmel_hlcdc_crtc_create() local
351 &planes->primary->base, in atmel_hlcdc_crtc_create()
352 planes->cursor ? &planes->cursor->base : NULL, in atmel_hlcdc_crtc_create()
359 if (planes->cursor) in atmel_hlcdc_crtc_create()
360 planes->cursor->base.possible_crtcs = 1 << crtc->id; in atmel_hlcdc_crtc_create()
362 for (i = 0; i < planes->noverlays; i++) in atmel_hlcdc_crtc_create()
363 planes->overlays[i]->base.possible_crtcs = 1 << crtc->id; in atmel_hlcdc_crtc_create()
Datmel_hlcdc_plane.c989 struct atmel_hlcdc_planes *planes; in atmel_hlcdc_create_planes() local
994 planes = devm_kzalloc(dev->dev, sizeof(*planes), GFP_KERNEL); in atmel_hlcdc_create_planes()
995 if (!planes) in atmel_hlcdc_create_planes()
1000 planes->noverlays++; in atmel_hlcdc_create_planes()
1003 if (planes->noverlays) { in atmel_hlcdc_create_planes()
1004 planes->overlays = devm_kzalloc(dev->dev, in atmel_hlcdc_create_planes()
1005 planes->noverlays * in atmel_hlcdc_create_planes()
1006 sizeof(*planes->overlays), in atmel_hlcdc_create_planes()
1008 if (!planes->overlays) in atmel_hlcdc_create_planes()
1016 planes->noverlays = 0; in atmel_hlcdc_create_planes()
[all …]
Datmel_hlcdc_dc.h137 struct atmel_hlcdc_planes *planes; member
/drivers/gpu/drm/sti/
DNOTES9 - The graphics planes are internally processed by the Generic Display
41 - The Framebuffers and planes are mapped to the Compositor GDP (non video
47 FB & planes Cursor CRTC Encoders Bridges/Connectors
/drivers/media/usb/go7007/
Dgo7007-driver.c389 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte()
392 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte()
420 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions()
461 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in frame_boundary()
523 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= in go7007_parse_video_stream()
526 vb->vb.vb2_buf.planes[0].bytesused = 0; in go7007_parse_video_stream()
607 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
/drivers/gpu/drm/exynos/
Dexynos_drm_vidi.c43 struct exynos_drm_plane planes[WINDOWS_NR]; member
208 struct exynos_drm_plane *plane = &ctx->planes[win]; in vidi_fake_vblank_handler()
450 ret = exynos_plane_init(drm_dev, &ctx->planes[zpos], in vidi_bind()
457 exynos_plane = &ctx->planes[DEFAULT_WIN]; in vidi_bind()
Dexynos5433_drm_decon.c58 struct exynos_drm_plane planes[WINDOWS_NR]; member
426 decon_disable_plane(crtc, &ctx->planes[i]); in decon_disable()
511 ret = exynos_plane_init(drm_dev, &ctx->planes[win], in decon_bind()
518 exynos_plane = &ctx->planes[ctx->first_win]; in decon_bind()
570 struct exynos_drm_plane *plane = &ctx->planes[win]; in decon_irq_handler()
Dexynos7_drm_decon.c49 struct exynos_drm_plane planes[WINDOWS_NR]; member
614 decon_disable_plane(crtc, &ctx->planes[i]); in decon_disable()
659 struct exynos_drm_plane *plane = &ctx->planes[win]; in decon_irq_handler()
694 ret = exynos_plane_init(drm_dev, &ctx->planes[zpos], in decon_bind()
701 exynos_plane = &ctx->planes[DEFAULT_WIN]; in decon_bind()
/drivers/media/platform/s5p-tv/
Dmixer_video.c273 static void mxr_mplane_fill(struct v4l2_plane_pix_format *planes, in mxr_mplane_fill() argument
279 if (!planes) in mxr_mplane_fill()
282 memset(planes, 0, sizeof(*planes) * fmt->num_subframes); in mxr_mplane_fill()
284 struct v4l2_plane_pix_format *plane = planes in mxr_mplane_fill()
892 struct v4l2_plane_pix_format planes[3]; in queue_setup() local
899 mxr_mplane_fill(planes, fmt, layer->geo.src.full_width, in queue_setup()
905 sizes[i] = planes[i].sizeimage; in queue_setup()
/drivers/gpu/drm/
Ddrm_atomic.c47 kfree(state->planes); in drm_atomic_state_default_release()
78 state->planes = kcalloc(dev->mode_config.num_total_plane, in drm_atomic_state_init()
79 sizeof(*state->planes), GFP_KERNEL); in drm_atomic_state_init()
80 if (!state->planes) in drm_atomic_state_init()
183 struct drm_plane *plane = state->planes[i]; in drm_atomic_state_default_clear()
190 state->planes[i] = NULL; in drm_atomic_state_default_clear()
544 state->planes[index] = plane; in drm_atomic_get_plane_state()

123