Lines Matching refs:var
68 static int hitfb_encode_var(struct fb_var_screeninfo *var, const void *fb_par,
135 static int hitfb_decode_var(const struct fb_var_screeninfo *var, void *fb_par, in hitfb_decode_var() argument
140 par->x = var->xres; in hitfb_decode_var()
141 par->y = var->yres; in hitfb_decode_var()
142 par->bpp = var->bits_per_pixel; in hitfb_decode_var()
147 static int hitfb_encode_var(struct fb_var_screeninfo *var, const void *fb_par, in hitfb_encode_var() argument
152 memset(var, 0, sizeof(*var)); in hitfb_encode_var()
154 var->xres = par->x; in hitfb_encode_var()
155 var->yres = par->y; in hitfb_encode_var()
156 var->xres_virtual = var->xres; in hitfb_encode_var()
157 var->yres_virtual = var->yres; in hitfb_encode_var()
158 var->xoffset = 0; in hitfb_encode_var()
159 var->yoffset = 0; in hitfb_encode_var()
160 var->bits_per_pixel = par->bpp; in hitfb_encode_var()
161 var->grayscale = 0; in hitfb_encode_var()
162 var->transp.offset = 0; in hitfb_encode_var()
163 var->transp.length = 0; in hitfb_encode_var()
164 var->transp.msb_right = 0; in hitfb_encode_var()
165 var->nonstd = 0; in hitfb_encode_var()
166 var->activate = 0; in hitfb_encode_var()
167 var->height = -1; in hitfb_encode_var()
168 var->width = -1; in hitfb_encode_var()
169 var->vmode = FB_VMODE_NONINTERLACED; in hitfb_encode_var()
170 var->pixclock = 0; in hitfb_encode_var()
171 var->sync = 0; in hitfb_encode_var()
172 var->left_margin = 0; in hitfb_encode_var()
173 var->right_margin = 0; in hitfb_encode_var()
174 var->upper_margin = 0; in hitfb_encode_var()
175 var->lower_margin = 0; in hitfb_encode_var()
176 var->hsync_len = 0; in hitfb_encode_var()
177 var->vsync_len = 0; in hitfb_encode_var()
179 switch (var->bits_per_pixel) { in hitfb_encode_var()
182 var->red.offset = 0; in hitfb_encode_var()
183 var->red.length = 8; in hitfb_encode_var()
184 var->green.offset = 0; in hitfb_encode_var()
185 var->green.length = 8; in hitfb_encode_var()
186 var->blue.offset = 0; in hitfb_encode_var()
187 var->blue.length = 8; in hitfb_encode_var()
188 var->transp.offset = 0; in hitfb_encode_var()
189 var->transp.length = 0; in hitfb_encode_var()
193 var->red.offset = 11; in hitfb_encode_var()
194 var->red.length = 5; in hitfb_encode_var()
195 var->green.offset = 5; in hitfb_encode_var()
196 var->green.length = 6; in hitfb_encode_var()
197 var->blue.offset = 0; in hitfb_encode_var()
198 var->blue.length = 5; in hitfb_encode_var()
199 var->transp.offset = 0; in hitfb_encode_var()
200 var->transp.length = 0; in hitfb_encode_var()
204 var->red.msb_right = 0; in hitfb_encode_var()
205 var->green.msb_right = 0; in hitfb_encode_var()
206 var->blue.msb_right = 0; in hitfb_encode_var()
207 var->transp.msb_right = 0; in hitfb_encode_var()
273 static int hitfb_pan_display(const struct fb_var_screeninfo *var, in hitfb_pan_display() argument
359 fbgen_get_var(&fb_info.disp.var, -1, &fb_info.gen.info); in hitfb_init()
360 fb_info.disp.var.activate = FB_ACTIVATE_NOW; in hitfb_init()
361 fbgen_do_set_var(&fb_info.disp.var, 1, &fb_info.gen); in hitfb_init()