Lines Matching refs:var

279 	msg.situ.video_output[0].depth_bits = info->var.bits_per_pixel;  in synthvid_send_situ()
280 msg.situ.video_output[0].width_pixels = info->var.xres; in synthvid_send_situ()
281 msg.situ.video_output[0].height_pixels = info->var.yres; in synthvid_send_situ()
338 msg.dirt.rect[0].x2 = info->var.xres; in synthvid_update()
339 msg.dirt.rect[0].y2 = info->var.yres; in synthvid_update()
558 static int hvfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in hvfb_check_var() argument
560 if (var->xres < HVFB_WIDTH_MIN || var->yres < HVFB_HEIGHT_MIN || in hvfb_check_var()
561 var->xres > screen_width || var->yres > screen_height || in hvfb_check_var()
562 var->bits_per_pixel != screen_depth) in hvfb_check_var()
565 var->xres_virtual = var->xres; in hvfb_check_var()
566 var->yres_virtual = var->yres; in hvfb_check_var()
592 pal[regno] = chan_to_field(red, &info->var.red) in hvfb_setcolreg()
593 | chan_to_field(green, &info->var.green) in hvfb_setcolreg()
594 | chan_to_field(blue, &info->var.blue) in hvfb_setcolreg()
595 | chan_to_field(transp, &info->var.transp); in hvfb_setcolreg()
807 info->var.xres_virtual = info->var.xres = screen_width; in hvfb_probe()
808 info->var.yres_virtual = info->var.yres = screen_height; in hvfb_probe()
809 info->var.bits_per_pixel = screen_depth; in hvfb_probe()
811 if (info->var.bits_per_pixel == 16) { in hvfb_probe()
812 info->var.red = (struct fb_bitfield){11, 5, 0}; in hvfb_probe()
813 info->var.green = (struct fb_bitfield){5, 6, 0}; in hvfb_probe()
814 info->var.blue = (struct fb_bitfield){0, 5, 0}; in hvfb_probe()
815 info->var.transp = (struct fb_bitfield){0, 0, 0}; in hvfb_probe()
817 info->var.red = (struct fb_bitfield){16, 8, 0}; in hvfb_probe()
818 info->var.green = (struct fb_bitfield){8, 8, 0}; in hvfb_probe()
819 info->var.blue = (struct fb_bitfield){0, 8, 0}; in hvfb_probe()
820 info->var.transp = (struct fb_bitfield){24, 8, 0}; in hvfb_probe()
823 info->var.activate = FB_ACTIVATE_NOW; in hvfb_probe()
824 info->var.height = -1; in hvfb_probe()
825 info->var.width = -1; in hvfb_probe()
826 info->var.vmode = FB_VMODE_NONINTERLACED; in hvfb_probe()