Lines Matching refs:drm_crtc
311 dc_setup_clk(struct dc_softc *sc, struct drm_crtc *crtc, in dc_setup_clk()
501 dc_plane_update(struct drm_plane *drm_plane, struct drm_crtc *drm_crtc, in dc_plane_update() argument
515 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_plane_update()
554 crtc = container_of(drm_plane->crtc, struct tegra_crtc, drm_crtc); in dc_plane_disable()
596 dc_crtc_dpms(struct drm_crtc *crtc, int mode) in dc_crtc_dpms()
602 dc_crtc_mode_fixup(struct drm_crtc *crtc, const struct drm_display_mode *mode, in dc_crtc_mode_fixup()
637 dc_crtc_mode_set(struct drm_crtc *drm_crtc, struct drm_display_mode *mode, in dc_crtc_mode_set() argument
648 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_crtc_mode_set()
650 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_crtc_mode_set()
655 rv = dc_setup_clk(sc, drm_crtc, mode, &div); in dc_crtc_mode_set()
701 drm_crtc->fb->pixel_format); in dc_crtc_mode_set()
712 dc_crtc_mode_set_base(struct drm_crtc *drm_crtc, int x, int y, in dc_crtc_mode_set_base() argument
720 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_crtc_mode_set_base()
721 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_crtc_mode_set_base()
733 dc_crtc_prepare(struct drm_crtc *drm_crtc) in dc_crtc_prepare() argument
740 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_crtc_prepare()
766 dc_crtc_commit(struct drm_crtc *drm_crtc) in dc_crtc_commit() argument
772 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_crtc_commit()
789 dc_crtc_load_lut(struct drm_crtc *crtc) in dc_crtc_load_lut()
806 drm_crtc_index(struct drm_crtc *crtc) in drm_crtc_index()
809 struct drm_crtc *tmp; in drm_crtc_index()
827 tegra_dc_get_pipe(struct drm_crtc *drm_crtc) in tegra_dc_get_pipe() argument
831 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in tegra_dc_get_pipe()
836 tegra_dc_enable_vblank(struct drm_crtc *drm_crtc) in tegra_dc_enable_vblank() argument
842 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in tegra_dc_enable_vblank()
853 tegra_dc_disable_vblank(struct drm_crtc *drm_crtc) in tegra_dc_disable_vblank() argument
859 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in tegra_dc_disable_vblank()
872 struct drm_crtc *drm_crtc; in dc_finish_page_flip() local
879 drm_crtc = &sc->tegra_crtc.drm_crtc; in dc_finish_page_flip()
880 drm = drm_crtc->dev; in dc_finish_page_flip()
881 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_finish_page_flip()
901 idx = drm_crtc_index(drm_crtc); in dc_finish_page_flip()
911 tegra_dc_cancel_page_flip(struct drm_crtc *drm_crtc, struct drm_file *file) in tegra_dc_cancel_page_flip() argument
917 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in tegra_dc_cancel_page_flip()
919 drm = drm_crtc->dev; in tegra_dc_cancel_page_flip()
924 drm_vblank_put(drm, drm_crtc_index(drm_crtc)); in tegra_dc_cancel_page_flip()
936 dc_page_flip(struct drm_crtc *drm_crtc, struct drm_framebuffer *drm_fb, in dc_page_flip() argument
944 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_page_flip()
946 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_page_flip()
947 drm = drm_crtc->dev; in dc_page_flip()
958 dc_set_base(sc, drm_crtc->x, drm_crtc->y, fb); in dc_page_flip()
959 drm_crtc->fb = drm_fb; in dc_page_flip()
968 dc_cursor_set(struct drm_crtc *drm_crtc, struct drm_file *file, in dc_cursor_set() argument
979 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_cursor_set()
1005 gem = drm_gem_object_lookup(drm_crtc->dev, file, handle); in dc_cursor_set()
1059 dc_cursor_move(struct drm_crtc *drm_crtc, int x, int y) in dc_cursor_move() argument
1064 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_cursor_move()
1075 dc_destroy(struct drm_crtc *crtc) in dc_destroy()
1182 drm_handle_vblank(sc->tegra_crtc.drm_crtc.dev, in dc_intr()
1199 drm_crtc_init(&drm->drm_dev, &sc->tegra_crtc.drm_crtc, &dc_crtc_funcs); in dc_init_client()
1200 drm_mode_crtc_set_gamma_size(&sc->tegra_crtc.drm_crtc, 256); in dc_init_client()
1201 drm_crtc_helper_add(&sc->tegra_crtc.drm_crtc, &dc_crtc_helper_funcs); in dc_init_client()