Lines Matching refs:gamma
46 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_clk_enable() local
48 return clk_prepare_enable(gamma->clk); in mtk_gamma_clk_enable()
53 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_clk_disable() local
55 clk_disable_unprepare(gamma->clk); in mtk_gamma_clk_disable()
94 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_set() local
97 if (gamma->data) in mtk_gamma_set()
98 lut_diff = gamma->data->lut_diff; in mtk_gamma_set()
100 mtk_gamma_set_common(gamma->regs, state, lut_diff); in mtk_gamma_set()
107 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_config() local
109 mtk_ddp_write(cmdq_pkt, h << 16 | w, &gamma->cmdq_reg, gamma->regs, in mtk_gamma_config()
111 if (gamma->data && gamma->data->has_dither) in mtk_gamma_config()
112 mtk_dither_set_common(gamma->regs, &gamma->cmdq_reg, bpc, in mtk_gamma_config()
118 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_start() local
120 writel(GAMMA_EN, gamma->regs + DISP_GAMMA_EN); in mtk_gamma_start()
125 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_stop() local
127 writel_relaxed(0x0, gamma->regs + DISP_GAMMA_EN); in mtk_gamma_stop()