Lines Matching refs:sisfb_mode_idx
118 sisfb_mode_idx = -1; in sisfb_setdefaultparms()
154 sisfb_mode_idx = DEFAULT_MODE; in sisfb_search_vesamode()
174 sisfb_mode_idx = i - 1; in sisfb_search_vesamode()
196 sisfb_mode_idx = DEFAULT_MODE; in sisfb_search_mode()
204 sisfb_mode_idx = DEFAULT_MODE; in sisfb_search_mode()
250 sisfb_mode_idx = i - 1; in sisfb_search_mode()
1257 old_mode = ivideo->sisfb_mode_idx; in sisfb_do_set_var()
1258 ivideo->sisfb_mode_idx = 0; in sisfb_do_set_var()
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()
1269 ivideo->sisfb_mode_idx++; in sisfb_do_set_var()
1273 ivideo->sisfb_mode_idx = sisfb_validate_mode(ivideo, in sisfb_do_set_var()
1274 ivideo->sisfb_mode_idx, ivideo->currentvbflags); in sisfb_do_set_var()
1276 ivideo->sisfb_mode_idx = -1; in sisfb_do_set_var()
1279 if(ivideo->sisfb_mode_idx < 0) { in sisfb_do_set_var()
1282 ivideo->sisfb_mode_idx = old_mode; in sisfb_do_set_var()
1286 ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]; in sisfb_do_set_var()
1288 if(sisfb_search_refresh_rate(ivideo, ivideo->refresh_rate, ivideo->sisfb_mode_idx) == 0) { 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()
3660 cr33 |= (sisbios_mode[ivideo->sisfb_mode_idx].rate_idx << 4); in sisfb_pre_setmode()
5903 if(sisfb_mode_idx == -1) { in sisfb_probe()
5944 ivideo->sisfb_mode_idx = sisfb_mode_idx; in sisfb_probe()
6203 if((ivideo->sisfb_mode_idx < 0) || in sisfb_probe()
6204 ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) { in sisfb_probe()
6319 if((ivideo->sisfb_mode_idx < 0) || in sisfb_probe()
6320 ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) { in sisfb_probe()
6379 if(ivideo->sisfb_mode_idx >= 0) { in sisfb_probe()
6380 int bu = ivideo->sisfb_mode_idx; in sisfb_probe()
6381 ivideo->sisfb_mode_idx = sisfb_validate_mode(ivideo, in sisfb_probe()
6382 ivideo->sisfb_mode_idx, ivideo->currentvbflags); in sisfb_probe()
6383 if(bu != ivideo->sisfb_mode_idx) { in sisfb_probe()
6391 if(ivideo->sisfb_mode_idx < 0) { in sisfb_probe()
6394 ivideo->sisfb_mode_idx = ivideo->lcddefmodeidx; in sisfb_probe()
6397 ivideo->sisfb_mode_idx = ivideo->tvdefmodeidx; in sisfb_probe()
6400 ivideo->sisfb_mode_idx = ivideo->defmodeidx; in sisfb_probe()
6405 ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]; in sisfb_probe()
6409 ivideo->sisfb_mode_idx); in sisfb_probe()
6413 ivideo->rate_idx = sisbios_mode[ivideo->sisfb_mode_idx].rate_idx; in sisfb_probe()
6419 ivideo->sisfb_mode_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()