Lines Matching refs:vmode
623 struct fb_videomode *vmode) in mxsfb_restore_mode() argument
648 vmode->xres = TRANSFER_COUNT_GET_HCOUNT(transfer_count); in mxsfb_restore_mode()
649 vmode->yres = TRANSFER_COUNT_GET_VCOUNT(transfer_count); in mxsfb_restore_mode()
666 vmode->pixclock = KHZ2PICOS(clk_get_rate(host->clk) / 1000U); in mxsfb_restore_mode()
667 vmode->hsync_len = get_hsync_pulse_width(host, vdctrl2); in mxsfb_restore_mode()
668 vmode->left_margin = GET_HOR_WAIT_CNT(vdctrl3) - vmode->hsync_len; in mxsfb_restore_mode()
669 vmode->right_margin = VDCTRL2_GET_HSYNC_PERIOD(vdctrl2) - in mxsfb_restore_mode()
670 vmode->hsync_len - vmode->left_margin - vmode->xres; in mxsfb_restore_mode()
671 vmode->vsync_len = VDCTRL0_GET_VSYNC_PULSE_WIDTH(vdctrl0); in mxsfb_restore_mode()
673 vmode->upper_margin = GET_VERT_WAIT_CNT(vdctrl3) - vmode->vsync_len; in mxsfb_restore_mode()
674 vmode->lower_margin = period - vmode->vsync_len - in mxsfb_restore_mode()
675 vmode->upper_margin - vmode->yres; in mxsfb_restore_mode()
677 vmode->vmode = FB_VMODE_NONINTERLACED; in mxsfb_restore_mode()
679 vmode->sync = 0; in mxsfb_restore_mode()
681 vmode->sync |= FB_SYNC_HOR_HIGH_ACT; in mxsfb_restore_mode()
683 vmode->sync |= FB_SYNC_VERT_HIGH_ACT; in mxsfb_restore_mode()
687 vmode->xres, vmode->yres, vmode->hsync_len, vmode->left_margin, in mxsfb_restore_mode()
688 vmode->right_margin, vmode->vsync_len, vmode->upper_margin, in mxsfb_restore_mode()
689 vmode->lower_margin); in mxsfb_restore_mode()
690 pr_debug("pixclk: %ldkHz\n", PICOS2KHZ(vmode->pixclock)); in mxsfb_restore_mode()
695 fb_info->fix.line_length = vmode->xres * (bits_per_pixel >> 3); in mxsfb_restore_mode()
698 fbsize = fb_info->fix.line_length * vmode->yres; in mxsfb_restore_mode()
727 struct fb_videomode *vmode) in mxsfb_init_fbinfo_dt() argument
782 ret = fb_videomode_from_videomode(&vm, vmode); in mxsfb_init_fbinfo_dt()
806 struct fb_videomode *vmode) in mxsfb_init_fbinfo() argument
824 ret = mxsfb_init_fbinfo_dt(fb_info, vmode); in mxsfb_init_fbinfo()
831 var->vmode = FB_VMODE_NONINTERLACED; in mxsfb_init_fbinfo()
843 if (mxsfb_restore_mode(fb_info, vmode)) in mxsfb_init_fbinfo()