/linux-5.19.10/drivers/staging/fbtft/ |
D | fb_hx8340bn.c | 151 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 164 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma() 167 write_reg(par, MIPI_DCS_SET_GAMMA_CURVE, 1 << CURVE(1, 14)); in set_gamma() 169 if (CURVE(1, 14)) in set_gamma() 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() 176 CURVE(0, 2), in set_gamma() 177 (CURVE(0, 4) << 4) | CURVE(0, 3), in set_gamma() 178 CURVE(0, 5), in set_gamma() [all …]
|
D | fb_s6d1121.c | 119 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 132 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma() 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() 139 write_reg(par, 0x0035, CURVE(0, 11) << 8 | CURVE(0, 10)); 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() [all …]
|
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 …]
|
D | fb_ssd1289.c | 125 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 137 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma() 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() [all …]
|
D | fb_ili9320.c | 212 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 224 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma() 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() [all …]
|
D | fb_ili9325.c | 204 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 216 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma() 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() [all …]
|
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
|
D | fb_hx8347d.c | 117 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 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() [all …]
|
D | fb_ili9163.c | 191 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro 202 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in gamma_adj() 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() [all …]
|