Lines Matching refs:myindex
557 sisfb_validate_mode(struct sis_video_info *ivideo, int myindex, u32 vbflags) in sisfb_validate_mode() argument
563 if(!(sisbios_mode[myindex].chipset & MD_SIS300)) return(-1); in sisfb_validate_mode()
568 if(!(sisbios_mode[myindex].chipset & MD_SIS315)) return(-1); in sisfb_validate_mode()
572 myres = sisbios_mode[myindex].yres; in sisfb_validate_mode()
581 if(sisbios_mode[myindex].xres > xres) return(-1); in sisfb_validate_mode()
586 if(sisbios_mode[myindex].xres == 320) { in sisfb_validate_mode()
589 if(sisbios_mode[myindex].mode_no[1] == 0x5a || in sisfb_validate_mode()
590 sisbios_mode[myindex].mode_no[1] == 0x5b) in sisfb_validate_mode()
593 if(sisbios_mode[myindex].mode_no[1] == 0x50 || in sisfb_validate_mode()
594 sisbios_mode[myindex].mode_no[1] == 0x56 || in sisfb_validate_mode()
595 sisbios_mode[myindex].mode_no[1] == 0x53) in sisfb_validate_mode()
602 if(SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
603 sisbios_mode[myindex].yres, 0, ivideo->sisfb_fstn, in sisfb_validate_mode()
610 if(SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
611 sisbios_mode[myindex].yres, 0) < 0x14) { in sisfb_validate_mode()
617 if(SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
618 sisbios_mode[myindex].yres, 0) < 0x14) { in sisfb_validate_mode()
624 return(myindex); in sisfb_validate_mode()