Lines Matching refs:hop_last
124 int i, hop_last; in _hl_mmu_v2_hr_unmap() local
130 hop_last = mmu_prop->num_hops - 1; in _hl_mmu_v2_hr_unmap()
155 if ((i < hop_last) && (curr_pte & mmu_prop->last_mask)) { in _hl_mmu_v2_hr_unmap()
156 hop_last = i; in _hl_mmu_v2_hr_unmap()
170 for (i = hop_last ; i > 0 ; i--) { in _hl_mmu_v2_hr_unmap()
216 int i, hop_last, rc = -ENOMEM; in _hl_mmu_v2_hr_map() local
232 hop_last = hl_mmu_v2_get_last_hop(mmu_prop, page_size); in _hl_mmu_v2_hr_map()
233 if (hop_last <= 0) { in _hl_mmu_v2_hr_map()
234 dev_err(ctx->hdev->dev, "Invalid last HOP %d\n", hop_last); in _hl_mmu_v2_hr_map()
241 for (i = 0 ; i <= hop_last ; i++) { in _hl_mmu_v2_hr_map()
265 for (i = 0 ; i <= hop_last ; i++) in _hl_mmu_v2_hr_map()
281 hl_mmu_hr_write_pte(ctx, hops_pgt_info[hop_last], hop_pte_phys_addr[hop_last], curr_pte, in _hl_mmu_v2_hr_map()
285 for (i = 1 ; i <= hop_last ; i++) { in _hl_mmu_v2_hr_map()
298 hops_pgt_info[hop_last]->phys_addr); in _hl_mmu_v2_hr_map()
303 for (i = 1 ; i <= hop_last ; i++) in _hl_mmu_v2_hr_map()