Home
last modified time | relevance | path

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

/drivers/video/fbdev/
Dplatinumfb.c41 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()
[all …]
Dvalkyriefb.c67 static int default_cmode = CMODE_NVRAM; variable
291 if (IS_REACHABLE(CONFIG_NVRAM) && default_cmode == CMODE_NVRAM) in valkyrie_choose_mode()
292 default_cmode = nvram_read_byte(NV_CMODE); in valkyrie_choose_mode()
297 if (default_cmode < CMODE_8 || default_cmode > CMODE_16 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()
300 default_cmode = CMODE_8; 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()
570 default_cmode = CMODE_8; in valkyriefb_setup()
[all …]
Dcontrolfb.c153 static int default_cmode __initdata = CMODE_NVRAM;
827 default_cmode = depth; in control_setup()
830 default_cmode = CMODE_8; in control_setup()
834 default_cmode = CMODE_16; in control_setup()
838 default_cmode = CMODE_32; in control_setup()
859 cmode = default_cmode; in init_control()
/drivers/video/fbdev/aty/
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()
1982 if (default_cmode > 16) in aty128_init()
1983 default_cmode = CMODE_32; in aty128_init()
1984 else if (default_cmode > 8) in aty128_init()
1985 default_cmode = CMODE_16; in aty128_init()
1987 default_cmode = CMODE_8; in aty128_init()
1989 if (mac_vmode_to_var(default_vmode, default_cmode, &var)) in aty128_init()
Datyfb_base.c334 static int default_cmode = CMODE_CHOOSE; variable
338 module_param_named(cmode, default_cmode, int, 0);
2698 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in aty_init()
2699 default_cmode = CMODE_8; in aty_init()
2700 if (!mac_vmode_to_var(default_vmode, default_cmode, in aty_init()
3877 default_cmode = CMODE_8; in atyfb_setup()
3881 default_cmode = CMODE_16; in atyfb_setup()
3885 default_cmode = CMODE_32; in atyfb_setup()
/drivers/video/fbdev/matrox/
Dmatroxfb_base.c122 static int default_cmode = CMODE_NVRAM; variable
1893 if (IS_REACHABLE(CONFIG_NVRAM) && default_cmode == CMODE_NVRAM) in initMatrox2()
1894 default_cmode = nvram_read_byte(NV_CMODE); in initMatrox2()
1896 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in initMatrox2()
1897 default_cmode = CMODE_8; in initMatrox2()
1898 if (!mac_vmode_to_var(default_vmode, default_cmode, &var)) { in initMatrox2()
2403 default_cmode = CMODE_8; in matroxfb_setup()
2407 default_cmode = CMODE_16; in matroxfb_setup()
2411 default_cmode = CMODE_32; in matroxfb_setup()
2569 module_param_named(cmode, default_cmode, int, 0);