Lines Matching refs:myindex
618 sisfb_validate_mode(struct sis_video_info *ivideo, int myindex, u32 vbflags) in sisfb_validate_mode() argument
624 if(!(sisbios_mode[myindex].chipset & MD_SIS300)) in sisfb_validate_mode()
630 if(!(sisbios_mode[myindex].chipset & MD_SIS315)) in sisfb_validate_mode()
635 myres = sisbios_mode[myindex].yres; in sisfb_validate_mode()
644 if(sisbios_mode[myindex].xres > xres) in sisfb_validate_mode()
651 if(sisbios_mode[myindex].xres == 320) { in sisfb_validate_mode()
653 switch(sisbios_mode[myindex].mode_no[1]) { in sisfb_validate_mode()
654 case 0x50: myindex = MODE_FSTN_8; break; in sisfb_validate_mode()
655 case 0x56: myindex = MODE_FSTN_16; break; in sisfb_validate_mode()
662 if(SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
663 sisbios_mode[myindex].yres, 0, ivideo->sisfb_fstn, in sisfb_validate_mode()
670 if(SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
671 sisbios_mode[myindex].yres, 0, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
677 if(SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
678 sisbios_mode[myindex].yres, 0, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
684 return myindex; in sisfb_validate_mode()