Lines Matching refs:sisbios_mode

161 	while(sisbios_mode[i++].mode_no[0] != 0) {  in sisfb_search_vesamode()
162 if( (sisbios_mode[i-1].vesa_mode_no_1 == vesamode) || in sisfb_search_vesamode()
163 (sisbios_mode[i-1].vesa_mode_no_2 == vesamode) ) { in sisfb_search_vesamode()
165 if(sisbios_mode[i-1].mode_no[1] == 0x50 || in sisfb_search_vesamode()
166 sisbios_mode[i-1].mode_no[1] == 0x56 || in sisfb_search_vesamode()
167 sisbios_mode[i-1].mode_no[1] == 0x53) in sisfb_search_vesamode()
170 if(sisbios_mode[i-1].mode_no[1] == 0x5a || in sisfb_search_vesamode()
171 sisbios_mode[i-1].mode_no[1] == 0x5b) in sisfb_search_vesamode()
200 if(!strncasecmp(name, sisbios_mode[MODE_INDEX_NONE].name, strlen(name))) { in sisfb_search_mode()
238 while(sisbios_mode[i].mode_no[0] != 0) { in sisfb_search_mode()
239 if(!strncasecmp(nameptr, sisbios_mode[i++].name, strlen(nameptr))) { in sisfb_search_mode()
241 if(sisbios_mode[i-1].mode_no[1] == 0x50 || in sisfb_search_mode()
242 sisbios_mode[i-1].mode_no[1] == 0x56 || in sisfb_search_mode()
243 sisbios_mode[i-1].mode_no[1] == 0x53) in sisfb_search_mode()
246 if(sisbios_mode[i-1].mode_no[1] == 0x5a || in sisfb_search_mode()
247 sisbios_mode[i-1].mode_no[1] == 0x5b) in sisfb_search_mode()
607 switch(sisbios_mode[mode_idx].mode_no[ivideo->mni]) { in sisfb_verify_rate()
631 sisbios_mode[mode_idx].mode_no[ivideo->mni], in sisfb_verify_rate()
654 if (!(sisbios_mode[myindex].chipset & MD_SIS300)) in sisfb_validate_mode()
660 if (!(sisbios_mode[myindex].chipset & MD_SIS315)) in sisfb_validate_mode()
665 myres = sisbios_mode[myindex].yres; in sisfb_validate_mode()
674 if (sisbios_mode[myindex].xres > xres) in sisfb_validate_mode()
681 if (sisbios_mode[myindex].xres == 320) { in sisfb_validate_mode()
683 switch (sisbios_mode[myindex].mode_no[1]) { in sisfb_validate_mode()
692 if (SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
693 sisbios_mode[myindex].yres, 0, ivideo->sisfb_fstn, in sisfb_validate_mode()
700 if (SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
701 sisbios_mode[myindex].yres, 0, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
707 if (SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
708 sisbios_mode[myindex].yres, 0, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
721 u16 xres = sisbios_mode[mode_idx].xres; in sisfb_search_refresh_rate()
722 u16 yres = sisbios_mode[mode_idx].yres; in sisfb_search_refresh_rate()
1260 while( (sisbios_mode[ivideo->sisfb_mode_idx].mode_no[0] != 0) && in sisfb_do_set_var()
1261 (sisbios_mode[ivideo->sisfb_mode_idx].xres <= var->xres) ) { in sisfb_do_set_var()
1262 if( (sisbios_mode[ivideo->sisfb_mode_idx].xres == var->xres) && in sisfb_do_set_var()
1263 (sisbios_mode[ivideo->sisfb_mode_idx].yres == var->yres) && in sisfb_do_set_var()
1264 (sisbios_mode[ivideo->sisfb_mode_idx].bpp == var->bits_per_pixel)) { in sisfb_do_set_var()
1265 ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]; in sisfb_do_set_var()
1286 ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]; in sisfb_do_set_var()
1289 ivideo->rate_idx = sisbios_mode[ivideo->sisfb_mode_idx].rate_idx; in sisfb_do_set_var()
1315 ivideo->video_bpp = sisbios_mode[ivideo->sisfb_mode_idx].bpp; in sisfb_do_set_var()
1316 ivideo->video_width = sisbios_mode[ivideo->sisfb_mode_idx].xres; in sisfb_do_set_var()
1317 ivideo->video_height = sisbios_mode[ivideo->sisfb_mode_idx].yres; in sisfb_do_set_var()
1497 while( (sisbios_mode[search_idx].mode_no[0] != 0) && in sisfb_check_var()
1498 (sisbios_mode[search_idx].xres <= var->xres) ) { in sisfb_check_var()
1499 if( (sisbios_mode[search_idx].xres == var->xres) && in sisfb_check_var()
1500 (sisbios_mode[search_idx].yres == var->yres) && in sisfb_check_var()
1501 (sisbios_mode[search_idx].bpp == var->bits_per_pixel)) { in sisfb_check_var()
1514 while(sisbios_mode[search_idx].mode_no[0] != 0) { in sisfb_check_var()
1515 if( (var->xres <= sisbios_mode[search_idx].xres) && in sisfb_check_var()
1516 (var->yres <= sisbios_mode[search_idx].yres) && in sisfb_check_var()
1517 (var->bits_per_pixel == sisbios_mode[search_idx].bpp) ) { in sisfb_check_var()
1531 sisbios_mode[search_idx].xres, in sisfb_check_var()
1532 sisbios_mode[search_idx].yres, in sisfb_check_var()
1534 var->xres = sisbios_mode[search_idx].xres; in sisfb_check_var()
1535 var->yres = sisbios_mode[search_idx].yres; in sisfb_check_var()
1561 if(ivideo->sisfb_lastrates[sisbios_mode[search_idx].mode_no[ivideo->mni]]) { in sisfb_check_var()
1563 ivideo->sisfb_lastrates[sisbios_mode[search_idx].mode_no[ivideo->mni]]; in sisfb_check_var()
1587 if(!myrateindex) myrateindex = sisbios_mode[search_idx].rate_idx; in sisfb_check_var()
1589 sisbios_mode[search_idx].mode_no[ivideo->mni], in sisfb_check_var()
1592 sisbios_mode[search_idx].mode_no[ivideo->mni], in sisfb_check_var()
3660 cr33 |= (sisbios_mode[ivideo->sisfb_mode_idx].rate_idx << 4); in sisfb_pre_setmode()
6204 ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) { in sisfb_probe()
6320 ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) { in sisfb_probe()
6385 sisbios_mode[bu].xres, in sisfb_probe()
6386 sisbios_mode[bu].yres, in sisfb_probe()
6387 sisbios_mode[bu].bpp); in sisfb_probe()
6405 ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]; in sisfb_probe()
6413 ivideo->rate_idx = sisbios_mode[ivideo->sisfb_mode_idx].rate_idx; in sisfb_probe()
6427 ivideo->video_bpp = sisbios_mode[ivideo->sisfb_mode_idx].bpp; in sisfb_probe()
6428 ivideo->video_width = sisbios_mode[ivideo->sisfb_mode_idx].xres; in sisfb_probe()
6429 ivideo->video_height = sisbios_mode[ivideo->sisfb_mode_idx].yres; in sisfb_probe()