Lines Matching refs:default_vmode
40 static int default_vmode = VMODE_NVRAM; variable
349 if (IS_REACHABLE(CONFIG_NVRAM) && default_vmode == VMODE_NVRAM) in platinum_init_fb()
350 default_vmode = nvram_read_byte(NV_VMODE); in platinum_init_fb()
351 if (default_vmode <= 0 || default_vmode > VMODE_MAX || in platinum_init_fb()
352 !platinum_reg_init[default_vmode - 1]) { in platinum_init_fb()
353 default_vmode = mac_map_monitor_sense(sense); in platinum_init_fb()
354 if (!platinum_reg_init[default_vmode - 1]) in platinum_init_fb()
355 default_vmode = VMODE_640_480_60; in platinum_init_fb()
366 platinum_vram_reqd(default_vmode, default_cmode) > pinfo->total_vram) in platinum_init_fb()
369 printk("platinumfb: Using video mode %d and color mode %d.\n", default_vmode, default_cmode); in platinum_init_fb()
372 if (mac_vmode_to_var(default_vmode, default_cmode, &var) < 0) { in platinum_init_fb()
374 printk("mac_vmode_to_var(%d, %d,) failed\n", default_vmode, default_cmode); in platinum_init_fb()
376 default_vmode = VMODE_640_480_60; in platinum_init_fb()
378 if (mac_vmode_to_var(default_vmode, default_cmode, &var) < 0) { in platinum_init_fb()
391 if (rc && (default_vmode != VMODE_640_480_60 || default_cmode != CMODE_8)) in platinum_init_fb()
500 default_vmode = vmode; in platinumfb_setup()