Lines Matching refs:var
111 red >>= 16 - info->var.red.length; in sh7760_setcolreg()
112 green >>= 16 - info->var.green.length; in sh7760_setcolreg()
113 blue >>= 16 - info->var.blue.length; in sh7760_setcolreg()
114 transp >>= 16 - info->var.transp.length; in sh7760_setcolreg()
116 palette[regno] = (red << info->var.red.offset) | in sh7760_setcolreg()
117 (green << info->var.green.offset) | in sh7760_setcolreg()
118 (blue << info->var.blue.offset) | in sh7760_setcolreg()
119 (transp << info->var.transp.offset); in sh7760_setcolreg()
168 static int sh7760fb_check_var(struct fb_var_screeninfo *var, in sh7760fb_check_var() argument
180 var->bits_per_pixel = bpp; in sh7760fb_check_var()
182 if ((var->grayscale) && (var->bits_per_pixel == 1)) in sh7760fb_check_var()
184 else if (var->bits_per_pixel >= 15) in sh7760fb_check_var()
328 sh7760fb_check_var(&info->var, info); in sh7760fb_set_par()
396 vram = info->var.xres * info->var.yres; in sh7760fb_alloc_mem()
397 if (info->var.grayscale) { in sh7760fb_alloc_mem()
488 fb_videomode_to_var(&info->var, par->pd->def_mode); in sh7760fb_probe()
499 info->var.red.offset = 11; in sh7760fb_probe()
500 info->var.red.length = 5; in sh7760fb_probe()
501 info->var.red.msb_right = 0; in sh7760fb_probe()
503 info->var.green.offset = 5; in sh7760fb_probe()
504 info->var.green.length = 6; in sh7760fb_probe()
505 info->var.green.msb_right = 0; in sh7760fb_probe()
507 info->var.blue.offset = 0; in sh7760fb_probe()
508 info->var.blue.length = 5; in sh7760fb_probe()
509 info->var.blue.msb_right = 0; in sh7760fb_probe()
511 info->var.transp.offset = 0; in sh7760fb_probe()
512 info->var.transp.length = 0; in sh7760fb_probe()
513 info->var.transp.msb_right = 0; in sh7760fb_probe()