Lines Matching refs:user_bo
568 struct qxl_bo *user_bo, in qxl_create_cursor() argument
578 if (!user_bo) in qxl_create_cursor()
591 ret = qxl_bo_pin_and_vmap(user_bo, &user_map); in qxl_create_cursor()
617 qxl_bo_vunmap_and_unpin(user_bo); in qxl_create_cursor()
796 static void qxl_prepare_shadow(struct qxl_device *qdev, struct qxl_bo *user_bo, in qxl_prepare_shadow() argument
802 user_bo); in qxl_prepare_shadow()
817 if (user_bo->shadow != qdev->dumb_shadow_bo) { in qxl_prepare_shadow()
818 if (user_bo->shadow) { in qxl_prepare_shadow()
819 qxl_bo_unpin(user_bo->shadow); in qxl_prepare_shadow()
821 (&user_bo->shadow->tbo.base); in qxl_prepare_shadow()
822 user_bo->shadow = NULL; in qxl_prepare_shadow()
825 user_bo->shadow = qdev->dumb_shadow_bo; in qxl_prepare_shadow()
826 qxl_bo_pin(user_bo->shadow); in qxl_prepare_shadow()
835 struct qxl_bo *user_bo; in qxl_plane_prepare_fb() local
842 user_bo = gem_to_qxl_bo(obj); in qxl_plane_prepare_fb()
845 user_bo->is_dumb) { in qxl_plane_prepare_fb()
846 qxl_prepare_shadow(qdev, user_bo, new_state->crtc->index); in qxl_plane_prepare_fb()
854 qcrtc->cursor_bo = qxl_create_cursor(qdev, user_bo, in qxl_plane_prepare_fb()
860 ret = qxl_bo_pin(user_bo); in qxl_plane_prepare_fb()
871 struct qxl_bo *user_bo; in qxl_plane_cleanup_fb() local
882 user_bo = gem_to_qxl_bo(obj); in qxl_plane_cleanup_fb()
883 qxl_bo_unpin(user_bo); in qxl_plane_cleanup_fb()
885 if (old_state->fb != plane->state->fb && user_bo->shadow) { in qxl_plane_cleanup_fb()
886 qxl_bo_unpin(user_bo->shadow); in qxl_plane_cleanup_fb()
887 drm_gem_object_put(&user_bo->shadow->tbo.base); in qxl_plane_cleanup_fb()
888 user_bo->shadow = NULL; in qxl_plane_cleanup_fb()