Lines Matching refs:virt_addr
176 u64 *hop_addr_arr, u64 virt_addr, enum mmu_hop_num hop_idx) in get_hop_pte_addr() argument
183 ctx->hdev->asic_prop.mmu_pte_size * ((virt_addr & mask) >> shift); in get_hop_pte_addr()
485 u64 virt_addr, bool is_dram_addr) in hl_mmu_v1_unmap() argument
507 get_hop_pte_addr(ctx, mmu_prop, hop_addr, virt_addr, hop_idx); in hl_mmu_v1_unmap()
526 get_hop_pte_addr(ctx, mmu_prop, hop_addr, virt_addr, hop_idx); in hl_mmu_v1_unmap()
538 virt_addr); in hl_mmu_v1_unmap()
545 virt_addr); in hl_mmu_v1_unmap()
583 virt_addr); in hl_mmu_v1_unmap()
588 static int hl_mmu_v1_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, in hl_mmu_v1_map() argument
629 get_hop_pte_addr(ctx, mmu_prop, hop_addr, virt_addr, hop_idx); in hl_mmu_v1_map()
641 virt_addr); in hl_mmu_v1_map()
656 virt_addr); in hl_mmu_v1_map()
718 static int hl_mmu_v1_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, in hl_mmu_v1_get_tlb_info() argument
727 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_v1_get_tlb_info()
730 is_pmmu_addr = hl_mem_area_inside_range(virt_addr, prop->pmmu.page_size, in hl_mmu_v1_get_tlb_info()
733 is_pmmu_h_addr = hl_mem_area_inside_range(virt_addr, in hl_mmu_v1_get_tlb_info()
759 hops->hop_info[0].hop_addr, virt_addr); in hl_mmu_v1_get_tlb_info()
774 virt_addr); in hl_mmu_v1_get_tlb_info()