Lines Matching refs:crtc
33 container_of(x, struct vmw_screen_object_unit, base.crtc)
114 static void vmw_sou_crtc_destroy(struct drm_crtc *crtc) in vmw_sou_crtc_destroy() argument
116 vmw_sou_destroy(vmw_crtc_to_sou(crtc)); in vmw_sou_crtc_destroy()
299 struct drm_crtc *crtc; in vmw_sou_crtc_set_config() local
305 if (!set->crtc) in vmw_sou_crtc_set_config()
309 crtc = set->crtc; in vmw_sou_crtc_set_config()
310 sou = vmw_crtc_to_sou(crtc); in vmw_sou_crtc_set_config()
312 dev_priv = vmw_priv(crtc->dev); in vmw_sou_crtc_set_config()
348 encoder->crtc = NULL; in vmw_sou_crtc_set_config()
349 crtc->primary->fb = NULL; in vmw_sou_crtc_set_config()
350 crtc->x = 0; in vmw_sou_crtc_set_config()
351 crtc->y = 0; in vmw_sou_crtc_set_config()
352 crtc->enabled = false; in vmw_sou_crtc_set_config()
374 if (mode->hdisplay != crtc->mode.hdisplay || in vmw_sou_crtc_set_config()
375 mode->vdisplay != crtc->mode.vdisplay) { in vmw_sou_crtc_set_config()
409 encoder->crtc = NULL; in vmw_sou_crtc_set_config()
410 crtc->primary->fb = NULL; in vmw_sou_crtc_set_config()
411 crtc->x = 0; in vmw_sou_crtc_set_config()
412 crtc->y = 0; in vmw_sou_crtc_set_config()
413 crtc->enabled = false; in vmw_sou_crtc_set_config()
421 encoder->crtc = crtc; in vmw_sou_crtc_set_config()
422 crtc->mode = *mode; in vmw_sou_crtc_set_config()
423 crtc->primary->fb = fb; in vmw_sou_crtc_set_config()
424 crtc->x = set->x; in vmw_sou_crtc_set_config()
425 crtc->y = set->y; in vmw_sou_crtc_set_config()
426 crtc->enabled = true; in vmw_sou_crtc_set_config()
436 struct drm_crtc *crtc) in vmw_sou_screen_object_flippable() argument
438 struct vmw_screen_object_unit *sou = vmw_crtc_to_sou(crtc); in vmw_sou_screen_object_flippable()
454 struct drm_crtc *crtc) in vmw_sou_update_implicit_fb() argument
456 struct vmw_screen_object_unit *sou = vmw_crtc_to_sou(crtc); in vmw_sou_update_implicit_fb()
461 vmw_framebuffer_to_vfb(sou->base.crtc.primary->fb); in vmw_sou_update_implicit_fb()
464 static int vmw_sou_crtc_page_flip(struct drm_crtc *crtc, in vmw_sou_crtc_page_flip() argument
469 struct vmw_private *dev_priv = vmw_priv(crtc->dev); in vmw_sou_crtc_page_flip()
470 struct drm_framebuffer *old_fb = crtc->primary->fb; in vmw_sou_crtc_page_flip()
480 if (!vmw_sou_screen_object_flippable(dev_priv, crtc)) in vmw_sou_crtc_page_flip()
483 crtc->primary->fb = fb; in vmw_sou_crtc_page_flip()
523 if (vmw_crtc_to_du(crtc)->is_implicit) in vmw_sou_crtc_page_flip()
524 vmw_sou_update_implicit_fb(dev_priv, crtc); in vmw_sou_crtc_page_flip()
529 crtc->primary->fb = old_fb; in vmw_sou_crtc_page_flip()
582 struct drm_crtc *crtc; in vmw_sou_init() local
589 crtc = &sou->base.crtc; in vmw_sou_init()
613 drm_crtc_init(dev, crtc, &vmw_screen_object_crtc_funcs); in vmw_sou_init()
615 drm_mode_crtc_set_gamma_size(crtc, 256); in vmw_sou_init()
739 s32 trans_x = dirty->unit->crtc.x - sdirty->dst_x; in vmw_sou_surface_fifo_commit()
740 s32 trans_y = dirty->unit->crtc.y - sdirty->dst_y; in vmw_sou_surface_fifo_commit()