Lines Matching refs:var
333 msg.situ.video_output[0].depth_bits = info->var.bits_per_pixel; in synthvid_send_situ()
334 msg.situ.video_output[0].width_pixels = info->var.xres; in synthvid_send_situ()
335 msg.situ.video_output[0].height_pixels = info->var.yres; in synthvid_send_situ()
386 x2 = info->var.xres; in synthvid_update()
388 y2 = info->var.yres; in synthvid_update()
398 (x2 < x1 || x2 > info->var.xres) ? info->var.xres : x2; in synthvid_update()
400 (y2 < y1 || y2 > info->var.yres) ? info->var.yres : y2; in synthvid_update()
453 synthvid_update(p, 0, miny, p->var.xres, maxy + 1); in synthvid_deferred_io()
752 if (x1 > info->var.xres || x2 > info->var.xres || in hvfb_update_work()
753 y1 > info->var.yres || y2 > info->var.yres || x2 <= x1) in hvfb_update_work()
816 static int hvfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in hvfb_check_var() argument
818 if (var->xres < HVFB_WIDTH_MIN || var->yres < HVFB_HEIGHT_MIN || in hvfb_check_var()
819 var->xres > screen_width || var->yres > screen_height || in hvfb_check_var()
820 var->bits_per_pixel != screen_depth) in hvfb_check_var()
823 var->xres_virtual = var->xres; in hvfb_check_var()
824 var->yres_virtual = var->yres; in hvfb_check_var()
850 pal[regno] = chan_to_field(red, &info->var.red) in hvfb_setcolreg()
851 | chan_to_field(green, &info->var.green) in hvfb_setcolreg()
852 | chan_to_field(blue, &info->var.blue) in hvfb_setcolreg()
853 | chan_to_field(transp, &info->var.transp); in hvfb_setcolreg()
1181 info->var.xres_virtual = info->var.xres = screen_width; in hvfb_probe()
1182 info->var.yres_virtual = info->var.yres = screen_height; in hvfb_probe()
1183 info->var.bits_per_pixel = screen_depth; in hvfb_probe()
1185 if (info->var.bits_per_pixel == 16) { in hvfb_probe()
1186 info->var.red = (struct fb_bitfield){11, 5, 0}; in hvfb_probe()
1187 info->var.green = (struct fb_bitfield){5, 6, 0}; in hvfb_probe()
1188 info->var.blue = (struct fb_bitfield){0, 5, 0}; in hvfb_probe()
1189 info->var.transp = (struct fb_bitfield){0, 0, 0}; in hvfb_probe()
1191 info->var.red = (struct fb_bitfield){16, 8, 0}; in hvfb_probe()
1192 info->var.green = (struct fb_bitfield){8, 8, 0}; in hvfb_probe()
1193 info->var.blue = (struct fb_bitfield){0, 8, 0}; in hvfb_probe()
1194 info->var.transp = (struct fb_bitfield){24, 8, 0}; in hvfb_probe()
1197 info->var.activate = FB_ACTIVATE_NOW; in hvfb_probe()
1198 info->var.height = -1; in hvfb_probe()
1199 info->var.width = -1; in hvfb_probe()
1200 info->var.vmode = FB_VMODE_NONINTERLACED; in hvfb_probe()