Lines Matching refs:var
96 static void pmagbafb_encode_var(struct fb_var_screeninfo *var, in pmagbafb_encode_var() argument
100 var->xres = 1024; in pmagbafb_encode_var()
101 var->yres = 864; in pmagbafb_encode_var()
102 var->xres_virtual = 1024; in pmagbafb_encode_var()
103 var->yres_virtual = 864; in pmagbafb_encode_var()
104 var->xoffset = 0; in pmagbafb_encode_var()
105 var->yoffset = 0; in pmagbafb_encode_var()
106 var->bits_per_pixel = 8; in pmagbafb_encode_var()
107 var->grayscale = 0; in pmagbafb_encode_var()
108 var->red.offset = 0; in pmagbafb_encode_var()
109 var->red.length = 8; in pmagbafb_encode_var()
110 var->red.msb_right = 0; in pmagbafb_encode_var()
111 var->green.offset = 0; in pmagbafb_encode_var()
112 var->green.length = 8; in pmagbafb_encode_var()
113 var->green.msb_right = 0; in pmagbafb_encode_var()
114 var->blue.offset = 0; in pmagbafb_encode_var()
115 var->blue.length = 8; in pmagbafb_encode_var()
116 var->blue.msb_right = 0; in pmagbafb_encode_var()
117 var->transp.offset = 0; in pmagbafb_encode_var()
118 var->transp.length = 0; in pmagbafb_encode_var()
119 var->transp.msb_right = 0; in pmagbafb_encode_var()
120 var->nonstd = 0; in pmagbafb_encode_var()
121 var->activate = 1; in pmagbafb_encode_var()
122 var->height = -1; in pmagbafb_encode_var()
123 var->width = -1; in pmagbafb_encode_var()
124 var->vmode = FB_VMODE_NONINTERLACED; in pmagbafb_encode_var()
125 var->pixclock = 0; in pmagbafb_encode_var()
126 var->sync = 0; in pmagbafb_encode_var()
127 var->left_margin = 0; in pmagbafb_encode_var()
128 var->right_margin = 0; in pmagbafb_encode_var()
129 var->upper_margin = 0; in pmagbafb_encode_var()
130 var->lower_margin = 0; in pmagbafb_encode_var()
131 var->hsync_len = 0; in pmagbafb_encode_var()
132 var->vsync_len = 0; in pmagbafb_encode_var()
133 for (i = 0; i < arraysize(var->reserved); i++) in pmagbafb_encode_var()
134 var->reserved[i] = 0; in pmagbafb_encode_var()
147 static int pmagba_do_fb_set_var(struct fb_var_screeninfo *var, in pmagba_do_fb_set_var() argument
153 pmagbafb_encode_var(var, &par); in pmagba_do_fb_set_var()
231 static int pmagbafb_get_var(struct fb_var_screeninfo *var, int con, in pmagbafb_get_var() argument
237 pmagbafb_encode_var(var, &par); in pmagbafb_get_var()
239 *var = fb_display[con].var; in pmagbafb_get_var()
244 static int pmagbafb_set_var(struct fb_var_screeninfo *var, int con, in pmagbafb_set_var() argument
249 if ((err = pmagba_do_fb_set_var(var, 1))) in pmagbafb_set_var()
292 pmagba_do_fb_set_var(&fb_display[con].var, 1); in pmagbafb_switch()
407 pmagbafb_get_var(&disp.var, -1, (struct fb_info *) ip); in pmagbafb_init_one()