Home
last modified time | relevance | path

Searched refs:gamma (Results 1 – 25 of 73) sorted by relevance

123

/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c127 struct dc_gamma *gamma, bool is_legacy) in __drm_lut_to_dc_gamma() argument
138 gamma->entries.red[i] = dc_fixpt_from_int(r); in __drm_lut_to_dc_gamma()
139 gamma->entries.green[i] = dc_fixpt_from_int(g); in __drm_lut_to_dc_gamma()
140 gamma->entries.blue[i] = dc_fixpt_from_int(b); in __drm_lut_to_dc_gamma()
151 gamma->entries.red[i] = dc_fixpt_from_fraction(r, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
152 gamma->entries.green[i] = dc_fixpt_from_fraction(g, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
153 gamma->entries.blue[i] = dc_fixpt_from_fraction(b, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
197 struct dc_gamma *gamma = NULL; in __set_legacy_tf() local
205 gamma = dc_create_gamma(); in __set_legacy_tf()
206 if (!gamma) in __set_legacy_tf()
[all …]
/drivers/staging/fbtft/
Dfbtft-sysfs.c55 if (curve_counter == par->gamma.num_curves) { in fbtft_gamma_parse_str()
63 if (value_counter == par->gamma.num_values) { in fbtft_gamma_parse_str()
73 _count = curve_counter * par->gamma.num_values + in fbtft_gamma_parse_str()
78 if (value_counter != par->gamma.num_values) { in fbtft_gamma_parse_str()
85 if (curve_counter != par->gamma.num_curves) { in fbtft_gamma_parse_str()
102 mutex_lock(&par->gamma.lock); in sprintf_gamma()
103 for (i = 0; i < par->gamma.num_curves; i++) { in sprintf_gamma()
104 for (j = 0; j < par->gamma.num_values; j++) in sprintf_gamma()
106 "%04x ", curves[i * par->gamma.num_values + j]); in sprintf_gamma()
109 mutex_unlock(&par->gamma.lock); in sprintf_gamma()
[all …]
Dfb_ssd1305.c37 if (par->gamma.curves[0] == 0) { in init_display()
38 mutex_lock(&par->gamma.lock); in init_display()
40 par->gamma.curves[0] = 0xCF; in init_display()
42 par->gamma.curves[0] = 0x8F; in init_display()
43 mutex_unlock(&par->gamma.lock); in init_display()
188 .gamma = "00",
Dfb_st7735r.c136 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
142 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
143 for (j = 0; j < par->gamma.num_values; j++) in set_gamma()
146 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
169 .gamma = DEFAULT_GAMMA,
Dfb_ssd1306.c36 if (par->gamma.curves[0] == 0) { in init_display()
37 mutex_lock(&par->gamma.lock); in init_display()
39 par->gamma.curves[0] = 0xCF; in init_display()
41 par->gamma.curves[0] = 0x8F; in init_display()
42 mutex_unlock(&par->gamma.lock); in init_display()
209 .gamma = "00",
Dfb_hx8340bn.c151 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
162 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
163 for (j = 0; j < par->gamma.num_values; j++) in set_gamma()
164 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
207 .gamma = DEFAULT_GAMMA,
Dfb_hx8347d.c95 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
106 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
107 for (j = 0; j < par->gamma.num_values; j++) { in set_gamma()
115 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
143 .gamma = DEFAULT_GAMMA,
Dfb_st7789v.c224 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
225 c = i * par->gamma.num_values; in set_gamma()
226 for (j = 0; j < par->gamma.num_values; j++) in set_gamma()
261 .gamma = HSD20_IPS_GAMMA,
Dfbtft-core.c554 char *gamma = display->gamma; in fbtft_framebuffer_alloc() local
583 if (pdata->gamma) in fbtft_framebuffer_alloc()
584 gamma = pdata->gamma; in fbtft_framebuffer_alloc()
699 par->gamma.curves = gamma_curves; in fbtft_framebuffer_alloc()
700 par->gamma.num_curves = display->gamma_num; in fbtft_framebuffer_alloc()
701 par->gamma.num_values = display->gamma_len; in fbtft_framebuffer_alloc()
702 mutex_init(&par->gamma.lock); in fbtft_framebuffer_alloc()
705 if (par->gamma.curves && gamma) { in fbtft_framebuffer_alloc()
706 if (fbtft_gamma_parse_str(par, par->gamma.curves, gamma, in fbtft_framebuffer_alloc()
707 strlen(gamma))) in fbtft_framebuffer_alloc()
[all …]
Dfb_ili9341.c114 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
119 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
139 .gamma = DEFAULT_GAMMA,
Dfb_s6d1121.c119 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
132 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
164 .gamma = DEFAULT_GAMMA,
Dfb_ssd1289.c125 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
137 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
161 .gamma = DEFAULT_GAMMA,
Dfb_ili9320.c213 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)]
225 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
250 .gamma = DEFAULT_GAMMA,
/drivers/gpu/drm/amd/display/dc/core/
Ddc_surface.c192 void dc_gamma_retain(struct dc_gamma *gamma) in dc_gamma_retain() argument
194 kref_get(&gamma->refcount); in dc_gamma_retain()
199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() local
200 kvfree(gamma); in dc_gamma_free()
203 void dc_gamma_release(struct dc_gamma **gamma) in dc_gamma_release() argument
205 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
206 *gamma = NULL; in dc_gamma_release()
211 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma() local
213 if (gamma == NULL) in dc_create_gamma()
216 kref_init(&gamma->refcount); in dc_create_gamma()
[all …]
/drivers/gpu/drm/panel/
Dpanel-tpo-td043mtea1.c61 u16 gamma[12]; member
101 const u16 *gamma = lcd->gamma; in td043mtea1_write_gamma() local
107 val |= (gamma[i] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
111 val |= (gamma[i + 4] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
115 val |= (gamma[i + 8] & 0x300) >> ((i + 1) * 2); in td043mtea1_write_gamma()
120 td043mtea1_write(lcd, 0x14 + i, gamma[i] & 0xff); in td043mtea1_write_gamma()
247 for (i = 0; i < ARRAY_SIZE(lcd->gamma); i++) { in gamma_show()
249 lcd->gamma[i]); in gamma_show()
274 lcd->gamma[i] = g[i]; in gamma_store()
283 static DEVICE_ATTR_RW(gamma);
[all …]
Dpanel-ilitek-ili9322.c278 u8 gamma[8]; member
393 for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { in ili9322_init()
395 ili->gamma[i]); in ili9322_init()
725 u8 gamma; in ili9322_probe() local
808 for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { in ili9322_probe()
814 gamma = val << 4; in ili9322_probe()
820 gamma |= val; in ili9322_probe()
821 ili->gamma[i] = gamma; in ili9322_probe()
822 dev_dbg(dev, "gamma V%d: 0x%02x\n", i + 1, gamma); in ili9322_probe()
/drivers/video/backlight/
Dams369fg06.c209 const unsigned int *gamma) in _ams369fg06_gamma_ctl() argument
215 ret = ams369fg06_spi_write(lcd, 0x40 + i, gamma[i]); in _ams369fg06_gamma_ctl()
216 ret = ams369fg06_spi_write(lcd, 0x50 + i, gamma[i+7*1]); in _ams369fg06_gamma_ctl()
217 ret = ams369fg06_spi_write(lcd, 0x60 + i, gamma[i+7*2]); in _ams369fg06_gamma_ctl()
231 int gamma = 0; in ams369fg06_gamma_ctl() local
234 gamma = 0; in ams369fg06_gamma_ctl()
236 gamma = 1; in ams369fg06_gamma_ctl()
238 gamma = 2; in ams369fg06_gamma_ctl()
240 gamma = 3; in ams369fg06_gamma_ctl()
242 gamma = 4; in ams369fg06_gamma_ctl()
[all …]
/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-tpo-td043mtea1.c62 u16 gamma[12]; member
117 static void tpo_td043_write_gamma(struct spi_device *spi, u16 gamma[12]) in tpo_td043_write_gamma()
123 val |= (gamma[i] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
127 val |= (gamma[i+4] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
131 val |= (gamma[i+8] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
136 tpo_td043_write(spi, 0x14 + i, gamma[i] & 0xff); in tpo_td043_write_gamma()
232 for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) { in tpo_td043_gamma_show()
234 ddata->gamma[i]); in tpo_td043_gamma_show()
260 ddata->gamma[i] = g[i]; in tpo_td043_gamma_store()
262 tpo_td043_write_gamma(ddata->spi, ddata->gamma); in tpo_td043_gamma_store()
[all …]
/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.h60 unsigned short gamma[256*3]; // gamma ramp packed in same way as OS windows ,r , g & b member
64 int gamma[3]; member
100 struct fixed31_32 gamma; member
/drivers/gpu/drm/i915/display/
Dintel_sprite.c722 static void i9xx_plane_linear_gamma(u16 gamma[8]) in i9xx_plane_linear_gamma()
729 gamma[i] = (in[i] << 8) / 32; in i9xx_plane_linear_gamma()
1015 u16 gamma[8]; in vlv_update_gamma() local
1022 i9xx_plane_linear_gamma(gamma); in vlv_update_gamma()
1028 gamma[i] << 16 | gamma[i] << 8 | gamma[i]); in vlv_update_gamma()
1396 u16 gamma[18]) in ivb_sprite_linear_gamma()
1411 gamma[i] = min((scale * i << 10) / 16, (1 << 10) - 1); in ivb_sprite_linear_gamma()
1413 gamma[i] = min((scale * i << 10) / 16, 1 << 10); in ivb_sprite_linear_gamma()
1416 gamma[i] = 3 << 10; in ivb_sprite_linear_gamma()
1425 u16 gamma[18]; in ivb_update_gamma() local
[all …]
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_ipp.c173 const struct dc_gamma *gamma) in dce_ipp_program_input_lut() argument
198 for (i = 0; i < gamma->num_entries; i++) { in dce_ipp_program_input_lut()
201 gamma->entries.red[i])); in dce_ipp_program_input_lut()
204 gamma->entries.green[i])); in dce_ipp_program_input_lut()
207 gamma->entries.blue[i])); in dce_ipp_program_input_lut()
/drivers/media/usb/gspca/gl860/
Dgl860-ov2640.c179 sd->vcur.gamma = 32; in ov2640_init_settings()
190 sd->vmax.gamma = 64; in ov2640_init_settings()
244 sd->vold.gamma = -1; in ov2640_init_pre_alt()
342 s32 gam = sd->vcur.gamma; in ov2640_camera_settings()
428 if (gam != sd->vold.gamma) { in ov2640_camera_settings()
429 sd->vold.gamma = gam; in ov2640_camera_settings()
430 if (gam < 0 || gam > sd->vmax.gamma) in ov2640_camera_settings()
Dgl860-mi1320.c181 sd->vcur.gamma = 20; in mi1320_init_settings()
193 sd->vmax.gamma = 40; in mi1320_init_settings()
259 sd->vold.gamma = -1; in mi1320_init_pre_alt()
344 s32 gam = sd->vcur.gamma; in mi1320_camera_settings()
490 if (gam != sd->vold.gamma) { in mi1320_camera_settings()
491 sd->vold.gamma = gam; in mi1320_camera_settings()
492 if (gam < 0 || gam > sd->vmax.gamma) in mi1320_camera_settings()
Dgl860-mi2020.c359 sd->vcur.gamma = 0; in mi2020_init_settings()
371 sd->vmax.gamma = 2; in mi2020_init_settings()
431 sd->vold.gamma = 0; in mi2020_init_pre_alt()
630 s32 gam = sd->vcur.gamma; in mi2020_camera_settings()
734 if (cntr != sd->vold.contrast || gam != sd->vold.gamma) { in mi2020_camera_settings()
738 sd->vold.gamma = gam; in mi2020_camera_settings()
739 if (gam < 0 || gam > sd->vmax.gamma) in mi2020_camera_settings()
/drivers/media/usb/gspca/
Dsn9c20x.c72 struct v4l2_ctrl *gamma; member
1332 u8 gamma[17]; in set_gamma() local
1335 gamma[0] = 0x0a; in set_gamma()
1336 gamma[1] = 0x13 + (gval * (0xcb - 0x13) / 0xb8); in set_gamma()
1337 gamma[2] = 0x25 + (gval * (0xee - 0x25) / 0xb8); in set_gamma()
1338 gamma[3] = 0x37 + (gval * (0xfa - 0x37) / 0xb8); in set_gamma()
1339 gamma[4] = 0x45 + (gval * (0xfc - 0x45) / 0xb8); in set_gamma()
1340 gamma[5] = 0x55 + (gval * (0xfb - 0x55) / 0xb8); in set_gamma()
1341 gamma[6] = 0x65 + (gval * (0xfc - 0x65) / 0xb8); in set_gamma()
1342 gamma[7] = 0x74 + (gval * (0xfd - 0x74) / 0xb8); in set_gamma()
[all …]

123