Lines Matching refs:vmode

265 static int ps3fb_cmp_mode(const struct fb_videomode *vmode,  in ps3fb_cmp_mode()  argument
272 if (var->xres > vmode->xres || var->yres > vmode->yres || in ps3fb_cmp_mode()
273 var->pixclock > vmode->pixclock || in ps3fb_cmp_mode()
274 var->hsync_len > vmode->hsync_len || in ps3fb_cmp_mode()
275 var->vsync_len > vmode->vsync_len) in ps3fb_cmp_mode()
279 if ((var->vmode & FB_VMODE_MASK) != vmode->vmode) in ps3fb_cmp_mode()
287 left_margin = max(var->left_margin, vmode->left_margin); in ps3fb_cmp_mode()
288 right_margin = max(var->right_margin, vmode->right_margin); in ps3fb_cmp_mode()
289 upper_margin = max(var->upper_margin, vmode->upper_margin); in ps3fb_cmp_mode()
290 lower_margin = max(var->lower_margin, vmode->lower_margin); in ps3fb_cmp_mode()
293 dx = ((long)vmode->left_margin + (long)vmode->xres + in ps3fb_cmp_mode()
294 (long)vmode->right_margin) - in ps3fb_cmp_mode()
299 dy = ((long)vmode->upper_margin + (long)vmode->yres + in ps3fb_cmp_mode()
300 (long)vmode->lower_margin) - in ps3fb_cmp_mode()
310 return (vmode->xres - xres) * (vmode->yres - yres); in ps3fb_cmp_mode()
338 const struct fb_videomode *vmode; in ps3fb_find_mode() local
347 vmode = ps3fb_native_vmode(id); in ps3fb_find_mode()
348 diff = ps3fb_cmp_mode(vmode, var); in ps3fb_find_mode()
350 __func__, id, vmode->left_margin, vmode->xres, in ps3fb_find_mode()
351 vmode->right_margin, vmode->upper_margin, in ps3fb_find_mode()
352 vmode->yres, vmode->lower_margin, diff); in ps3fb_find_mode()
369 vmode = ps3fb_native_vmode(id); in ps3fb_find_mode()
371 *ddr_line_length = vmode->xres * BPP; in ps3fb_find_mode()
386 if (var->left_margin < vmode->left_margin) in ps3fb_find_mode()
387 var->left_margin = vmode->left_margin; in ps3fb_find_mode()
388 if (var->right_margin < vmode->right_margin) in ps3fb_find_mode()
389 var->right_margin = vmode->right_margin; in ps3fb_find_mode()
390 if (var->upper_margin < vmode->upper_margin) in ps3fb_find_mode()
391 var->upper_margin = vmode->upper_margin; in ps3fb_find_mode()
392 if (var->lower_margin < vmode->lower_margin) in ps3fb_find_mode()
393 var->lower_margin = vmode->lower_margin; in ps3fb_find_mode()
396 gap = ((long)vmode->left_margin + (long)vmode->xres + in ps3fb_find_mode()
397 (long)vmode->right_margin) - in ps3fb_find_mode()
407 gap = ((long)vmode->upper_margin + (long)vmode->yres + in ps3fb_find_mode()
408 (long)vmode->lower_margin) - in ps3fb_find_mode()
419 var->pixclock = vmode->pixclock; in ps3fb_find_mode()
420 var->hsync_len = vmode->hsync_len; in ps3fb_find_mode()
421 var->vsync_len = vmode->vsync_len; in ps3fb_find_mode()
422 var->sync = vmode->sync; in ps3fb_find_mode()
431 if (vmode->sync & FB_SYNC_BROADCAST) { in ps3fb_find_mode()
433 if (vmode->xres == var->xres && vmode->yres == var->yres) in ps3fb_find_mode()
608 const struct fb_videomode *vmode; in ps3fb_set_par() local
615 vmode = ps3fb_native_vmode(mode & PS3AV_MODE_MASK); in ps3fb_set_par()
622 par->ddr_frame_size = vmode->yres * ddr_line_length; in ps3fb_set_par()
635 ddr_xoff = info->var.left_margin - vmode->left_margin; in ps3fb_set_par()
636 ddr_yoff = info->var.upper_margin - vmode->upper_margin; in ps3fb_set_par()
656 lines = vmode->yres * par->num_frames; in ps3fb_set_par()
662 ps3fb_sync_image(info->device, 0, dst, 0, vmode->xres, l, in ps3fb_set_par()
810 const struct fb_videomode *vmode; in ps3fb_ioctl() local
823 vmode = ps3fb_vmode(val); in ps3fb_ioctl()
824 if (vmode) { in ps3fb_ioctl()
826 fb_videomode_to_var(&var, vmode); in ps3fb_ioctl()