Lines Matching refs:vmode
7 * Vmode-switching changes and vmode 15/17 modifications created 29 August
70 int vmode, cmode;
162 return mac_vmode_to_var(par->vmode, par->cmode, var);
432 * and picks the best vmode/cmode from it.
440 * add support for vmode 17. This was reinforced by the fact that
446 * messages when a vmode/cmode switch fails. (Most of the error messages are
449 * messages.) In addition, I think the new code *might* fix some vmode-
459 int vmode, cmode;
464 if (mac_var_to_vmode(var, &vmode, &cmode) != 0) {
471 if (vmode < 1 || vmode > VMODE_MAX || !valkyrie_reg_init[vmode-1]) {
472 printk(KERN_ERR "valkyriefb: vmode %d not valid.\n", vmode);
486 init = valkyrie_reg_init[vmode-1];
488 printk(KERN_ERR "valkyriefb: vmode %d does not support "
489 "cmode %d.\n", vmode, cmode);
493 if (valkyrie_vram_reqd(vmode, cmode) > p->total_vram) {
494 printk(KERN_ERR "valkyriefb: not enough ram for vmode %d, "
495 "cmode %d.\n", vmode, cmode);
499 par->vmode = vmode;
531 fix->smem_len = valkyrie_vram_reqd(par->vmode, par->cmode);
561 if (!strncmp(this_opt, "vmode:", 6)) {
562 int vmode = simple_strtoul(this_opt+6, NULL, 0);
563 if (vmode > 0 && vmode <= VMODE_MAX)
564 default_vmode = vmode;