Lines Matching refs:vmode
7 * Vmode-switching changes and vmode 15/17 modifications created 29 August
69 int vmode, cmode;
155 return mac_vmode_to_var(par->vmode, par->cmode, var);
425 * and picks the best vmode/cmode from it.
433 * add support for vmode 17. This was reinforced by the fact that
439 * messages when a vmode/cmode switch fails. (Most of the error messages are
442 * messages.) In addition, I think the new code *might* fix some vmode-
452 int vmode, cmode;
457 if (mac_var_to_vmode(var, &vmode, &cmode) != 0) {
464 if (vmode < 1 || vmode > VMODE_MAX || !valkyrie_reg_init[vmode-1]) {
465 printk(KERN_ERR "valkyriefb: vmode %d not valid.\n", vmode);
479 init = valkyrie_reg_init[vmode-1];
481 printk(KERN_ERR "valkyriefb: vmode %d does not support "
482 "cmode %d.\n", vmode, cmode);
486 if (valkyrie_vram_reqd(vmode, cmode) > p->total_vram) {
487 printk(KERN_ERR "valkyriefb: not enough ram for vmode %d, "
488 "cmode %d.\n", vmode, cmode);
492 par->vmode = vmode;
524 fix->smem_len = valkyrie_vram_reqd(par->vmode, par->cmode);
553 if (!strncmp(this_opt, "vmode:", 6)) {
554 int vmode = simple_strtoul(this_opt+6, NULL, 0);
555 if (vmode > 0 && vmode <= VMODE_MAX)
556 default_vmode = vmode;