Home
last modified time | relevance | path

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

12345678910>>...13

/openbmc/linux/Documentation/devicetree/bindings/display/mediatek/
H A 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
29 - mediatek,mt6795-disp-gamma
30 - const: mediatek,mt8173-disp-gamma
33 - mediatek,mt8186-disp-gamma
34 - mediatek,mt8188-disp-gamma
[all …]
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_disp_gamma.c45 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_clk_enable() local
47 return clk_prepare_enable(gamma->clk); in mtk_gamma_clk_enable()
52 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_clk_disable() local
54 clk_disable_unprepare(gamma->clk); in mtk_gamma_clk_disable()
93 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_set() local
96 if (gamma->data) in mtk_gamma_set()
97 lut_diff = gamma->data->lut_diff; in mtk_gamma_set()
99 mtk_gamma_set_common(gamma->regs, state, lut_diff); in mtk_gamma_set()
106 struct mtk_disp_gamma *gamma = dev_get_drvdata(dev); in mtk_gamma_config() local
108 mtk_ddp_write(cmdq_pkt, h << 16 | w, &gamma->cmdq_reg, gamma->regs, in mtk_gamma_config()
[all …]
/openbmc/linux/drivers/staging/fbtft/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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,
H A 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",
H A 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",
H A 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,
H A 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,
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_1.0/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c38 * - Input gamma LUT (de-normalized)
51 * The input gamma LUT block isn't really applicable here since it operates
139 * @gamma: DC gamma to set entries
140 * @is_legacy: legacy or atomic gamma
145 struct dc_gamma *gamma, bool is_legacy) in __drm_lut_to_dc_gamma() argument
156 gamma->entries.red[i] = dc_fixpt_from_int(r); in __drm_lut_to_dc_gamma()
157 gamma->entries.green[i] = dc_fixpt_from_int(g); in __drm_lut_to_dc_gamma()
158 gamma->entries.blue[i] = dc_fixpt_from_int(b); in __drm_lut_to_dc_gamma()
169 gamma->entries.red[i] = dc_fixpt_from_fraction(r, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
170 gamma->entries.green[i] = dc_fixpt_from_fraction(g, MAX_DRM_LUT_VALUE); in __drm_lut_to_dc_gamma()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_2/
H A 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] */
/openbmc/linux/drivers/gpu/drm/amd/display/modules/color/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/
H A 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 …]
/openbmc/linux/drivers/video/fbdev/via/
H A 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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c193 void dc_gamma_retain(struct dc_gamma *gamma) in dc_gamma_retain() argument
195 kref_get(&gamma->refcount); in dc_gamma_retain()
200 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() local
201 kvfree(gamma); in dc_gamma_free()
204 void dc_gamma_release(struct dc_gamma **gamma) in dc_gamma_release() argument
206 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
207 *gamma = NULL; in dc_gamma_release()
212 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma() local
214 if (gamma == NULL) in dc_create_gamma()
217 kref_init(&gamma->refcount); in dc_create_gamma()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_sprite.c50 static void i9xx_plane_linear_gamma(u16 gamma[8]) in i9xx_plane_linear_gamma()
57 gamma[i] = (in[i] << 8) / 32; in i9xx_plane_linear_gamma()
343 u16 gamma[8]; in vlv_sprite_update_gamma() local
346 /* Seems RGB data bypasses the gamma always */ in vlv_sprite_update_gamma()
350 i9xx_plane_linear_gamma(gamma); in vlv_sprite_update_gamma()
356 gamma[i] << 16 | gamma[i] << 8 | gamma[i]); in vlv_sprite_update_gamma()
721 u16 gamma[18]) in ivb_sprite_linear_gamma()
729 * brought up to full amplitude by using sprite internal gamma in ivb_sprite_linear_gamma()
730 * correction, pipe gamma correction, or pipe color space in ivb_sprite_linear_gamma()
736 gamma[i] = min((scale * i << 10) / 16, (1 << 10) - 1); in ivb_sprite_linear_gamma()
[all …]
/openbmc/linux/drivers/gpu/drm/panel/
H A 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 …]
H A 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
393 /* Set up gamma correction */ in ili9322_init()
394 for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { in ili9322_init()
396 ili->gamma[i]); in ili9322_init()
[all …]
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/displays/
H A 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()
231 for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) { in tpo_td043_gamma_show()
233 ddata->gamma[i]); in tpo_td043_gamma_show()
[all …]
/openbmc/linux/drivers/video/backlight/
H A 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 …]
/openbmc/linux/tools/testing/selftests/net/
H A Dioam6.sh12 # tests use the entire three-node topology (alpha, beta, gamma). Each test is
15 # An IOAM domain is configured from Alpha to Gamma but not on the reverse path.
16 # When either Beta or Gamma is the destination (depending on the test category),
22 # | Alpha netns | | Gamma netns |
97 # | Gamma - IOAM configuration |
157 GAMMA=(
266 ip link del ioam-veth-gamma 2>/dev/null || true
270 ip netns del ioam-node-gamma || true
282 ip netns add ioam-node-gamma
287 peer name ioam-veth-gamma netns ioam-node-gamma
[all …]
/openbmc/linux/arch/powerpc/platforms/512x/
H A 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()
/openbmc/linux/include/uapi/linux/
H A 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 */

12345678910>>...13