Lines Matching refs:default_vmode
65 static int default_vmode = VMODE_NVRAM; variable
275 if (IS_REACHABLE(CONFIG_NVRAM) && default_vmode == VMODE_NVRAM) in valkyrie_choose_mode()
276 default_vmode = nvram_read_byte(NV_VMODE); in valkyrie_choose_mode()
278 if (default_vmode <= 0 || default_vmode > VMODE_MAX || in valkyrie_choose_mode()
279 !valkyrie_reg_init[default_vmode - 1]) { in valkyrie_choose_mode()
280 default_vmode = mac_map_monitor_sense(p->sense); in valkyrie_choose_mode()
281 if (!valkyrie_reg_init[default_vmode - 1]) in valkyrie_choose_mode()
282 default_vmode = VMODE_640_480_67; in valkyrie_choose_mode()
293 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 in valkyrie_choose_mode()
294 || valkyrie_vram_reqd(default_vmode, default_cmode) > p->total_vram) in valkyrie_choose_mode()
298 default_vmode, default_cmode); in valkyrie_choose_mode()
370 mac_vmode_to_var(default_vmode, default_cmode, &p->info.var); in valkyriefb_init()
559 default_vmode = vmode; in valkyriefb_setup()