Lines Matching refs:xres

190 	unsigned int j = 0, xres = 0, yres = 0, depth = 0, rate = 0;  in sisfb_search_mode()  local
220 if(sscanf(strbuf1, "%u %u %u %u", &xres, &yres, &depth, &rate) == 4) { in sisfb_search_mode()
224 sprintf(strbuf, "%ux%ux%u", xres, yres, depth); in sisfb_search_mode()
227 } else if(sscanf(strbuf1, "%u %u %u", &xres, &yres, &depth) == 3) { in sisfb_search_mode()
228 sprintf(strbuf, "%ux%ux%u", xres, yres, depth); in sisfb_search_mode()
231 xres = 0; in sisfb_search_mode()
232 if((sscanf(strbuf1, "%u %u", &xres, &yres) == 2) && (xres != 0)) { in sisfb_search_mode()
233 sprintf(strbuf, "%ux%ux8", xres, yres); in sisfb_search_mode()
378 int i, j, xres, yres, refresh, index; in sisfb_interpret_edid() local
445 xres = (buffer[index] + 31) * 8; in sisfb_interpret_edid()
447 case 0xc0: yres = (xres * 9) / 16; break; in sisfb_interpret_edid()
448 case 0x80: yres = (xres * 4) / 5; break; in sisfb_interpret_edid()
449 case 0x40: yres = (xres * 3) / 4; break; in sisfb_interpret_edid()
450 default: yres = xres; break; in sisfb_interpret_edid()
453 if((xres >= 640) && (yres >= 480)) { in sisfb_interpret_edid()
455 if((xres == sisfb_ddcfmodes[j].x) && in sisfb_interpret_edid()
559 u16 xres=0, yres, myres; in sisfb_validate_mode() local
578 xres = ivideo->lcdxres; yres = ivideo->lcdyres; 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()
602 if(SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
604 ivideo->SiS_Pr.SiS_CustomT, xres, yres) < 0x14) { in sisfb_validate_mode()
610 if(SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
617 if(SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
630 u16 xres, yres; in sisfb_search_refresh_rate() local
633 xres = sisbios_mode[mode_idx].xres; in sisfb_search_refresh_rate()
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()
669 rate, xres, yres); in sisfb_search_refresh_rate()
1002 htotal = var->left_margin + var->xres + var->right_margin + var->hsync_len;
1036 (sisbios_mode[ivideo->sisfb_mode_idx].xres <= var->xres) ) {
1037 if( (sisbios_mode[ivideo->sisfb_mode_idx].xres == var->xres) &&
1055 printk(KERN_ERR "sisfb: Mode %dx%dx%d not supported\n", var->xres,
1092 ivideo->video_vwidth = ivideo->video_width = sisbios_mode[ivideo->sisfb_mode_idx].xres;
1124 if(var->xoffset > (var->xres_virtual - var->xres)) {
1304 var->xres = var->xres_virtual = E * 8;
1306 if((var->xres == 320) &&
1346 maxyres = ivideo->heapstart / (var->xres * (var->bits_per_pixel >> 3));
1515 if(var->xres == 320 && var->yres == 480) var->yres = 240;
1621 if((var->xoffset+fb_display[con].var.xres > fb_display[con].var.xres_virtual) ||
1771 htotal = var->left_margin + var->xres + var->right_margin + var->hsync_len;
1794 (sisbios_mode[search_idx].xres <= var->xres) ) {
1795 if( (sisbios_mode[search_idx].xres == var->xres) &&
1809 if( (var->xres <= sisbios_mode[search_idx].xres) &&
1821 var->xres, var->yres, var->bits_per_pixel,
1822 sisbios_mode[search_idx].xres,
1825 var->xres = sisbios_mode[search_idx].xres;
1831 var->xres, var->yres, var->bits_per_pixel);
1902 if(var->xres != var->xres_virtual) {
1903 var->xres_virtual = var->xres;
1907 maxyres = ivideo->heapstart / (var->xres * (var->bits_per_pixel >> 3));
1928 if(var->xoffset > var->xres_virtual - var->xres) {
1929 var->xoffset = var->xres_virtual - var->xres - 1;
1953 if(var->xoffset > (var->xres_virtual - var->xres)) {
1967 if(var->xoffset + info->var.xres > info->var.xres_virtual ||
4785 ivideo->lcdxres = sis_lcd_data[i].xres;
4927 sisbios_mode[bu].xres,
4966 ivideo->video_vwidth = ivideo->video_width = sisbios_mode[ivideo->sisfb_mode_idx].xres;
5030 ivideo->default_var.xres = ivideo->default_var.xres_virtual = ivideo->video_width;
5058 (ivideo->default_var.xres * (ivideo->default_var.bits_per_pixel >> 3));