Home
last modified time | relevance | path

Searched refs:drm_color_lut_extract (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/nouveau/dispnv50/
Dheadc57d.c108 u16 r = drm_color_lut_extract(in-> red + 0, 16); in headc57d_olut_load_8()
109 u16 g = drm_color_lut_extract(in->green + 0, 16); in headc57d_olut_load_8()
110 u16 b = drm_color_lut_extract(in-> blue + 0, 16); in headc57d_olut_load_8()
114 ri = (drm_color_lut_extract(in-> red, 16) - r) / 4; in headc57d_olut_load_8()
115 gi = (drm_color_lut_extract(in->green, 16) - g) / 4; in headc57d_olut_load_8()
116 bi = (drm_color_lut_extract(in-> blue, 16) - b) / 4; in headc57d_olut_load_8()
141 writew(drm_color_lut_extract(in-> red, 16), mem + 0); in headc57d_olut_load()
142 writew(drm_color_lut_extract(in->green, 16), mem + 2); in headc57d_olut_load()
143 writew(drm_color_lut_extract(in-> blue, 16), mem + 4); in headc57d_olut_load()
Dwndwc57e.c143 u16 r = fixedU0_16_FP16(drm_color_lut_extract(in-> red, 16)); in wndwc57e_ilut_load()
144 u16 g = fixedU0_16_FP16(drm_color_lut_extract(in->green, 16)); in wndwc57e_ilut_load()
145 u16 b = fixedU0_16_FP16(drm_color_lut_extract(in-> blue, 16)); in wndwc57e_ilut_load()
Dhead907d.c220 writew(drm_color_lut_extract(in-> red, 14) + 0x6000, mem + 0); in head907d_olut_load()
221 writew(drm_color_lut_extract(in->green, 14) + 0x6000, mem + 2); in head907d_olut_load()
222 writew(drm_color_lut_extract(in-> blue, 14) + 0x6000, mem + 4); in head907d_olut_load()
Dhead507d.c261 writew(drm_color_lut_extract(in-> red, 11) << 3, mem + 0); in head507d_olut_load()
262 writew(drm_color_lut_extract(in->green, 11) << 3, mem + 2); in head507d_olut_load()
263 writew(drm_color_lut_extract(in-> blue, 11) << 3, mem + 4); in head507d_olut_load()
/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c134 r = drm_color_lut_extract(lut[i].red, 16); in __drm_lut_to_dc_gamma()
135 g = drm_color_lut_extract(lut[i].green, 16); in __drm_lut_to_dc_gamma()
136 b = drm_color_lut_extract(lut[i].blue, 16); in __drm_lut_to_dc_gamma()
147 r = drm_color_lut_extract(lut[i].red, 16); in __drm_lut_to_dc_gamma()
148 g = drm_color_lut_extract(lut[i].green, 16); in __drm_lut_to_dc_gamma()
149 b = drm_color_lut_extract(lut[i].blue, 16); in __drm_lut_to_dc_gamma()
/Linux-v5.4/drivers/gpu/drm/i915/display/
Dintel_color.c382 return drm_color_lut_extract(color->red, 10) << 20 | in ilk_lut_10()
383 drm_color_lut_extract(color->green, 10) << 10 | in ilk_lut_10()
384 drm_color_lut_extract(color->blue, 10); in ilk_lut_10()
408 (drm_color_lut_extract(lut[i].red, 8) << 16) | in i9xx_load_luts_internal()
409 (drm_color_lut_extract(lut[i].green, 8) << 8) | in i9xx_load_luts_internal()
410 drm_color_lut_extract(lut[i].blue, 8); in i9xx_load_luts_internal()
907 return drm_color_lut_extract(color->green, 14) << 16 | in chv_cgm_degamma_ldw()
908 drm_color_lut_extract(color->blue, 14); in chv_cgm_degamma_ldw()
913 return drm_color_lut_extract(color->red, 14); in chv_cgm_degamma_udw()
934 return drm_color_lut_extract(color->green, 10) << 16 | in chv_cgm_gamma_ldw()
[all …]
/Linux-v5.4/include/drm/
Ddrm_color_mgmt.h32 uint32_t drm_color_lut_extract(uint32_t user_input, uint32_t bit_precision);
/Linux-v5.4/drivers/gpu/drm/
Ddrm_color_mgmt.c120 uint32_t drm_color_lut_extract(uint32_t user_input, uint32_t bit_precision) in drm_color_lut_extract() function
133 EXPORT_SYMBOL(drm_color_lut_extract);
/Linux-v5.4/drivers/gpu/drm/arm/
Dmalidp_crtc.c135 out_start = drm_color_lut_extract(lut[segments[i].start].green, in malidp_generate_gamma_table()
137 out_end = drm_color_lut_extract(lut[segments[i].end].green, 12); in malidp_generate_gamma_table()
/Linux-v5.4/drivers/gpu/drm/vc4/
Dvc4_crtc.c243 vc4_crtc->lut_r[i] = drm_color_lut_extract(lut[i].red, 8); in vc4_crtc_update_gamma_lut()
244 vc4_crtc->lut_g[i] = drm_color_lut_extract(lut[i].green, 8); in vc4_crtc_update_gamma_lut()
245 vc4_crtc->lut_b[i] = drm_color_lut_extract(lut[i].blue, 8); in vc4_crtc_update_gamma_lut()
/Linux-v5.4/drivers/gpu/drm/armada/
Darmada_crtc.c147 writel_relaxed(drm_color_lut_extract(lut[i].red, 8), in armada_drm_update_gamma()
152 writel_relaxed(drm_color_lut_extract(lut[i].green, 8), in armada_drm_update_gamma()
157 writel_relaxed(drm_color_lut_extract(lut[i].blue, 8), in armada_drm_update_gamma()