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