Lines Matching refs:green
49 var->green.length <= 6 && var->blue.length <= 5) { in determine_best_pix_fmt()
57 if (var->transp.length == 1 && var->green.length <= 5) { in determine_best_pix_fmt()
69 var->green.length <= 8 && var->blue.length <= 8) { in determine_best_pix_fmt()
99 var->green.offset = 5; var->green.length = 6; in set_pix_fmt()
106 var->green.offset = 5; var->green.length = 6; in set_pix_fmt()
113 var->green.offset = 5; var->green.length = 5; in set_pix_fmt()
120 var->green.offset = 5; var->green.length = 5; in set_pix_fmt()
127 var->green.offset = 8; var->green.length = 8; in set_pix_fmt()
134 var->green.offset = 8; var->green.length = 8; in set_pix_fmt()
141 var->green.offset = 8; var->green.length = 8; in set_pix_fmt()
148 var->green.offset = 8; var->green.length = 8; in set_pix_fmt()
155 var->green.offset = 0; var->green.length = 8; in set_pix_fmt()
475 static u32 to_rgb(u16 red, u16 green, u16 blue) in to_rgb() argument
478 green >>= 8; in to_rgb()
481 return (red << 16) | (green << 8) | blue; in to_rgb()
485 pxa168fb_setcolreg(unsigned int regno, unsigned int red, unsigned int green, in pxa168fb_setcolreg() argument
492 red = green = blue = (19595 * red + 38470 * green + in pxa168fb_setcolreg()
497 val |= chan_to_field(green, &info->var.green); in pxa168fb_setcolreg()
503 val = to_rgb(red, green, blue); in pxa168fb_setcolreg()