Lines Matching refs:default_cmode
41 static int default_cmode = CMODE_NVRAM; variable
358 if (IS_REACHABLE(CONFIG_NVRAM) && default_cmode == CMODE_NVRAM) in platinum_init_fb()
359 default_cmode = nvram_read_byte(NV_CMODE); in platinum_init_fb()
360 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in platinum_init_fb()
361 default_cmode = CMODE_8; in platinum_init_fb()
365 while(default_cmode > CMODE_8 && in platinum_init_fb()
366 platinum_vram_reqd(default_vmode, default_cmode) > pinfo->total_vram) in platinum_init_fb()
367 default_cmode--; 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()
377 default_cmode = CMODE_8; 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()
506 default_cmode = CMODE_8; in platinumfb_setup()
510 default_cmode = CMODE_16; in platinumfb_setup()
514 default_cmode = CMODE_32; in platinumfb_setup()