Lines Matching +full:1 +full:vma
27 #define TILE_TYPE_DRI 1
230 priv->dev_info.family >= AMDGPU_FAMILY_AI ? (cur_size - 1) : cur_size; in sdma_copy()
246 chunks[1].chunk_id = AMDGPU_CHUNK_ID_IB; in sdma_copy()
247 chunks[1].length_dw = sizeof(ib) / 4; in sdma_copy()
248 chunks[1].chunk_data = (uintptr_t)&ib; in sdma_copy()
252 bo_list_entries[1].bo_handle = src_handle; in sdma_copy()
253 bo_list_entries[1].bo_priority = 8; in sdma_copy()
266 chunk_ptrs[1] = (uintptr_t)&chunks[1]; in sdma_copy()
315 priv = calloc(1, sizeof(struct amdgpu_priv)); in amdgpu_init()
346 metadata.priority = 1; in amdgpu_init()
444 if (priv->dev_info.family == AMDGPU_FAMILY_RV && num_planes > 1) in amdgpu_create_bo_linear()
575 static void *amdgpu_map_bo(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in amdgpu_map_bo() argument
587 return dri_bo_map(bo, vma, plane, map_flags); in amdgpu_map_bo()
598 vma->length = bo_info.bo_size; in amdgpu_map_bo()
605 priv = calloc(1, sizeof(struct amdgpu_linear_vma_priv)); in amdgpu_map_bo()
644 vma->priv = priv; in amdgpu_map_bo()
657 static int amdgpu_unmap_bo(struct bo *bo, struct vma *vma) in amdgpu_unmap_bo() argument
660 return dri_bo_unmap(bo, vma); in amdgpu_unmap_bo()
662 int r = munmap(vma->addr, vma->length); in amdgpu_unmap_bo()
666 if (vma->priv) { in amdgpu_unmap_bo()
667 struct amdgpu_linear_vma_priv *priv = vma->priv; in amdgpu_unmap_bo()
672 bo->handles[0].u32, vma->length); in amdgpu_unmap_bo()