Lines Matching refs:green
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()
192 green >>= (16 - info->var.green.length); in ocfb_setcolreg()
198 color = (red << 16) | (green << 8) | blue; in ocfb_setcolreg()
203 (green << info->var.green.offset) | in ocfb_setcolreg()
245 var->green.offset = 0; in ocfb_init_var()
246 var->green.length = 8; in ocfb_init_var()
256 var->green.offset = 5; in ocfb_init_var()
257 var->green.length = 6; in ocfb_init_var()
267 var->green.offset = 8; in ocfb_init_var()
268 var->green.length = 8; in ocfb_init_var()
278 var->green.offset = 8; in ocfb_init_var()
279 var->green.length = 8; in ocfb_init_var()