Lines Matching refs:var

257     struct fb_var_screeninfo var;  in console_setmode()  local
279 if ((err = mac_vmode_to_var(mode->mode, cmode, &var))) in console_setmode()
282 var.activate = FB_ACTIVATE_TEST; in console_setmode()
283 err = console_fb_info->fbops->fb_set_var(&var, fg_console, in console_setmode()
290 var.activate = FB_ACTIVATE_NOW; in console_setmode()
294 console_fb_info->fbops->fb_set_var(&var, unit, in console_setmode()
388 int mac_vmode_to_var(int vmode, int cmode, struct fb_var_screeninfo *var) in mac_vmode_to_var() argument
401 memset(var, 0, sizeof(struct fb_var_screeninfo)); in mac_vmode_to_var()
404 var->bits_per_pixel = 8; in mac_vmode_to_var()
405 var->red.offset = 0; in mac_vmode_to_var()
406 var->red.length = 8; in mac_vmode_to_var()
407 var->green.offset = 0; in mac_vmode_to_var()
408 var->green.length = 8; in mac_vmode_to_var()
409 var->blue.offset = 0; in mac_vmode_to_var()
410 var->blue.length = 8; in mac_vmode_to_var()
414 var->bits_per_pixel = 16; in mac_vmode_to_var()
415 var->red.offset = 10; in mac_vmode_to_var()
416 var->red.length = 5; in mac_vmode_to_var()
417 var->green.offset = 5; in mac_vmode_to_var()
418 var->green.length = 5; in mac_vmode_to_var()
419 var->blue.offset = 0; in mac_vmode_to_var()
420 var->blue.length = 5; in mac_vmode_to_var()
424 var->bits_per_pixel = 32; in mac_vmode_to_var()
425 var->red.offset = 16; in mac_vmode_to_var()
426 var->red.length = 8; in mac_vmode_to_var()
427 var->green.offset = 8; in mac_vmode_to_var()
428 var->green.length = 8; in mac_vmode_to_var()
429 var->blue.offset = 0; in mac_vmode_to_var()
430 var->blue.length = 8; in mac_vmode_to_var()
431 var->transp.offset = 24; in mac_vmode_to_var()
432 var->transp.length = 8; in mac_vmode_to_var()
438 var->xres = mode->xres; in mac_vmode_to_var()
439 var->yres = mode->yres; in mac_vmode_to_var()
440 var->xres_virtual = mode->xres; in mac_vmode_to_var()
441 var->yres_virtual = mode->yres; in mac_vmode_to_var()
442 var->height = -1; in mac_vmode_to_var()
443 var->width = -1; in mac_vmode_to_var()
444 var->pixclock = mode->pixclock; in mac_vmode_to_var()
445 var->left_margin = mode->left_margin; in mac_vmode_to_var()
446 var->right_margin = mode->right_margin; in mac_vmode_to_var()
447 var->upper_margin = mode->upper_margin; in mac_vmode_to_var()
448 var->lower_margin = mode->lower_margin; in mac_vmode_to_var()
449 var->hsync_len = mode->hsync_len; in mac_vmode_to_var()
450 var->vsync_len = mode->vsync_len; in mac_vmode_to_var()
451 var->sync = mode->sync; in mac_vmode_to_var()
452 var->vmode = mode->vmode; in mac_vmode_to_var()
470 int mac_var_to_vmode(const struct fb_var_screeninfo *var, int *vmode, in mac_var_to_vmode() argument
476 if (var->bits_per_pixel <= 8) in mac_var_to_vmode()
478 else if (var->bits_per_pixel <= 16) in mac_var_to_vmode()
480 else if (var->bits_per_pixel <= 32) in mac_var_to_vmode()
487 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode()
489 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres) in mac_var_to_vmode()
491 if (var->pixclock > mode->pixclock) in mac_var_to_vmode()
493 if ((var->vmode & FB_VMODE_MASK) != mode->vmode) in mac_var_to_vmode()
544 int __init mac_find_mode(struct fb_var_screeninfo *var, struct fb_info *info, in mac_find_mode() argument
554 return fb_find_mode(var, info, mode_option, db, dbsize, in mac_find_mode()