Lines Matching refs:vmode
626 struct fb_videomode *vmode) in mxsfb_restore_mode() argument
651 vmode->xres = TRANSFER_COUNT_GET_HCOUNT(transfer_count); in mxsfb_restore_mode()
652 vmode->yres = TRANSFER_COUNT_GET_VCOUNT(transfer_count); in mxsfb_restore_mode()
669 vmode->pixclock = KHZ2PICOS(clk_get_rate(host->clk) / 1000U); in mxsfb_restore_mode()
670 vmode->hsync_len = get_hsync_pulse_width(host, vdctrl2); in mxsfb_restore_mode()
671 vmode->left_margin = GET_HOR_WAIT_CNT(vdctrl3) - vmode->hsync_len; in mxsfb_restore_mode()
672 vmode->right_margin = VDCTRL2_GET_HSYNC_PERIOD(vdctrl2) - in mxsfb_restore_mode()
673 vmode->hsync_len - vmode->left_margin - vmode->xres; in mxsfb_restore_mode()
674 vmode->vsync_len = VDCTRL0_GET_VSYNC_PULSE_WIDTH(vdctrl0); in mxsfb_restore_mode()
676 vmode->upper_margin = GET_VERT_WAIT_CNT(vdctrl3) - vmode->vsync_len; in mxsfb_restore_mode()
677 vmode->lower_margin = period - vmode->vsync_len - in mxsfb_restore_mode()
678 vmode->upper_margin - vmode->yres; in mxsfb_restore_mode()
680 vmode->vmode = FB_VMODE_NONINTERLACED; in mxsfb_restore_mode()
682 vmode->sync = 0; in mxsfb_restore_mode()
684 vmode->sync |= FB_SYNC_HOR_HIGH_ACT; in mxsfb_restore_mode()
686 vmode->sync |= FB_SYNC_VERT_HIGH_ACT; in mxsfb_restore_mode()
690 vmode->xres, vmode->yres, vmode->hsync_len, vmode->left_margin, in mxsfb_restore_mode()
691 vmode->right_margin, vmode->vsync_len, vmode->upper_margin, in mxsfb_restore_mode()
692 vmode->lower_margin); in mxsfb_restore_mode()
693 pr_debug("pixclk: %ldkHz\n", PICOS2KHZ(vmode->pixclock)); in mxsfb_restore_mode()
698 fb_info->fix.line_length = vmode->xres * (bits_per_pixel >> 3); in mxsfb_restore_mode()
701 fbsize = fb_info->fix.line_length * vmode->yres; in mxsfb_restore_mode()
730 struct fb_videomode *vmode) in mxsfb_init_fbinfo_dt() argument
785 ret = fb_videomode_from_videomode(&vm, vmode); in mxsfb_init_fbinfo_dt()
800 struct fb_videomode *vmode) in mxsfb_init_fbinfo() argument
817 ret = mxsfb_init_fbinfo_dt(host, vmode); in mxsfb_init_fbinfo()
824 var->vmode = FB_VMODE_NONINTERLACED; in mxsfb_init_fbinfo()
838 if (mxsfb_restore_mode(host, vmode)) in mxsfb_init_fbinfo()