Lines Matching defs:var

32 /* common var for all device */
129 fbcursor->image.dx - info->var.xoffset,
130 fbcursor->image.dy - info->var.yoffset);
180 Bpp = info->var.bits_per_pixel >> 3;
218 Bpp = info->var.bits_per_pixel >> 3;
252 Bpp = info->var.bits_per_pixel >> 3;
286 static int lynxfb_ops_pan_display(struct fb_var_screeninfo *var,
297 return hw_sm750_pan_display(crtc, var, info);
302 switch (info->var.bits_per_pixel) {
320 switch (info->var.bits_per_pixel) {
322 info->var.red.offset = 0;
323 info->var.red.length = 8;
324 info->var.green.offset = 0;
325 info->var.green.length = 8;
326 info->var.blue.offset = 0;
327 info->var.blue.length = 8;
328 info->var.transp.length = 0;
329 info->var.transp.offset = 0;
332 info->var.red.offset = 11;
333 info->var.red.length = 5;
334 info->var.green.offset = 5;
335 info->var.green.length = 6;
336 info->var.blue.offset = 0;
337 info->var.blue.length = 5;
338 info->var.transp.length = 0;
339 info->var.transp.offset = 0;
343 info->var.red.offset = 16;
344 info->var.red.length = 8;
345 info->var.green.offset = 8;
346 info->var.green.length = 8;
347 info->var.blue.offset = 0;
348 info->var.blue.length = 8;
361 struct fb_var_screeninfo *var;
373 var = &info->var;
377 line_length = var->xres_virtual * var->bits_per_pixel / 8;
383 * var->red,green,blue,transp are need to be set by driver
389 var->height = -1;
390 var->width = -1;
391 var->accel_flags = 0;/*FB_ACCELF_TEXT;*/
394 pr_err("bpp %d not supported\n", var->bits_per_pixel);
397 ret = hw_sm750_crtc_setMode(crtc, var, fix);
399 ret = hw_sm750_output_setMode(output, var, fix);
478 static int lynxfb_ops_check_var(struct fb_var_screeninfo *var,
490 pr_debug("check var:%dx%d-%d\n",
491 var->xres,
492 var->yres,
493 var->bits_per_pixel);
498 pr_err("bpp %d not supported\n", var->bits_per_pixel);
502 var->height = -1;
503 var->width = -1;
504 var->accel_flags = 0;/* FB_ACCELF_TEXT; */
507 request = var->xres_virtual * (var->bits_per_pixel >> 3);
511 request = request * var->yres_virtual;
517 return hw_sm750_crtc_checkMode(crtc, var);
529 struct fb_var_screeninfo *var;
534 var = &info->var;
542 if (info->var.grayscale)
545 if (var->bits_per_pixel == 8 &&
557 if (var->bits_per_pixel == 16 ||
558 var->bits_per_pixel == 32 ||
559 var->bits_per_pixel == 24) {
560 val = chan_to_field(red, &var->red);
561 val |= chan_to_field(green, &var->green);
562 val |= chan_to_field(blue, &var->blue);
723 struct fb_var_screeninfo *var;
747 var = &info->var;
794 ret = fb_find_mode(var, info, g_fbmode[index],
819 /* some member of info->var had been set by fb_find_mode */
821 pr_info("Member of info->var is :\n"
830 var->xres,
831 var->yres,
832 var->xres_virtual,
833 var->yres_virtual,
834 var->xoffset,
835 var->yoffset,
836 var->bits_per_pixel);
842 line_length = ALIGN((var->xres_virtual * var->bits_per_pixel / 8),
848 info->screen_size = line_length * var->yres_virtual;
880 /* set var */
881 var->activate = FB_ACTIVATE_NOW;
882 var->accel_flags = 0;
883 var->vmode = FB_VMODE_NONINTERLACED;
902 lynxfb_ops_check_var(var, info);