| /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/gpu/drm/panel/ |
| H A D | panel-renesas-r61307.c | 23 #define R61307_GAMMA_SET_A 0xc8 /* Gamma Setting A */ 24 #define R61307_GAMMA_SET_B 0xc9 /* Gamma Setting B */ 25 #define R61307_GAMMA_SET_C 0xca /* Gamma Setting C */ 39 u32 gamma; member 133 if (priv->gamma) in renesas_r61307_enable() 134 mipi_dsi_generic_write_multi(&ctx, gamma_setting[priv->gamma], in renesas_r61307_enable() 135 sizeof(gamma_setting[priv->gamma])); in renesas_r61307_enable() 246 priv->gamma = 0; in renesas_r61307_probe() 247 device_property_read_u32(dev, "renesas,gamma", &priv->gamma); in renesas_r61307_probe()
|
| H A D | panel-samsung-s6e63j0x03.c | 58 { /* Gamma 10 */ 64 { /* gamma 30 */ 70 { /* gamma 60 */ 76 { /* gamma 90 */ 82 { /* gamma 120 */ 88 { /* gamma 150 */ 94 { /* gamma 200 */ 100 { /* gamma 240 */ 106 { /* gamma 300 */
|
| H A D | panel-ilitek-ili9341.c | 49 #define ILI9341_PGAMMA 0xe0 /* Positive Gamma Correction register */ 50 #define ILI9341_NGAMMA 0xe1 /* Negative Gamma Correction register */ 54 #define ILI9341_3GAMMA_EN 0xf2 /* 3 Gamma enable register */ 164 * gamma_curve: This command is used to select the desired Gamma 168 /* pgamma: Positive Gamma Correction (E0h) */ 170 /* ngamma: Negative Gamma Correction (E1h) */ 281 /* Curve Selected: Gamma curve 1 (G2.2) */ 327 /* Gamma */ in ili9341_dpi_init()
|
| H A D | panel-motorola-mot.c | 60 /* Gamma R */ in mot_es2() 67 /* Gamma G */ in mot_es2() 74 /* Gamma B */ in mot_es2() 81 /* Gamma W */ in mot_es2()
|
| H A D | panel-renesas-r69328.c | 22 #define R69328_GAMMA_SET_A 0xc8 /* Gamma Setting A */ 23 #define R69328_GAMMA_SET_B 0xc9 /* Gamma Setting B */ 24 #define R69328_GAMMA_SET_C 0xca /* Gamma Setting C */
|
| /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/staging/fbtft/ |
| 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_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_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 | fbtft-core.c | 509 char *gamma = display->gamma; in fbtft_framebuffer_alloc() local 538 if (pdata->gamma) in fbtft_framebuffer_alloc() 539 gamma = pdata->gamma; in fbtft_framebuffer_alloc() 643 par->gamma.curves = gamma_curves; in fbtft_framebuffer_alloc() 644 par->gamma.num_curves = display->gamma_num; in fbtft_framebuffer_alloc() 645 par->gamma.num_values = display->gamma_len; in fbtft_framebuffer_alloc() 646 mutex_init(&par->gamma.lock); in fbtft_framebuffer_alloc() 649 if (par->gamma.curves && gamma) { in fbtft_framebuffer_alloc() 650 if (fbtft_gamma_parse_str(par, par->gamma.curves, gamma, in fbtft_framebuffer_alloc() 651 strlen(gamma))) in fbtft_framebuffer_alloc() [all …]
|
| 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,
|
| H A D | fb_ili9320.c | 206 * Gamma string format: 210 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 222 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma() 247 .gamma = DEFAULT_GAMMA,
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_surface.c | 188 void dc_gamma_retain(struct dc_gamma *gamma) in dc_gamma_retain() argument 190 kref_get(&gamma->refcount); in dc_gamma_retain() 195 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() local 196 kvfree(gamma); in dc_gamma_free() 199 void dc_gamma_release(struct dc_gamma **gamma) in dc_gamma_release() argument 201 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release() 202 *gamma = NULL; in dc_gamma_release() 207 struct dc_gamma *gamma = kvzalloc_obj(*gamma); in dc_create_gamma() local 209 if (gamma == NULL) in dc_create_gamma() 212 kref_init(&gamma->refcount); in dc_create_gamma() [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 */
|
| H A D | omap3isp.h | 617 * struct omap3isp_prev_gtables - Gamma correction tables 618 * @red: Array for red gamma table. 619 * @green: Array for green gamma table. 620 * @blue: Array for blue gamma table. 654 * @gamma: Pointer to gamma structure. 671 struct omap3isp_prev_gtables __user *gamma; member
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | isppreview.h | 67 * @gamma: Gamma coefficients. 86 struct omap3isp_prev_gtables gamma; member
|
| /linux/drivers/media/platform/microchip/ |
| H A D | microchip-sama5d2-isc.c | 18 * GAM: Gamma correction 277 /* No specific gamma configuration */ in isc_sama5d2_config_gam() 311 /* Gamma table with gamma 1/2.2 */ 313 /* 0 --> gamma 1/1.8 */ 326 /* 1 --> gamma 1/2 */ 339 /* 2 --> gamma 1/2.2 */
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_color_regs.h | 198 /* pipe degamma/gamma LUTs on IVB+ */ 239 /* ICL Multi segmented gamma */ 271 /* pipe CSC & degamma/gamma LUTs on CHV */ 284 /* cgm gamma ldw */ 287 /* cgm gamma udw */
|