Lines Matching refs:crtc

494 	crtc_state = drm_atomic_get_crtc_state(state->state, state->crtc);  in tegra_plane_state_add()
511 struct tegra_dc *dc = to_tegra_dc(state->crtc); in tegra_plane_atomic_check()
515 if (!state->crtc) in tegra_plane_atomic_check()
556 struct tegra_dc *dc = to_tegra_dc(plane->state->crtc); in tegra_plane_atomic_update()
563 if (!plane->state->crtc || !plane->state->fb) in tegra_plane_atomic_update()
602 if (!old_state || !old_state->crtc) in tegra_plane_atomic_disable()
605 dc = to_tegra_dc(old_state->crtc); in tegra_plane_atomic_disable()
679 if (!state->crtc) in tegra_cursor_atomic_check()
706 struct tegra_dc *dc = to_tegra_dc(plane->state->crtc); in tegra_cursor_atomic_update()
711 if (!plane->state->crtc || !plane->state->fb) in tegra_cursor_atomic_update()
772 if (!old_state || !old_state->crtc) in tegra_cursor_atomic_disable()
775 dc = to_tegra_dc(old_state->crtc); in tegra_cursor_atomic_disable()
949 struct drm_crtc *crtc = &dc->base; in tegra_dc_finish_page_flip() local
960 bo = tegra_fb_get_plane(crtc->primary->fb, 0); in tegra_dc_finish_page_flip()
972 if (base == bo->paddr + crtc->primary->fb->offsets[0]) { in tegra_dc_finish_page_flip()
973 drm_crtc_send_vblank_event(crtc, dc->event); in tegra_dc_finish_page_flip()
974 drm_crtc_vblank_put(crtc); in tegra_dc_finish_page_flip()
981 void tegra_dc_cancel_page_flip(struct drm_crtc *crtc, struct drm_file *file) in tegra_dc_cancel_page_flip() argument
983 struct tegra_dc *dc = to_tegra_dc(crtc); in tegra_dc_cancel_page_flip()
984 struct drm_device *drm = crtc->dev; in tegra_dc_cancel_page_flip()
991 drm_crtc_vblank_put(crtc); in tegra_dc_cancel_page_flip()
998 static void tegra_dc_destroy(struct drm_crtc *crtc) in tegra_dc_destroy() argument
1000 drm_crtc_cleanup(crtc); in tegra_dc_destroy()
1003 static void tegra_crtc_reset(struct drm_crtc *crtc) in tegra_crtc_reset() argument
1007 if (crtc->state) in tegra_crtc_reset()
1008 __drm_atomic_helper_crtc_destroy_state(crtc, crtc->state); in tegra_crtc_reset()
1010 kfree(crtc->state); in tegra_crtc_reset()
1011 crtc->state = NULL; in tegra_crtc_reset()
1015 crtc->state = &state->base; in tegra_crtc_reset()
1016 crtc->state->crtc = crtc; in tegra_crtc_reset()
1021 tegra_crtc_atomic_duplicate_state(struct drm_crtc *crtc) in tegra_crtc_atomic_duplicate_state() argument
1023 struct tegra_dc_state *state = to_dc_state(crtc->state); in tegra_crtc_atomic_duplicate_state()
1030 __drm_atomic_helper_crtc_duplicate_state(crtc, &copy->base); in tegra_crtc_atomic_duplicate_state()
1039 static void tegra_crtc_atomic_destroy_state(struct drm_crtc *crtc, in tegra_crtc_atomic_destroy_state() argument
1042 __drm_atomic_helper_crtc_destroy_state(crtc, state); in tegra_crtc_atomic_destroy_state()
1091 static void tegra_crtc_disable(struct drm_crtc *crtc) in tegra_crtc_disable() argument
1093 struct tegra_dc *dc = to_tegra_dc(crtc); in tegra_crtc_disable()
1129 drm_crtc_vblank_off(crtc); in tegra_crtc_disable()
1132 static bool tegra_crtc_mode_fixup(struct drm_crtc *crtc, in tegra_crtc_mode_fixup() argument
1232 static void tegra_crtc_mode_set_nofb(struct drm_crtc *crtc) in tegra_crtc_mode_set_nofb() argument
1234 struct drm_display_mode *mode = &crtc->state->adjusted_mode; in tegra_crtc_mode_set_nofb()
1235 struct tegra_dc_state *state = to_dc_state(crtc->state); in tegra_crtc_mode_set_nofb()
1236 struct tegra_dc *dc = to_tegra_dc(crtc); in tegra_crtc_mode_set_nofb()
1264 static void tegra_crtc_prepare(struct drm_crtc *crtc) in tegra_crtc_prepare() argument
1266 drm_crtc_vblank_off(crtc); in tegra_crtc_prepare()
1269 static void tegra_crtc_commit(struct drm_crtc *crtc) in tegra_crtc_commit() argument
1271 drm_crtc_vblank_on(crtc); in tegra_crtc_commit()
1274 static int tegra_crtc_atomic_check(struct drm_crtc *crtc, in tegra_crtc_atomic_check() argument
1280 static void tegra_crtc_atomic_begin(struct drm_crtc *crtc) in tegra_crtc_atomic_begin() argument
1282 struct tegra_dc *dc = to_tegra_dc(crtc); in tegra_crtc_atomic_begin()
1284 if (crtc->state->event) { in tegra_crtc_atomic_begin()
1285 crtc->state->event->pipe = drm_crtc_index(crtc); in tegra_crtc_atomic_begin()
1287 WARN_ON(drm_crtc_vblank_get(crtc) != 0); in tegra_crtc_atomic_begin()
1289 dc->event = crtc->state->event; in tegra_crtc_atomic_begin()
1290 crtc->state->event = NULL; in tegra_crtc_atomic_begin()
1294 static void tegra_crtc_atomic_flush(struct drm_crtc *crtc) in tegra_crtc_atomic_flush() argument
1296 struct tegra_dc_state *state = to_dc_state(crtc->state); in tegra_crtc_atomic_flush()
1297 struct tegra_dc *dc = to_tegra_dc(crtc); in tegra_crtc_atomic_flush()