mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/msm: Rename msm_gem_vma_purge() -> _unmap()
This is a more descriptive name. Signed-off-by: Rob Clark <robdclark@chromium.org> Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com> Tested-by: Antonino Maniscalco <antomani103@gmail.com> Reviewed-by: Antonino Maniscalco <antomani103@gmail.com> Patchwork: https://patchwork.freedesktop.org/patch/661487/
This commit is contained in:
parent
dbbde63c9e
commit
7e34b8f6ed
|
|
@ -57,7 +57,7 @@ static void detach_vm(struct drm_gem_object *obj, struct drm_gpuvm *vm)
|
|||
drm_gpuvm_bo_for_each_va (vma, vm_bo) {
|
||||
if (vma->vm != vm)
|
||||
continue;
|
||||
msm_gem_vma_purge(vma);
|
||||
msm_gem_vma_unmap(vma);
|
||||
msm_gem_vma_close(vma);
|
||||
break;
|
||||
}
|
||||
|
|
@ -433,7 +433,7 @@ put_iova_spaces(struct drm_gem_object *obj, struct drm_gpuvm *vm, bool close)
|
|||
drm_gpuvm_bo_get(vm_bo);
|
||||
|
||||
drm_gpuvm_bo_for_each_va_safe (vma, vmatmp, vm_bo) {
|
||||
msm_gem_vma_purge(vma);
|
||||
msm_gem_vma_unmap(vma);
|
||||
if (close)
|
||||
msm_gem_vma_close(vma);
|
||||
}
|
||||
|
|
@ -607,7 +607,7 @@ static int clear_iova(struct drm_gem_object *obj,
|
|||
if (!vma)
|
||||
return 0;
|
||||
|
||||
msm_gem_vma_purge(vma);
|
||||
msm_gem_vma_unmap(vma);
|
||||
msm_gem_vma_close(vma);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ struct msm_gem_vma {
|
|||
struct drm_gpuva *
|
||||
msm_gem_vma_new(struct drm_gpuvm *vm, struct drm_gem_object *obj,
|
||||
u64 offset, u64 range_start, u64 range_end);
|
||||
void msm_gem_vma_purge(struct drm_gpuva *vma);
|
||||
void msm_gem_vma_unmap(struct drm_gpuva *vma);
|
||||
int msm_gem_vma_map(struct drm_gpuva *vma, int prot, struct sg_table *sgt);
|
||||
void msm_gem_vma_close(struct drm_gpuva *vma);
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ msm_gem_vm_free(struct drm_gpuvm *gpuvm)
|
|||
}
|
||||
|
||||
/* Actually unmap memory for the vma */
|
||||
void msm_gem_vma_purge(struct drm_gpuva *vma)
|
||||
void msm_gem_vma_unmap(struct drm_gpuva *vma)
|
||||
{
|
||||
struct msm_gem_vma *msm_vma = to_msm_vma(vma);
|
||||
struct msm_gem_vm *vm = to_msm_vm(vma->vm);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user