/drivers/gpu/drm/radeon/ |
D | radeon_vm.c | 296 struct radeon_bo_va *bo_va; in radeon_vm_bo_find() local 298 list_for_each_entry(bo_va, &bo->va, bo_list) { in radeon_vm_bo_find() 299 if (bo_va->vm == vm) { in radeon_vm_bo_find() 300 return bo_va; in radeon_vm_bo_find() 323 struct radeon_bo_va *bo_va; in radeon_vm_bo_add() local 325 bo_va = kzalloc(sizeof(struct radeon_bo_va), GFP_KERNEL); in radeon_vm_bo_add() 326 if (bo_va == NULL) { in radeon_vm_bo_add() 329 bo_va->vm = vm; in radeon_vm_bo_add() 330 bo_va->bo = bo; in radeon_vm_bo_add() 331 bo_va->it.start = 0; in radeon_vm_bo_add() [all …]
|
D | radeon_gem.c | 147 struct radeon_bo_va *bo_va; in radeon_gem_object_open() local 160 bo_va = radeon_vm_bo_find(vm, rbo); in radeon_gem_object_open() 161 if (!bo_va) { in radeon_gem_object_open() 162 bo_va = radeon_vm_bo_add(rdev, vm, rbo); in radeon_gem_object_open() 164 ++bo_va->ref_count; in radeon_gem_object_open() 178 struct radeon_bo_va *bo_va; in radeon_gem_object_close() local 192 bo_va = radeon_vm_bo_find(vm, rbo); in radeon_gem_object_close() 193 if (bo_va) { in radeon_gem_object_close() 194 if (--bo_va->ref_count == 0) { in radeon_gem_object_close() 195 radeon_vm_bo_rmv(rdev, bo_va); in radeon_gem_object_close() [all …]
|
D | radeon_trace.h | 65 TP_PROTO(struct radeon_bo_va *bo_va), 66 TP_ARGS(bo_va), 74 __entry->soffset = bo_va->it.start; 75 __entry->eoffset = bo_va->it.last + 1; 76 __entry->flags = bo_va->flags;
|
D | radeon_cs.c | 482 struct radeon_bo_va *bo_va; in radeon_bo_vm_update_pte() local 507 bo_va = radeon_vm_bo_find(vm, bo); in radeon_bo_vm_update_pte() 508 if (bo_va == NULL) { in radeon_bo_vm_update_pte() 513 r = radeon_vm_bo_update(rdev, bo_va, &bo->tbo.mem); in radeon_bo_vm_update_pte() 517 radeon_sync_fence(&p->ib.sync, bo_va->last_pt_update); in radeon_bo_vm_update_pte()
|
D | radeon.h | 2865 struct radeon_bo_va *bo_va, 2875 struct radeon_bo_va *bo_va, 2879 struct radeon_bo_va *bo_va);
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vm.c | 274 struct amdgpu_bo_va *bo_va; in amdgpu_vm_bo_find() local 276 list_for_each_entry(bo_va, &bo->va, bo_list) { in amdgpu_vm_bo_find() 277 if (bo_va->vm == vm) { in amdgpu_vm_bo_find() 278 return bo_va; in amdgpu_vm_bo_find() 822 struct amdgpu_bo_va *bo_va, in amdgpu_vm_bo_update() argument 825 struct amdgpu_vm *vm = bo_va->vm; in amdgpu_vm_bo_update() 839 flags = amdgpu_ttm_tt_pte_flags(adev, bo_va->bo->tbo.ttm, mem); in amdgpu_vm_bo_update() 842 if (!list_empty(&bo_va->vm_status)) in amdgpu_vm_bo_update() 843 list_splice_init(&bo_va->valids, &bo_va->invalids); in amdgpu_vm_bo_update() 846 list_for_each_entry(mapping, &bo_va->invalids, list) { in amdgpu_vm_bo_update() [all …]
|
D | amdgpu_gem.c | 116 struct amdgpu_bo_va *bo_va; in amdgpu_gem_object_open() local 122 bo_va = amdgpu_vm_bo_find(vm, rbo); in amdgpu_gem_object_open() 123 if (!bo_va) { in amdgpu_gem_object_open() 124 bo_va = amdgpu_vm_bo_add(adev, vm, rbo); in amdgpu_gem_object_open() 126 ++bo_va->ref_count; in amdgpu_gem_object_open() 139 struct amdgpu_bo_va *bo_va; in amdgpu_gem_object_close() local 147 bo_va = amdgpu_vm_bo_find(vm, rbo); in amdgpu_gem_object_close() 148 if (bo_va) { in amdgpu_gem_object_close() 149 if (--bo_va->ref_count == 0) { in amdgpu_gem_object_close() 150 amdgpu_vm_bo_rmv(adev, bo_va); in amdgpu_gem_object_close() [all …]
|
D | amdgpu_trace.h | 118 TP_PROTO(struct amdgpu_bo_va *bo_va, 120 TP_ARGS(bo_va, mapping), 130 __entry->bo = bo_va->bo; 142 TP_PROTO(struct amdgpu_bo_va *bo_va, 144 TP_ARGS(bo_va, mapping), 154 __entry->bo = bo_va->bo;
|
D | amdgpu_cs.c | 393 lobj->bo_va = amdgpu_vm_bo_find(vm, bo); in amdgpu_cs_list_validate() 527 struct amdgpu_bo_va *bo_va; in amdgpu_bo_vm_update_pte() local 552 bo_va = p->bo_list->array[i].bo_va; in amdgpu_bo_vm_update_pte() 553 if (bo_va == NULL) in amdgpu_bo_vm_update_pte() 556 r = amdgpu_vm_bo_update(adev, bo_va, &bo->tbo.mem); in amdgpu_bo_vm_update_pte() 560 f = bo_va->last_pt_update; in amdgpu_bo_vm_update_pte() 991 if (!reloc->bo_va) in amdgpu_cs_find_mapping() 994 list_for_each_entry(mapping, &reloc->bo_va->valids, list) { in amdgpu_cs_find_mapping() 999 *bo = reloc->bo_va->bo; in amdgpu_cs_find_mapping() 1003 list_for_each_entry(mapping, &reloc->bo_va->invalids, list) { in amdgpu_cs_find_mapping() [all …]
|
D | amdgpu.h | 484 struct amdgpu_bo_va *bo_va; member 1002 struct amdgpu_bo_va *bo_va, 1012 struct amdgpu_bo_va *bo_va, 1016 struct amdgpu_bo_va *bo_va, 1019 struct amdgpu_bo_va *bo_va);
|