Lines Matching defs:vaddr
818 "add va block failed for vaddr: 0x%llx\n", start_addr);
935 * @vaddr: start address of the virtual area to map from.
943 static int map_phys_pg_pack(struct hl_ctx *ctx, u64 vaddr,
947 u64 next_vaddr = vaddr, paddr, mapped_pg_cnt = 0, i;
972 is_host_addr = !hl_is_dram_va(hdev, vaddr);
974 next_vaddr = vaddr;
1003 * @vaddr: start address of the virtual area to unmap.
1006 static void unmap_phys_pg_pack(struct hl_ctx *ctx, u64 vaddr,
1014 is_host_addr = !hl_is_dram_va(hdev, vaddr);
1016 next_vaddr = vaddr;
1022 "unmap failed for vaddr: 0x%llx\n", next_vaddr);
1086 "unable to init page pack for vaddr 0x%llx\n",
1215 hnode->vaddr = ret_vaddr;
1233 "release va block failed for handle 0x%x, vaddr: 0x%llx\n",
1251 static struct hl_vm_hash_node *get_vm_hash_node_locked(struct hl_ctx *ctx, u64 vaddr)
1255 hash_for_each_possible(ctx->mem_hash, hnode, node, vaddr)
1256 if (vaddr == hnode->vaddr)
1276 u64 vaddr = args->unmap.device_virt_addr;
1290 hnode = get_vm_hash_node_locked(ctx, vaddr);
1293 dev_err(hdev->dev, "unmap failed, no mem hnode for vaddr 0x%llx\n", vaddr);
1299 dev_err(hdev->dev, "failed to unmap %#llx, memory is exported\n", vaddr);
1316 "unable to init page pack for vaddr 0x%llx\n",
1317 vaddr);
1332 "unmap failed, unknown vm desc for vaddr 0x%llx\n",
1333 vaddr);
1339 dev_err(hdev->dev, "vaddr 0x%llx is not mapped\n", vaddr);
1345 vaddr = prop->dram_base_address +
1346 DIV_ROUND_DOWN_ULL(vaddr - prop->dram_base_address,
1350 vaddr &= ~(((u64) phys_pg_pack->page_size) - 1);
1354 unmap_phys_pg_pack(ctx, vaddr, phys_pg_pack);
1362 rc = hl_mmu_invalidate_cache_range(hdev, true, *vm_type, ctx->asid, vaddr,
1376 tmp_rc = add_va_block(hdev, va_range, vaddr,
1377 vaddr + phys_pg_pack->total_size - 1);
1380 "add va block failed for vaddr: 0x%llx\n",
1381 vaddr);
1402 hash_add(ctx->mem_hash, &hnode->node, vaddr);
1498 lnode->vaddr = vma->vm_start;
2753 "hl_mem_hash_node of vaddr 0x%llx of asid %d is still alive\n",
2754 hnode->vaddr, ctx->asid);
2755 args.unmap.device_virt_addr = hnode->vaddr;