Lines Matching refs:red
25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt()
36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt()
47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt()
49 if (var->red.offset == 0) in var_to_pixfmt()
60 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt()
63 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt()
76 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
83 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
88 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
103 var->red.offset = 11; var->red.length = 5; in pixfmt_to_var()
110 var->red.offset = 0; var->red.length = 5; in pixfmt_to_var()
117 var->red.offset = 16; var->red.length = 8; in pixfmt_to_var()
124 var->red.offset = 0; var->red.length = 8; in pixfmt_to_var()
131 var->red.offset = 16; var->red.length = 8; in pixfmt_to_var()
138 var->red.offset = 0; var->red.length = 8; in pixfmt_to_var()
145 var->red.offset = 16; var->red.length = 8; in pixfmt_to_var()
152 var->red.offset = 0; var->red.length = 8; in pixfmt_to_var()
159 var->red.offset = 4; var->red.length = 8; in pixfmt_to_var()
166 var->red.offset = 4; var->red.length = 8; in pixfmt_to_var()
173 var->red.offset = 8; var->red.length = 8; in pixfmt_to_var()
180 var->red.offset = 8; var->red.length = 8; in pixfmt_to_var()
187 var->red.offset = 8; var->red.length = 16; in pixfmt_to_var()
194 var->red.offset = 8; var->red.length = 16; in pixfmt_to_var()
201 var->red.offset = 0; var->red.length = 16; in pixfmt_to_var()
208 var->red.offset = 0; var->red.length = 8; in pixfmt_to_var()
302 static u32 to_rgb(u16 red, u16 green, u16 blue) in to_rgb() argument
304 red >>= 8; in to_rgb()
308 return (red << 16) | (green << 8) | blue; in to_rgb()
311 static int mmpfb_setcolreg(unsigned int regno, unsigned int red, in mmpfb_setcolreg() argument
319 val = chan_to_field(red, &info->var.red); in mmpfb_setcolreg()
326 val = to_rgb(red, green, blue); in mmpfb_setcolreg()