Lines Matching refs:canvas
258 priv->canvas = meson_canvas_get(dev); in meson_drv_bind_master()
259 if (IS_ERR(priv->canvas)) { in meson_drv_bind_master()
260 ret = PTR_ERR(priv->canvas); in meson_drv_bind_master()
264 ret = meson_canvas_alloc(priv->canvas, &priv->canvas_id_osd1); in meson_drv_bind_master()
267 ret = meson_canvas_alloc(priv->canvas, &priv->canvas_id_vd1_0); in meson_drv_bind_master()
269 meson_canvas_free(priv->canvas, priv->canvas_id_osd1); in meson_drv_bind_master()
272 ret = meson_canvas_alloc(priv->canvas, &priv->canvas_id_vd1_1); in meson_drv_bind_master()
274 meson_canvas_free(priv->canvas, priv->canvas_id_osd1); in meson_drv_bind_master()
275 meson_canvas_free(priv->canvas, priv->canvas_id_vd1_0); in meson_drv_bind_master()
278 ret = meson_canvas_alloc(priv->canvas, &priv->canvas_id_vd1_2); in meson_drv_bind_master()
280 meson_canvas_free(priv->canvas, priv->canvas_id_osd1); in meson_drv_bind_master()
281 meson_canvas_free(priv->canvas, priv->canvas_id_vd1_0); in meson_drv_bind_master()
282 meson_canvas_free(priv->canvas, priv->canvas_id_vd1_1); in meson_drv_bind_master()
385 if (priv->canvas) { in meson_drv_unbind()
386 meson_canvas_free(priv->canvas, priv->canvas_id_osd1); in meson_drv_unbind()
387 meson_canvas_free(priv->canvas, priv->canvas_id_vd1_0); in meson_drv_unbind()
388 meson_canvas_free(priv->canvas, priv->canvas_id_vd1_1); in meson_drv_unbind()
389 meson_canvas_free(priv->canvas, priv->canvas_id_vd1_2); in meson_drv_unbind()