Lines Matching refs:var

221 int mac_vmode_to_var(int vmode, int cmode, struct fb_var_screeninfo *var)  in mac_vmode_to_var()  argument
234 memset(var, 0, sizeof(struct fb_var_screeninfo)); in mac_vmode_to_var()
237 var->bits_per_pixel = 8; in mac_vmode_to_var()
238 var->red.offset = 0; in mac_vmode_to_var()
239 var->red.length = 8; in mac_vmode_to_var()
240 var->green.offset = 0; in mac_vmode_to_var()
241 var->green.length = 8; in mac_vmode_to_var()
242 var->blue.offset = 0; in mac_vmode_to_var()
243 var->blue.length = 8; in mac_vmode_to_var()
247 var->bits_per_pixel = 16; in mac_vmode_to_var()
248 var->red.offset = 10; in mac_vmode_to_var()
249 var->red.length = 5; in mac_vmode_to_var()
250 var->green.offset = 5; in mac_vmode_to_var()
251 var->green.length = 5; in mac_vmode_to_var()
252 var->blue.offset = 0; in mac_vmode_to_var()
253 var->blue.length = 5; in mac_vmode_to_var()
257 var->bits_per_pixel = 32; in mac_vmode_to_var()
258 var->red.offset = 16; in mac_vmode_to_var()
259 var->red.length = 8; in mac_vmode_to_var()
260 var->green.offset = 8; in mac_vmode_to_var()
261 var->green.length = 8; in mac_vmode_to_var()
262 var->blue.offset = 0; in mac_vmode_to_var()
263 var->blue.length = 8; in mac_vmode_to_var()
264 var->transp.offset = 24; in mac_vmode_to_var()
265 var->transp.length = 8; in mac_vmode_to_var()
271 var->xres = mode->xres; in mac_vmode_to_var()
272 var->yres = mode->yres; in mac_vmode_to_var()
273 var->xres_virtual = mode->xres; in mac_vmode_to_var()
274 var->yres_virtual = mode->yres; in mac_vmode_to_var()
275 var->height = -1; in mac_vmode_to_var()
276 var->width = -1; in mac_vmode_to_var()
277 var->pixclock = mode->pixclock; in mac_vmode_to_var()
278 var->left_margin = mode->left_margin; in mac_vmode_to_var()
279 var->right_margin = mode->right_margin; in mac_vmode_to_var()
280 var->upper_margin = mode->upper_margin; in mac_vmode_to_var()
281 var->lower_margin = mode->lower_margin; in mac_vmode_to_var()
282 var->hsync_len = mode->hsync_len; in mac_vmode_to_var()
283 var->vsync_len = mode->vsync_len; in mac_vmode_to_var()
284 var->sync = mode->sync; in mac_vmode_to_var()
285 var->vmode = mode->vmode; in mac_vmode_to_var()
303 int mac_var_to_vmode(const struct fb_var_screeninfo *var, int *vmode, in mac_var_to_vmode() argument
308 if (var->bits_per_pixel <= 8) in mac_var_to_vmode()
310 else if (var->bits_per_pixel <= 16) in mac_var_to_vmode()
312 else if (var->bits_per_pixel <= 32) in mac_var_to_vmode()
324 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode()
326 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres) in mac_var_to_vmode()
328 if (var->pixclock > mode->pixclock) in mac_var_to_vmode()
330 if ((var->vmode & FB_VMODE_MASK) != mode->vmode) in mac_var_to_vmode()
344 if (var->pixclock > mode->pixclock) in mac_var_to_vmode()
398 int mac_find_mode(struct fb_var_screeninfo *var, struct fb_info *info, in mac_find_mode() argument
409 return fb_find_mode(var, info, mode_option, db, dbsize, in mac_find_mode()