Lines Matching refs:default_vmode
66 static int default_vmode = VMODE_NVRAM; variable
280 if (IS_REACHABLE(CONFIG_NVRAM) && default_vmode == VMODE_NVRAM) in valkyrie_choose_mode()
281 default_vmode = nvram_read_byte(NV_VMODE); in valkyrie_choose_mode()
283 if (default_vmode <= 0 || default_vmode > VMODE_MAX || in valkyrie_choose_mode()
284 !valkyrie_reg_init[default_vmode - 1]) { in valkyrie_choose_mode()
285 default_vmode = mac_map_monitor_sense(p->sense); in valkyrie_choose_mode()
286 if (!valkyrie_reg_init[default_vmode - 1]) in valkyrie_choose_mode()
287 default_vmode = VMODE_640_480_67; in valkyrie_choose_mode()
298 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 in valkyrie_choose_mode()
299 || valkyrie_vram_reqd(default_vmode, default_cmode) > p->total_vram) in valkyrie_choose_mode()
303 default_vmode, default_cmode); in valkyrie_choose_mode()
375 mac_vmode_to_var(default_vmode, default_cmode, &p->info.var); in valkyriefb_init()
564 default_vmode = vmode; in valkyriefb_setup()