Lines Matching defs:var

325 	msg.situ.video_output[0].depth_bits = info->var.bits_per_pixel;
326 msg.situ.video_output[0].width_pixels = info->var.xres;
327 msg.situ.video_output[0].height_pixels = info->var.yres;
378 x2 = info->var.xres;
380 y2 = info->var.yres;
390 (x2 < x1 || x2 > info->var.xres) ? info->var.xres : x2;
392 (y2 < y1 || y2 > info->var.yres) ? info->var.yres : y2;
444 synthvid_update(p, 0, miny, p->var.xres, maxy + 1);
733 if (x1 > info->var.xres || x2 > info->var.xres ||
734 y1 > info->var.yres || y2 > info->var.yres || x2 <= x1)
803 static int hvfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
805 if (var->xres < HVFB_WIDTH_MIN || var->yres < HVFB_HEIGHT_MIN ||
806 var->xres > screen_width || var->yres > screen_height ||
807 var->bits_per_pixel != screen_depth)
810 var->xres_virtual = var->xres;
811 var->yres_virtual = var->yres;
837 pal[regno] = chan_to_field(red, &info->var.red)
838 | chan_to_field(green, &info->var.green)
839 | chan_to_field(blue, &info->var.blue)
840 | chan_to_field(transp, &info->var.transp);
1136 info->var.xres_virtual = info->var.xres = screen_width;
1137 info->var.yres_virtual = info->var.yres = screen_height;
1138 info->var.bits_per_pixel = screen_depth;
1140 if (info->var.bits_per_pixel == 16) {
1141 info->var.red = (struct fb_bitfield){11, 5, 0};
1142 info->var.green = (struct fb_bitfield){5, 6, 0};
1143 info->var.blue = (struct fb_bitfield){0, 5, 0};
1144 info->var.transp = (struct fb_bitfield){0, 0, 0};
1146 info->var.red = (struct fb_bitfield){16, 8, 0};
1147 info->var.green = (struct fb_bitfield){8, 8, 0};
1148 info->var.blue = (struct fb_bitfield){0, 8, 0};
1149 info->var.transp = (struct fb_bitfield){24, 8, 0};
1152 info->var.activate = FB_ACTIVATE_NOW;
1153 info->var.height = -1;
1154 info->var.width = -1;
1155 info->var.vmode = FB_VMODE_NONINTERLACED;