Lines Matching refs:mode
35 struct drm_display_mode *mode; in tmd_vid_get_config_mode() local
40 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in tmd_vid_get_config_mode()
41 if (!mode) in tmd_vid_get_config_mode()
45 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode()
46 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in tmd_vid_get_config_mode()
47 mode->hsync_start = mode->hdisplay + \ in tmd_vid_get_config_mode()
50 mode->hsync_end = mode->hsync_start + \ in tmd_vid_get_config_mode()
53 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode()
55 mode->vsync_start = \ in tmd_vid_get_config_mode()
56 mode->vdisplay + ((ti->vsync_offset_hi << 8) | \ in tmd_vid_get_config_mode()
58 mode->vsync_end = \ in tmd_vid_get_config_mode()
59 mode->vsync_start + ((ti->vsync_pulse_width_hi << 8) | \ in tmd_vid_get_config_mode()
61 mode->vtotal = mode->vdisplay + \ in tmd_vid_get_config_mode()
63 mode->clock = ti->pixel_clock * 10; in tmd_vid_get_config_mode()
65 dev_dbg(dev->dev, "hdisplay is %d\n", mode->hdisplay); in tmd_vid_get_config_mode()
66 dev_dbg(dev->dev, "vdisplay is %d\n", mode->vdisplay); in tmd_vid_get_config_mode()
67 dev_dbg(dev->dev, "HSS is %d\n", mode->hsync_start); in tmd_vid_get_config_mode()
68 dev_dbg(dev->dev, "HSE is %d\n", mode->hsync_end); in tmd_vid_get_config_mode()
69 dev_dbg(dev->dev, "htotal is %d\n", mode->htotal); in tmd_vid_get_config_mode()
70 dev_dbg(dev->dev, "VSS is %d\n", mode->vsync_start); in tmd_vid_get_config_mode()
71 dev_dbg(dev->dev, "VSE is %d\n", mode->vsync_end); in tmd_vid_get_config_mode()
72 dev_dbg(dev->dev, "vtotal is %d\n", mode->vtotal); in tmd_vid_get_config_mode()
73 dev_dbg(dev->dev, "clock is %d\n", mode->clock); in tmd_vid_get_config_mode()
75 mode->hdisplay = 480; in tmd_vid_get_config_mode()
76 mode->vdisplay = 854; in tmd_vid_get_config_mode()
77 mode->hsync_start = 487; in tmd_vid_get_config_mode()
78 mode->hsync_end = 490; in tmd_vid_get_config_mode()
79 mode->htotal = 499; in tmd_vid_get_config_mode()
80 mode->vsync_start = 861; in tmd_vid_get_config_mode()
81 mode->vsync_end = 865; in tmd_vid_get_config_mode()
82 mode->vtotal = 873; in tmd_vid_get_config_mode()
83 mode->clock = 33264; in tmd_vid_get_config_mode()
86 drm_mode_set_name(mode); in tmd_vid_get_config_mode()
87 drm_mode_set_crtcinfo(mode, 0); in tmd_vid_get_config_mode()
89 mode->type |= DRM_MODE_TYPE_PREFERRED; in tmd_vid_get_config_mode()
91 return mode; in tmd_vid_get_config_mode()