| /linux/drivers/gpu/drm/ |
| H A D | drm_color_mgmt.c | 52 * linear/pass-thru gamma table should be used. This is generally the 61 * split-gamma modes) appropriately. 66 * lookup through the gamma LUT. The data is interpreted as a struct 75 * Blob property to set the gamma lookup table (LUT) mapping pixel data 83 * linear/pass-thru gamma table should be used. This is generally the 95 * largest size, and sub-sample smaller sized LUTs (e.g. for split-gamma 98 * There is also support for a legacy gamma table, which is set up by calling 99 * drm_mode_crtc_set_gamma_size(). The DRM core will then alias the legacy gamma 156 * @gamma_lut_size: the size of the gamma lut (after CSC) 159 * properties on a CRTC. This includes 3 degamma, csc and gamma [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_color.c | 40 * 1. the legacy &drm_crtc DEGAMMA, CTM, and GAMMA properties 50 * with per-plane color management is the GAMMA property as it is 68 * - Input gamma LUT (de-normalized) 81 * The input gamma LUT block isn't really applicable here since it 206 * - Gamma 2.2, Gamma 2.4, Gamma 2.6: pure power functions; 209 * with a 0.45 (~1/2.22) gamma for the rest of the range; standardized by 215 * Gamma 2.2, etc.) peak white maps (normalized to 1.0 FP) to 80 nits in the PQ 228 * │ Gamma 2.x │ UNORM or [0.0, 1.0] │ [0.0, 1.0] │ 239 * values. As some newer encodings don't use gamma curve, we make encoding and 244 * from the encoded value to an optical (linear) value. De-gamma functions [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/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 | 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,
|
| H A D | fb_ili9325.c | 200 * Gamma string format: 204 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 216 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma() 243 .gamma = DEFAULT_GAMMA,
|
| H A D | fb_ssd1331.c | 113 * The driver Gamma curve contains the relative values between the entries 119 * there are total 180 Gamma Settings (Setting 0 to Setting 180) 183 .gamma = DEFAULT_GAMMA,
|
| /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/i2c/ |
| H A D | ov772x.c | 164 #define GAM1 0x7E /* Gamma Curve 1st segment input end point */ 165 #define GAM2 0x7F /* Gamma Curve 2nd segment input end point */ 166 #define GAM3 0x80 /* Gamma Curve 3rd segment input end point */ 167 #define GAM4 0x81 /* Gamma Curve 4th segment input end point */ 168 #define GAM5 0x82 /* Gamma Curve 5th segment input end point */ 169 #define GAM6 0x83 /* Gamma Curve 6th segment input end point */ 170 #define GAM7 0x84 /* Gamma Curve 7th segment input end point */ 171 #define GAM8 0x85 /* Gamma Curve 8th segment input end point */ 172 #define GAM9 0x86 /* Gamma Curve 9th segment input end point */ 173 #define GAM10 0x87 /* Gamma Curve 10th segment input end point */ [all …]
|
| /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 */
|
| /linux/Documentation/gpu/amdgpu/display/ |
| H A D | display-manager.rst | 58 color transformation matrix (CTM) and gamma, and two properties for degamma and 59 gamma LUT sizes. AMD DC programs some of the color correction features 63 CRTC gamma after blending, and CRTC degamma pre-blending. Although CTM is
|
| /linux/drivers/staging/media/deprecated/atmel/ |
| H A D | atmel-isc.h | 230 * @gamma_table: pointer to the table with gamma values, has 246 * specific GAMMA module 325 /* pointer to the defined gamma table */
|