Lines Matching refs:red
96 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
246 var->red.offset = 16; in asiliantfb_check_var()
249 var->red.length = var->blue.length = var->green.length = 8; in asiliantfb_check_var()
251 switch (var->red.offset) { in asiliantfb_check_var()
263 var->red.length = var->blue.length = 5; in asiliantfb_check_var()
265 var->red.offset = var->green.offset = var->blue.offset = 0; in asiliantfb_check_var()
266 var->red.length = var->green.length = var->blue.length = 8; in asiliantfb_check_var()
286 if (p->var.red.offset == 11) in asiliantfb_set_par()
308 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in asiliantfb_setcolreg() argument
313 red >>= 8; in asiliantfb_setcolreg()
320 writeb(red, mmio_base + 0x791); in asiliantfb_setcolreg()
325 switch(p->var.red.offset) { in asiliantfb_setcolreg()
328 ((red & 0xf8) << 7) | in asiliantfb_setcolreg()
334 ((red & 0xf8) << 8) | in asiliantfb_setcolreg()
340 (red << 16) | in asiliantfb_setcolreg()
494 .red = { .length = 8 },