Home
last modified time | relevance | path

Searched full:rga (Results 1 – 20 of 20) sorted by relevance

/linux-6.12.1/drivers/media/platform/rockchip/rga/
Drga.c28 #include "rga-hw.h"
29 #include "rga.h"
37 struct rockchip_rga *rga = ctx->rga; in device_run() local
41 spin_lock_irqsave(&rga->ctrl_lock, flags); in device_run()
43 rga->curr = ctx; in device_run()
50 rga_hw_start(rga, vb_to_rga(src), vb_to_rga(dst)); in device_run()
52 spin_unlock_irqrestore(&rga->ctrl_lock, flags); in device_run()
57 struct rockchip_rga *rga = prv; in rga_isr() local
60 intr = rga_read(rga, RGA_INT) & 0xf; in rga_isr()
62 rga_mod(rga, RGA_INT, intr << 4, 0xf << 4); in rga_isr()
[all …]
Drga-hw.c9 #include "rga-hw.h"
10 #include "rga.h"
29 * The rga hw scaling factor is a normalized inverse of the in rga_get_scaling()
116 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_src_addr() local
117 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_src_addr()
129 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_src1_addr() local
130 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_src1_addr()
142 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_dst_addr() local
143 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_dst_addr()
155 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_trans_info() local
[all …]
Drga.h14 #define RGA_NAME "rockchip-rga"
55 struct rockchip_rga *rga; member
104 /* RGA MMU mapping for this buffer */
120 /* RGA Buffers Manage */
123 /* RGA Hardware */
124 static inline void rga_write(struct rockchip_rga *rga, u32 reg, u32 value) in rga_write() argument
126 writel(value, rga->regs + reg); in rga_write()
129 static inline u32 rga_read(struct rockchip_rga *rga, u32 reg) in rga_read() argument
131 return readl(rga->regs + reg); in rga_read()
134 static inline void rga_mod(struct rockchip_rga *rga, u32 reg, u32 val, u32 mask) in rga_mod() argument
[all …]
Drga-buf.c17 #include "rga-hw.h"
18 #include "rga.h"
79 struct rockchip_rga *rga = ctx->rga; in rga_buf_init() local
86 rbuf->dma_desc = dma_alloc_coherent(rga->dev, in rga_buf_init()
125 /* Create local MMU table for RGA */ in rga_buf_prepare()
130 v4l2_err(&ctx->rga->v4l2_dev, in rga_buf_prepare()
131 "Failed to map video buffer to RGA\n"); in rga_buf_prepare()
163 struct rockchip_rga *rga = ctx->rga; in rga_buf_cleanup() local
165 dma_free_coherent(rga->dev, rbuf->n_desc * sizeof(*rbuf->dma_desc), in rga_buf_cleanup()
189 struct rockchip_rga *rga = ctx->rga; in rga_buf_start_streaming() local
[all …]
DMakefile2 rockchip-rga-objs := rga.o rga-hw.o rga-buf.o
4 obj-$(CONFIG_VIDEO_ROCKCHIP_RGA) += rockchip-rga.o
DKconfig9 This is a v4l2 driver for Rockchip SOC RGA 2d graphics accelerator.
10 Rockchip RGA is a separate 2D raster graphic acceleration unit.
/linux-6.12.1/Documentation/devicetree/bindings/media/
Drockchip-rga.yaml4 $id: http://devicetree.org/schemas/media/rockchip-rga.yaml#
7 title: Rockchip 2D raster graphic acceleration controller (RGA)
10 RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D
21 - const: rockchip,rk3288-rga
22 - const: rockchip,rk3399-rga
25 - rockchip,rk3228-rga
26 - rockchip,rk3568-rga
27 - rockchip,rk3588-rga
28 - const: rockchip,rk3288-rga
73 rga: rga@ff680000 {
[all …]
/linux-6.12.1/drivers/media/platform/rockchip/
DMakefile2 obj-y += rga/
DKconfig5 source "drivers/media/platform/rockchip/rga/Kconfig"
/linux-6.12.1/Documentation/admin-guide/media/
Dplatform-cardlist.rst52 rockchip-rga Rockchip Raster 2d Graphic Acceleration Unit
/linux-6.12.1/arch/arm/boot/dts/rockchip/
Drk322x.dtsi698 rga: rga@20060000 { label
699 compatible = "rockchip,rk3228-rga", "rockchip,rk3288-rga";
Drk3288.dtsi771 * *_RGA RGA
1017 rga: rga@ff920000 { label
1018 compatible = "rockchip,rk3288-rga";
/linux-6.12.1/arch/arm64/boot/dts/rockchip/
Drk356x.dtsi658 rga: rga@fdeb0000 { label
659 compatible = "rockchip,rk3568-rga", "rockchip,rk3288-rga";
Drk3588-base.dtsi1150 rga: rga@fdb80000 { label
1151 compatible = "rockchip,rk3588-rga", "rockchip,rk3288-rga";
Drk3399-base.dtsi1488 rga: rga@ff680000 { label
1489 compatible = "rockchip,rk3399-rga";
Drk3368.dtsi649 * *_RGA RGA
/linux-6.12.1/drivers/pmdomain/rockchip/
Dpm-domains.c1116 [RK3399_PD_RGA] = DOMAIN_RK3399("rga", BIT(18), BIT(18), BIT(5), false),
1138 [RK3568_PD_RGA] = DOMAIN_RK3568("rga", BIT(5), BIT(5), false),
/linux-6.12.1/drivers/clk/rockchip/
Dclk-rk3399.c796 /* rga */
Dclk-rk3588.c1611 /* rga */
/linux-6.12.1/
DMAINTAINERS19968 F: Documentation/devicetree/bindings/media/rockchip-rga.yaml
19969 F: drivers/media/platform/rockchip/rga/