Home
last modified time | relevance | path

Searched refs:acc_size (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/drivers/gpu/drm/vmwgfx/
Dvmwgfx_page_dirty.c236 size_t size, acc_size; in vmw_bo_dirty_add() local
249 acc_size = ttm_round_pot(size); in vmw_bo_dirty_add()
250 ret = ttm_mem_global_alloc(&ttm_mem_glob, acc_size, &ctx); in vmw_bo_dirty_add()
262 dirty->size = acc_size; in vmw_bo_dirty_add()
288 ttm_mem_global_free(&ttm_mem_glob, acc_size); in vmw_bo_dirty_add()
307 size_t acc_size = dirty->size; in vmw_bo_dirty_release() local
310 ttm_mem_global_free(&ttm_mem_glob, acc_size); in vmw_bo_dirty_release()
Dvmwgfx_bo.c479 size_t acc_size; in vmw_bo_create_kernel() local
486 acc_size = ttm_round_pot(sizeof(*bo)); in vmw_bo_create_kernel()
487 acc_size += ttm_round_pot(PFN_UP(size) * sizeof(void *)); in vmw_bo_create_kernel()
488 acc_size += ttm_round_pot(sizeof(struct ttm_tt)); in vmw_bo_create_kernel()
490 ret = ttm_mem_global_alloc(&ttm_mem_glob, acc_size, &ctx); in vmw_bo_create_kernel()
512 ttm_mem_global_free(&ttm_mem_glob, acc_size); in vmw_bo_create_kernel()
541 size_t acc_size; in vmw_bo_init() local
547 acc_size = vmw_bo_acc_size(dev_priv, size, user); in vmw_bo_init()
553 ret = ttm_mem_global_alloc(&ttm_mem_glob, acc_size, &ctx); in vmw_bo_init()
565 ttm_mem_global_free(&ttm_mem_glob, acc_size); in vmw_bo_init()
Dvmwgfx_surface.c1958 size_t dirty_size, acc_size; in vmw_surface_dirty_alloc() local
1976 acc_size = ttm_round_pot(dirty_size); in vmw_surface_dirty_alloc()
1978 acc_size, &ctx); in vmw_surface_dirty_alloc()
1999 dirty->size = acc_size; in vmw_surface_dirty_alloc()
2007 ttm_mem_global_free(vmw_mem_glob(res->dev_priv), acc_size); in vmw_surface_dirty_alloc()
2018 size_t acc_size = dirty->size; in vmw_surface_dirty_free() local
2021 ttm_mem_global_free(vmw_mem_glob(res->dev_priv), acc_size); in vmw_surface_dirty_free()
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c134 size_t acc_size, system_mem_needed, ttm_mem_needed, vram_needed; in amdgpu_amdkfd_reserve_mem_limit() local
137 acc_size = amdgpu_amdkfd_acc_size(size); in amdgpu_amdkfd_reserve_mem_limit()
142 system_mem_needed = acc_size + size; in amdgpu_amdkfd_reserve_mem_limit()
143 ttm_mem_needed = acc_size + size; in amdgpu_amdkfd_reserve_mem_limit()
146 system_mem_needed = acc_size + size; in amdgpu_amdkfd_reserve_mem_limit()
147 ttm_mem_needed = acc_size; in amdgpu_amdkfd_reserve_mem_limit()
150 system_mem_needed = acc_size; in amdgpu_amdkfd_reserve_mem_limit()
151 ttm_mem_needed = acc_size; in amdgpu_amdkfd_reserve_mem_limit()
182 size_t acc_size; in unreserve_mem_limit() local
184 acc_size = amdgpu_amdkfd_acc_size(size); in unreserve_mem_limit()
[all …]