Home
last modified time | relevance | path

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

/drivers/staging/fbtft/
Dfb_hx8353d.c112 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()
Dfb_st7789v.c196 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()
Dfbtft-sysfs.c20 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()
Dfb_ssd1305.c37 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()
Dfb_ssd1306.c36 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()
Dfb_ssd1325.c108 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()
Dfb_pcd8544.c131 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()
Dfb_tls8204.c124 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()
Dfb_ssd1351.c120 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()
Dfb_sh1106.c100 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()
Dfb_ssd1331.c131 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()
Dfb_st7735r.c136 #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
Dfb_hx8340bn.c151 #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
Dfb_ili9341.c114 #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
Dfb_hx8347d.c95 #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
Dfb_s6d1121.c119 #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
Dfb_ssd1289.c125 #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
Dfb_ili9320.c213 #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
Dfb_ili9163.c191 #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
Dfb_ili9325.c204 #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
Dinternal.h10 int fbtft_gamma_parse_str(struct fbtft_par *par, u32 *curves,
Dfbtft.h84 int (*set_gamma)(struct fbtft_par *par, u32 *curves);
222 u32 *curves; member
Dfbtft-core.c699 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()