Lines Matching refs:cmdq_pkt
69 void mtk_ddp_write(struct cmdq_pkt *cmdq_pkt, unsigned int value, in mtk_ddp_write() argument
74 if (cmdq_pkt) in mtk_ddp_write()
75 cmdq_pkt_write(cmdq_pkt, cmdq_reg->subsys, in mtk_ddp_write()
82 void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value, in mtk_ddp_write_relaxed() argument
87 if (cmdq_pkt) in mtk_ddp_write_relaxed()
88 cmdq_pkt_write(cmdq_pkt, cmdq_reg->subsys, in mtk_ddp_write_relaxed()
95 void mtk_ddp_write_mask(struct cmdq_pkt *cmdq_pkt, unsigned int value, in mtk_ddp_write_mask() argument
100 if (cmdq_pkt) { in mtk_ddp_write_mask()
101 cmdq_pkt_write_mask(cmdq_pkt, cmdq_reg->subsys, in mtk_ddp_write_mask()
130 unsigned int dither_en, struct cmdq_pkt *cmdq_pkt) in mtk_dither_set_common() argument
137 mtk_ddp_write(cmdq_pkt, 0, cmdq_reg, regs, DISP_REG_DITHER_5); in mtk_dither_set_common()
138 mtk_ddp_write(cmdq_pkt, 0, cmdq_reg, regs, DISP_REG_DITHER_7); in mtk_dither_set_common()
139 mtk_ddp_write(cmdq_pkt, in mtk_dither_set_common()
144 mtk_ddp_write(cmdq_pkt, in mtk_dither_set_common()
150 mtk_ddp_write(cmdq_pkt, dither_en, cmdq_reg, regs, cfg); in mtk_dither_set_common()
156 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_dither_config() argument
160 mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_REG_DITHER_SIZE); in mtk_dither_config()
161 mtk_ddp_write(cmdq_pkt, DITHER_RELAY_MODE, &priv->cmdq_reg, priv->regs, in mtk_dither_config()
164 DITHER_ENGINE_EN, cmdq_pkt); in mtk_dither_config()
182 unsigned int cfg, struct cmdq_pkt *cmdq_pkt) in mtk_dither_set() argument
187 DISP_DITHERING, cmdq_pkt); in mtk_dither_set()
192 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_dsc_config() argument
197 mtk_ddp_write_mask(cmdq_pkt, DSC_BYPASS, &priv->cmdq_reg, priv->regs, in mtk_dsc_config()
199 mtk_ddp_write_mask(cmdq_pkt, DSC_UFOE_SEL, &priv->cmdq_reg, priv->regs, in mtk_dsc_config()
201 mtk_ddp_write_mask(cmdq_pkt, DSC_DUAL_INOUT, &priv->cmdq_reg, priv->regs, in mtk_dsc_config()
222 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_od_config() argument
226 mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_REG_OD_SIZE); in mtk_od_config()
227 mtk_ddp_write(cmdq_pkt, OD_RELAYMODE, &priv->cmdq_reg, priv->regs, DISP_REG_OD_CFG); in mtk_od_config()
228 mtk_dither_set(dev, bpc, DISP_REG_OD_CFG, cmdq_pkt); in mtk_od_config()
240 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_postmask_config() argument
244 mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, in mtk_postmask_config()
246 mtk_ddp_write(cmdq_pkt, POSTMASK_RELAY_MODE, &priv->cmdq_reg, in mtk_postmask_config()