Lines Matching refs:crtc
37 container_of(x, struct vmw_legacy_display_unit, base.crtc)
73 static void vmw_ldu_crtc_destroy(struct drm_crtc *crtc) in vmw_ldu_crtc_destroy() argument
75 vmw_ldu_destroy(vmw_crtc_to_ldu(crtc)); in vmw_ldu_crtc_destroy()
83 struct drm_crtc *crtc = NULL; in vmw_ldu_commit_list() local
92 crtc = &entry->base.crtc; in vmw_ldu_commit_list()
93 w = max(w, crtc->x + crtc->mode.hdisplay); in vmw_ldu_commit_list()
94 h = max(h, crtc->y + crtc->mode.vdisplay); in vmw_ldu_commit_list()
97 if (crtc == NULL) in vmw_ldu_commit_list()
99 fb = crtc->primary->state->fb; in vmw_ldu_commit_list()
108 fb = entry->base.crtc.primary->state->fb; in vmw_ldu_commit_list()
120 crtc = &entry->base.crtc; in vmw_ldu_commit_list()
124 vmw_write(dev_priv, SVGA_REG_DISPLAY_POSITION_X, crtc->x); in vmw_ldu_commit_list()
125 vmw_write(dev_priv, SVGA_REG_DISPLAY_POSITION_Y, crtc->y); in vmw_ldu_commit_list()
126 vmw_write(dev_priv, SVGA_REG_DISPLAY_WIDTH, crtc->mode.hdisplay); in vmw_ldu_commit_list()
127 vmw_write(dev_priv, SVGA_REG_DISPLAY_HEIGHT, crtc->mode.vdisplay); in vmw_ldu_commit_list()
240 static void vmw_ldu_crtc_mode_set_nofb(struct drm_crtc *crtc) in vmw_ldu_crtc_mode_set_nofb() argument
255 static void vmw_ldu_crtc_atomic_enable(struct drm_crtc *crtc, in vmw_ldu_crtc_atomic_enable() argument
266 static void vmw_ldu_crtc_atomic_disable(struct drm_crtc *crtc, in vmw_ldu_crtc_atomic_disable() argument
342 struct drm_crtc *crtc = new_state->crtc ?: old_state->crtc; in vmw_ldu_primary_plane_atomic_update() local
344 ldu = vmw_crtc_to_ldu(crtc); in vmw_ldu_primary_plane_atomic_update()
435 struct drm_crtc *crtc; in vmw_ldu_init() local
443 crtc = &ldu->base.crtc; in vmw_ldu_init()
520 ret = drm_crtc_init_with_planes(dev, crtc, primary, in vmw_ldu_init()
528 drm_crtc_helper_add(crtc, &vmw_ldu_crtc_helper_funcs); in vmw_ldu_init()
530 drm_mode_crtc_set_gamma_size(crtc, 256); in vmw_ldu_init()