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