Lines Matching full:rga

9 #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
156 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_trans_info()
240 * RGA used to scale the picture first, and then rotate second, in rga_cmd_set_trans_info()
245 if (rga->version.major == 0 || rga->version.minor == 0) { in rga_cmd_set_trans_info()
316 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_src_info() local
317 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_src_info()
344 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_dst_info() local
345 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_dst_info()
391 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_mode() local
392 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_mode()
415 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set() local
417 memset(rga->cmdbuf_virt, 0, RGA_CMDBUF_SIZE * 4); in rga_cmd_set()
433 rga_write(rga, RGA_CMD_BASE, rga->cmdbuf_phy); in rga_cmd_set()
435 /* sync CMD buf for RGA */ in rga_cmd_set()
436 dma_sync_single_for_device(rga->dev, rga->cmdbuf_phy, in rga_cmd_set()
440 void rga_hw_start(struct rockchip_rga *rga, in rga_hw_start() argument
443 struct rga_ctx *ctx = rga->curr; in rga_hw_start()
447 rga_write(rga, RGA_SYS_CTRL, 0x00); in rga_hw_start()
449 rga_write(rga, RGA_SYS_CTRL, 0x22); in rga_hw_start()
451 rga_write(rga, RGA_INT, 0x600); in rga_hw_start()
453 rga_write(rga, RGA_CMD_CTRL, 0x1); in rga_hw_start()