Lines Matching refs:crtc

57 static int vbox_cursor_set2(struct drm_crtc *crtc, struct drm_file *file_priv,
60 static int vbox_cursor_move(struct drm_crtc *crtc, int x, int y);
65 static void vbox_do_modeset(struct drm_crtc *crtc,
68 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
74 LogFunc(("vboxvideo: %d: vbox_crtc=%p, CRTC_FB(crtc)=%p\n", __LINE__,
75 vbox_crtc, CRTC_FB(crtc)));
76 vbox = crtc->dev->dev_private;
80 cBPP = crtc->enabled ? CRTC_FB(crtc)->bits_per_pixel : 32;
82 pitch = crtc->enabled ? CRTC_FB(crtc)->pitch : width * cBPP / 8;
84 pitch = crtc->enabled ? CRTC_FB(crtc)->pitches[0] : width * cBPP / 8;
86 /* if (vbox_crtc->crtc_id == 0 && crtc->enabled)
88 CRTC_FB(crtc)->bits_per_pixel, 0,
89 crtc->x, crtc->y); */
91 fFlags |= (crtc->enabled ? 0 : VBVA_SCREEN_F_DISABLED);
93 crtc->x, crtc->y,
94 crtc->x * cBPP / 8 + crtc->y * pitch,
100 static int vbox_set_view(struct drm_crtc *crtc)
102 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
103 struct vbox_private *vbox = crtc->dev->dev_private;
134 static void vbox_crtc_load_lut(struct drm_crtc *crtc)
139 static void vbox_crtc_dpms(struct drm_crtc *crtc, int mode)
141 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
142 struct vbox_private *vbox = crtc->dev->dev_private;
159 vbox_do_modeset(crtc, &crtc->hwmode);
164 static bool vbox_crtc_mode_fixup(struct drm_crtc *crtc,
171 static int vbox_crtc_do_set_base(struct drm_crtc *crtc,
175 struct vbox_private *vbox = crtc->dev->dev_private;
176 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
185 vbox_fb = to_vbox_framebuffer(CRTC_FB(crtc));
209 /* vbox_set_start_address_crt1(crtc, (u32)gpu_addr); */
217 static int vbox_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
221 return vbox_crtc_do_set_base(crtc, old_fb, x, y, 0);
224 static int vbox_crtc_mode_set(struct drm_crtc *crtc,
230 struct vbox_private *vbox = crtc->dev->dev_private;
235 vbox_crtc_mode_set_base(crtc, x, y, old_fb);
237 rc = vbox_set_view(crtc);
239 vbox_do_modeset(crtc, mode);
245 static void vbox_crtc_disable(struct drm_crtc *crtc)
250 static void vbox_crtc_prepare(struct drm_crtc *crtc)
255 static void vbox_crtc_commit(struct drm_crtc *crtc)
274 static void vbox_crtc_reset(struct drm_crtc *crtc)
280 static void vbox_crtc_destroy(struct drm_crtc *crtc)
282 drm_crtc_cleanup(crtc);
283 kfree(crtc);
652 static int vbox_cursor_set2(struct drm_crtc *crtc, struct drm_file *file_priv,
656 struct vbox_private *vbox = crtc->dev->dev_private;
657 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc);
676 obj = drm_gem_object_lookup(crtc->dev, file_priv, handle);
717 DRM_ERROR("Cannot find cursor object %x for crtc\n", handle);
723 static int vbox_cursor_move(struct drm_crtc *crtc,