Lines Matching refs:sisfb_vrate
637 while((sisfb_vrate[i].idx != 0) && (sisfb_vrate[i].xres <= xres)) { in sisfb_search_refresh_rate()
638 if((sisfb_vrate[i].xres == xres) && (sisfb_vrate[i].yres == yres)) { in sisfb_search_refresh_rate()
639 if(sisfb_vrate[i].refresh == rate) { in sisfb_search_refresh_rate()
640 ivideo->rate_idx = sisfb_vrate[i].idx; in sisfb_search_refresh_rate()
642 } else if(sisfb_vrate[i].refresh > rate) { in sisfb_search_refresh_rate()
643 if((sisfb_vrate[i].refresh - rate) <= 3) { in sisfb_search_refresh_rate()
645 rate, sisfb_vrate[i].refresh); in sisfb_search_refresh_rate()
646 ivideo->rate_idx = sisfb_vrate[i].idx; in sisfb_search_refresh_rate()
647 ivideo->refresh_rate = sisfb_vrate[i].refresh; in sisfb_search_refresh_rate()
648 } else if(((rate - sisfb_vrate[i-1].refresh) <= 2) in sisfb_search_refresh_rate()
649 && (sisfb_vrate[i].idx != 1)) { in sisfb_search_refresh_rate()
651 rate, sisfb_vrate[i-1].refresh); in sisfb_search_refresh_rate()
652 ivideo->rate_idx = sisfb_vrate[i-1].idx; in sisfb_search_refresh_rate()
653 ivideo->refresh_rate = sisfb_vrate[i-1].refresh; in sisfb_search_refresh_rate()
656 } else if((rate - sisfb_vrate[i].refresh) <= 2) { in sisfb_search_refresh_rate()
658 rate, sisfb_vrate[i].refresh); in sisfb_search_refresh_rate()
659 ivideo->rate_idx = sisfb_vrate[i].idx; in sisfb_search_refresh_rate()