Lines Matching refs:diff
148 struct drm_color_lut diff, hwlut; in mtk_gamma_set() local
165 diff.red = lut[n].red - lut[n - 1].red; in mtk_gamma_set()
166 diff.red = drm_color_lut_extract(diff.red, lut_bits); in mtk_gamma_set()
168 diff.green = lut[n].green - lut[n - 1].green; in mtk_gamma_set()
169 diff.green = drm_color_lut_extract(diff.green, lut_bits); in mtk_gamma_set()
171 diff.blue = lut[n].blue - lut[n - 1].blue; in mtk_gamma_set()
172 diff.blue = drm_color_lut_extract(diff.blue, lut_bits); in mtk_gamma_set()
175 word[0] = FIELD_PREP(DISP_GAMMA_LUT_12BIT_R, diff.red); in mtk_gamma_set()
176 word[0] |= FIELD_PREP(DISP_GAMMA_LUT_12BIT_G, diff.green); in mtk_gamma_set()
177 word[1] = FIELD_PREP(DISP_GAMMA_LUT_12BIT_B, diff.blue); in mtk_gamma_set()
179 word[0] = FIELD_PREP(DISP_GAMMA_LUT_10BIT_R, diff.red); in mtk_gamma_set()
180 word[0] |= FIELD_PREP(DISP_GAMMA_LUT_10BIT_G, diff.green); in mtk_gamma_set()
181 word[0] |= FIELD_PREP(DISP_GAMMA_LUT_10BIT_B, diff.blue); in mtk_gamma_set()