Home
last modified time | relevance | path

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

/openbmc/linux/drivers/accel/habanalabs/common/
H A Dmemory.c93 u64 paddr = 0, total_size, num_pgs, i; in alloc_device_memory() local
104 num_pgs = DIV_ROUND_UP_ULL(args->alloc.mem_size, page_size); in alloc_device_memory()
105 total_size = num_pgs * page_size; in alloc_device_memory()
123 num_pgs, total_size); in alloc_device_memory()
136 phys_pg_pack->npages = num_pgs; in alloc_device_memory()
142 phys_pg_pack->pages = kvmalloc_array(num_pgs, sizeof(u64), GFP_KERNEL); in alloc_device_memory()
149 for (i = 0 ; i < num_pgs ; i++) in alloc_device_memory()
152 for (i = 0 ; i < num_pgs ; i++) { in alloc_device_memory()
184 for (i = 0 ; i < num_pgs ; i++) in alloc_device_memory()