Lines Matching refs:vsp
88 vsp1_du_setup_lif(crtc->vsp->vsp, crtc->vsp_pipe, &cfg); in rcar_du_vsp_enable()
93 vsp1_du_setup_lif(crtc->vsp->vsp, crtc->vsp_pipe, NULL); in rcar_du_vsp_disable()
98 vsp1_du_atomic_begin(crtc->vsp->vsp, crtc->vsp_pipe); in rcar_du_vsp_atomic_begin()
111 vsp1_du_atomic_flush(crtc->vsp->vsp, crtc->vsp_pipe, &cfg); in rcar_du_vsp_atomic_flush()
193 vsp1_du_atomic_update(plane->vsp->vsp, crtc->vsp_pipe, in rcar_du_vsp_plane_setup()
197 int rcar_du_vsp_map_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, in rcar_du_vsp_map_fb() argument
200 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_map_fb()
239 ret = vsp1_du_map_sg(vsp->vsp, sgt); in rcar_du_vsp_map_fb()
252 vsp1_du_unmap_sg(vsp->vsp, sgt); in rcar_du_vsp_map_fb()
263 struct rcar_du_vsp *vsp = to_rcar_vsp_plane(plane)->vsp; in rcar_du_vsp_plane_prepare_fb() local
273 ret = rcar_du_vsp_map_fb(vsp, state->fb, rstate->sg_tables); in rcar_du_vsp_plane_prepare_fb()
280 void rcar_du_vsp_unmap_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, in rcar_du_vsp_unmap_fb() argument
288 vsp1_du_unmap_sg(vsp->vsp, sgt); in rcar_du_vsp_unmap_fb()
297 struct rcar_du_vsp *vsp = to_rcar_vsp_plane(plane)->vsp; in rcar_du_vsp_plane_cleanup_fb() local
302 rcar_du_vsp_unmap_fb(vsp, state->fb, rstate->sg_tables); in rcar_du_vsp_plane_cleanup_fb()
327 vsp1_du_atomic_update(rplane->vsp->vsp, crtc->vsp_pipe, in rcar_du_vsp_plane_atomic_update()
389 struct rcar_du_vsp *vsp = res; in rcar_du_vsp_cleanup() local
392 for (i = 0; i < vsp->num_planes; ++i) { in rcar_du_vsp_cleanup()
393 struct rcar_du_vsp_plane *plane = &vsp->planes[i]; in rcar_du_vsp_cleanup()
398 kfree(vsp->planes); in rcar_du_vsp_cleanup()
400 put_device(vsp->vsp); in rcar_du_vsp_cleanup()
403 int rcar_du_vsp_init(struct rcar_du_vsp *vsp, struct device_node *np, in rcar_du_vsp_init() argument
406 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_init()
418 vsp->vsp = &pdev->dev; in rcar_du_vsp_init()
420 ret = drmm_add_action_or_reset(&rcdu->ddev, rcar_du_vsp_cleanup, vsp); in rcar_du_vsp_init()
424 ret = vsp1_du_init(vsp->vsp); in rcar_du_vsp_init()
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()
440 plane->vsp = vsp; in rcar_du_vsp_init()
463 vsp->num_planes++; in rcar_du_vsp_init()