Lines Matching refs:rdma

50 #define RDMA_FIFO_SIZE(rdma)			((rdma)->data->fifo_size)  argument
91 struct mtk_disp_rdma *rdma = dev_get_drvdata(dev); in rdma_update_bits() local
92 unsigned int tmp = readl(rdma->regs + reg); in rdma_update_bits()
95 writel(tmp, rdma->regs + reg); in rdma_update_bits()
102 struct mtk_disp_rdma *rdma = dev_get_drvdata(dev); in mtk_rdma_register_vblank_cb() local
104 rdma->vblank_cb = vblank_cb; in mtk_rdma_register_vblank_cb()
105 rdma->vblank_cb_data = vblank_cb_data; in mtk_rdma_register_vblank_cb()
110 struct mtk_disp_rdma *rdma = dev_get_drvdata(dev); in mtk_rdma_unregister_vblank_cb() local
112 rdma->vblank_cb = NULL; in mtk_rdma_unregister_vblank_cb()
113 rdma->vblank_cb_data = NULL; in mtk_rdma_unregister_vblank_cb()
129 struct mtk_disp_rdma *rdma = dev_get_drvdata(dev); in mtk_rdma_clk_enable() local
131 return clk_prepare_enable(rdma->clk); in mtk_rdma_clk_enable()
136 struct mtk_disp_rdma *rdma = dev_get_drvdata(dev); in mtk_rdma_clk_disable() local
138 clk_disable_unprepare(rdma->clk); in mtk_rdma_clk_disable()
158 struct mtk_disp_rdma *rdma = dev_get_drvdata(dev); in mtk_rdma_config() local
161 mtk_ddp_write_mask(cmdq_pkt, width, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_config()
163 mtk_ddp_write_mask(cmdq_pkt, height, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_config()
166 if (rdma->fifo_size) in mtk_rdma_config()
167 rdma_fifo_size = rdma->fifo_size; in mtk_rdma_config()
169 rdma_fifo_size = RDMA_FIFO_SIZE(rdma); in mtk_rdma_config()
181 mtk_ddp_write(cmdq_pkt, reg, &rdma->cmdq_reg, rdma->regs, DISP_REG_RDMA_FIFO_CON); in mtk_rdma_config()
184 static unsigned int rdma_fmt_convert(struct mtk_disp_rdma *rdma, in rdma_fmt_convert() argument
230 struct mtk_disp_rdma *rdma = dev_get_drvdata(dev); in mtk_rdma_layer_config() local
237 con = rdma_fmt_convert(rdma, fmt); in mtk_rdma_layer_config()
238 mtk_ddp_write_relaxed(cmdq_pkt, con, &rdma->cmdq_reg, rdma->regs, DISP_RDMA_MEM_CON); in mtk_rdma_layer_config()
241 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_ENABLE, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
245 &rdma->cmdq_reg, rdma->regs, DISP_REG_RDMA_SIZE_CON_0, in mtk_rdma_layer_config()
248 mtk_ddp_write_mask(cmdq_pkt, 0, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
252 mtk_ddp_write_relaxed(cmdq_pkt, addr, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
254 mtk_ddp_write_relaxed(cmdq_pkt, pitch, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
256 mtk_ddp_write(cmdq_pkt, RDMA_MEM_GMC, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
258 mtk_ddp_write_mask(cmdq_pkt, RDMA_MODE_MEMORY, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()