Lines Matching refs:red
174 static int ocfb_setcolreg(unsigned regno, unsigned red, unsigned green, in ocfb_setcolreg() argument
188 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in ocfb_setcolreg()
191 red >>= (16 - info->var.red.length); in ocfb_setcolreg()
198 color = (red << 16) | (green << 8) | blue; in ocfb_setcolreg()
202 (red << info->var.red.offset) | in ocfb_setcolreg()
243 var->red.offset = 0; in ocfb_init_var()
244 var->red.length = 8; in ocfb_init_var()
254 var->red.offset = 11; in ocfb_init_var()
255 var->red.length = 5; in ocfb_init_var()
265 var->red.offset = 16; in ocfb_init_var()
266 var->red.length = 8; in ocfb_init_var()
276 var->red.offset = 16; in ocfb_init_var()
277 var->red.length = 8; in ocfb_init_var()