curves 151 drivers/staging/fbtft/fb_hx8340bn.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 152 drivers/staging/fbtft/fb_hx8340bn.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 95 drivers/staging/fbtft/fb_hx8347d.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 96 drivers/staging/fbtft/fb_hx8347d.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 112 drivers/staging/fbtft/fb_hx8353d.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 115 drivers/staging/fbtft/fb_hx8353d.c curves[0], curves[1], curves[2], curves[3], curves 116 drivers/staging/fbtft/fb_hx8353d.c curves[4], curves[5], curves[6], curves[7], curves 117 drivers/staging/fbtft/fb_hx8353d.c curves[8], curves[9], curves[10], curves[11], curves 118 drivers/staging/fbtft/fb_hx8353d.c curves[12], curves[13], curves[14], curves[15], curves 119 drivers/staging/fbtft/fb_hx8353d.c curves[16], curves[17], curves[18]); curves 195 drivers/staging/fbtft/fb_ili9163.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 196 drivers/staging/fbtft/fb_ili9163.c static int gamma_adj(struct fbtft_par *par, u32 *curves) curves 214 drivers/staging/fbtft/fb_ili9320.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 215 drivers/staging/fbtft/fb_ili9320.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 208 drivers/staging/fbtft/fb_ili9325.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 209 drivers/staging/fbtft/fb_ili9325.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 114 drivers/staging/fbtft/fb_ili9341.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 115 drivers/staging/fbtft/fb_ili9341.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 131 drivers/staging/fbtft/fb_pcd8544.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 134 drivers/staging/fbtft/fb_pcd8544.c curves[0] &= 0x7F; curves 137 drivers/staging/fbtft/fb_pcd8544.c write_reg(par, 0x80 | curves[0]); curves 123 drivers/staging/fbtft/fb_s6d1121.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 124 drivers/staging/fbtft/fb_s6d1121.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 101 drivers/staging/fbtft/fb_sh1106.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 104 drivers/staging/fbtft/fb_sh1106.c curves[0] &= 0xFF; curves 107 drivers/staging/fbtft/fb_sh1106.c write_reg(par, 0x81, curves[0]); curves 129 drivers/staging/fbtft/fb_ssd1289.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 130 drivers/staging/fbtft/fb_ssd1289.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 37 drivers/staging/fbtft/fb_ssd1305.c if (par->gamma.curves[0] == 0) { curves 40 drivers/staging/fbtft/fb_ssd1305.c par->gamma.curves[0] = 0xCF; curves 42 drivers/staging/fbtft/fb_ssd1305.c par->gamma.curves[0] = 0x8F; curves 142 drivers/staging/fbtft/fb_ssd1305.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 144 drivers/staging/fbtft/fb_ssd1305.c curves[0] &= 0xFF; curves 147 drivers/staging/fbtft/fb_ssd1305.c write_reg(par, curves[0]); curves 36 drivers/staging/fbtft/fb_ssd1306.c if (par->gamma.curves[0] == 0) { curves 39 drivers/staging/fbtft/fb_ssd1306.c par->gamma.curves[0] = 0xCF; curves 41 drivers/staging/fbtft/fb_ssd1306.c par->gamma.curves[0] = 0x8F; curves 162 drivers/staging/fbtft/fb_ssd1306.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 165 drivers/staging/fbtft/fb_ssd1306.c curves[0] &= 0xFF; curves 169 drivers/staging/fbtft/fb_ssd1306.c write_reg(par, curves[0]); curves 110 drivers/staging/fbtft/fb_ssd1325.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 117 drivers/staging/fbtft/fb_ssd1325.c if (i > 0 && curves[i] < 1) { curves 123 drivers/staging/fbtft/fb_ssd1325.c if (curves[i] > 7) { curves 133 drivers/staging/fbtft/fb_ssd1325.c write_reg(par, (curves[i] & 0xFF)); curves 133 drivers/staging/fbtft/fb_ssd1331.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 139 drivers/staging/fbtft/fb_ssd1331.c if (i > 0 && curves[i] < 2) { curves 145 drivers/staging/fbtft/fb_ssd1331.c acc += curves[i]; curves 121 drivers/staging/fbtft/fb_ssd1351.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 127 drivers/staging/fbtft/fb_ssd1351.c if (i > 0 && curves[i] < 2) { curves 130 drivers/staging/fbtft/fb_ssd1351.c i, curves[i]); curves 133 drivers/staging/fbtft/fb_ssd1351.c acc += curves[i]; curves 136 drivers/staging/fbtft/fb_st7735r.c #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] curves 137 drivers/staging/fbtft/fb_st7735r.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 172 drivers/staging/fbtft/fb_st7789v.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 203 drivers/staging/fbtft/fb_st7789v.c curves[c + j] &= gamma_par_mask[j]; curves 205 drivers/staging/fbtft/fb_st7789v.c curves[c + 0], curves[c + 1], curves[c + 2], curves 206 drivers/staging/fbtft/fb_st7789v.c curves[c + 3], curves[c + 4], curves[c + 5], curves 207 drivers/staging/fbtft/fb_st7789v.c curves[c + 6], curves[c + 7], curves[c + 8], curves 208 drivers/staging/fbtft/fb_st7789v.c curves[c + 9], curves[c + 10], curves[c + 11], curves 209 drivers/staging/fbtft/fb_st7789v.c curves[c + 12], curves[c + 13]); curves 124 drivers/staging/fbtft/fb_tls8204.c static int set_gamma(struct fbtft_par *par, u32 *curves) curves 127 drivers/staging/fbtft/fb_tls8204.c curves[0] &= 0x7F; curves 130 drivers/staging/fbtft/fb_tls8204.c write_reg(par, 0x80 | curves[0]); curves 708 drivers/staging/fbtft/fbtft-core.c par->gamma.curves = gamma_curves; curves 714 drivers/staging/fbtft/fbtft-core.c if (par->gamma.curves && gamma) { curves 715 drivers/staging/fbtft/fbtft-core.c if (fbtft_gamma_parse_str(par, par->gamma.curves, gamma, curves 834 drivers/staging/fbtft/fbtft-core.c if (par->fbtftops.set_gamma && par->gamma.curves) { curves 835 drivers/staging/fbtft/fbtft-core.c ret = par->fbtftops.set_gamma(par, par->gamma.curves); curves 20 drivers/staging/fbtft/fbtft-sysfs.c int fbtft_gamma_parse_str(struct fbtft_par *par, u32 *curves, curves 31 drivers/staging/fbtft/fbtft-sysfs.c if (!str || !curves) curves 71 drivers/staging/fbtft/fbtft-sysfs.c curves[curve_counter * par->gamma.num_values + value_counter] = val; curves 93 drivers/staging/fbtft/fbtft-sysfs.c sprintf_gamma(struct fbtft_par *par, u32 *curves, char *buf) curves 102 drivers/staging/fbtft/fbtft-sysfs.c "%04x ", curves[i * par->gamma.num_values + j]); curves 128 drivers/staging/fbtft/fbtft-sysfs.c memcpy(par->gamma.curves, tmp_curves, curves 142 drivers/staging/fbtft/fbtft-sysfs.c return sprintf_gamma(par, par->gamma.curves, buf); curves 207 drivers/staging/fbtft/fbtft-sysfs.c if (par->gamma.curves && par->fbtftops.set_gamma) curves 214 drivers/staging/fbtft/fbtft-sysfs.c if (par->gamma.curves && par->fbtftops.set_gamma) curves 84 drivers/staging/fbtft/fbtft.h int (*set_gamma)(struct fbtft_par *par, u32 *curves); curves 222 drivers/staging/fbtft/fbtft.h u32 *curves; curves 10 drivers/staging/fbtft/internal.h int fbtft_gamma_parse_str(struct fbtft_par *par, u32 *curves,