Searched refs:hop_last (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/common/mmu/ |
D | mmu_v2_hr.c | 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() [all …]
|
D | mmu_v2.c | 66 int i, hop_last; in hl_mmu_v2_unmap() local 74 hop_last = mmu_prop->num_hops - 1; in hl_mmu_v2_unmap() 98 if ((i <= hop_last) && (curr_pte & mmu_prop->last_mask)) { in hl_mmu_v2_unmap() 99 hop_last = i; in hl_mmu_v2_unmap() 113 for (i = hop_last ; i > 0 ; i--) { in hl_mmu_v2_unmap() 139 int rc, i, hop_last; in hl_mmu_v2_map() local 147 hop_last = mmu_prop->num_hops - 1; in hl_mmu_v2_map() 159 for (i = 1 ; i <= hop_last ; i++) { in hl_mmu_v2_map() 186 for (i = 0 ; i <= hop_last ; i++) in hl_mmu_v2_map() 199 hl_mmu_dr_write_final_pte(ctx, hop_pte_addr[hop_last], curr_pte); in hl_mmu_v2_map() [all …]
|