• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/video/

Lines Matching defs:var

55 	if ((err = fbhw->decode_var(&fb_display[con].var, &par, info2)))
65 * @var: fb_var_screeninfo structure
69 * Get the user defined part of the display and place it into @var
76 int fbgen_get_var(struct fb_var_screeninfo *var, int con, struct fb_info *info)
84 fbhw->encode_var(var, &par, info2);
86 *var = fb_display[con].var;
93 * @var: fb_var_screeninfo user defined part of the display
97 * Set the user defined part of the display as dictated by @var
104 int fbgen_set_var(struct fb_var_screeninfo *var, int con, struct fb_info *info)
111 if ((err = fbgen_do_set_var(var, con == currcon, info2)))
113 if ((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) {
114 oldxres = fb_display[con].var.xres;
115 oldyres = fb_display[con].var.yres;
116 oldxres_virtual = fb_display[con].var.xres_virtual;
117 oldyres_virtual = fb_display[con].var.yres_virtual;
118 oldbpp = fb_display[con].var.bits_per_pixel;
119 oldred = fb_display[con].var.red;
120 oldgreen = fb_display[con].var.green;
121 oldblue = fb_display[con].var.blue;
122 oldyoffset = fb_display[con].var.yoffset;
123 fb_display[con].var = *var;
124 if (oldxres != var->xres || oldyres != var->yres ||
125 oldxres_virtual != var->xres_virtual ||
126 oldyres_virtual != var->yres_virtual ||
127 oldbpp != var->bits_per_pixel ||
128 (!(memcmp(&oldred, &(var->red), sizeof(struct fb_bitfield)))) ||
129 (!(memcmp(&oldgreen, &(var->green), sizeof(struct fb_bitfield)))) ||
130 (!(memcmp(&oldblue, &(var->blue), sizeof(struct fb_bitfield)))) ||
131 oldyoffset != var->yoffset) {
140 var->activate = 0;
171 int size = fb_display[con].var.bits_per_pixel == 16 ? 64 : 256;
200 int size = fb_display[con].var.bits_per_pixel == 16 ? 64 : 256;
214 * @var: frame buffer user defined part of display
221 * FB_VMODE_YWRAP flag in @var.
227 int fbgen_pan_display(struct fb_var_screeninfo *var, int con,
232 int xoffset = var->xoffset;
233 int yoffset = var->yoffset;
237 xoffset+fb_display[con].var.xres > fb_display[con].var.xres_virtual ||
239 yoffset+fb_display[con].var.yres > fb_display[con].var.yres_virtual)
243 if ((err = fbhw->pan_display(var, info2)))
248 fb_display[con].var.xoffset = var->xoffset;
249 fb_display[con].var.yoffset = var->yoffset;
250 if (var->vmode & FB_VMODE_YWRAP)
251 fb_display[con].var.vmode |= FB_VMODE_YWRAP;
253 fb_display[con].var.vmode &= ~FB_VMODE_YWRAP;
264 * @var: frame buffer user defined part of display
275 int fbgen_do_set_var(struct fb_var_screeninfo *var, int isactive,
282 if ((err = fbhw->decode_var(var, &par, info)))
284 activate = var->activate;
285 if (((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) && isactive)
287 fbhw->encode_var(var, &par, info);
288 var->activate = activate;
317 fbhw->decode_var(&fb_display[con].var, &par, info);
355 int size = fb_display[con].var.bits_per_pixel == 16 ? 64 : 256;
366 * Updates the user defined part of the display ('var'
381 if ((err = fbhw->pan_display(&fb_display[con].var, info2)))
408 fbgen_do_set_var(&fb_display[con].var, 1, info2);