Lines Matching refs:tidss
25 struct tidss_device *tidss = to_tidss(ddev);
29 tidss_runtime_get(tidss);
40 tidss_runtime_put(tidss);
103 static int tidss_dispc_modeset_init(struct tidss_device *tidss)
105 struct device *dev = tidss->dev;
107 const u32 *fourccs = dispc_plane_formats(tidss->dispc, &fourccs_len);
116 const struct dispc_features *feat = tidss->feat;
191 u32 hw_plane_id = feat->vid_order[tidss->num_planes];
194 tplane = tidss_plane_create(tidss, hw_plane_id,
198 dev_err(tidss->dev, "plane create failed\n");
202 tidss->planes[tidss->num_planes++] = &tplane->plane;
204 tcrtc = tidss_crtc_create(tidss, pipes[i].hw_videoport,
207 dev_err(tidss->dev, "crtc create failed\n");
211 tidss->crtcs[tidss->num_crtcs++] = &tcrtc->crtc;
213 ret = tidss_encoder_create(tidss, pipes[i].bridge,
217 dev_err(tidss->dev, "encoder create failed\n");
224 while (tidss->num_planes < max_planes) {
226 u32 hw_plane_id = feat->vid_order[tidss->num_planes];
228 tplane = tidss_plane_create(tidss, hw_plane_id,
233 dev_err(tidss->dev, "plane create failed\n");
237 tidss->planes[tidss->num_planes++] = &tplane->plane;
243 int tidss_modeset_init(struct tidss_device *tidss)
245 struct drm_device *ddev = &tidss->ddev;
248 dev_dbg(tidss->dev, "%s\n", __func__);
262 ret = tidss_dispc_modeset_init(tidss);
266 ret = drm_vblank_init(ddev, tidss->num_crtcs);
272 dev_dbg(tidss->dev, "%s done\n", __func__);