Lines Matching refs:virt_addr
168 u64 virt_addr, u64 mask, u64 shift) in get_hopN_pte_addr() argument
171 ((virt_addr & mask) >> shift); in get_hopN_pte_addr()
516 static int _hl_mmu_unmap(struct hl_ctx *ctx, u64 virt_addr) in _hl_mmu_unmap() argument
528 is_dram_addr = hl_mem_area_inside_range(virt_addr, PAGE_SIZE_2MB, in _hl_mmu_unmap()
533 hop0_pte_addr = get_hop0_pte_addr(ctx, hop0_addr, virt_addr); in _hl_mmu_unmap()
542 hop1_pte_addr = get_hop1_pte_addr(ctx, hop1_addr, virt_addr); in _hl_mmu_unmap()
551 hop2_pte_addr = get_hop2_pte_addr(ctx, hop2_addr, virt_addr); in _hl_mmu_unmap()
560 hop3_pte_addr = get_hop3_pte_addr(ctx, hop3_addr, virt_addr); in _hl_mmu_unmap()
578 hop4_pte_addr = get_hop4_pte_addr(ctx, hop4_addr, virt_addr); in _hl_mmu_unmap()
592 virt_addr); in _hl_mmu_unmap()
599 virt_addr); in _hl_mmu_unmap()
645 virt_addr); in _hl_mmu_unmap()
667 int hl_mmu_unmap(struct hl_ctx *ctx, u64 virt_addr, u32 page_size) in hl_mmu_unmap() argument
694 real_virt_addr = virt_addr; in hl_mmu_unmap()
707 static int _hl_mmu_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, in _hl_mmu_map() argument
731 is_dram_addr = hl_mem_area_inside_range(virt_addr, page_size, in _hl_mmu_map()
741 hop0_pte_addr = get_hop0_pte_addr(ctx, hop0_addr, virt_addr); in _hl_mmu_map()
748 hop1_pte_addr = get_hop1_pte_addr(ctx, hop1_addr, virt_addr); in _hl_mmu_map()
755 hop2_pte_addr = get_hop2_pte_addr(ctx, hop2_addr, virt_addr); in _hl_mmu_map()
762 hop3_pte_addr = get_hop3_pte_addr(ctx, hop3_addr, virt_addr); in _hl_mmu_map()
770 hop4_pte_addr = get_hop4_pte_addr(ctx, hop4_addr, virt_addr); in _hl_mmu_map()
782 virt_addr); in _hl_mmu_map()
796 virt_addr); in _hl_mmu_map()
890 int hl_mmu_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, u32 page_size) in hl_mmu_map() argument
921 real_virt_addr = virt_addr; in hl_mmu_map()
938 real_virt_addr = virt_addr; in hl_mmu_map()