Lines Matching refs:bpc
129 unsigned int bpc, unsigned int cfg, in mtk_dither_set_common() argument
133 if (bpc == 0) in mtk_dither_set_common()
136 if (bpc >= MTK_MIN_BPC) { in mtk_dither_set_common()
140 DITHER_LSB_ERR_SHIFT_R(MTK_MAX_BPC - bpc) | in mtk_dither_set_common()
141 DITHER_ADD_LSHIFT_R(MTK_MAX_BPC - bpc) | in mtk_dither_set_common()
145 DITHER_LSB_ERR_SHIFT_B(MTK_MAX_BPC - bpc) | in mtk_dither_set_common()
146 DITHER_ADD_LSHIFT_B(MTK_MAX_BPC - bpc) | in mtk_dither_set_common()
147 DITHER_LSB_ERR_SHIFT_G(MTK_MAX_BPC - bpc) | in mtk_dither_set_common()
148 DITHER_ADD_LSHIFT_G(MTK_MAX_BPC - bpc), in mtk_dither_set_common()
154 static void mtk_dither_set(struct device *dev, unsigned int bpc, in mtk_dither_set() argument
159 mtk_dither_set_common(priv->regs, &priv->cmdq_reg, bpc, cfg, in mtk_dither_set()
165 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_od_config() argument
171 mtk_dither_set(dev, bpc, DISP_OD_CFG, cmdq_pkt); in mtk_od_config()
190 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_dither_config() argument
196 mtk_dither_set_common(priv->regs, &priv->cmdq_reg, bpc, DISP_DITHER_CFG, in mtk_dither_config()