Lines Matching refs:total_size
59 u64 paddr = 0, total_size, num_pgs, i; in alloc_device_memory() local
68 total_size = num_pgs << page_shift; in alloc_device_memory()
73 paddr = (u64) gen_pool_alloc(vm->dram_pg_pool, total_size); in alloc_device_memory()
92 phys_pg_pack->total_size = total_size; in alloc_device_memory()
137 atomic64_add(phys_pg_pack->total_size, &ctx->dram_phys_mem); in alloc_device_memory()
138 atomic64_add(phys_pg_pack->total_size, &hdev->dram_used_mem); in alloc_device_memory()
156 gen_pool_free(vm->dram_pg_pool, paddr, total_size); in alloc_device_memory()
275 phys_pg_pack->total_size); in free_phys_pg_pack()
328 atomic64_sub(phys_pg_pack->total_size, &ctx->dram_phys_mem); in free_device_memory()
329 atomic64_sub(phys_pg_pack->total_size, &hdev->dram_used_mem); in free_device_memory()
699 phys_pg_pack->total_size = total_npages * page_size; in init_phys_pg_pack_from_userptr()
902 phys_pg_pack->total_size, hint_addr, is_userptr); in map_device_va()
944 ret_vaddr + phys_pg_pack->total_size - 1)) in map_device_va()
1065 vaddr + phys_pg_pack->total_size - 1); in unmap_device_va()
1642 atomic64_sub(phys_pg_list->total_size, in hl_vm_ctx_fini()