• Home
  • Raw
  • Download

Lines Matching refs:vmode

86 	int	vmode, cmode;  member
557 if (mac_var_to_vmode(var, &par->vmode, &cmode)) in control_var_to_par()
558 par->vmode = 0; in control_var_to_par()
611 var->vmode = FB_VMODE_NONINTERLACED; in control_par_to_var()
817 int vmode = simple_strtoul(this_opt+6, NULL, 0); in control_setup() local
818 if (vmode > 0 && vmode <= VMODE_MAX && in control_setup()
819 control_mac_modes[vmode - 1].m[1] >= 0) in control_setup()
820 default_vmode = vmode; in control_setup()
850 int full, sense, vmode, cmode, vyres; in init_control() local
865 vmode = default_vmode; in init_control()
866 if (IS_REACHABLE(CONFIG_NVRAM) && vmode == VMODE_NVRAM) in init_control()
867 vmode = nvram_read_byte(NV_VMODE); in init_control()
868 if (vmode < 1 || vmode > VMODE_MAX || in init_control()
869 control_mac_modes[vmode - 1].m[full] < cmode) { in init_control()
872 vmode = mac_map_monitor_sense(sense); in init_control()
873 if (control_mac_modes[vmode - 1].m[full] < 0) in init_control()
874 vmode = VMODE_640_480_60; in init_control()
875 cmode = min(cmode, control_mac_modes[vmode - 1].m[full]); in init_control()
882 if (mac_vmode_to_var(vmode, cmode, &var) < 0) { in init_control()
884 printk("mac_vmode_to_var(%d, %d,) failed\n", vmode, cmode); in init_control()
886 vmode = VMODE_640_480_60; in init_control()
888 if (mac_vmode_to_var(vmode, cmode, &var) < 0) { in init_control()
894 printk("using video mode %d and color mode %d.\n", vmode, cmode); in init_control()
903 if (rc && (vmode != VMODE_640_480_60 || cmode != CMODE_8)) in init_control()