Lines Matching defs:crtc
28 static void arc_pgu_set_pxl_fmt(struct drm_crtc *crtc)
30 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
31 const struct drm_framebuffer *fb = crtc->primary->state->fb;
62 static enum drm_mode_status arc_pgu_crtc_mode_valid(struct drm_crtc *crtc,
65 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
76 static void arc_pgu_crtc_mode_set_nofb(struct drm_crtc *crtc)
78 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
79 struct drm_display_mode *m = &crtc->state->adjusted_mode;
113 arc_pgu_set_pxl_fmt(crtc);
118 static void arc_pgu_crtc_atomic_enable(struct drm_crtc *crtc,
121 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
129 static void arc_pgu_crtc_atomic_disable(struct drm_crtc *crtc,
132 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);
153 if (!plane->state->crtc || !plane->state->fb)
156 arcpgu = crtc_to_arcpgu_priv(plane->state->crtc);
213 ret = drm_crtc_init_with_planes(drm, &arcpgu->crtc, primary, NULL,
220 drm_crtc_helper_add(&arcpgu->crtc, &arc_pgu_crtc_helper_funcs);