Lines Matching refs:myindex
617 sisfb_validate_mode(struct sis_video_info *ivideo, int myindex, u32 vbflags) in sisfb_validate_mode() argument
623 if (!(sisbios_mode[myindex].chipset & MD_SIS300)) in sisfb_validate_mode()
629 if (!(sisbios_mode[myindex].chipset & MD_SIS315)) in sisfb_validate_mode()
634 myres = sisbios_mode[myindex].yres; in sisfb_validate_mode()
643 if (sisbios_mode[myindex].xres > xres) in sisfb_validate_mode()
650 if (sisbios_mode[myindex].xres == 320) { in sisfb_validate_mode()
652 switch (sisbios_mode[myindex].mode_no[1]) { in sisfb_validate_mode()
653 case 0x50: myindex = MODE_FSTN_8; break; in sisfb_validate_mode()
654 case 0x56: myindex = MODE_FSTN_16; break; in sisfb_validate_mode()
661 if (SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
662 sisbios_mode[myindex].yres, 0, ivideo->sisfb_fstn, in sisfb_validate_mode()
669 if (SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
670 sisbios_mode[myindex].yres, 0, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
676 if (SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
677 sisbios_mode[myindex].yres, 0, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
683 return myindex; in sisfb_validate_mode()