/Linux-v6.1/drivers/gpu/drm/nouveau/dispnv50/ |
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()
|
D | wndwc57e.c | 164 u16 r = fixedU0_16_FP16(drm_color_lut_extract(in-> red, 16)); in wndwc57e_ilut_load() 165 u16 g = fixedU0_16_FP16(drm_color_lut_extract(in->green, 16)); in wndwc57e_ilut_load() 166 u16 b = fixedU0_16_FP16(drm_color_lut_extract(in-> blue, 16)); in wndwc57e_ilut_load()
|
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()
|
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-v6.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_color.c | 152 r = drm_color_lut_extract(lut[i].red, 16); in __drm_lut_to_dc_gamma() 153 g = drm_color_lut_extract(lut[i].green, 16); in __drm_lut_to_dc_gamma() 154 b = drm_color_lut_extract(lut[i].blue, 16); in __drm_lut_to_dc_gamma() 165 r = drm_color_lut_extract(lut[i].red, 16); in __drm_lut_to_dc_gamma() 166 g = drm_color_lut_extract(lut[i].green, 16); in __drm_lut_to_dc_gamma() 167 b = drm_color_lut_extract(lut[i].blue, 16); in __drm_lut_to_dc_gamma()
|
/Linux-v6.1/drivers/gpu/drm/rcar-du/ |
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-v6.1/include/drm/ |
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-v6.1/drivers/gpu/drm/i915/display/ |
D | intel_color.c | 429 return drm_color_lut_extract(color->red, 8) << 16 | in i9xx_lut_8() 430 drm_color_lut_extract(color->green, 8) << 8 | in i9xx_lut_8() 431 drm_color_lut_extract(color->blue, 8); in i9xx_lut_8() 475 return drm_color_lut_extract(color->red, 10) << 20 | in ilk_lut_10() 476 drm_color_lut_extract(color->green, 10) << 10 | in ilk_lut_10() 477 drm_color_lut_extract(color->blue, 10); in ilk_lut_10() 1085 return drm_color_lut_extract(color->green, 14) << 16 | in chv_cgm_degamma_ldw() 1086 drm_color_lut_extract(color->blue, 14); in chv_cgm_degamma_ldw() 1091 return drm_color_lut_extract(color->red, 14); in chv_cgm_degamma_udw() 1112 return drm_color_lut_extract(color->green, 10) << 16 | in chv_cgm_gamma_ldw() [all …]
|
/Linux-v6.1/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_color_mgmt.c | 108 coeffs[num++] = drm_color_lut_extract(lut[in].red, in drm_lut_to_coeffs()
|
/Linux-v6.1/drivers/gpu/drm/arm/ |
D | malidp_crtc.c | 138 out_start = drm_color_lut_extract(lut[segments[i].start].green, in malidp_generate_gamma_table() 140 out_end = drm_color_lut_extract(lut[segments[i].end].green, 12); in malidp_generate_gamma_table()
|
/Linux-v6.1/drivers/gpu/drm/vc4/ |
D | vc4_hvs.c | 250 vc4_crtc->lut_r[i] = drm_color_lut_extract(lut[i].red, 8); in vc4_hvs_update_gamma_lut() 251 vc4_crtc->lut_g[i] = drm_color_lut_extract(lut[i].green, 8); in vc4_hvs_update_gamma_lut() 252 vc4_crtc->lut_b[i] = drm_color_lut_extract(lut[i].blue, 8); in vc4_hvs_update_gamma_lut()
|
/Linux-v6.1/drivers/gpu/drm/armada/ |
D | armada_crtc.c | 146 writel_relaxed(drm_color_lut_extract(lut[i].red, 8), in armada_drm_update_gamma() 151 writel_relaxed(drm_color_lut_extract(lut[i].green, 8), in armada_drm_update_gamma() 156 writel_relaxed(drm_color_lut_extract(lut[i].blue, 8), in armada_drm_update_gamma()
|
/Linux-v6.1/drivers/gpu/drm/ingenic/ |
D | ingenic-drm-drv.c | 649 u16 color = drm_color_lut_extract(lut[i].red, 5) << 11 in ingenic_drm_update_palette() 650 | drm_color_lut_extract(lut[i].green, 6) << 5 in ingenic_drm_update_palette() 651 | drm_color_lut_extract(lut[i].blue, 5); in ingenic_drm_update_palette()
|
/Linux-v6.1/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.c | 1237 word = (drm_color_lut_extract(lut[i].red, bpc) << (2 * bpc)) | in vop_crtc_write_gamma_lut() 1238 (drm_color_lut_extract(lut[i].green, bpc) << bpc) | in vop_crtc_write_gamma_lut() 1239 drm_color_lut_extract(lut[i].blue, bpc); in vop_crtc_write_gamma_lut()
|