Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/misc/habanalabs/common/
Dmemory.c57 struct hl_vm_phys_pg_pack *phys_pg_pack; in alloc_device_memory() local
86 phys_pg_pack = kzalloc(sizeof(*phys_pg_pack), GFP_KERNEL); in alloc_device_memory()
87 if (!phys_pg_pack) { in alloc_device_memory()
92 phys_pg_pack->vm_type = VM_TYPE_PHYS_PACK; in alloc_device_memory()
93 phys_pg_pack->asid = ctx->asid; in alloc_device_memory()
94 phys_pg_pack->npages = num_pgs; in alloc_device_memory()
95 phys_pg_pack->page_size = page_size; in alloc_device_memory()
96 phys_pg_pack->total_size = total_size; in alloc_device_memory()
97 phys_pg_pack->flags = args->flags; in alloc_device_memory()
98 phys_pg_pack->contiguous = contiguous; in alloc_device_memory()
[all …]
Ddebugfs.c232 struct hl_vm_phys_pg_pack *phys_pg_pack = NULL; in vm_show() local
262 phys_pg_pack = hnode->ptr; in vm_show()
265 hnode->vaddr, phys_pg_pack->total_size, in vm_show()
266 phys_pg_pack->handle); in vm_show()
277 idr_for_each_entry(&vm->phys_pg_pack_handles, phys_pg_pack, i) { in vm_show()
278 if (phys_pg_pack->asid != ctx->asid) in vm_show()
281 seq_printf(s, "\nhandle: %u\n", phys_pg_pack->handle); in vm_show()
283 phys_pg_pack->page_size); in vm_show()
286 for (j = 0 ; j < phys_pg_pack->npages ; j++) { in vm_show()
288 phys_pg_pack->pages[j]); in vm_show()