Searched refs:hwlut (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/mediatek/ |
D | mtk_disp_gamma.c | 148 struct drm_color_lut diff, hwlut; in mtk_gamma_set() local 150 hwlut.red = drm_color_lut_extract(lut[n].red, lut_bits); in mtk_gamma_set() 151 hwlut.green = drm_color_lut_extract(lut[n].green, lut_bits); in mtk_gamma_set() 152 hwlut.blue = drm_color_lut_extract(lut[n].blue, lut_bits); in mtk_gamma_set() 156 word[0] = FIELD_PREP(DISP_GAMMA_LUT_12BIT_R, hwlut.red); in mtk_gamma_set() 157 word[0] |= FIELD_PREP(DISP_GAMMA_LUT_12BIT_G, hwlut.green); in mtk_gamma_set() 158 word[1] = FIELD_PREP(DISP_GAMMA_LUT_12BIT_B, hwlut.blue); in mtk_gamma_set() 160 word[0] = FIELD_PREP(DISP_GAMMA_LUT_10BIT_R, hwlut.red); in mtk_gamma_set() 161 word[0] |= FIELD_PREP(DISP_GAMMA_LUT_10BIT_G, hwlut.green); in mtk_gamma_set() 162 word[0] |= FIELD_PREP(DISP_GAMMA_LUT_10BIT_B, hwlut.blue); in mtk_gamma_set()
|
D | mtk_disp_aal.c | 113 struct drm_color_lut hwlut = { in mtk_aal_gamma_set() local 120 word = FIELD_PREP(DISP_AAL_GAMMA_LUT_R, hwlut.red); in mtk_aal_gamma_set() 121 word |= FIELD_PREP(DISP_AAL_GAMMA_LUT_G, hwlut.green); in mtk_aal_gamma_set() 122 word |= FIELD_PREP(DISP_AAL_GAMMA_LUT_B, hwlut.blue); in mtk_aal_gamma_set()
|