Lines Matching refs:va
134 amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size) in amdgpu_vamgr_free_va() argument
138 if (va == AMDGPU_INVALID_VA_ADDRESS) in amdgpu_vamgr_free_va()
146 if (next->offset < va) in amdgpu_vamgr_free_va()
153 if (hole->offset == (va + size)) { in amdgpu_vamgr_free_va()
154 hole->offset = va; in amdgpu_vamgr_free_va()
159 (next->offset + next->size) == va) { in amdgpu_vamgr_free_va()
170 (next->offset + next->size) == va) { in amdgpu_vamgr_free_va()
181 next->offset = va; in amdgpu_vamgr_free_va()
234 struct amdgpu_va* va; in amdgpu_va_range_alloc() local
235 va = calloc(1, sizeof(struct amdgpu_va)); in amdgpu_va_range_alloc()
236 if(!va){ in amdgpu_va_range_alloc()
240 va->dev = dev; in amdgpu_va_range_alloc()
241 va->address = *va_base_allocated; in amdgpu_va_range_alloc()
242 va->size = size; in amdgpu_va_range_alloc()
243 va->range = va_range_type; in amdgpu_va_range_alloc()
244 va->vamgr = vamgr; in amdgpu_va_range_alloc()
245 *va_range_handle = va; in amdgpu_va_range_alloc()