Lines Matching refs:var

55 	if ((err = fbhw->decode_var(&fb_display[con].var, &par, info2)))  in fbgen_get_fix()
76 int fbgen_get_var(struct fb_var_screeninfo *var, int con, struct fb_info *info) in fbgen_get_var() argument
84 fbhw->encode_var(var, &par, info2); in fbgen_get_var()
86 *var = fb_display[con].var; in fbgen_get_var()
104 int fbgen_set_var(struct fb_var_screeninfo *var, int con, struct fb_info *info) in fbgen_set_var() argument
111 if ((err = fbgen_do_set_var(var, con == currcon, info2))) in fbgen_set_var()
113 if ((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) { in fbgen_set_var()
114 oldxres = fb_display[con].var.xres; in fbgen_set_var()
115 oldyres = fb_display[con].var.yres; in fbgen_set_var()
116 oldxres_virtual = fb_display[con].var.xres_virtual; in fbgen_set_var()
117 oldyres_virtual = fb_display[con].var.yres_virtual; in fbgen_set_var()
118 oldbpp = fb_display[con].var.bits_per_pixel; in fbgen_set_var()
119 oldred = fb_display[con].var.red; in fbgen_set_var()
120 oldgreen = fb_display[con].var.green; in fbgen_set_var()
121 oldblue = fb_display[con].var.blue; in fbgen_set_var()
122 oldyoffset = fb_display[con].var.yoffset; in fbgen_set_var()
123 fb_display[con].var = *var; in fbgen_set_var()
124 if (oldxres != var->xres || oldyres != var->yres || in fbgen_set_var()
125 oldxres_virtual != var->xres_virtual || in fbgen_set_var()
126 oldyres_virtual != var->yres_virtual || in fbgen_set_var()
127 oldbpp != var->bits_per_pixel || in fbgen_set_var()
128 (!(memcmp(&oldred, &(var->red), sizeof(struct fb_bitfield)))) || in fbgen_set_var()
129 (!(memcmp(&oldgreen, &(var->green), sizeof(struct fb_bitfield)))) || in fbgen_set_var()
130 (!(memcmp(&oldblue, &(var->blue), sizeof(struct fb_bitfield)))) || in fbgen_set_var()
131 oldyoffset != var->yoffset) { in fbgen_set_var()
140 var->activate = 0; in fbgen_set_var()
171 int size = fb_display[con].var.bits_per_pixel == 16 ? 64 : 256; in fbgen_get_cmap()
200 int size = fb_display[con].var.bits_per_pixel == 16 ? 64 : 256; in fbgen_set_cmap()
227 int fbgen_pan_display(struct fb_var_screeninfo *var, int con, in fbgen_pan_display() argument
232 int xoffset = var->xoffset; in fbgen_pan_display()
233 int yoffset = var->yoffset; in fbgen_pan_display()
237 xoffset+fb_display[con].var.xres > fb_display[con].var.xres_virtual || in fbgen_pan_display()
239 yoffset+fb_display[con].var.yres > fb_display[con].var.yres_virtual) in fbgen_pan_display()
243 if ((err = fbhw->pan_display(var, info2))) in fbgen_pan_display()
248 fb_display[con].var.xoffset = var->xoffset; in fbgen_pan_display()
249 fb_display[con].var.yoffset = var->yoffset; in fbgen_pan_display()
250 if (var->vmode & FB_VMODE_YWRAP) in fbgen_pan_display()
251 fb_display[con].var.vmode |= FB_VMODE_YWRAP; in fbgen_pan_display()
253 fb_display[con].var.vmode &= ~FB_VMODE_YWRAP; in fbgen_pan_display()
275 int fbgen_do_set_var(struct fb_var_screeninfo *var, int isactive, in fbgen_do_set_var() argument
282 if ((err = fbhw->decode_var(var, &par, info))) in fbgen_do_set_var()
284 activate = var->activate; in fbgen_do_set_var()
285 if (((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) && isactive) in fbgen_do_set_var()
287 fbhw->encode_var(var, &par, info); in fbgen_do_set_var()
288 var->activate = activate; in fbgen_do_set_var()
317 fbhw->decode_var(&fb_display[con].var, &par, info); in fbgen_set_disp()
359 int size = fb_display[con].var.bits_per_pixel == 16 ? 64 : 256; in fbgen_install_cmap()
385 if ((err = fbhw->pan_display(&fb_display[con].var, info2))) in fbgen_update_var()
412 fbgen_do_set_var(&fb_display[con].var, 1, info2); in fbgen_switch()