Home
last modified time | relevance | path

Searched refs:curves (Results 1 – 20 of 20) sorted by relevance

/drivers/staging/fbtft/
Dfb_hx8353d.c117 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()
Dfb_st7789v.c181 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()
Dfbtft-sysfs.c24 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()
Dfb_ssd1306.c45 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()
Dfb_pcd8544.c140 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()
Dfb_tls8204.c132 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()
Dfb_ssd1331.c125 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()
Dfb_ssd1351.c120 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()
Dfb_st7735r.c138 #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
Dfb_ili9341.c123 #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
Dfb_hx8340bn.c142 #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
Dfb_hx8347d.c104 #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
Dfb_ssd1289.c138 #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
Dfb_s6d1121.c132 #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
Dfb_ili9320.c223 #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
Dfb_ili9325.c220 #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
Dfb_ili9163.c226 #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
Dinternal.h22 int fbtft_gamma_parse_str(struct fbtft_par *par, unsigned long *curves,
Dfbtft.h103 int (*set_gamma)(struct fbtft_par *par, unsigned long *curves);
243 unsigned long *curves; member
Dfbtft-core.c807 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()