/linux-4.4.14/drivers/staging/xgifb/ |
H A D | XGI_main_26.c | 269 xgifb_info->mode_idx = i; XGIfb_search_mode() 289 xgifb_info->mode_idx = i; XGIfb_search_vesamode() 549 xres = XGIbios_mode[xgifb_info->mode_idx].xres; XGIfb_search_refresh_rate() 550 yres = XGIbios_mode[xgifb_info->mode_idx].yres; XGIfb_search_refresh_rate() 967 old_mode = xgifb_info->mode_idx; XGIfb_do_set_var() 968 xgifb_info->mode_idx = 0; XGIfb_do_set_var() 970 while ((XGIbios_mode[xgifb_info->mode_idx].mode_no != 0) && XGIfb_do_set_var() 971 (XGIbios_mode[xgifb_info->mode_idx].xres <= var->xres)) { XGIfb_do_set_var() 972 if ((XGIbios_mode[xgifb_info->mode_idx].xres == var->xres) && XGIfb_do_set_var() 973 (XGIbios_mode[xgifb_info->mode_idx].yres == var->yres) && XGIfb_do_set_var() 974 (XGIbios_mode[xgifb_info->mode_idx].bpp XGIfb_do_set_var() 979 xgifb_info->mode_idx++; XGIfb_do_set_var() 983 xgifb_info->mode_idx = XGIfb_validate_mode(xgifb_info, XGIfb_do_set_var() 984 xgifb_info->mode_idx); XGIfb_do_set_var() 986 xgifb_info->mode_idx = -1; XGIfb_do_set_var() 988 if (xgifb_info->mode_idx < 0) { XGIfb_do_set_var() 991 xgifb_info->mode_idx = old_mode; XGIfb_do_set_var() 1005 XGIbios_mode[xgifb_info->mode_idx].mode_no) XGIfb_do_set_var() 1008 XGIbios_mode[xgifb_info->mode_idx].mode_no); XGIfb_do_set_var() 1024 XGIbios_mode[xgifb_info->mode_idx].xres, XGIfb_do_set_var() 1025 XGIbios_mode[xgifb_info->mode_idx].yres, XGIfb_do_set_var() 1026 XGIbios_mode[xgifb_info->mode_idx].bpp, XGIfb_do_set_var() 1029 xgifb_info->video_bpp = XGIbios_mode[xgifb_info->mode_idx].bpp; XGIfb_do_set_var() 1032 XGIbios_mode[xgifb_info->mode_idx].xres; XGIfb_do_set_var() 1035 XGIbios_mode[xgifb_info->mode_idx].yres; XGIfb_do_set_var() 1886 xgifb_info->mode_idx = -1; xgifb_probe() 1893 if (xgifb_info->mode_idx >= 0) xgifb_probe() 1894 xgifb_info->mode_idx = xgifb_probe() 1895 XGIfb_validate_mode(xgifb_info, xgifb_info->mode_idx); xgifb_probe() 1897 if (xgifb_info->mode_idx < 0) { xgifb_probe() 1900 xgifb_info->mode_idx = xgifb_probe() 1903 xgifb_info->mode_idx = DEFAULT_MODE; xgifb_probe() 1906 if (xgifb_info->mode_idx < 0) { xgifb_probe() 1922 xgifb_info->video_bpp = XGIbios_mode[xgifb_info->mode_idx].bpp; xgifb_probe() 1925 XGIbios_mode[xgifb_info->mode_idx].xres; xgifb_probe() 1928 XGIbios_mode[xgifb_info->mode_idx].yres; xgifb_probe() 1980 XGIbios_mode[xgifb_info->mode_idx].mode_no)); xgifb_probe() 1983 XGIbios_mode[xgifb_info->mode_idx].mode_no, xgifb_probe()
|
H A D | XGIfb.h | 57 int mode_idx; member in struct:xgifb_video_info
|
/linux-4.4.14/drivers/gpu/drm/sti/ |
H A D | sti_hda.c | 376 u32 val, i, mode_idx; sti_hda_pre_enable() local 392 if (!hda_get_mode_idx(hda->mode, &mode_idx)) { sti_hda_pre_enable() 397 switch (hda_supported_modes[mode_idx].vid_cat) { sti_hda_pre_enable() 424 DRM_DEBUG_DRIVER("Using HDA mode #%d\n", mode_idx); sti_hda_pre_enable() 451 sti_hda_configure_awg(hda, hda_supported_modes[mode_idx].awg_instr, sti_hda_pre_enable() 452 hda_supported_modes[mode_idx].nb_instr); sti_hda_pre_enable() 467 u32 mode_idx; sti_hda_set_mode() local 475 if (!hda_get_mode_idx(hda->mode, &mode_idx)) { sti_hda_set_mode() 480 switch (hda_supported_modes[mode_idx].vid_cat) { sti_hda_set_mode()
|
/linux-4.4.14/include/video/ |
H A D | uvesafb.h | 135 int mode_idx; member in struct:uvesafb_par
|
/linux-4.4.14/drivers/video/fbdev/omap2/omapfb/ |
H A D | omapfb-ioctl.c | 525 int mode_idx = mode->mode_idx; omapfb_get_ovl_colormode() local 536 mode_idx = mode->mode_idx; omapfb_get_ovl_colormode() 549 mode_idx--; omapfb_get_ovl_colormode() 550 if (mode_idx < 0) omapfb_get_ovl_colormode()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
H A D | dvo_ns2501.c | 554 int mode_idx, i; ns2501_mode_set() local 591 mode_idx = MODE_640x480; ns2501_mode_set() 593 mode_idx = MODE_800x600; ns2501_mode_set() 595 mode_idx = MODE_1024x768; ns2501_mode_set() 609 conf = ns2501_modes + mode_idx; ns2501_mode_set()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | omapfb.h | 190 __u8 mode_idx; member in struct:omapfb_ovl_colormode
|
/linux-4.4.14/drivers/gpu/drm/ |
H A D | drm_edid.c | 2662 u8 mode_idx = drm_match_cea_mode(mode) - 1; add_alternate_cea_modes() local 2665 if (mode_idx < ARRAY_SIZE(edid_cea_modes)) { add_alternate_cea_modes() 2666 cea_mode = &edid_cea_modes[mode_idx]; add_alternate_cea_modes() 2669 mode_idx = drm_match_hdmi_mode(mode) - 1; add_alternate_cea_modes() 2670 if (mode_idx < ARRAY_SIZE(edid_4k_modes)) { add_alternate_cea_modes() 2671 cea_mode = &edid_4k_modes[mode_idx]; add_alternate_cea_modes() 3119 u8 mode_idx; fixup_detailed_cea_mode_clock() local 3122 mode_idx = drm_match_cea_mode(mode) - 1; fixup_detailed_cea_mode_clock() 3123 if (mode_idx < ARRAY_SIZE(edid_cea_modes)) { fixup_detailed_cea_mode_clock() 3125 cea_mode = &edid_cea_modes[mode_idx]; fixup_detailed_cea_mode_clock() 3129 mode_idx = drm_match_hdmi_mode(mode) - 1; fixup_detailed_cea_mode_clock() 3130 if (mode_idx < ARRAY_SIZE(edid_4k_modes)) { fixup_detailed_cea_mode_clock() 3132 cea_mode = &edid_4k_modes[mode_idx]; fixup_detailed_cea_mode_clock() 3150 type, mode_idx + 1, mode->clock, clock); fixup_detailed_cea_mode_clock()
|
/linux-4.4.14/drivers/video/fbdev/sis/ |
H A D | sis_main.c | 557 int mode_idx, int rate_idx, int rate) sisfb_verify_rate() 565 if(mode_idx < 0) sisfb_verify_rate() 569 switch(sisbios_mode[mode_idx].mode_no[ivideo->mni]) { sisfb_verify_rate() 593 sisbios_mode[mode_idx].mode_no[ivideo->mni], sisfb_verify_rate() 680 sisfb_search_refresh_rate(struct sis_video_info *ivideo, unsigned int rate, int mode_idx) sisfb_search_refresh_rate() argument 683 u16 xres = sisbios_mode[mode_idx].xres; sisfb_search_refresh_rate() 684 u16 yres = sisbios_mode[mode_idx].yres; sisfb_search_refresh_rate() 556 sisfb_verify_rate(struct sis_video_info *ivideo, struct sisfb_monitor *monitor, int mode_idx, int rate_idx, int rate) sisfb_verify_rate() argument
|
/linux-4.4.14/drivers/video/fbdev/ |
H A D | uvesafb.c | 941 int i = par->mode_idx; uvesafb_setpalette() 1311 par->mode_idx = i; uvesafb_set_par()
|