/drivers/staging/fbtft/ |
D | fb_hx8353d.c | 112 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 115 curves[0], curves[1], curves[2], curves[3], in set_gamma() 116 curves[4], curves[5], curves[6], curves[7], in set_gamma() 117 curves[8], curves[9], curves[10], curves[11], in set_gamma() 118 curves[12], curves[13], curves[14], curves[15], in set_gamma() 119 curves[16], curves[17], curves[18]); in set_gamma()
|
D | fb_st7789v.c | 196 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 227 curves[c + j] &= gamma_par_mask[j]; in set_gamma() 229 curves[c + 0], curves[c + 1], curves[c + 2], in set_gamma() 230 curves[c + 3], curves[c + 4], curves[c + 5], in set_gamma() 231 curves[c + 6], curves[c + 7], curves[c + 8], in set_gamma() 232 curves[c + 9], curves[c + 10], curves[c + 11], in set_gamma() 233 curves[c + 12], curves[c + 13]); in set_gamma()
|
D | fbtft-sysfs.c | 20 int fbtft_gamma_parse_str(struct fbtft_par *par, u32 *curves, in fbtft_gamma_parse_str() argument 32 if (!str || !curves) in fbtft_gamma_parse_str() 75 curves[_count] = val; in fbtft_gamma_parse_str() 97 sprintf_gamma(struct fbtft_par *par, u32 *curves, char *buf) in sprintf_gamma() argument 106 "%04x ", curves[i * par->gamma.num_values + j]); in sprintf_gamma() 132 memcpy(par->gamma.curves, tmp_curves, in store_gamma_curve() 146 return sprintf_gamma(par, par->gamma.curves, buf); in show_gamma_curve() 211 if (par->gamma.curves && par->fbtftops.set_gamma) in fbtft_sysfs_init() 218 if (par->gamma.curves && par->fbtftops.set_gamma) in fbtft_sysfs_exit()
|
D | fb_ssd1305.c | 37 if (par->gamma.curves[0] == 0) { in init_display() 40 par->gamma.curves[0] = 0xCF; in init_display() 42 par->gamma.curves[0] = 0x8F; in init_display() 142 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 144 curves[0] &= 0xFF; in set_gamma() 147 write_reg(par, curves[0]); in set_gamma()
|
D | fb_ssd1306.c | 36 if (par->gamma.curves[0] == 0) { in init_display() 39 par->gamma.curves[0] = 0xCF; in init_display() 41 par->gamma.curves[0] = 0x8F; in init_display() 162 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 165 curves[0] &= 0xFF; in set_gamma() 169 write_reg(par, curves[0]); in set_gamma()
|
D | fb_ssd1325.c | 108 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 115 if (i > 0 && curves[i] < 1) { in set_gamma() 121 if (curves[i] > 7) { in set_gamma() 131 write_reg(par, (curves[i] & 0xFF)); in set_gamma()
|
D | fb_pcd8544.c | 131 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 134 curves[0] &= 0x7F; in set_gamma() 137 write_reg(par, 0x80 | curves[0]); in set_gamma()
|
D | fb_tls8204.c | 124 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 127 curves[0] &= 0x7F; in set_gamma() 130 write_reg(par, 0x80 | curves[0]); in set_gamma()
|
D | fb_ssd1351.c | 120 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 126 if (i > 0 && curves[i] < 2) { in set_gamma() 129 i, curves[i]); in set_gamma() 132 acc += curves[i]; in set_gamma()
|
D | fb_sh1106.c | 100 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 103 curves[0] &= 0xFF; in set_gamma() 106 write_reg(par, 0x81, curves[0]); in set_gamma()
|
D | fb_ssd1331.c | 131 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument 137 if (i > 0 && curves[i] < 2) { in set_gamma() 143 acc += curves[i]; in set_gamma()
|
D | fb_st7735r.c | 136 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 137 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument
|
D | fb_hx8340bn.c | 151 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 152 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument
|
D | fb_ili9341.c | 114 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 115 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument
|
D | fb_hx8347d.c | 95 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 96 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument
|
D | fb_s6d1121.c | 119 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 120 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument
|
D | fb_ssd1289.c | 125 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 126 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument
|
D | fb_ili9320.c | 213 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 214 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument
|
D | fb_ili9163.c | 191 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 192 static int gamma_adj(struct fbtft_par *par, u32 *curves) in gamma_adj() argument
|
D | fb_ili9325.c | 204 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] 205 static int set_gamma(struct fbtft_par *par, u32 *curves) in set_gamma() argument
|
D | internal.h | 10 int fbtft_gamma_parse_str(struct fbtft_par *par, u32 *curves,
|
D | fbtft.h | 84 int (*set_gamma)(struct fbtft_par *par, u32 *curves); 222 u32 *curves; member
|
D | fbtft-core.c | 699 par->gamma.curves = gamma_curves; in fbtft_framebuffer_alloc() 705 if (par->gamma.curves && gamma) { in fbtft_framebuffer_alloc() 706 if (fbtft_gamma_parse_str(par, par->gamma.curves, gamma, in fbtft_framebuffer_alloc() 825 if (par->fbtftops.set_gamma && par->gamma.curves) { in fbtft_register_framebuffer() 826 ret = par->fbtftops.set_gamma(par, par->gamma.curves); in fbtft_register_framebuffer()
|