Lines Matching refs:default_vmode
71 static int default_vmode = VMODE_CHOOSE; variable
74 static int default_vmode = VMODE_NVRAM; variable
289 if (default_vmode == VMODE_NVRAM) { in valkyrie_choose_mode()
290 default_vmode = nvram_read_byte(NV_VMODE); in valkyrie_choose_mode()
291 if (default_vmode <= 0 in valkyrie_choose_mode()
292 || default_vmode > VMODE_MAX in valkyrie_choose_mode()
293 || !valkyrie_reg_init[default_vmode - 1]) in valkyrie_choose_mode()
294 default_vmode = VMODE_CHOOSE; in valkyrie_choose_mode()
297 if (default_vmode == VMODE_CHOOSE) in valkyrie_choose_mode()
298 default_vmode = mac_map_monitor_sense(p->sense); in valkyrie_choose_mode()
299 if (!valkyrie_reg_init[default_vmode - 1]) in valkyrie_choose_mode()
300 default_vmode = VMODE_640_480_67; in valkyrie_choose_mode()
310 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 in valkyrie_choose_mode()
311 || valkyrie_vram_reqd(default_vmode, default_cmode) > p->total_vram) in valkyrie_choose_mode()
315 default_vmode, default_cmode); in valkyrie_choose_mode()
385 mac_vmode_to_var(default_vmode, default_cmode, &p->info.var); in valkyriefb_init()
574 default_vmode = vmode; in valkyriefb_setup()