/linux/drivers/staging/fbtft/ |
H A D | fbtft-sysfs.c | 51 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 …]
|
H A D | fb_st7789v.c | 44 * @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 D | fb_hx8340bn.c | 83 * 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 D | fb_ssd1305.c | 37 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 D | fb_ssd1306.c | 36 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",
|
H A D | fb_st7735r.c | 132 * 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 D | fb_ili9341.c | 54 /* ------------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,
|
H A D | fb_hx8347d.c | 113 * Gamma string format: 117 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 128 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma() 129 for (j = 0; j < par->gamma.num_values; j++) { in set_gamma() 137 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma() 165 .gamma = DEFAULT_GAMMA,
|
H A D | fb_ili9163.c | 51 #define CMD_PGAMMAC 0xE0 /* Positive Gamma Correction Setting */ 52 #define CMD_NGAMMAC 0xE1 /* Negative Gamma Correction Setting */ 84 /* default gamma curve 3 */ in init_display() 87 write_reg(par, CMD_GAMRSEL, 0x01); /* Enable Gamma adj */ in init_display() 191 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 202 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in gamma_adj() 239 .gamma = DEFAULT_GAMMA,
|
H A D | fb_ili9340.c | 56 /* Gamma Function Disable */ in init_display() 59 /* Gamma curve selection */ in init_display() 62 /* Positive Gamma Correction */ in init_display() 67 /* Negative Gamma Correction */ in init_display()
|
H A D | fbtft-core.c | 513 char *gamma = display->gamma; in fbtft_framebuffer_alloc() local 542 if (pdata->gamma) in fbtft_framebuffer_alloc() 543 gamma = pdata->gamma; in fbtft_framebuffer_alloc() 647 par->gamma.curves = gamma_curves; in fbtft_framebuffer_alloc() 648 par->gamma.num_curves = display->gamma_num; in fbtft_framebuffer_alloc() 649 par->gamma.num_values = display->gamma_len; in fbtft_framebuffer_alloc() 650 mutex_init(&par->gamma.lock); in fbtft_framebuffer_alloc() 653 if (par->gamma.curves && gamma) { in fbtft_framebuffer_alloc() 654 if (fbtft_gamma_parse_str(par, par->gamma.curves, gamma, in fbtft_framebuffer_alloc() 655 strlen(gamma))) in fbtft_framebuffer_alloc() [all …]
|
H A D | fb_ili9486.c | 31 /* PGAMCTRL(Positive Gamma Control) */ 34 /* NGAMCTRL(Negative Gamma Control) */ 37 /* Digital Gamma Control 1 */
|
H A D | fb_ssd1289.c | 118 * Gamma string format: 122 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 134 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma() 158 .gamma = DEFAULT_GAMMA,
|
H A D | fb_s6d1121.c | 115 * Gamma string format: 119 #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,
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_color.c | 38 * - 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/drivers/video/fbdev/via/ |
H A D | via_utility.c | 115 /* 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/tools/testing/selftests/net/ |
H A D | lwt_dst_cache_ref_loop.sh | 85 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/drivers/video/fbdev/omap2/omapfb/displays/ |
H A D | panel-tpo-td043mtea1.c | 61 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/drivers/video/backlight/ |
H A D | ams369fg06.c | 114 /* 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/arch/powerpc/platforms/512x/ |
H A D | mpc512x_shared.c | 47 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()
|
/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_disp_aal.c | 82 * 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/include/uapi/linux/ |
H A D | am437x-vpfe.h | 56 /* 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/drivers/gpu/drm/amd/display/dc/dpp/dcn10/ |
H A D | dcn10_dpp_cm.c | 432 /*program re gamma RAM A*/ 461 /*program re gamma RAM B*/ 585 /*program de gamma RAM B*/ 614 /*program de gamma RAM A*/ 671 /* Setting de gamma bypass for now */ in dpp1_set_degamma() 818 * Input gamma LUT currently supports 256 values only. This means input color 823 * In the future, this function should support additional input gamma methods, 824 * such as piecewise linear mapping, and input gamma bypass. 828 const struct dc_gamma *gamma) in dpp1_program_input_lut() argument 857 for (i = 0; i < gamma->num_entries; i++) { in dpp1_program_input_lut() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_ipp.c | 171 const struct dc_gamma *gamma) in dce_ipp_program_input_lut() argument 196 for (i = 0; i < gamma->num_entries; i++) { in dce_ipp_program_input_lut() 199 gamma->entries.red[i])); in dce_ipp_program_input_lut() 202 gamma->entries.green[i])); in dce_ipp_program_input_lut() 205 gamma->entries.blue[i])); in dce_ipp_program_input_lut()
|
/linux/drivers/media/platform/ti/omap3isp/ |
H A D | isppreview.h | 67 * @gamma: Gamma coefficients. 86 struct omap3isp_prev_gtables gamma; member
|