Lines Matching refs:vsp
89 vsp1_du_setup_lif(crtc->vsp->vsp, crtc->vsp_pipe, &cfg); in rcar_du_vsp_enable()
94 vsp1_du_setup_lif(crtc->vsp->vsp, crtc->vsp_pipe, NULL); in rcar_du_vsp_disable()
99 vsp1_du_atomic_begin(crtc->vsp->vsp, crtc->vsp_pipe); in rcar_du_vsp_atomic_begin()
112 vsp1_du_atomic_flush(crtc->vsp->vsp, crtc->vsp_pipe, &cfg); in rcar_du_vsp_atomic_flush()
254 vsp1_du_atomic_update(plane->vsp->vsp, crtc->vsp_pipe, in rcar_du_vsp_plane_setup()
258 int rcar_du_vsp_map_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, in rcar_du_vsp_map_fb() argument
261 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_map_fb()
300 ret = vsp1_du_map_sg(vsp->vsp, sgt); in rcar_du_vsp_map_fb()
313 vsp1_du_unmap_sg(vsp->vsp, sgt); in rcar_du_vsp_map_fb()
324 struct rcar_du_vsp *vsp = to_rcar_vsp_plane(plane)->vsp; in rcar_du_vsp_plane_prepare_fb() local
334 ret = rcar_du_vsp_map_fb(vsp, state->fb, rstate->sg_tables); in rcar_du_vsp_plane_prepare_fb()
341 void rcar_du_vsp_unmap_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, in rcar_du_vsp_unmap_fb() argument
349 vsp1_du_unmap_sg(vsp->vsp, sgt); in rcar_du_vsp_unmap_fb()
358 struct rcar_du_vsp *vsp = to_rcar_vsp_plane(plane)->vsp; in rcar_du_vsp_plane_cleanup_fb() local
363 rcar_du_vsp_unmap_fb(vsp, state->fb, rstate->sg_tables); in rcar_du_vsp_plane_cleanup_fb()
388 vsp1_du_atomic_update(rplane->vsp->vsp, crtc->vsp_pipe, in rcar_du_vsp_plane_atomic_update()
450 struct rcar_du_vsp *vsp = res; in rcar_du_vsp_cleanup() local
453 for (i = 0; i < vsp->num_planes; ++i) { in rcar_du_vsp_cleanup()
454 struct rcar_du_vsp_plane *plane = &vsp->planes[i]; in rcar_du_vsp_cleanup()
459 kfree(vsp->planes); in rcar_du_vsp_cleanup()
461 put_device(vsp->vsp); in rcar_du_vsp_cleanup()
464 int rcar_du_vsp_init(struct rcar_du_vsp *vsp, struct device_node *np, in rcar_du_vsp_init() argument
467 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_init()
479 vsp->vsp = &pdev->dev; in rcar_du_vsp_init()
481 ret = drmm_add_action_or_reset(&rcdu->ddev, rcar_du_vsp_cleanup, vsp); in rcar_du_vsp_init()
485 ret = vsp1_du_init(vsp->vsp); in rcar_du_vsp_init()
491 vsp->planes = kcalloc(num_planes, sizeof(*vsp->planes), GFP_KERNEL); in rcar_du_vsp_init()
492 if (!vsp->planes) in rcar_du_vsp_init()
499 struct rcar_du_vsp_plane *plane = &vsp->planes[i]; in rcar_du_vsp_init()
511 plane->vsp = vsp; in rcar_du_vsp_init()
533 vsp->num_planes++; in rcar_du_vsp_init()