/drivers/staging/fbtft/ |
D | fb_hx8353d.c | 117 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument 120 curves[0], curves[1], curves[2], curves[3], in set_gamma() 121 curves[4], curves[5], curves[6], curves[7], in set_gamma() 122 curves[8], curves[9], curves[10], curves[11], in set_gamma() 123 curves[12], curves[13], curves[14], curves[15], in set_gamma() 124 curves[16], curves[17], curves[18]); in set_gamma()
|
D | fb_st7789v.c | 181 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument 212 curves[c + j] &= gamma_par_mask[j]; in set_gamma() 215 curves[c + 0], curves[c + 1], curves[c + 2], in set_gamma() 216 curves[c + 3], curves[c + 4], curves[c + 5], in set_gamma() 217 curves[c + 6], curves[c + 7], curves[c + 8], in set_gamma() 218 curves[c + 9], curves[c + 10], curves[c + 11], in set_gamma() 219 curves[c + 12], curves[c + 13]); in set_gamma()
|
D | fbtft-sysfs.c | 24 int fbtft_gamma_parse_str(struct fbtft_par *par, unsigned long *curves, in fbtft_gamma_parse_str() argument 35 if (!str || !curves) in fbtft_gamma_parse_str() 75 curves[curve_counter * par->gamma.num_values + value_counter] = val; in fbtft_gamma_parse_str() 97 sprintf_gamma(struct fbtft_par *par, unsigned long *curves, char *buf) in sprintf_gamma() argument 106 "%04lx ", curves[i * par->gamma.num_values + j]); in sprintf_gamma() 132 memcpy(par->gamma.curves, tmp_curves, in store_gamma_curve() 145 return sprintf_gamma(par, par->gamma.curves, buf); in show_gamma_curve() 210 if (par->gamma.curves && par->fbtftops.set_gamma) in fbtft_sysfs_init() 217 if (par->gamma.curves && par->fbtftops.set_gamma) in fbtft_sysfs_exit()
|
D | fb_ssd1306.c | 45 if (par->gamma.curves[0] == 0) { in init_display() 48 par->gamma.curves[0] = 0xCF; in init_display() 50 par->gamma.curves[0] = 0x8F; in init_display() 149 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument 152 curves[0] &= 0xFF; in set_gamma() 156 write_reg(par, curves[0]); in set_gamma()
|
D | fb_pcd8544.c | 140 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument 143 curves[0] &= 0x7F; in set_gamma() 146 write_reg(par, 0x80 | curves[0]); in set_gamma()
|
D | fb_tls8204.c | 132 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument 135 curves[0] &= 0x7F; in set_gamma() 138 write_reg(par, 0x80 | curves[0]); in set_gamma()
|
D | fb_ssd1331.c | 125 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument 131 if (i > 0 && curves[i] < 2) { in set_gamma() 137 acc += curves[i]; in set_gamma()
|
D | fb_ssd1351.c | 120 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument 126 if (i > 0 && curves[i] < 2) { in set_gamma() 132 acc += curves[i]; in set_gamma()
|
D | fb_st7735r.c | 138 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 139 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument
|
D | fb_ili9341.c | 123 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 124 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument
|
D | fb_hx8340bn.c | 142 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 143 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument
|
D | fb_hx8347d.c | 104 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 105 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument
|
D | fb_ssd1289.c | 138 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 139 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument
|
D | fb_s6d1121.c | 132 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 133 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument
|
D | fb_ili9320.c | 223 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 224 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument
|
D | fb_ili9325.c | 220 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 221 static int set_gamma(struct fbtft_par *par, unsigned long *curves) in set_gamma() argument
|
D | fb_ili9163.c | 226 #define CURVE(num, idx) curves[num * par->gamma.num_values + idx] 227 static int gamma_adj(struct fbtft_par *par, unsigned long *curves) in gamma_adj() argument
|
D | internal.h | 22 int fbtft_gamma_parse_str(struct fbtft_par *par, unsigned long *curves,
|
D | fbtft.h | 103 int (*set_gamma)(struct fbtft_par *par, unsigned long *curves); 243 unsigned long *curves; member
|
D | fbtft-core.c | 807 par->gamma.curves = gamma_curves; in fbtft_framebuffer_alloc() 813 if (par->gamma.curves && gamma) { in fbtft_framebuffer_alloc() 815 par->gamma.curves, gamma, strlen(gamma))) in fbtft_framebuffer_alloc() 953 if (par->fbtftops.set_gamma && par->gamma.curves) { in fbtft_register_framebuffer() 954 ret = par->fbtftops.set_gamma(par, par->gamma.curves); in fbtft_register_framebuffer()
|