Lines Matching refs:var

108 	red >>= 16 - info->var.red.length;  in sh7760_setcolreg()
109 green >>= 16 - info->var.green.length; in sh7760_setcolreg()
110 blue >>= 16 - info->var.blue.length; in sh7760_setcolreg()
111 transp >>= 16 - info->var.transp.length; in sh7760_setcolreg()
113 palette[regno] = (red << info->var.red.offset) | in sh7760_setcolreg()
114 (green << info->var.green.offset) | in sh7760_setcolreg()
115 (blue << info->var.blue.offset) | in sh7760_setcolreg()
116 (transp << info->var.transp.offset); in sh7760_setcolreg()
165 static int sh7760fb_check_var(struct fb_var_screeninfo *var, in sh7760fb_check_var() argument
177 var->bits_per_pixel = bpp; in sh7760fb_check_var()
179 if ((var->grayscale) && (var->bits_per_pixel == 1)) in sh7760fb_check_var()
181 else if (var->bits_per_pixel >= 15) in sh7760fb_check_var()
325 sh7760fb_check_var(&info->var, info); in sh7760fb_set_par()
393 vram = info->var.xres * info->var.yres; in sh7760fb_alloc_mem()
394 if (info->var.grayscale) { in sh7760fb_alloc_mem()
485 fb_videomode_to_var(&info->var, par->pd->def_mode); in sh7760fb_probe()
496 info->var.red.offset = 11; in sh7760fb_probe()
497 info->var.red.length = 5; in sh7760fb_probe()
498 info->var.red.msb_right = 0; in sh7760fb_probe()
500 info->var.green.offset = 5; in sh7760fb_probe()
501 info->var.green.length = 6; in sh7760fb_probe()
502 info->var.green.msb_right = 0; in sh7760fb_probe()
504 info->var.blue.offset = 0; in sh7760fb_probe()
505 info->var.blue.length = 5; in sh7760fb_probe()
506 info->var.blue.msb_right = 0; in sh7760fb_probe()
508 info->var.transp.offset = 0; in sh7760fb_probe()
509 info->var.transp.length = 0; in sh7760fb_probe()
510 info->var.transp.msb_right = 0; in sh7760fb_probe()