Home
last modified time | relevance | path

Searched full:gamma (Results 1 – 25 of 254) sorted by relevance

1234567891011

/Linux-v5.10/drivers/staging/fbtft/
Dfbtft-sysfs.c55 if (curve_counter == par->gamma.num_curves) { in fbtft_gamma_parse_str()
56 dev_err(par->info->device, "Gamma: Too many curves\n"); in fbtft_gamma_parse_str()
63 if (value_counter == par->gamma.num_values) { in fbtft_gamma_parse_str()
65 "Gamma: Too many values\n"); 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()
79 dev_err(par->info->device, "Gamma: Too few values\n"); in fbtft_gamma_parse_str()
85 if (curve_counter != par->gamma.num_curves) { in fbtft_gamma_parse_str()
86 dev_err(par->info->device, "Gamma: Too few curves\n"); in fbtft_gamma_parse_str()
102 mutex_lock(&par->gamma.lock); in sprintf_gamma()
[all …]
Dfbtft.h55 * @set_gamma: Set Gamma curve (optional)
99 * @gamma: String representation of Gamma curve(s)
100 * @gamma_num: Number of Gamma curves
101 * @gamma_len: Number of values per Gamma curve
117 char *gamma; member
132 * @gamma: String representation of Gamma curve(s)
142 char *gamma; member
180 * @gamma.lock: Mutex for Gamma curve locking
181 * @gamma.curves: Pointer to Gamma curve array
182 * @gamma.num_values: Number of values per Gamma curve
[all …]
Dfb_st7789v.c40 * @PVGAMCTRL: positive voltage gamma control
41 * @NVGAMCTRL: negative voltage gamma control
181 * set_gamma() - set gamma curves
184 * @curves: gamma curves
186 * Before the gamma curves are applied, they are preprocessed with a bitmask
189 * function and that illegal gamma values are auto-corrected and not
201 * Bitmasks for gamma curve command parameters. in set_gamma()
203 * gamma curves. in set_gamma()
222 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
223 c = i * par->gamma.num_values; in set_gamma()
[all …]
Dfb_hx8340bn.c83 * VREG1 voltage is for gamma voltage setting. in init_display()
145 * Gamma Curve selection, GC (only GC0 can be customized):
147 * Gamma string format:
151 #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()
166 /* Gamma Set (26h) */ in set_gamma()
207 .gamma = DEFAULT_GAMMA,
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()
141 /* Gamma is used to control Contrast */
188 .gamma = "00",
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()
161 /* Gamma is used to control Contrast */
209 .gamma = "00",
Dfb_st7735r.c132 * Gamma string format:
136 #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_hx8347d.c91 * Gamma string format:
95 #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_ili9341.c54 /* ------------Gamma---------------------------------------- */ in init_display()
55 /* write_reg(par, 0xF2, 0x08); */ /* Gamma Function Disable */ in init_display()
110 * Gamma string format:
114 #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,
/Linux-v5.10/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_1.0/
Dia_css_gc_types.h20 * CSS-API header file for Gamma Correction parameters.
25 /* Fractional bits for GAMMA gain */
28 /* Number of elements in the gamma table. */
32 /* Number of elements in the gamma table. */
36 /* Gamma table, used for Y(Luma) Gamma Correction.
38 * ISP block: GC1 (YUV Gamma Correction)
40 * (ISP2: GC2(sRGB Gamma Correction) is used.)
46 /** Y(Luma) Gamma table on vamem type 1. u0.8, [0,255] */
48 /** Y(Luma) Gamma table on vamem type 2. u0.8, [0,255] */
56 /* Gamma Correction configuration (used only for YUV Gamma Correction).
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c36 * - Input gamma LUT (de-normalized)
49 * The input gamma LUT block isn't really applicable here since it operates
127 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
[all …]
/Linux-v5.10/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_2/
Dia_css_gc2_types.h22 * CSS-API header file for Gamma Correction parameters.
25 /* sRGB Gamma table, used for sRGB Gamma Correction.
27 * ISP block: GC2 (sRGB Gamma Correction)
28 * (ISP1: GC1(YUV Gamma Correction) is used.)
32 /* Number of elements in the sRGB gamma table. */
36 /* Number of elements in the sRGB gamma table. */
44 /** RGB Gamma table on vamem type1. This table is not used,
45 because sRGB Gamma Correction is not implemented for ISP2300. */
47 /** RGB Gamma table on vamem type2. u0.12, [0,4095] */
/Linux-v5.10/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.h45 unsigned int gammaFromEdid :1; //gamma from edid is in use
46 unsigned int gammaFromEdidEx :1; //gamma from edid is in use , but only for Display Id 1.2
47 unsigned int gammaFromUser :1; //user custom gamma is used
51 unsigned int gammaPredefinedSRGB :1; //flag for SRGB gamma
52 unsigned int gammaPredefinedPQ :1; //flag for PQ gamma
53 unsigned int gammaPredefinedPQ2084Interim :1; //flag for PQ gamma, lower max nits
54 unsigned int gammaPredefined36 :1; //flag for 3.6 gamma
55 unsigned int gammaPredefinedReset :1; //flag to return to previous gamma
60 unsigned short gamma[256*3]; // gamma ramp packed in same way as OS windows ,r , g & b member
64 int gamma[3]; member
[all …]
/Linux-v5.10/drivers/gpu/drm/
Ddrm_color_mgmt.c49 * linear/pass-thru gamma table should be used. This is generally the
58 * split-gamma modes) appropriately.
63 * lookup through the gamma LUT. The data is interpreted as a struct
72 * Blob property to set the gamma lookup table (LUT) mapping pixel data
80 * linear/pass-thru gamma table should be used. This is generally the
88 * largest size, and sub-sample smaller sized LUTs (e.g. for split-gamma
91 * There is also support for a legacy gamma table, which is set up by calling
93 * drm_atomic_helper_legacy_gamma_set() to alias the legacy gamma ramp with the
150 * @gamma_lut_size: the size of the gamma lut (after CSC)
153 * properties on a CRTC. This includes 3 degamma, csc and gamma
[all …]
/Linux-v5.10/drivers/video/fbdev/via/
Dvia_utility.c115 /* Gamma Function Implementation*/
130 /* 8 bpp mode can't adjust gamma */ in viafb_set_gamma_table()
134 /* Enable Gamma */ in viafb_set_gamma_table()
154 /* Fill IGA1 Gamma Table */ in viafb_set_gamma_table()
162 /* If adjust Gamma value in SAMM, fill IGA1, in viafb_set_gamma_table()
163 IGA2 Gamma table simultaneous. */ in viafb_set_gamma_table()
164 /* Switch to IGA2 Gamma Table */ in viafb_set_gamma_table()
172 /* Fill IGA2 Gamma Table */ in viafb_set_gamma_table()
189 /* Enable Gamma */ in viafb_get_gamma_table()
209 /* Reading gamma table to get color value */ in viafb_get_gamma_table()
/Linux-v5.10/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 …]
/Linux-v5.10/drivers/gpu/drm/panel/
Dpanel-tpo-td043mtea1.c61 u16 gamma[12]; member
101 const u16 *gamma = lcd->gamma; in td043mtea1_write_gamma() local
105 /* gamma bits [9:8] */ in td043mtea1_write_gamma()
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()
118 /* gamma bits [7:0] */ 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()
[all …]
Dpanel-ilitek-ili9322.c142 * 4+4 bits of negative and positive gamma correction
143 * Upper nybble, bits 4-7 are negative gamma
144 * Lower nybble, bits 0-3 are positive gamma
225 * gamma correction for voltages V1 thru V8. Valid range 0..15
227 * gamma correction for voltages V1 thru V8. Valid range 0..15
245 * The negative and postive gamma values adjust the V1 thru V8 up/down
278 u8 gamma[8]; member
392 /* Set up gamma correction */ in ili9322_init()
393 for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { in ili9322_init()
395 ili->gamma[i]); in ili9322_init()
[all …]
/Linux-v5.10/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()
121 /* gamma bits [9:8] */ 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()
134 /* gamma bits [7:0] */ 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()
[all …]
/Linux-v5.10/drivers/media/i2c/
Dvs6624_regs.h59 #define VS6624_GAMMA0 0x03B8 /* gamma settings */
92 #define VS6624_GAMMA1 0x0438 /* gamma settings */
258 /* pipe 0 gamma manual control */
259 #define VS6624_GAMMA_MAN_CTRL0 0x2280 /* enable manual gamma setup */
260 #define VS6624_GAMMA_PEAK_R0 0x2282 /* peaked red channel gamma value */
261 #define VS6624_GAMMA_PEAK_G0 0x2284 /* peaked green channel gamma value */
262 #define VS6624_GAMMA_PEAK_B0 0x2286 /* peaked blue channel gamma value */
263 #define VS6624_GAMMA_UNPEAK_R0 0x2288 /* unpeaked red channel gamma value */
264 #define VS6624_GAMMA_UNPEAK_G0 0x228A /* unpeaked green channel gamma value */
265 #define VS6624_GAMMA_UNPEAK_B0 0x228C /* unpeaked blue channel gamma value */
[all …]
/Linux-v5.10/drivers/video/backlight/
Dams369fg06.c115 /* gamma value: 2.2 */
209 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()
219 dev_err(lcd->dev, "failed to set gamma table.\n"); 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()
[all …]
/Linux-v5.10/include/media/davinci/
Ddm644x_ccdc.h28 /* enum for Alaw gamma width */
30 CCDC_GAMMA_BITS_15_6, /* use bits 15-6 for gamma */
36 CCDC_GAMMA_BITS_09_0 /* use bits 9-0 for gamma */
39 /* returns the highest bit used for the gamma */
66 /* Gamma Width Input */
/Linux-v5.10/arch/powerpc/platforms/512x/
Dmpc512x_shared.c61 u8 gamma[0x300]; /* 32-bit aligned! */ member
212 * Move area descriptor and gamma table elsewhere, they are
264 desc = in_be32(&diu_reg->gamma); in mpc512x_init_diu()
265 vaddr = ioremap(desc, sizeof(diu_shared_fb.gamma)); in mpc512x_init_diu()
271 memcpy(&diu_shared_fb.gamma, vaddr, sizeof(diu_shared_fb.gamma)); in mpc512x_init_diu()
272 /* flush gamma table */ in mpc512x_init_diu()
273 dst = (unsigned long)&diu_shared_fb.gamma; in mpc512x_init_diu()
274 flush_dcache_range(dst, dst + sizeof(diu_shared_fb.gamma) - 1); in mpc512x_init_diu()
277 out_be32(&diu_reg->gamma, virt_to_phys(&diu_shared_fb.gamma)); in mpc512x_init_diu()
/Linux-v5.10/include/uapi/linux/
Dam437x-vpfe.h56 /* enum for Alaw gamma width */
58 VPFE_CCDC_GAMMA_BITS_15_6 = 0, /* use bits 15-6 for gamma */
64 VPFE_CCDC_GAMMA_BITS_09_0, /* use bits 9-0 for gamma */
71 /* Gamma Width Input */
/Linux-v5.10/drivers/staging/media/rkisp1/uapi/
Drkisp1-config.h20 /* Sensor De-gamma */
34 /* Gamma Out Curve */
90 * Gamma out
274 * struct rkisp1_cif_isp_gamma_corr_curve - gamma curve point definition y-axis (output).
279 * @gamma_y: the values for the y-axis of gamma curve points. Each value is 12 bit.
286 * struct rkisp1_cif_isp_gamma_curve_x_axis_pnts - De-Gamma Curve definition x increments
291 * @gamma_dx0: gamma curve sample points definitions. Bits 0:2 for sample 1. Bit 3 unused.
293 * @gamma_dx1: gamma curve sample points definitions. Bits 0:2 for sample 9. Bit 3 unused.
304 * @curve_r: gamma curve point definition axis for red
305 * @curve_g: gamma curve point definition axis for green
[all …]

1234567891011