Lines Matching full: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()
363 if (var->bits_per_pixel == 4) { in svga_get_caps()
445 int svga_check_timings(const struct svga_timing_regs *tm, struct fb_var_screeninfo *var, int node) in svga_check_timings() argument
449 var->xres = (var->xres+7)&~7; in svga_check_timings()
450 var->left_margin = (var->left_margin+7)&~7; in svga_check_timings()
451 var->right_margin = (var->right_margin+7)&~7; in svga_check_timings()
452 var->hsync_len = (var->hsync_len+7)&~7; in svga_check_timings()
455 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings()
460 value = var->xres; in svga_check_timings()
467 value = var->xres + var->right_margin; in svga_check_timings()
472 value = var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings()
477 value = var->hsync_len; in svga_check_timings()
482 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
487 value = var->yres; in svga_check_timings()
494 value = var->yres + var->lower_margin; in svga_check_timings()
499 value = var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
504 value = var->vsync_len; in svga_check_timings()
513 struct fb_var_screeninfo *var, in svga_set_timings() argument
519 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings()
524 value = var->xres; in svga_set_timings()
529 value = var->xres; in svga_set_timings()
534 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings()
539 value = var->xres + var->right_margin; in svga_set_timings()
544 value = var->xres + var->right_margin + var->hsync_len; in svga_set_timings()
549 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
554 value = var->yres; in svga_set_timings()
559 value = var->yres; in svga_set_timings()
564 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
569 value = var->yres + var->lower_margin; in svga_set_timings()
574 value = var->yres + var->lower_margin + var->vsync_len; in svga_set_timings()
582 if (var->sync & FB_SYNC_HOR_HIGH_ACT) { in svga_set_timings()
589 if (var->sync & FB_SYNC_VERT_HIGH_ACT) { in svga_set_timings()
604 struct fb_var_screeninfo *var) in match_format() argument
611 if ((var->bits_per_pixel == frm->bits_per_pixel) && in match_format()
612 (var->red.length <= frm->red.length) && in match_format()
613 (var->green.length <= frm->green.length) && in match_format()
614 (var->blue.length <= frm->blue.length) && in match_format()
615 (var->transp.length <= frm->transp.length) && in match_format()
616 (var->nonstd == frm->nonstd)) in match_format()
618 if (var->bits_per_pixel == frm->bits_per_pixel) in match_format()
627 struct fb_var_screeninfo *var, in svga_match_format() argument
630 int i = match_format(frm, var); in svga_match_format()
633 var->bits_per_pixel = frm[i].bits_per_pixel; in svga_match_format()
634 var->red = frm[i].red; in svga_match_format()
635 var->green = frm[i].green; in svga_match_format()
636 var->blue = frm[i].blue; in svga_match_format()
637 var->transp = frm[i].transp; in svga_match_format()
638 var->nonstd = frm[i].nonstd; in svga_match_format()