Lines Matching refs:hop_addr

737 					u8 hop_idx, u64 hop_addr, u64 virt_addr)  in hl_mmu_get_hop_pte_phys_addr()  argument
749 return hop_addr + ctx->hdev->asic_prop.mmu_pte_size * ((virt_addr & mask) >> shift); in hl_mmu_get_hop_pte_phys_addr()
1137 u64 hop_addr = hl_mmu_get_next_hop_addr(ctx, curr_pte); in hl_mmu_hr_get_alloc_next_hop() local
1139 if (hop_addr != ULLONG_MAX) in hl_mmu_hr_get_alloc_next_hop()
1140 return hr_func->get_pgt_info(ctx, hop_addr); in hl_mmu_hr_get_alloc_next_hop()
1187 hops->hop_info[i].hop_addr = hops_pgt_info[i]->phys_addr; in hl_mmu_hr_get_tlb_info()
1190 hops->hop_info[i].hop_addr, in hl_mmu_hr_get_tlb_info()
1219 struct pgt_info *hl_mmu_dr_get_pgt_info(struct hl_ctx *ctx, u64 hop_addr) in hl_mmu_dr_get_pgt_info() argument
1224 (unsigned long) hop_addr) in hl_mmu_dr_get_pgt_info()
1225 if (hop_addr == pgt_info->shadow_addr) in hl_mmu_dr_get_pgt_info()
1231 void hl_mmu_dr_free_hop(struct hl_ctx *ctx, u64 hop_addr) in hl_mmu_dr_free_hop() argument
1233 struct pgt_info *pgt_info = hl_mmu_dr_get_pgt_info(ctx, hop_addr); in hl_mmu_dr_free_hop()
1298 void hl_mmu_dr_get_pte(struct hl_ctx *ctx, u64 hop_addr) in hl_mmu_dr_get_pte() argument
1300 hl_mmu_dr_get_pgt_info(ctx, hop_addr)->num_of_ptes++; in hl_mmu_dr_get_pte()
1303 int hl_mmu_dr_put_pte(struct hl_ctx *ctx, u64 hop_addr) in hl_mmu_dr_put_pte() argument
1305 struct pgt_info *pgt_info = hl_mmu_dr_get_pgt_info(ctx, hop_addr); in hl_mmu_dr_put_pte()
1363 u64 hop_addr = hl_mmu_get_next_hop_addr(ctx, curr_pte); in hl_mmu_dr_get_alloc_next_hop_addr() local
1365 if (hop_addr == ULLONG_MAX) { in hl_mmu_dr_get_alloc_next_hop_addr()
1366 hop_addr = hl_mmu_dr_alloc_hop(ctx); in hl_mmu_dr_get_alloc_next_hop_addr()
1367 *is_new_hop = (hop_addr != ULLONG_MAX); in hl_mmu_dr_get_alloc_next_hop_addr()
1370 return hop_addr; in hl_mmu_dr_get_alloc_next_hop_addr()