Lines Matching refs:kcrtc
79 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_atomic_check() local
87 err = komeda_build_display_data_flow(kcrtc, kcrtc_st); in komeda_crtc_atomic_check()
93 err = komeda_release_unclaimed_resources(kcrtc->slave, kcrtc_st); in komeda_crtc_atomic_check()
97 err = komeda_release_unclaimed_resources(kcrtc->master, kcrtc_st); in komeda_crtc_atomic_check()
109 komeda_crtc_prepare(struct komeda_crtc *kcrtc) in komeda_crtc_prepare() argument
111 struct komeda_dev *mdev = kcrtc->base.dev->dev_private; in komeda_crtc_prepare()
112 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_prepare()
113 struct komeda_crtc_state *kcrtc_st = to_kcrtc_st(kcrtc->base.state); in komeda_crtc_prepare()
162 komeda_crtc_unprepare(struct komeda_crtc *kcrtc) in komeda_crtc_unprepare() argument
164 struct komeda_dev *mdev = kcrtc->base.dev->dev_private; in komeda_crtc_unprepare()
165 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_unprepare()
197 void komeda_crtc_handle_event(struct komeda_crtc *kcrtc, in komeda_crtc_handle_event() argument
200 struct drm_crtc *crtc = &kcrtc->base; in komeda_crtc_handle_event()
201 u32 events = evts->pipes[kcrtc->master->id]; in komeda_crtc_handle_event()
207 struct komeda_wb_connector *wb_conn = kcrtc->wb_conn; in komeda_crtc_handle_event()
213 drm_crtc_index(&kcrtc->base)); in komeda_crtc_handle_event()
224 if (kcrtc->disable_done) { in komeda_crtc_handle_event()
225 complete_all(kcrtc->disable_done); in komeda_crtc_handle_event()
226 kcrtc->disable_done = NULL; in komeda_crtc_handle_event()
237 drm_crtc_index(&kcrtc->base)); in komeda_crtc_handle_event()
247 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_do_flush() local
249 struct komeda_dev *mdev = kcrtc->base.dev->dev_private; in komeda_crtc_do_flush()
250 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_do_flush()
251 struct komeda_pipeline *slave = kcrtc->slave; in komeda_crtc_do_flush()
252 struct komeda_wb_connector *wb_conn = kcrtc->wb_conn; in komeda_crtc_do_flush()
286 komeda_crtc_flush_and_wait_for_flip_done(struct komeda_crtc *kcrtc, in komeda_crtc_flush_and_wait_for_flip_done() argument
289 struct drm_device *drm = kcrtc->base.dev; in komeda_crtc_flush_and_wait_for_flip_done()
290 struct komeda_dev *mdev = kcrtc->master->mdev; in komeda_crtc_flush_and_wait_for_flip_done()
300 kcrtc->disable_done = &temp; in komeda_crtc_flush_and_wait_for_flip_done()
304 mdev->funcs->flush(mdev, kcrtc->master->id, 0); in komeda_crtc_flush_and_wait_for_flip_done()
309 DRM_ERROR("wait pipe%d flip done timeout\n", kcrtc->master->id); in komeda_crtc_flush_and_wait_for_flip_done()
314 kcrtc->disable_done = NULL; in komeda_crtc_flush_and_wait_for_flip_done()
324 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_atomic_disable() local
326 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_atomic_disable()
327 struct komeda_pipeline *slave = kcrtc->slave; in komeda_crtc_atomic_disable()
362 komeda_crtc_flush_and_wait_for_flip_done(kcrtc, disable_done); in komeda_crtc_atomic_disable()
366 komeda_pipeline_disable(kcrtc->master, old->state); in komeda_crtc_atomic_disable()
371 komeda_crtc_flush_and_wait_for_flip_done(kcrtc, disable_done); in komeda_crtc_atomic_disable()
376 komeda_crtc_unprepare(kcrtc); in komeda_crtc_atomic_disable()
393 komeda_calc_min_aclk_rate(struct komeda_crtc *kcrtc, in komeda_calc_min_aclk_rate() argument
399 if (kcrtc->master->dual_link) in komeda_calc_min_aclk_rate()
422 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_mode_valid() local
423 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_mode_valid()
454 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_mode_fixup() local
459 if (kcrtc->master->dual_link) { in komeda_crtc_mode_fixup()
469 adjusted_mode->crtc_clock = clk_round_rate(kcrtc->master->pxlclk, in komeda_crtc_mode_fixup()
528 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_vblank_enable() local
530 mdev->funcs->on_off_vblank(mdev, kcrtc->master->id, true); in komeda_crtc_vblank_enable()
537 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_vblank_disable() local
539 mdev->funcs->on_off_vblank(mdev, kcrtc->master->id, false); in komeda_crtc_vblank_disable()
605 struct komeda_crtc *kcrtc) in komeda_crtc_add() argument
607 struct drm_crtc *crtc = &kcrtc->base; in komeda_crtc_add()
611 get_crtc_primary(kms, kcrtc), NULL, in komeda_crtc_add()
618 crtc->port = kcrtc->master->of_output_port; in komeda_crtc_add()