Home
last modified time | relevance | path

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

12345678910>>...13

/linux-6.14.4/drivers/gpu/drm/mediatek/
Dmtk_disp_gamma.c54 * struct mtk_disp_gamma - Display Gamma driver structure
69 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_clk_enable() local
71 return clk_prepare_enable(gamma->clk); in mtk_gamma_clk_enable()
76 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_clk_disable() local
78 clk_disable_unprepare(gamma->clk); in mtk_gamma_clk_disable()
83 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_get_lut_size() local
85 if (gamma && gamma->data) in mtk_gamma_get_lut_size()
86 return gamma->data->lut_size; in mtk_gamma_get_lut_size()
118 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_set() local
119 void __iomem *lut0_base = gamma->regs + DISP_GAMMA_LUT; in mtk_gamma_set()
[all …]
Dmtk_disp_aal.c82 * mtk_aal_gamma_get_lut_size() - Get gamma LUT size for AAL
85 * Return: 0 if gamma control not supported in AAL or gamma LUT size
103 /* If gamma is not supported in AAL, go out immediately */ in mtk_aal_gamma_set()
107 /* Also, if there's no gamma lut there's nothing to do here. */ in mtk_aal_gamma_set()
128 /* Enable the gamma table */ in mtk_aal_gamma_set()
/linux-6.14.4/Documentation/devicetree/bindings/display/mediatek/
Dmediatek,gamma.yaml4 $id: http://devicetree.org/schemas/display/mediatek/mediatek,gamma.yaml#
7 title: Mediatek display gamma correction
14 Mediatek display gamma correction, namely GAMMA, provides a nonlinear
16 GAMMA device node must be siblings to the central MMSYS_CONFIG node.
25 - mediatek,mt8173-disp-gamma
26 - mediatek,mt8183-disp-gamma
27 - mediatek,mt8195-disp-gamma
30 - mediatek,mt6795-disp-gamma
31 - const: mediatek,mt8173-disp-gamma
34 - mediatek,mt8186-disp-gamma
[all …]
/linux-6.14.4/drivers/staging/fbtft/
Dfbtft-sysfs.c51 if (curve_counter == par->gamma.num_curves) { in fbtft_gamma_parse_str()
52 dev_err(par->info->device, "Gamma: Too many curves\n"); in fbtft_gamma_parse_str()
59 if (value_counter == par->gamma.num_values) { in fbtft_gamma_parse_str()
61 "Gamma: Too many values\n"); in fbtft_gamma_parse_str()
69 _count = curve_counter * par->gamma.num_values + 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)
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.c44 * @PVGAMCTRL: positive voltage gamma control
45 * @NVGAMCTRL: negative voltage gamma control
297 * set_gamma() - set gamma curves
300 * @curves: gamma curves
302 * Before the gamma curves are applied, they are preprocessed with a bitmask
305 * function and that illegal gamma values are auto-corrected and not
317 * Bitmasks for gamma curve command parameters. in set_gamma()
319 * gamma curves. in set_gamma()
338 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
339 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()
158 /* Gamma is used to control Contrast */
206 .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_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-6.14.4/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_1.0/
Dia_css_gc_types.h11 * CSS-API header file for Gamma Correction parameters.
16 /* Fractional bits for GAMMA gain */
19 /* Number of elements in the gamma table. */
23 /* Number of elements in the gamma table. */
27 /* Gamma table, used for Y(Luma) Gamma Correction.
29 * ISP block: GC1 (YUV Gamma Correction)
31 * (ISP2: GC2(sRGB Gamma Correction) is used.)
37 /** Y(Luma) Gamma table on vamem type 1. u0.8, [0,255] */
39 /** Y(Luma) Gamma table on vamem type 2. u0.8, [0,255] */
47 /* Gamma Correction configuration (used only for YUV Gamma Correction).
[all …]
/linux-6.14.4/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_2/
Dia_css_gc2_types.h13 * CSS-API header file for Gamma Correction parameters.
16 /* sRGB Gamma table, used for sRGB Gamma Correction.
18 * ISP block: GC2 (sRGB Gamma Correction)
19 * (ISP1: GC1(YUV Gamma Correction) is used.)
23 /* Number of elements in the sRGB gamma table. */
27 /* Number of elements in the sRGB gamma table. */
35 /** RGB Gamma table on vamem type1. This table is not used,
36 because sRGB Gamma Correction is not implemented for ISP2300. */
38 /** RGB Gamma table on vamem type2. u0.12, [0,4095] */
/linux-6.14.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c38 * - Input gamma LUT (de-normalized)
51 * The input gamma LUT block isn't really applicable here since it operates
119 * - Gamma 2.2, Gamma 2.4, Gamma 2.6: pure power functions;
122 * with a 0.45 (~1/2.22) gamma for the rest of the range; standardized by
128 * Gamma 2.2, etc.) peak white maps (normalized to 1.0 FP) to 80 nits in the PQ
141 * │ Gamma 2.x │ UNORM or [0.0, 1.0] │ [0.0, 1.0] │
152 * values. As some newer encodings don't use gamma curve, we make encoding and
157 * from the encoded value to an optical (linear) value. De-gamma functions
161 * back to the encoded values. Gamma functions traditionally do this.
170 [AMDGPU_TRANSFER_FUNCTION_GAMMA22_EOTF] = "Gamma 2.2 EOTF",
[all …]
/linux-6.14.4/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-6.14.4/drivers/gpu/drm/
Ddrm_color_mgmt.c50 * linear/pass-thru gamma table should be used. This is generally the
59 * split-gamma modes) appropriately.
64 * lookup through the gamma LUT. The data is interpreted as a struct
73 * Blob property to set the gamma lookup table (LUT) mapping pixel data
81 * linear/pass-thru gamma table should be used. This is generally the
93 * largest size, and sub-sample smaller sized LUTs (e.g. for split-gamma
96 * There is also support for a legacy gamma table, which is set up by calling
97 * drm_mode_crtc_set_gamma_size(). The DRM core will then alias the legacy gamma
154 * @gamma_lut_size: the size of the gamma lut (after CSC)
157 * properties on a CRTC. This includes 3 degamma, csc and gamma
[all …]
/linux-6.14.4/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-6.14.4/drivers/gpu/drm/i915/display/
Dintel_sprite.c56 static void i9xx_plane_linear_gamma(u16 gamma[8]) in i9xx_plane_linear_gamma()
63 gamma[i] = (in[i] << 8) / 32; in i9xx_plane_linear_gamma()
364 u16 gamma[8]; in vlv_sprite_update_gamma() local
367 /* Seems RGB data bypasses the gamma always */ in vlv_sprite_update_gamma()
371 i9xx_plane_linear_gamma(gamma); in vlv_sprite_update_gamma()
377 gamma[i] << 16 | gamma[i] << 8 | gamma[i]); in vlv_sprite_update_gamma()
747 u16 gamma[18]) in ivb_sprite_linear_gamma()
755 * brought up to full amplitude by using sprite internal gamma in ivb_sprite_linear_gamma()
756 * correction, pipe gamma correction, or pipe color space in ivb_sprite_linear_gamma()
762 gamma[i] = min((scale * i << 10) / 16, (1 << 10) - 1); in ivb_sprite_linear_gamma()
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/core/
Ddc_surface.c177 void dc_gamma_retain(struct dc_gamma *gamma) in dc_gamma_retain() argument
179 kref_get(&gamma->refcount); in dc_gamma_retain()
184 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() local
185 kvfree(gamma); in dc_gamma_free()
188 void dc_gamma_release(struct dc_gamma **gamma) in dc_gamma_release() argument
190 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
191 *gamma = NULL; in dc_gamma_release()
196 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma() local
198 if (gamma == NULL) in dc_create_gamma()
201 kref_init(&gamma->refcount); in dc_create_gamma()
[all …]
/linux-6.14.4/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.c143 * 4+4 bits of negative and positive gamma correction
144 * Upper nybble, bits 4-7 are negative gamma
145 * Lower nybble, bits 0-3 are positive gamma
226 * gamma correction for voltages V1 thru V8. Valid range 0..15
228 * gamma correction for voltages V1 thru V8. Valid range 0..15
246 * The negative and postive gamma values adjust the V1 thru V8 up/down
279 u8 gamma[8]; member
387 /* Set up gamma correction */ in ili9322_init()
388 for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { in ili9322_init()
390 ili->gamma[i]); in ili9322_init()
[all …]
/linux-6.14.4/tools/testing/selftests/net/
Dlwt_dst_cache_ref_loop.sh85 setup_ns alpha beta gamma &>/dev/null
91 peer name veth-gamma netns $gamma &>/dev/null
96 ip -netns $gamma link set veth-gamma name veth0 &>/dev/null
114 ip -netns $gamma addr add 2001:db8:2::2/64 dev veth0 &>/dev/null
115 ip -netns $gamma link set veth0 up &>/dev/null
116 ip -netns $gamma link set lo up &>/dev/null
117 ip -netns $gamma route add 2001:db8:1::/64 \
133 cleanup_ns $alpha $beta $gamma
/linux-6.14.4/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-tpo-td043mtea1.c61 u16 gamma[12]; member
116 static void tpo_td043_write_gamma(struct spi_device *spi, u16 gamma[12]) in tpo_td043_write_gamma()
120 /* gamma bits [9:8] */ in tpo_td043_write_gamma()
122 val |= (gamma[i] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
126 val |= (gamma[i+4] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
130 val |= (gamma[i+8] & 0x300) >> ((i + 1) * 2); in tpo_td043_write_gamma()
133 /* gamma bits [7:0] */ in tpo_td043_write_gamma()
135 tpo_td043_write(spi, 0x14 + i, gamma[i] & 0xff); in tpo_td043_write_gamma()
230 for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) in tpo_td043_gamma_show()
231 len += sysfs_emit_at(buf, len, "%u ", ddata->gamma[i]); in tpo_td043_gamma_show()
[all …]
/linux-6.14.4/drivers/video/backlight/
Dams369fg06.c114 /* gamma value: 2.2 */
208 const unsigned int *gamma) in _ams369fg06_gamma_ctl() argument
214 ret = ams369fg06_spi_write(lcd, 0x40 + i, gamma[i]); in _ams369fg06_gamma_ctl()
215 ret = ams369fg06_spi_write(lcd, 0x50 + i, gamma[i+7*1]); in _ams369fg06_gamma_ctl()
216 ret = ams369fg06_spi_write(lcd, 0x60 + i, gamma[i+7*2]); in _ams369fg06_gamma_ctl()
218 dev_err(lcd->dev, "failed to set gamma table.\n"); in _ams369fg06_gamma_ctl()
230 int gamma = 0; in ams369fg06_gamma_ctl() local
233 gamma = 0; in ams369fg06_gamma_ctl()
235 gamma = 1; in ams369fg06_gamma_ctl()
237 gamma = 2; in ams369fg06_gamma_ctl()
[all …]
/linux-6.14.4/arch/powerpc/platforms/512x/
Dmpc512x_shared.c47 u8 gamma[0x300]; /* 32-bit aligned! */ member
198 * Move area descriptor and gamma table elsewhere, they are
250 desc = in_be32(&diu_reg->gamma); in mpc512x_init_diu()
251 vaddr = ioremap(desc, sizeof(diu_shared_fb.gamma)); in mpc512x_init_diu()
257 memcpy(&diu_shared_fb.gamma, vaddr, sizeof(diu_shared_fb.gamma)); in mpc512x_init_diu()
258 /* flush gamma table */ in mpc512x_init_diu()
259 dst = (unsigned long)&diu_shared_fb.gamma; in mpc512x_init_diu()
260 flush_dcache_range(dst, dst + sizeof(diu_shared_fb.gamma) - 1); in mpc512x_init_diu()
263 out_be32(&diu_reg->gamma, virt_to_phys(&diu_shared_fb.gamma)); in mpc512x_init_diu()

12345678910>>...13