Lines Matching refs:rga
124 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_src_addr() local
125 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_src_addr()
137 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_src1_addr() local
138 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_src1_addr()
150 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_dst_addr() local
151 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_dst_addr()
163 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_trans_info() local
164 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_trans_info()
261 if (rga->version.major == 0 || rga->version.minor == 0) { in rga_cmd_set_trans_info()
357 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set_mode() local
358 u32 *dest = rga->cmdbuf_virt; in rga_cmd_set_mode()
380 struct rockchip_rga *rga = ctx->rga; in rga_cmd_set() local
382 memset(rga->cmdbuf_virt, 0, RGA_CMDBUF_SIZE * 4); in rga_cmd_set()
384 rga_cmd_set_src_addr(ctx, rga->src_mmu_pages); in rga_cmd_set()
389 rga_cmd_set_src1_addr(ctx, rga->dst_mmu_pages); in rga_cmd_set()
391 rga_cmd_set_dst_addr(ctx, rga->dst_mmu_pages); in rga_cmd_set()
396 rga_write(rga, RGA_CMD_BASE, rga->cmdbuf_phy); in rga_cmd_set()
399 dma_sync_single_for_device(rga->dev, rga->cmdbuf_phy, in rga_cmd_set()
403 void rga_hw_start(struct rockchip_rga *rga) in rga_hw_start() argument
405 struct rga_ctx *ctx = rga->curr; in rga_hw_start()
409 rga_write(rga, RGA_SYS_CTRL, 0x00); in rga_hw_start()
411 rga_write(rga, RGA_SYS_CTRL, 0x22); in rga_hw_start()
413 rga_write(rga, RGA_INT, 0x600); in rga_hw_start()
415 rga_write(rga, RGA_CMD_CTRL, 0x1); in rga_hw_start()