Home
last modified time | relevance | path

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

12345678910>>...19

/kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c79 struct dc_gamma *gamma, in __drm_lut_to_dc_gamma() argument
91 gamma->entries.red[i] = dc_fixpt_from_int(r); in __drm_lut_to_dc_gamma()
92 gamma->entries.green[i] = dc_fixpt_from_int(g); in __drm_lut_to_dc_gamma()
93 gamma->entries.blue[i] = dc_fixpt_from_int(b); in __drm_lut_to_dc_gamma()
104 gamma->entries.red[i] = dc_fixpt_from_fraction(r, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
105 gamma->entries.green[i] = dc_fixpt_from_fraction(g, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
106 gamma->entries.blue[i] = dc_fixpt_from_fraction(b, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
127 struct dc_gamma *gamma; in amdgpu_dm_set_regamma_lut() local
142 gamma = dc_create_gamma(); in amdgpu_dm_set_regamma_lut()
143 if (!gamma) in amdgpu_dm_set_regamma_lut()
[all …]
/kernel/linux/linux-4.19/drivers/staging/fbtft/
Dfbtft-sysfs.c54 if (curve_counter == par->gamma.num_curves) { in fbtft_gamma_parse_str()
55 dev_err(par->info->device, "Gamma: Too many curves\n"); in fbtft_gamma_parse_str()
62 if (value_counter == par->gamma.num_values) { in fbtft_gamma_parse_str()
64 "Gamma: Too many values\n"); in fbtft_gamma_parse_str()
71 curves[curve_counter * par->gamma.num_values + value_counter] = val; in fbtft_gamma_parse_str()
74 if (value_counter != par->gamma.num_values) { in fbtft_gamma_parse_str()
75 dev_err(par->info->device, "Gamma: Too few values\n"); in fbtft_gamma_parse_str()
81 if (curve_counter != par->gamma.num_curves) { in fbtft_gamma_parse_str()
82 dev_err(par->info->device, "Gamma: Too few curves\n"); in fbtft_gamma_parse_str()
98 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)
143 char *gamma; member
181 * @gamma.lock: Mutex for Gamma curve locking
182 * @gamma.curves: Pointer to Gamma curve array
183 * @gamma.num_values: Number of values per Gamma curve
[all …]
Dfb_st7789v.c34 * @PVGAMCTRL: positive voltage gamma control
35 * @NVGAMCTRL: negative voltage gamma control
159 * set_gamma() - set gamma curves
162 * @curves: gamma curves
164 * Before the gamma curves are applied, they are preprocessed with a bitmask
167 * function and that illegal gamma values are auto-corrected and not
179 * Bitmasks for gamma curve command parameters. in set_gamma()
181 * gamma curves. in set_gamma()
200 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
201 c = i * par->gamma.num_values; in set_gamma()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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] */
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.h42 unsigned int gammaFromEdid :1; //gamma from edid is in use
43 unsigned int gammaFromEdidEx :1; //gamma from edid is in use , but only for Display Id 1.2
44 unsigned int gammaFromUser :1; //user custom gamma is used
48 unsigned int gammaPredefinedSRGB :1; //flag for SRGB gamma
49 unsigned int gammaPredefinedPQ :1; //flag for PQ gamma
50 unsigned int gammaPredefinedPQ2084Interim :1; //flag for PQ gamma, lower max nits
51 unsigned int gammaPredefined36 :1; //flag for 3.6 gamma
52 unsigned int gammaPredefinedReset :1; //flag to return to previous gamma
57 unsigned short gamma[256*3]; // gamma ramp packed in same way as OS windows ,r , g & b member
61 int gamma[3]; member
/kernel/linux/linux-4.19/drivers/gpu/drm/
Ddrm_color_mgmt.c45 * linear/pass-thru gamma table should be used. This is generally the
54 * split-gamma modes) appropriately.
59 * lookup through the gamma LUT. The data is interpreted as a struct
68 * Blob property to set the gamma lookup table (LUT) mapping pixel data
76 * linear/pass-thru gamma table should be used. This is generally the
84 * largest size, and sub-sample smaller sized LUTs (e.g. for split-gamma
87 * There is also support for a legacy gamma table, which is set up by calling
89 * drm_atomic_helper_legacy_gamma_set() to alias the legacy gamma ramp with the
112 * Extract a degamma/gamma LUT value provided by user (in the form of
136 * @gamma_lut_size: the size of the gamma lut (after CSC)
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/Documentation/ABI/testing/
Dsysfs-class-lcd-s6e63m09 (RW) Read or write the gamma mode. Following three modes are
11 0 - gamma value 2.2,
12 1 - gamma value 1.9 and
13 2 - gamma value 1.7.
21 (RO) Displays the size of the gamma table i.e. the number of
22 gamma modes available.
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/dc/core/
Ddc_surface.c148 void dc_gamma_retain(struct dc_gamma *gamma) in dc_gamma_retain() argument
150 kref_get(&gamma->refcount); in dc_gamma_retain()
155 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() local
156 kvfree(gamma); in dc_gamma_free()
159 void dc_gamma_release(struct dc_gamma **gamma) in dc_gamma_release() argument
161 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
162 *gamma = NULL; in dc_gamma_release()
167 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma() local
169 if (gamma == NULL) in dc_create_gamma()
172 kref_init(&gamma->refcount); in dc_create_gamma()
[all …]
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/drivers/video/fbdev/via/
Dvia_utility.c129 /* Gamma Function Implementation*/
144 /* 8 bpp mode can't adjust gamma */ in viafb_set_gamma_table()
148 /* Enable Gamma */ in viafb_set_gamma_table()
168 /* Fill IGA1 Gamma Table */ in viafb_set_gamma_table()
176 /* If adjust Gamma value in SAMM, fill IGA1, in viafb_set_gamma_table()
177 IGA2 Gamma table simultaneous. */ in viafb_set_gamma_table()
178 /* Switch to IGA2 Gamma Table */ in viafb_set_gamma_table()
186 /* Fill IGA2 Gamma Table */ in viafb_set_gamma_table()
203 /* Enable Gamma */ in viafb_get_gamma_table()
223 /* Reading gamma table to get color value */ in viafb_get_gamma_table()
/kernel/linux/linux-4.19/drivers/staging/media/davinci_vpfe/
Ddm365_ipipe.c592 ipipe_validate_gamma_params(struct vpfe_ipipe_gamma *gamma, struct device *dev) in ipipe_validate_gamma_params() argument
597 if (gamma->bypass_r > 1 || in ipipe_validate_gamma_params()
598 gamma->bypass_b > 1 || in ipipe_validate_gamma_params()
599 gamma->bypass_g > 1) in ipipe_validate_gamma_params()
602 if (gamma->tbl_sel != VPFE_IPIPE_GAMMA_TBL_RAM) in ipipe_validate_gamma_params()
605 table_size = gamma->tbl_size; in ipipe_validate_gamma_params()
606 if (!gamma->bypass_r) { in ipipe_validate_gamma_params()
607 err = ipipe_validate_gamma_entry(gamma->table_r, table_size); in ipipe_validate_gamma_params()
609 dev_err(dev, "GAMMA R - table entry invalid\n"); in ipipe_validate_gamma_params()
614 if (!gamma->bypass_b) { in ipipe_validate_gamma_params()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/drivers/gpu/drm/omapdrm/displays/
Dpanel-tpo-td043mtea1.c64 u16 gamma[12]; member
121 static void tpo_td043_write_gamma(struct spi_device *spi, u16 gamma[12]) in tpo_td043_write_gamma()
125 /* gamma bits [9:8] */ in tpo_td043_write_gamma()
127 val |= (gamma[i] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
131 val |= (gamma[i+4] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
135 val |= (gamma[i+8] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
138 /* gamma bits [7:0] */ in tpo_td043_write_gamma()
140 tpo_td043_write(spi, 0x14 + i, gamma[i] & 0xff); in tpo_td043_write_gamma()
236 for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) { in tpo_td043_gamma_show()
238 ddata->gamma[i]); in tpo_td043_gamma_show()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-4.19/drivers/media/i2c/
Dvs6624_regs.h67 #define VS6624_GAMMA0 0x03B8 /* gamma settings */
100 #define VS6624_GAMMA1 0x0438 /* gamma settings */
266 /* pipe 0 gamma manual control */
267 #define VS6624_GAMMA_MAN_CTRL0 0x2280 /* enable manual gamma setup */
268 #define VS6624_GAMMA_PEAK_R0 0x2282 /* peaked red channel gamma value */
269 #define VS6624_GAMMA_PEAK_G0 0x2284 /* peaked green channel gamma value */
270 #define VS6624_GAMMA_PEAK_B0 0x2286 /* peaked blue channel gamma value */
271 #define VS6624_GAMMA_UNPEAK_R0 0x2288 /* unpeaked red channel gamma value */
272 #define VS6624_GAMMA_UNPEAK_G0 0x228A /* unpeaked green channel gamma value */
273 #define VS6624_GAMMA_UNPEAK_B0 0x228C /* unpeaked blue channel gamma value */
[all …]

12345678910>>...19