Home
last modified time | relevance | path

Searched refs:default_cmode (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/video/fbdev/
H A Dplatinumfb.c41 static int default_cmode = CMODE_NVRAM; variable
355 if (IS_REACHABLE(CONFIG_NVRAM) && default_cmode == CMODE_NVRAM) in platinum_init_fb()
356 default_cmode = nvram_read_byte(NV_CMODE); in platinum_init_fb()
357 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in platinum_init_fb()
358 default_cmode = CMODE_8; in platinum_init_fb()
362 while(default_cmode > CMODE_8 && in platinum_init_fb()
363 platinum_vram_reqd(default_vmode, default_cmode) > pinfo->total_vram) in platinum_init_fb()
364 default_cmode--; in platinum_init_fb()
366 printk("platinumfb: Using video mode %d and color mode %d.\n", default_vmode, default_cmode); in platinum_init_fb()
369 if (mac_vmode_to_var(default_vmode, default_cmode, &var) < 0) { in platinum_init_fb()
[all …]
H A Dvalkyriefb.c66 static int default_cmode = CMODE_NVRAM; variable
284 if (IS_REACHABLE(CONFIG_NVRAM) && default_cmode == CMODE_NVRAM) in valkyrie_choose_mode()
285 default_cmode = nvram_read_byte(NV_CMODE); in valkyrie_choose_mode()
290 if (default_cmode < CMODE_8 || default_cmode > CMODE_16 in valkyrie_choose_mode()
291 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 in valkyrie_choose_mode()
292 || valkyrie_vram_reqd(default_vmode, default_cmode) > p->total_vram) in valkyrie_choose_mode()
293 default_cmode = CMODE_8; in valkyrie_choose_mode()
296 default_vmode, default_cmode); in valkyrie_choose_mode()
368 mac_vmode_to_var(default_vmode, default_cmode, &p->info.var); in valkyriefb_init()
562 default_cmode = CMODE_8; in valkyriefb_setup()
[all …]
H A Dcontrolfb.c143 static int default_cmode __initdata = CMODE_NVRAM;
816 default_cmode = depth; in control_setup()
819 default_cmode = CMODE_8; in control_setup()
823 default_cmode = CMODE_16; in control_setup()
827 default_cmode = CMODE_32; in control_setup()
848 cmode = default_cmode; in init_control()
/linux/drivers/video/fbdev/aty/
H A Daty128fb.c390 static int default_cmode = CMODE_8; variable
1710 default_cmode = CMODE_8; in aty128fb_setup()
1714 default_cmode = CMODE_16; in aty128fb_setup()
1718 default_cmode = CMODE_32; in aty128fb_setup()
1979 if (default_cmode > 16) in aty128_init()
1980 default_cmode = CMODE_32; in aty128_init()
1981 else if (default_cmode > 8) in aty128_init()
1982 default_cmode = CMODE_16; in aty128_init()
1984 default_cmode = CMODE_8; in aty128_init()
1986 if (mac_vmode_to_var(default_vmode, default_cmode, &var)) in aty128_init()
H A Datyfb_base.c337 static int default_cmode = CMODE_CHOOSE; variable
341 module_param_named(cmode, default_cmode, int, 0);
2689 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in aty_init()
2690 default_cmode = CMODE_8; in aty_init()
2691 if (!mac_vmode_to_var(default_vmode, default_cmode, in aty_init()
3873 default_cmode = CMODE_8; in atyfb_setup()
3877 default_cmode = CMODE_16; in atyfb_setup()
3881 default_cmode = CMODE_32; in atyfb_setup()
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_base.c123 static int default_cmode = CMODE_NVRAM; variable
1896 if (IS_REACHABLE(CONFIG_NVRAM) && default_cmode == CMODE_NVRAM) in initMatrox2()
1897 default_cmode = nvram_read_byte(NV_CMODE); in initMatrox2()
1899 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in initMatrox2()
1900 default_cmode = CMODE_8; in initMatrox2()
1901 if (!mac_vmode_to_var(default_vmode, default_cmode, &var)) { in initMatrox2()
2413 default_cmode = CMODE_8; in matroxfb_setup()
2417 default_cmode = CMODE_16; in matroxfb_setup()
2421 default_cmode = CMODE_32; in matroxfb_setup()
2579 module_param_named(cmode, default_cmode, int, 0);