Lines Matching refs:hnode
1112 struct hl_vm_hash_node *hnode; in map_device_va() local
1213 hnode = kzalloc(sizeof(*hnode), GFP_KERNEL); in map_device_va()
1214 if (!hnode) { in map_device_va()
1271 hnode->ptr = vm_type; in map_device_va()
1272 hnode->vaddr = ret_vaddr; in map_device_va()
1275 hash_add(ctx->mem_hash, &hnode->node, ret_vaddr); in map_device_va()
1293 kfree(hnode); in map_device_va()
1321 struct hl_vm_hash_node *hnode = NULL; in unmap_device_va() local
1334 hash_for_each_possible(ctx->mem_hash, hnode, node, (unsigned long)vaddr) in unmap_device_va()
1335 if (vaddr == hnode->vaddr) in unmap_device_va()
1338 if (!hnode) { in unmap_device_va()
1346 hash_del(&hnode->node); in unmap_device_va()
1349 vm_type = hnode->ptr; in unmap_device_va()
1353 userptr = hnode->ptr; in unmap_device_va()
1372 phys_pg_pack = hnode->ptr; in unmap_device_va()
1431 kfree(hnode); in unmap_device_va()
1445 hash_add(ctx->mem_hash, &hnode->node, vaddr); in unmap_device_va()
2761 struct hl_vm_hash_node *hnode; in hl_vm_ctx_fini() local
2781 hash_for_each_safe(ctx->mem_hash, i, tmp_node, hnode, node) { in hl_vm_ctx_fini()
2784 hnode->vaddr, ctx->asid); in hl_vm_ctx_fini()
2785 args.unmap.device_virt_addr = hnode->vaddr; in hl_vm_ctx_fini()