Lines Matching defs:tidss
28 struct tidss_device *tidss = to_tidss(ddev);
32 tidss_runtime_get(tidss);
43 tidss_runtime_put(tidss);
106 static int tidss_dispc_modeset_init(struct tidss_device *tidss)
108 struct device *dev = tidss->dev;
110 const u32 *fourccs = dispc_plane_formats(tidss->dispc, &fourccs_len);
119 const struct dispc_features *feat = tidss->feat;
196 u32 hw_plane_id = feat->vid_order[tidss->num_planes];
199 tplane = tidss_plane_create(tidss, hw_plane_id,
203 dev_err(tidss->dev, "plane create failed\n");
207 tidss->planes[tidss->num_planes++] = &tplane->plane;
209 tcrtc = tidss_crtc_create(tidss, pipes[i].hw_videoport,
212 dev_err(tidss->dev, "crtc create failed\n");
216 tidss->crtcs[tidss->num_crtcs++] = &tcrtc->crtc;
218 enc = tidss_encoder_create(tidss, pipes[i].enc_type,
221 dev_err(tidss->dev, "encoder create failed\n");
227 dev_err(tidss->dev, "bridge attach failed: %d\n", ret);
234 while (tidss->num_planes < max_planes) {
236 u32 hw_plane_id = feat->vid_order[tidss->num_planes];
238 tplane = tidss_plane_create(tidss, hw_plane_id,
243 dev_err(tidss->dev, "plane create failed\n");
247 tidss->planes[tidss->num_planes++] = &tplane->plane;
253 int tidss_modeset_init(struct tidss_device *tidss)
255 struct drm_device *ddev = &tidss->ddev;
258 dev_dbg(tidss->dev, "%s\n", __func__);
272 ret = tidss_dispc_modeset_init(tidss);
276 ret = drm_vblank_init(ddev, tidss->num_crtcs);
282 dev_dbg(tidss->dev, "%s done\n", __func__);