Lines Matching refs:red
48 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in determine_best_pix_fmt()
51 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
58 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
68 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in determine_best_pix_fmt()
71 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
78 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
83 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
98 var->red.offset = 11; var->red.length = 5; in set_pix_fmt()
105 var->red.offset = 0; var->red.length = 5; in set_pix_fmt()
112 var->red.offset = 10; var->red.length = 5; in set_pix_fmt()
119 var->red.offset = 0; var->red.length = 5; in set_pix_fmt()
126 var->red.offset = 16; var->red.length = 8; in set_pix_fmt()
133 var->red.offset = 0; var->red.length = 8; in set_pix_fmt()
140 var->red.offset = 16; var->red.length = 8; in set_pix_fmt()
147 var->red.offset = 0; var->red.length = 8; in set_pix_fmt()
154 var->red.offset = 0; var->red.length = 8; in set_pix_fmt()
475 static u32 to_rgb(u16 red, u16 green, u16 blue) in to_rgb() argument
477 red >>= 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()
496 val = chan_to_field(red, &info->var.red); in pxa168fb_setcolreg()
503 val = to_rgb(red, green, blue); in pxa168fb_setcolreg()