Lines Matching refs:var
171 void svga_dump_var(struct fb_var_screeninfo *var, int node)
173 pr_debug("fb%d: var.vmode : 0x%X\n", node, var->vmode);
174 pr_debug("fb%d: var.xres : %d\n", node, var->xres);
175 pr_debug("fb%d: var.yres : %d\n", node, var->yres);
176 pr_debug("fb%d: var.bits_per_pixel: %d\n", node, var->bits_per_pixel);
177 pr_debug("fb%d: var.xres_virtual : %d\n", node, var->xres_virtual);
178 pr_debug("fb%d: var.yres_virtual : %d\n", node, var->yres_virtual);
179 pr_debug("fb%d: var.left_margin : %d\n", node, var->left_margin);
180 pr_debug("fb%d: var.right_margin : %d\n", node, var->right_margin);
181 pr_debug("fb%d: var.upper_margin : %d\n", node, var->upper_margin);
182 pr_debug("fb%d: var.lower_margin : %d\n", node, var->lower_margin);
183 pr_debug("fb%d: var.hsync_len : %d\n", node, var->hsync_len);
184 pr_debug("fb%d: var.vsync_len : %d\n", node, var->vsync_len);
185 pr_debug("fb%d: var.sync : 0x%X\n", node, var->sync);
186 pr_debug("fb%d: var.pixclock : %d\n\n", node, var->pixclock);
224 int rowstride = colstride * (info->var.xres_virtual / 8); in svga_tilecopy()
261 int rowstride = colstride * (info->var.xres_virtual / 8); in svga_tilefill()
282 int rowstride = colstride * (info->var.xres_virtual / 8); in svga_tileblit()
307 u16 pos = cursor->sx + (info->var.xoffset / 8) in svga_tilecursor()
308 + (cursor->sy + (info->var.yoffset / 16)) in svga_tilecursor()
309 * (info->var.xres_virtual / 8); in svga_tilecursor()
353 struct fb_var_screeninfo *var) in svga_get_caps() argument
355 if (var->bits_per_pixel == 0) { in svga_get_caps()
361 caps->x = (var->bits_per_pixel == 4) ? 1 << (8 - 1) : ~(u32)0; in svga_get_caps()
438 int svga_check_timings(const struct svga_timing_regs *tm, struct fb_var_screeninfo *var, int node) in svga_check_timings() argument
442 var->xres = (var->xres+7)&~7; in svga_check_timings()
443 var->left_margin = (var->left_margin+7)&~7; in svga_check_timings()
444 var->right_margin = (var->right_margin+7)&~7; in svga_check_timings()
445 var->hsync_len = (var->hsync_len+7)&~7; in svga_check_timings()
448 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings()
453 value = var->xres; in svga_check_timings()
460 value = var->xres + var->right_margin; in svga_check_timings()
465 value = var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings()
470 value = var->hsync_len; in svga_check_timings()
475 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
480 value = var->yres; in svga_check_timings()
487 value = var->yres + var->lower_margin; in svga_check_timings()
492 value = var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
497 value = var->vsync_len; in svga_check_timings()
506 struct fb_var_screeninfo *var, in svga_set_timings() argument
512 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings()
517 value = var->xres; in svga_set_timings()
522 value = var->xres; in svga_set_timings()
527 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings()
532 value = var->xres + var->right_margin; in svga_set_timings()
537 value = var->xres + var->right_margin + var->hsync_len; in svga_set_timings()
542 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
547 value = var->yres; in svga_set_timings()
552 value = var->yres; in svga_set_timings()
557 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
562 value = var->yres + var->lower_margin; in svga_set_timings()
567 value = var->yres + var->lower_margin + var->vsync_len; in svga_set_timings()
575 if (var->sync & FB_SYNC_HOR_HIGH_ACT) { in svga_set_timings()
582 if (var->sync & FB_SYNC_VERT_HIGH_ACT) { in svga_set_timings()
597 struct fb_var_screeninfo *var) in match_format() argument
604 if ((var->bits_per_pixel == frm->bits_per_pixel) && in match_format()
605 (var->red.length <= frm->red.length) && in match_format()
606 (var->green.length <= frm->green.length) && in match_format()
607 (var->blue.length <= frm->blue.length) && in match_format()
608 (var->transp.length <= frm->transp.length) && in match_format()
609 (var->nonstd == frm->nonstd)) in match_format()
611 if (var->bits_per_pixel == frm->bits_per_pixel) in match_format()
620 struct fb_var_screeninfo *var, in svga_match_format() argument
623 int i = match_format(frm, var); in svga_match_format()
626 var->bits_per_pixel = frm[i].bits_per_pixel; in svga_match_format()
627 var->red = frm[i].red; in svga_match_format()
628 var->green = frm[i].green; in svga_match_format()
629 var->blue = frm[i].blue; in svga_match_format()
630 var->transp = frm[i].transp; in svga_match_format()
631 var->nonstd = frm[i].nonstd; in svga_match_format()