Lines Matching full:backup

191  * Computes the required size for a surface dma command for backup or
460 * vmw_legacy_srf_dma - Copy backup data to or from a legacy surface.
465 * information about the backup buffer.
468 * Transfer backup data to or from a legacy surface as part of the
471 * The backup buffer will be fenced or idle upon successful completion,
472 * and if the surface needs persistent backup storage, the backup buffer
498 * Create a fence object and fence the backup buffer. in vmw_legacy_srf_dma()
519 * information about the backup buffer.
521 * This function will copy backup data to the surface if the
522 * backup buffer is dirty.
542 * information about the backup buffer.
544 * This function will copy backup data from the surface.
686 if (base->shareable && res && res->backup) in vmw_user_surface_base_release()
687 drm_gem_object_put(&res->backup->base.base); in vmw_user_surface_base_release()
848 * expect a backup buffer to be present. in vmw_surface_define_ioctl()
857 &res->backup); in vmw_surface_define_ioctl()
862 vmw_bo_reference(res->backup); in vmw_surface_define_ioctl()
863 drm_gem_object_get(&res->backup->base.base); in vmw_surface_define_ioctl()
1199 if (res->backup->dirty && res->backup_dirty) { in vmw_gb_surface_bind()
1262 * Create a fence object and fence the backup buffer. in vmw_gb_surface_unbind()
1500 &res->backup); in vmw_gb_surface_define_internal()
1502 if (res->backup->base.base.size < res->backup_size) { in vmw_gb_surface_define_internal()
1503 VMW_DEBUG_USER("Surface backup buffer too small.\n"); in vmw_gb_surface_define_internal()
1504 vmw_bo_unreference(&res->backup); in vmw_gb_surface_define_internal()
1517 &res->backup); in vmw_gb_surface_define_internal()
1519 vmw_bo_reference(res->backup); in vmw_gb_surface_define_internal()
1528 struct vmw_buffer_object *backup = res->backup; in vmw_gb_surface_define_internal() local
1530 ttm_bo_reserve(&backup->base, false, false, NULL); in vmw_gb_surface_define_internal()
1534 ret = vmw_bo_dirty_add(backup); in vmw_gb_surface_define_internal()
1539 ttm_bo_unreserve(&backup->base); in vmw_gb_surface_define_internal()
1562 if (res->backup) { in vmw_gb_surface_define_internal()
1564 drm_vma_node_offset_addr(&res->backup->base.base.vma_node); in vmw_gb_surface_define_internal()
1565 rep->buffer_size = res->backup->base.base.size; in vmw_gb_surface_define_internal()
1568 drm_gem_object_get(&res->backup->base.base); in vmw_gb_surface_define_internal()
1610 if (!srf->res.backup) { in vmw_gb_surface_reference_internal()
1611 DRM_ERROR("Shared GB surface is missing a backup buffer.\n"); in vmw_gb_surface_reference_internal()
1616 mutex_lock(&dev_priv->cmdbuf_mutex); /* Protect res->backup */ in vmw_gb_surface_reference_internal()
1617 ret = drm_gem_handle_create(file_priv, &srf->res.backup->base.base, in vmw_gb_surface_reference_internal()
1639 drm_vma_node_offset_addr(&srf->res.backup->base.base.vma_node); in vmw_gb_surface_reference_internal()
1640 rep->crep.buffer_size = srf->res.backup->base.base.size; in vmw_gb_surface_reference_internal()