Searched refs:hop_idx (Results 1 – 3 of 3) sorted by relevance
176 u64 *hop_addr_arr, u64 virt_addr, enum mmu_hop_num hop_idx) in get_hop_pte_addr() argument180 mask = mmu_prop->hop_masks[hop_idx]; in get_hop_pte_addr()181 shift = mmu_prop->hop_shifts[hop_idx]; in get_hop_pte_addr()182 return hop_addr_arr[hop_idx] + in get_hop_pte_addr()491 int hop_idx; in hl_mmu_v1_unmap() local496 for (hop_idx = MMU_HOP0; hop_idx < MMU_HOP4; hop_idx++) { in hl_mmu_v1_unmap()497 if (hop_idx == MMU_HOP0) { in hl_mmu_v1_unmap()498 hop_addr[hop_idx] = get_hop0_addr(ctx); in hl_mmu_v1_unmap()500 hop_addr[hop_idx] = hl_mmu_get_next_hop_addr(ctx, curr_pte); in hl_mmu_v1_unmap()501 if (hop_addr[hop_idx] == ULLONG_MAX) in hl_mmu_v1_unmap()[all …]
730 u8 hop_idx, u64 hop_addr, u64 virt_addr) in hl_mmu_get_hop_pte_phys_addr() argument734 if (hop_idx >= mmu_prop->num_hops) { in hl_mmu_get_hop_pte_phys_addr()735 dev_err_ratelimited(ctx->hdev->dev, "Invalid hop index %d\n", hop_idx); in hl_mmu_get_hop_pte_phys_addr()739 shift = mmu_prop->hop_shifts[hop_idx]; in hl_mmu_get_hop_pte_phys_addr()740 mask = mmu_prop->hop_masks[hop_idx]; in hl_mmu_get_hop_pte_phys_addr()
3776 u8 hop_idx, u64 hop_addr, u64 virt_addr);