Lines Matching refs:var

62     struct fb_var_screeninfo var;  member
94 static int offb_get_var(struct fb_var_screeninfo *var, int con,
96 static int offb_set_var(struct fb_var_screeninfo *var, int con,
158 static int offb_get_var(struct fb_var_screeninfo *var, int con, in offb_get_var() argument
163 memcpy(var, &info2->var, sizeof(struct fb_var_screeninfo)); in offb_get_var()
172 static int offb_set_var(struct fb_var_screeninfo *var, int con, in offb_set_var() argument
178 int activate = var->activate; in offb_set_var()
186 if (var->xres > info2->var.xres || var->yres > info2->var.yres || in offb_set_var()
187 var->xres_virtual > info2->var.xres_virtual || in offb_set_var()
188 var->yres_virtual > info2->var.yres_virtual || in offb_set_var()
189 var->bits_per_pixel > info2->var.bits_per_pixel || in offb_set_var()
190 var->nonstd || in offb_set_var()
191 (var->vmode & FB_VMODE_MASK) != FB_VMODE_NONINTERLACED) in offb_set_var()
193 memcpy(var, &info2->var, sizeof(struct fb_var_screeninfo)); in offb_set_var()
196 oldbpp = display->var.bits_per_pixel; in offb_set_var()
197 display->var = *var; in offb_set_var()
199 if ((oldbpp != var->bits_per_pixel) || (display->cmap.len == 0)) { in offb_set_var()
223 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in offb_get_cmap()
243 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in offb_set_cmap()
389 struct fb_var_screeninfo *var; in offb_init_fb() local
414 var = &info->var; in offb_init_fb()
421 var->xres = var->xres_virtual = width; in offb_init_fb()
422 var->yres = var->yres_virtual = height; in offb_init_fb()
473 var->xoffset = var->yoffset = 0; in offb_init_fb()
474 var->bits_per_pixel = depth; in offb_init_fb()
477 var->bits_per_pixel = 8; in offb_init_fb()
478 var->red.offset = 0; in offb_init_fb()
479 var->red.length = 8; in offb_init_fb()
480 var->green.offset = 0; in offb_init_fb()
481 var->green.length = 8; in offb_init_fb()
482 var->blue.offset = 0; in offb_init_fb()
483 var->blue.length = 8; in offb_init_fb()
484 var->transp.offset = 0; in offb_init_fb()
485 var->transp.length = 0; in offb_init_fb()
488 var->bits_per_pixel = 16; in offb_init_fb()
489 var->red.offset = 10; in offb_init_fb()
490 var->red.length = 5; in offb_init_fb()
491 var->green.offset = 5; in offb_init_fb()
492 var->green.length = 5; in offb_init_fb()
493 var->blue.offset = 0; in offb_init_fb()
494 var->blue.length = 5; in offb_init_fb()
495 var->transp.offset = 0; in offb_init_fb()
496 var->transp.length = 0; in offb_init_fb()
499 var->bits_per_pixel = 32; in offb_init_fb()
500 var->red.offset = 16; in offb_init_fb()
501 var->red.length = 8; in offb_init_fb()
502 var->green.offset = 8; in offb_init_fb()
503 var->green.length = 8; in offb_init_fb()
504 var->blue.offset = 0; in offb_init_fb()
505 var->blue.length = 8; in offb_init_fb()
506 var->transp.offset = 24; in offb_init_fb()
507 var->transp.length = 8; in offb_init_fb()
510 var->red.msb_right = var->green.msb_right = var->blue.msb_right = var->transp.msb_right = 0; in offb_init_fb()
511 var->grayscale = 0; in offb_init_fb()
512 var->nonstd = 0; in offb_init_fb()
513 var->activate = 0; in offb_init_fb()
514 var->height = var->width = -1; in offb_init_fb()
515 var->pixclock = 10000; in offb_init_fb()
516 var->left_margin = var->right_margin = 16; in offb_init_fb()
517 var->upper_margin = var->lower_margin = 16; in offb_init_fb()
518 var->hsync_len = var->vsync_len = 8; in offb_init_fb()
519 var->sync = 0; in offb_init_fb()
520 var->vmode = FB_VMODE_NONINTERLACED; in offb_init_fb()
522 disp->var = *var; in offb_init_fb()
598 offb_set_var(var, -1, &info->info); in offb_init_fb()
611 display_info.height = var->yres; in offb_init_fb()
612 display_info.width = var->xres; in offb_init_fb()
806 switch (info2->var.bits_per_pixel) { in offb_setcolreg()
834 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in do_install_cmap()