Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/video/fbdev/
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 …]
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 …]
Dcontrolfb.c143 static int default_cmode __initdata = CMODE_NVRAM;
817 default_cmode = depth; in control_setup()
820 default_cmode = CMODE_8; in control_setup()
824 default_cmode = CMODE_16; in control_setup()
828 default_cmode = CMODE_32; in control_setup()
849 cmode = default_cmode; in init_control()
/linux-6.6.21/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()
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()
Datyfb_base.c334 static int default_cmode = CMODE_CHOOSE; variable
338 module_param_named(cmode, default_cmode, int, 0);
2686 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in aty_init()
2687 default_cmode = CMODE_8; in aty_init()
2688 if (!mac_vmode_to_var(default_vmode, default_cmode, in aty_init()
3870 default_cmode = CMODE_8; in atyfb_setup()
3874 default_cmode = CMODE_16; in atyfb_setup()
3878 default_cmode = CMODE_32; in atyfb_setup()
/linux-6.6.21/drivers/video/fbdev/matrox/
Dmatroxfb_base.c123 static int default_cmode = CMODE_NVRAM; variable
1894 if (IS_REACHABLE(CONFIG_NVRAM) && default_cmode == CMODE_NVRAM) in initMatrox2()
1895 default_cmode = nvram_read_byte(NV_CMODE); in initMatrox2()
1897 if (default_cmode < CMODE_8 || default_cmode > CMODE_32) in initMatrox2()
1898 default_cmode = CMODE_8; in initMatrox2()
1899 if (!mac_vmode_to_var(default_vmode, default_cmode, &var)) { in initMatrox2()
2411 default_cmode = CMODE_8; in matroxfb_setup()
2415 default_cmode = CMODE_16; in matroxfb_setup()
2419 default_cmode = CMODE_32; in matroxfb_setup()
2577 module_param_named(cmode, default_cmode, int, 0);