Home
last modified time | relevance | path

Searched refs:canvas (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.10/drivers/soc/amlogic/
Dmeson-canvas.c41 static void canvas_write(struct meson_canvas *canvas, u32 reg, u32 val) in canvas_write() argument
43 writel_relaxed(val, canvas->reg_base + reg); in canvas_write()
46 static u32 canvas_read(struct meson_canvas *canvas, u32 reg) in canvas_read() argument
48 return readl_relaxed(canvas->reg_base + reg); in canvas_read()
55 struct meson_canvas *canvas; in meson_canvas_get() local
74 canvas = dev_get_drvdata(&canvas_pdev->dev); in meson_canvas_get()
75 if (!canvas) in meson_canvas_get()
78 return canvas; in meson_canvas_get()
82 int meson_canvas_config(struct meson_canvas *canvas, u8 canvas_index, in meson_canvas_config() argument
90 if (endian && !canvas->supports_endianness) { in meson_canvas_config()
[all …]
DMakefile2 obj-$(CONFIG_MESON_CANVAS) += meson-canvas.o
DKconfig9 Say yes to support the canvas IP for Amlogic SoCs.
/Linux-v5.10/drivers/gpu/drm/meson/
Dmeson_drv.c258 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()
[all …]
Dmeson_crtc.c370 meson_canvas_config(priv->canvas, priv->canvas_id_osd1, in meson_crtc_irq()
443 meson_canvas_config(priv->canvas, in meson_crtc_irq()
453 meson_canvas_config(priv->canvas, in meson_crtc_irq()
463 meson_canvas_config(priv->canvas, in meson_crtc_irq()
Dmeson_drv.h44 struct meson_canvas *canvas; member
/Linux-v5.10/include/linux/soc/amlogic/
Dmeson-canvas.h39 int meson_canvas_alloc(struct meson_canvas *canvas, u8 *canvas_index);
47 int meson_canvas_free(struct meson_canvas *canvas, u8 canvas_index);
61 int meson_canvas_config(struct meson_canvas *canvas, u8 canvas_index,
/Linux-v5.10/arch/arm/boot/dts/
Dmeson8m2.dtsi18 /* the offset of the canvas registers has changed compared to Meson8 */
21 canvas: video-lut@48 { label
22 compatible = "amlogic,meson8m2-canvas", "amlogic,canvas";
Dmeson8b.dtsi192 canvas: video-lut@48 { label
193 compatible = "amlogic,meson8b-canvas",
194 "amlogic,canvas";
Dmeson8.dtsi215 canvas: video-lut@20 { label
216 compatible = "amlogic,meson8-canvas",
217 "amlogic,canvas";
/Linux-v5.10/drivers/staging/media/meson/vdec/
Dvdec_helpers.c89 ret = meson_canvas_alloc(sess->core->canvas, canvas_id); in canvas_alloc()
116 meson_canvas_config(core->canvas, canvas_id[0], buf_paddr[0], in set_canvas_yuv420m()
122 meson_canvas_config(core->canvas, canvas_id[1], buf_paddr[1], in set_canvas_yuv420m()
128 meson_canvas_config(core->canvas, canvas_id[2], buf_paddr[2], in set_canvas_yuv420m()
160 meson_canvas_config(core->canvas, canvas_id[0], buf_paddr[0], in set_canvas_nv12m()
166 meson_canvas_config(core->canvas, canvas_id[1], buf_paddr[1], in set_canvas_nv12m()
Dvdec.h77 struct meson_canvas *canvas; member
Dvdec.c370 meson_canvas_free(sess->core->canvas, sess->canvas_alloc[i]); in vdec_free_canvas()
1031 core->canvas = meson_canvas_get(dev); in vdec_probe()
1032 if (IS_ERR(core->canvas)) in vdec_probe()
1033 return PTR_ERR(core->canvas); in vdec_probe()
/Linux-v5.10/arch/arm64/boot/dts/amlogic/
Dmeson-gx.dtsi512 amlogic,canvas = <&canvas>;
535 canvas: video-lut@48 { label
536 compatible = "amlogic,canvas";
622 amlogic,canvas = <&canvas>;
Dmeson-g12-common.dtsi1608 canvas: video-lut@48 { label
1609 compatible = "amlogic,canvas";
2113 amlogic,canvas = <&canvas>;
2134 amlogic,canvas = <&canvas>;