Home
last modified time | relevance | path

Searched refs:hop_idx (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu_v1.c16 u64 *hop_addr_arr, u64 virt_addr, enum mmu_hop_num hop_idx) in get_hop_pte_addr() argument
20 mask = mmu_prop->hop_masks[hop_idx]; in get_hop_pte_addr()
21 shift = mmu_prop->hop_shifts[hop_idx]; in get_hop_pte_addr()
22 return hop_addr_arr[hop_idx] + in get_hop_pte_addr()
227 int hop_idx; in hl_mmu_v1_unmap() local
232 for (hop_idx = MMU_HOP0; hop_idx < MMU_HOP4; hop_idx++) { in hl_mmu_v1_unmap()
233 if (hop_idx == MMU_HOP0) { in hl_mmu_v1_unmap()
234 hop_addr[hop_idx] = hl_mmu_dr_get_hop0_addr(ctx); in hl_mmu_v1_unmap()
236 hop_addr[hop_idx] = hl_mmu_get_next_hop_addr(ctx, curr_pte); in hl_mmu_v1_unmap()
237 if (hop_addr[hop_idx] == ULLONG_MAX) in hl_mmu_v1_unmap()
[all …]
H A Dmmu.c737 u8 hop_idx, u64 hop_addr, u64 virt_addr) in hl_mmu_get_hop_pte_phys_addr() argument
741 if (hop_idx >= mmu_prop->num_hops) { in hl_mmu_get_hop_pte_phys_addr()
742 dev_err_ratelimited(ctx->hdev->dev, "Invalid hop index %d\n", hop_idx); in hl_mmu_get_hop_pte_phys_addr()
746 shift = mmu_prop->hop_shifts[hop_idx]; in hl_mmu_get_hop_pte_phys_addr()
747 mask = mmu_prop->hop_masks[hop_idx]; in hl_mmu_get_hop_pte_phys_addr()
/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs.h3893 u8 hop_idx, u64 hop_addr, u64 virt_addr);