Lines Matching refs:vmode
83 int vmode, cmode; member
547 if (mac_var_to_vmode(var, &par->vmode, &cmode)) in control_var_to_par()
548 par->vmode = 0; in control_var_to_par()
601 var->vmode = FB_VMODE_NONINTERLACED; in control_par_to_var()
806 int vmode = simple_strtoul(this_opt+6, NULL, 0); in control_setup() local
807 if (vmode > 0 && vmode <= VMODE_MAX && in control_setup()
808 control_mac_modes[vmode - 1].m[1] >= 0) in control_setup()
809 default_vmode = vmode; in control_setup()
839 int full, sense, vmode, cmode, vyres; in init_control() local
854 vmode = default_vmode; in init_control()
855 if (IS_REACHABLE(CONFIG_NVRAM) && vmode == VMODE_NVRAM) in init_control()
856 vmode = nvram_read_byte(NV_VMODE); in init_control()
857 if (vmode < 1 || vmode > VMODE_MAX || in init_control()
858 control_mac_modes[vmode - 1].m[full] < cmode) { in init_control()
861 vmode = mac_map_monitor_sense(sense); in init_control()
862 if (control_mac_modes[vmode - 1].m[full] < 0) in init_control()
863 vmode = VMODE_640_480_60; in init_control()
864 cmode = min(cmode, control_mac_modes[vmode - 1].m[full]); in init_control()
871 if (mac_vmode_to_var(vmode, cmode, &var) < 0) { in init_control()
873 printk("mac_vmode_to_var(%d, %d,) failed\n", vmode, cmode); in init_control()
875 vmode = VMODE_640_480_60; in init_control()
877 if (mac_vmode_to_var(vmode, cmode, &var) < 0) { in init_control()
883 printk("using video mode %d and color mode %d.\n", vmode, cmode); in init_control()
892 if (rc && (vmode != VMODE_640_480_60 || cmode != CMODE_8)) in init_control()