Home
last modified time | relevance | path

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

/Linux-v5.4/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.c157 static int default_cmode __initdata = CMODE_NVRAM;
414 cmode = default_cmode; in init_control()
554 default_cmode = depth; in control_setup()
557 default_cmode = CMODE_8; in control_setup()
561 default_cmode = CMODE_16; in control_setup()
565 default_cmode = CMODE_32; in control_setup()
/Linux-v5.4/drivers/video/fbdev/aty/
Daty128fb.c393 static int default_cmode = CMODE_8; variable
1717 default_cmode = CMODE_8; in aty128fb_setup()
1721 default_cmode = CMODE_16; in aty128fb_setup()
1725 default_cmode = CMODE_32; in aty128fb_setup()
1989 if (default_cmode > 16) in aty128_init()
1990 default_cmode = CMODE_32; in aty128_init()
1991 else if (default_cmode > 8) in aty128_init()
1992 default_cmode = CMODE_16; in aty128_init()
1994 default_cmode = CMODE_8; in aty128_init()
1996 if (mac_vmode_to_var(default_vmode, default_cmode, &var)) in aty128_init()
Datyfb_base.c319 static int default_cmode = CMODE_CHOOSE; variable
323 module_param_named(cmode, default_cmode, int, 0);
2657 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in aty_init()
2658 default_cmode = CMODE_8; in aty_init()
2659 if (!mac_vmode_to_var(default_vmode, default_cmode, in aty_init()
3839 default_cmode = CMODE_8; in atyfb_setup()
3843 default_cmode = CMODE_16; in atyfb_setup()
3847 default_cmode = CMODE_32; in atyfb_setup()
/Linux-v5.4/drivers/video/fbdev/matrox/
Dmatroxfb_base.c122 static int default_cmode = CMODE_NVRAM; variable
1880 if (IS_REACHABLE(CONFIG_NVRAM) && default_cmode == CMODE_NVRAM) in initMatrox2()
1881 default_cmode = nvram_read_byte(NV_CMODE); in initMatrox2()
1883 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in initMatrox2()
1884 default_cmode = CMODE_8; in initMatrox2()
1885 if (!mac_vmode_to_var(default_vmode, default_cmode, &var)) { in initMatrox2()
2392 default_cmode = CMODE_8; in matroxfb_setup()
2396 default_cmode = CMODE_16; in matroxfb_setup()
2400 default_cmode = CMODE_32; in matroxfb_setup()
2560 module_param_named(cmode, default_cmode, int, 0);