/linux-6.3-rc2/drivers/staging/fbtft/ |
A D | fb_hx8340bn.c | 173 (CURVE(0, 8) << 4) | CURVE(0, 7), in set_gamma() 174 (CURVE(0, 10) << 4) | CURVE(0, 9), in set_gamma() 175 (CURVE(0, 12) << 4) | CURVE(0, 11), in set_gamma() 177 (CURVE(0, 4) << 4) | CURVE(0, 3), in set_gamma() 180 (CURVE(0, 1) << 4) | CURVE(0, 0), in set_gamma() 181 (CURVE(0, 14) << 2) | CURVE(0, 13)); in set_gamma() 184 (CURVE(1, 8) << 4) | CURVE(1, 7), in set_gamma() 185 (CURVE(1, 10) << 4) | CURVE(1, 9), in set_gamma() 186 (CURVE(1, 12) << 4) | CURVE(1, 11), in set_gamma() 188 (CURVE(1, 4) << 4) | CURVE(1, 3), in set_gamma() [all …]
|
A D | fb_s6d1121.c | 134 write_reg(par, 0x0030, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma() 135 write_reg(par, 0x0031, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma() 136 write_reg(par, 0x0032, CURVE(0, 5) << 8 | CURVE(0, 3)); in set_gamma() 137 write_reg(par, 0x0033, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma() 138 write_reg(par, 0x0034, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma() 141 write_reg(par, 0x0036, CURVE(1, 1) << 8 | CURVE(1, 0)); in set_gamma() 142 write_reg(par, 0x0037, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma() 143 write_reg(par, 0x0038, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma() 144 write_reg(par, 0x0039, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma() 145 write_reg(par, 0x003A, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma() [all …]
|
A D | fb_st7735r.c | 136 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 144 CURVE(i, j) &= 0x3f; in set_gamma() 148 CURVE(i, 0), CURVE(i, 1), in set_gamma() 149 CURVE(i, 2), CURVE(i, 3), in set_gamma() 150 CURVE(i, 4), CURVE(i, 5), in set_gamma() 151 CURVE(i, 6), CURVE(i, 7), in set_gamma() 152 CURVE(i, 8), CURVE(i, 9), in set_gamma() 153 CURVE(i, 10), CURVE(i, 11), in set_gamma() 154 CURVE(i, 12), CURVE(i, 13), in set_gamma() 155 CURVE(i, 14), CURVE(i, 15)); in set_gamma() [all …]
|
A D | fb_ssd1289.c | 139 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma() 140 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma() 141 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma() 142 write_reg(par, 0x0033, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma() 143 write_reg(par, 0x0034, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma() 144 write_reg(par, 0x0035, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma() 145 write_reg(par, 0x0036, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma() 146 write_reg(par, 0x0037, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma() 147 write_reg(par, 0x003A, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma() 148 write_reg(par, 0x003B, CURVE(1, 1) << 8 | CURVE(1, 0)); in set_gamma() [all …]
|
A D | fb_ili9320.c | 226 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma() 227 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma() 228 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma() 229 write_reg(par, 0x0035, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma() 230 write_reg(par, 0x0036, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma() 232 write_reg(par, 0x0037, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma() 233 write_reg(par, 0x0038, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma() 234 write_reg(par, 0x0039, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma() 235 write_reg(par, 0x003C, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma() 236 write_reg(par, 0x003D, CURVE(1, 1) << 8 | CURVE(1, 0)); in set_gamma() [all …]
|
A D | fb_ili9325.c | 218 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma() 219 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma() 220 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma() 221 write_reg(par, 0x0035, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma() 222 write_reg(par, 0x0036, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma() 224 write_reg(par, 0x0037, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma() 225 write_reg(par, 0x0038, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma() 226 write_reg(par, 0x0039, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma() 227 write_reg(par, 0x003C, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma() 228 write_reg(par, 0x003D, CURVE(1, 1) << 8 | CURVE(1, 0)); in set_gamma() [all …]
|
A D | fb_ili9341.c | 114 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 121 CURVE(i, 0), CURVE(i, 1), CURVE(i, 2), in set_gamma() 122 CURVE(i, 3), CURVE(i, 4), CURVE(i, 5), in set_gamma() 123 CURVE(i, 6), CURVE(i, 7), CURVE(i, 8), in set_gamma() 124 CURVE(i, 9), CURVE(i, 10), CURVE(i, 11), in set_gamma() 125 CURVE(i, 12), CURVE(i, 13), CURVE(i, 14)); in set_gamma() 130 #undef CURVE
|
A D | fb_hx8347d.c | 130 acc += CURVE(i, j); in set_gamma() 131 CURVE(i, j) &= mask[j]; in set_gamma() 138 write_reg(par, 0x40 + (i * 0x10), CURVE(i, 0)); in set_gamma() 139 write_reg(par, 0x41 + (i * 0x10), CURVE(i, 1)); in set_gamma() 140 write_reg(par, 0x42 + (i * 0x10), CURVE(i, 2)); in set_gamma() 141 write_reg(par, 0x43 + (i * 0x10), CURVE(i, 3)); in set_gamma() 142 write_reg(par, 0x44 + (i * 0x10), CURVE(i, 4)); in set_gamma() 143 write_reg(par, 0x45 + (i * 0x10), CURVE(i, 5)); in set_gamma() 144 write_reg(par, 0x46 + (i * 0x10), CURVE(i, 6)); in set_gamma() 152 write_reg(par, 0x5D, (CURVE(1, 0) << 4) | CURVE(0, 0)); in set_gamma() [all …]
|
A D | fb_ili9163.c | 205 CURVE(0, 0), in gamma_adj() 206 CURVE(0, 1), in gamma_adj() 207 CURVE(0, 2), in gamma_adj() 208 CURVE(0, 3), in gamma_adj() 209 CURVE(0, 4), in gamma_adj() 210 CURVE(0, 5), in gamma_adj() 211 CURVE(0, 6), in gamma_adj() 212 (CURVE(0, 7) << 4) | CURVE(0, 8), in gamma_adj() 213 CURVE(0, 9), in gamma_adj() 214 CURVE(0, 10), in gamma_adj() [all …]
|