/linux/drivers/gpu/drm/nouveau/dispnv50/ |
A D | headc57d.c | 126 u16 r = drm_color_lut_extract(in-> red + 0, 16); in headc57d_olut_load_8() 127 u16 g = drm_color_lut_extract(in->green + 0, 16); in headc57d_olut_load_8() 128 u16 b = drm_color_lut_extract(in-> blue + 0, 16); in headc57d_olut_load_8() 132 ri = (drm_color_lut_extract(in-> red, 16) - r) / 4; in headc57d_olut_load_8() 133 gi = (drm_color_lut_extract(in->green, 16) - g) / 4; in headc57d_olut_load_8() 134 bi = (drm_color_lut_extract(in-> blue, 16) - b) / 4; in headc57d_olut_load_8() 159 writew(drm_color_lut_extract(in-> red, 16), mem + 0); in headc57d_olut_load() 160 writew(drm_color_lut_extract(in->green, 16), mem + 2); in headc57d_olut_load() 161 writew(drm_color_lut_extract(in-> blue, 16), mem + 4); in headc57d_olut_load()
|
A D | wndwc57e.c | 166 u16 r = fixedU0_16_FP16(drm_color_lut_extract(in-> red, 16)); in wndwc57e_ilut_load() 167 u16 g = fixedU0_16_FP16(drm_color_lut_extract(in->green, 16)); in wndwc57e_ilut_load() 168 u16 b = fixedU0_16_FP16(drm_color_lut_extract(in-> blue, 16)); in wndwc57e_ilut_load()
|
A D | head907d.c | 289 writew(drm_color_lut_extract(in-> red, 14) + 0x6000, mem + 0); in head907d_olut_load() 290 writew(drm_color_lut_extract(in->green, 14) + 0x6000, mem + 2); in head907d_olut_load() 291 writew(drm_color_lut_extract(in-> blue, 14) + 0x6000, mem + 4); in head907d_olut_load()
|
A D | head507d.c | 317 writew(drm_color_lut_extract(in-> red, 11) << 3, mem + 0); in head507d_olut_load() 318 writew(drm_color_lut_extract(in->green, 11) << 3, mem + 2); in head507d_olut_load() 319 writew(drm_color_lut_extract(in-> blue, 11) << 3, mem + 4); in head507d_olut_load()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_color.c | 134 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/drivers/gpu/drm/rcar-du/ |
A D | rcar_cmm.c | 57 u32 entry = drm_color_lut_extract(drm_lut[i].red, 8) << 16 in rcar_cmm_lut_write() 58 | drm_color_lut_extract(drm_lut[i].green, 8) << 8 in rcar_cmm_lut_write() 59 | drm_color_lut_extract(drm_lut[i].blue, 8); in rcar_cmm_lut_write()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_color.c | 407 return drm_color_lut_extract(color->red, 8) << 16 | in i9xx_lut_8() 408 drm_color_lut_extract(color->green, 8) << 8 | in i9xx_lut_8() 409 drm_color_lut_extract(color->blue, 8); in i9xx_lut_8() 453 return drm_color_lut_extract(color->red, 10) << 20 | in ilk_lut_10() 454 drm_color_lut_extract(color->green, 10) << 10 | in ilk_lut_10() 455 drm_color_lut_extract(color->blue, 10); in ilk_lut_10() 1056 return drm_color_lut_extract(color->green, 14) << 16 | in chv_cgm_degamma_ldw() 1057 drm_color_lut_extract(color->blue, 14); in chv_cgm_degamma_ldw() 1062 return drm_color_lut_extract(color->red, 14); in chv_cgm_degamma_udw() 1084 drm_color_lut_extract(color->blue, 10); in chv_cgm_gamma_ldw() [all …]
|
/linux/include/drm/ |
A D | drm_color_mgmt.h | 41 static inline u32 drm_color_lut_extract(u32 user_input, int bit_precision) in drm_color_lut_extract() function
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_color_mgmt.c | 108 coeffs[num++] = drm_color_lut_extract(lut[in].red, in drm_lut_to_coeffs()
|
/linux/drivers/gpu/drm/vc4/ |
A D | vc4_hvs.c | 192 vc4_crtc->lut_r[i] = drm_color_lut_extract(lut[i].red, 8); in vc4_hvs_update_gamma_lut() 193 vc4_crtc->lut_g[i] = drm_color_lut_extract(lut[i].green, 8); in vc4_hvs_update_gamma_lut() 194 vc4_crtc->lut_b[i] = drm_color_lut_extract(lut[i].blue, 8); in vc4_hvs_update_gamma_lut()
|
/linux/drivers/gpu/drm/arm/ |
A D | malidp_crtc.c | 137 out_start = drm_color_lut_extract(lut[segments[i].start].green, in malidp_generate_gamma_table() 139 out_end = drm_color_lut_extract(lut[segments[i].end].green, 12); in malidp_generate_gamma_table()
|
/linux/drivers/gpu/drm/armada/ |
A D | armada_crtc.c | 147 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()
|
/linux/drivers/gpu/drm/ingenic/ |
A D | ingenic-drm-drv.c | 547 u16 color = drm_color_lut_extract(lut[i].red, 5) << 11 in ingenic_drm_update_palette() 548 | drm_color_lut_extract(lut[i].green, 6) << 5 in ingenic_drm_update_palette() 549 | drm_color_lut_extract(lut[i].blue, 5); in ingenic_drm_update_palette()
|
/linux/drivers/gpu/drm/rockchip/ |
A D | rockchip_drm_vop.c | 1213 word = (drm_color_lut_extract(lut[i].red, 10) << 20) | in vop_crtc_write_gamma_lut() 1214 (drm_color_lut_extract(lut[i].green, 10) << 10) | in vop_crtc_write_gamma_lut() 1215 drm_color_lut_extract(lut[i].blue, 10); in vop_crtc_write_gamma_lut()
|