Lines Matching refs:kcrtc
52 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_atomic_check() local
60 err = komeda_build_display_data_flow(kcrtc, kcrtc_st); in komeda_crtc_atomic_check()
66 err = komeda_release_unclaimed_resources(kcrtc->slave, kcrtc_st); in komeda_crtc_atomic_check()
70 err = komeda_release_unclaimed_resources(kcrtc->master, kcrtc_st); in komeda_crtc_atomic_check()
82 komeda_crtc_prepare(struct komeda_crtc *kcrtc) in komeda_crtc_prepare() argument
84 struct komeda_dev *mdev = kcrtc->base.dev->dev_private; in komeda_crtc_prepare()
85 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_prepare()
86 struct komeda_crtc_state *kcrtc_st = to_kcrtc_st(kcrtc->base.state); in komeda_crtc_prepare()
135 komeda_crtc_unprepare(struct komeda_crtc *kcrtc) in komeda_crtc_unprepare() argument
137 struct komeda_dev *mdev = kcrtc->base.dev->dev_private; in komeda_crtc_unprepare()
138 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_unprepare()
170 void komeda_crtc_handle_event(struct komeda_crtc *kcrtc, in komeda_crtc_handle_event() argument
173 struct drm_crtc *crtc = &kcrtc->base; in komeda_crtc_handle_event()
174 u32 events = evts->pipes[kcrtc->master->id]; in komeda_crtc_handle_event()
180 struct komeda_wb_connector *wb_conn = kcrtc->wb_conn; in komeda_crtc_handle_event()
186 drm_crtc_index(&kcrtc->base)); in komeda_crtc_handle_event()
197 if (kcrtc->disable_done) { in komeda_crtc_handle_event()
198 complete_all(kcrtc->disable_done); in komeda_crtc_handle_event()
199 kcrtc->disable_done = NULL; in komeda_crtc_handle_event()
210 drm_crtc_index(&kcrtc->base)); in komeda_crtc_handle_event()
220 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_do_flush() local
222 struct komeda_dev *mdev = kcrtc->base.dev->dev_private; in komeda_crtc_do_flush()
223 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_do_flush()
224 struct komeda_pipeline *slave = kcrtc->slave; in komeda_crtc_do_flush()
225 struct komeda_wb_connector *wb_conn = kcrtc->wb_conn; in komeda_crtc_do_flush()
260 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_atomic_disable() local
263 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_atomic_disable()
264 struct komeda_pipeline *slave = kcrtc->slave; in komeda_crtc_atomic_disable()
303 kcrtc->disable_done = &temp; in komeda_crtc_atomic_disable()
312 DRM_ERROR("disable pipeline%d timeout.\n", kcrtc->master->id); in komeda_crtc_atomic_disable()
317 kcrtc->disable_done = NULL; in komeda_crtc_atomic_disable()
323 komeda_crtc_unprepare(kcrtc); in komeda_crtc_atomic_disable()
339 komeda_calc_min_aclk_rate(struct komeda_crtc *kcrtc, in komeda_calc_min_aclk_rate() argument
345 if (kcrtc->master->dual_link) in komeda_calc_min_aclk_rate()
368 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_mode_valid() local
369 struct komeda_pipeline *master = kcrtc->master; in komeda_crtc_mode_valid()
400 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_mode_fixup() local
405 if (kcrtc->master->dual_link) { in komeda_crtc_mode_fixup()
415 adjusted_mode->crtc_clock = clk_round_rate(kcrtc->master->pxlclk, in komeda_crtc_mode_fixup()
476 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_vblank_enable() local
478 mdev->funcs->on_off_vblank(mdev, kcrtc->master->id, true); in komeda_crtc_vblank_enable()
485 struct komeda_crtc *kcrtc = to_kcrtc(crtc); in komeda_crtc_vblank_disable() local
487 mdev->funcs->on_off_vblank(mdev, kcrtc->master->id, false); in komeda_crtc_vblank_disable()
553 struct komeda_crtc *kcrtc) in komeda_crtc_add() argument
555 struct drm_crtc *crtc = &kcrtc->base; in komeda_crtc_add()
559 get_crtc_primary(kms, kcrtc), NULL, in komeda_crtc_add()
567 crtc->port = kcrtc->master->of_output_port; in komeda_crtc_add()