Lines Matching refs:hop_addr
15 static struct pgt_info *get_pgt_info(struct hl_ctx *ctx, u64 hop_addr) in get_pgt_info() argument
20 (unsigned long) hop_addr) in get_pgt_info()
21 if (hop_addr == pgt_info->shadow_addr) in get_pgt_info()
38 static void free_hop(struct hl_ctx *ctx, u64 hop_addr) in free_hop() argument
40 struct pgt_info *pgt_info = get_pgt_info(ctx, hop_addr); in free_hop()
141 static inline void get_pte(struct hl_ctx *ctx, u64 hop_addr) in get_pte() argument
143 get_pgt_info(ctx, hop_addr)->num_of_ptes++; in get_pte()
155 static inline int put_pte(struct hl_ctx *ctx, u64 hop_addr) in put_pte() argument
157 struct pgt_info *pgt_info = get_pgt_info(ctx, hop_addr); in put_pte()
173 static inline u64 get_hopN_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hopN_pte_addr() argument
176 return hop_addr + ctx->hdev->asic_prop.mmu_pte_size * in get_hopN_pte_addr()
182 u64 hop_addr, u64 vaddr) in get_hop0_pte_addr() argument
184 return get_hopN_pte_addr(ctx, hop_addr, vaddr, mmu_prop->hop0_mask, in get_hop0_pte_addr()
190 u64 hop_addr, u64 vaddr) in get_hop1_pte_addr() argument
192 return get_hopN_pte_addr(ctx, hop_addr, vaddr, mmu_prop->hop1_mask, in get_hop1_pte_addr()
198 u64 hop_addr, u64 vaddr) in get_hop2_pte_addr() argument
200 return get_hopN_pte_addr(ctx, hop_addr, vaddr, mmu_prop->hop2_mask, in get_hop2_pte_addr()
206 u64 hop_addr, u64 vaddr) in get_hop3_pte_addr() argument
208 return get_hopN_pte_addr(ctx, hop_addr, vaddr, mmu_prop->hop3_mask, in get_hop3_pte_addr()
214 u64 hop_addr, u64 vaddr) in get_hop4_pte_addr() argument
216 return get_hopN_pte_addr(ctx, hop_addr, vaddr, mmu_prop->hop4_mask, in get_hop4_pte_addr()
231 u64 hop_addr = get_next_hop_addr(ctx, curr_pte); in get_alloc_next_hop_addr() local
233 if (hop_addr == ULLONG_MAX) { in get_alloc_next_hop_addr()
234 hop_addr = alloc_hop(ctx); in get_alloc_next_hop_addr()
235 *is_new_hop = (hop_addr != ULLONG_MAX); in get_alloc_next_hop_addr()
238 return hop_addr; in get_alloc_next_hop_addr()
850 int hop_num, u64 hop_addr, u64 virt_addr) in get_hop_pte_addr() argument
854 return get_hop0_pte_addr(ctx, mmu_prop, hop_addr, virt_addr); in get_hop_pte_addr()
856 return get_hop1_pte_addr(ctx, mmu_prop, hop_addr, virt_addr); in get_hop_pte_addr()
858 return get_hop2_pte_addr(ctx, mmu_prop, hop_addr, virt_addr); in get_hop_pte_addr()
860 return get_hop3_pte_addr(ctx, mmu_prop, hop_addr, virt_addr); in get_hop_pte_addr()
862 return get_hop4_pte_addr(ctx, mmu_prop, hop_addr, virt_addr); in get_hop_pte_addr()
907 hops->hop_info[0].hop_addr = get_phys_hop0_addr(ctx); in hl_mmu_v1_get_tlb_info()
910 hops->hop_info[0].hop_addr, virt_addr); in hl_mmu_v1_get_tlb_info()
916 hops->hop_info[i].hop_addr = in hl_mmu_v1_get_tlb_info()
919 if (hops->hop_info[i].hop_addr == ULLONG_MAX) in hl_mmu_v1_get_tlb_info()
924 hops->hop_info[i].hop_addr, in hl_mmu_v1_get_tlb_info()