Home
last modified time | relevance | path

Searched refs:curr_pte (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/misc/habanalabs/common/mmu/
Dmmu_v2_hr.c118 u64 curr_pte, scrambled_virt_addr, hop_pte_phys_addr[MMU_ARCH_6_HOPS] = { 0 }; in _hl_mmu_v2_hr_unmap() local
133 curr_pte = 0; in _hl_mmu_v2_hr_unmap()
141 &ctx->hdev->mmu_func[MMU_HR_PGT].hr_funcs, curr_pte); in _hl_mmu_v2_hr_unmap()
151 curr_pte = *(u64 *) (uintptr_t) hl_mmu_hr_pte_phys_to_virt(ctx, hops_pgt_info[i], in _hl_mmu_v2_hr_unmap()
155 if ((i < hop_last) && (curr_pte & mmu_prop->last_mask)) { in _hl_mmu_v2_hr_unmap()
167 if (!(curr_pte & PAGE_PRESENT_MASK)) in _hl_mmu_v2_hr_unmap()
210 curr_pte = 0, scrambled_virt_addr, scrambled_phys_addr; in _hl_mmu_v2_hr_map() local
249 mmu_prop, curr_pte, &hop_new[i]); in _hl_mmu_v2_hr_map()
256 curr_pte = *(u64 *) (uintptr_t) hl_mmu_hr_pte_phys_to_virt(ctx, hops_pgt_info[i], in _hl_mmu_v2_hr_map()
261 if (curr_pte & PAGE_PRESENT_MASK) { in _hl_mmu_v2_hr_map()
[all …]
Dmmu_v1.c186 static inline u64 get_alloc_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte, in get_alloc_next_hop_addr() argument
189 u64 hop_addr = hl_mmu_get_next_hop_addr(ctx, curr_pte); in get_alloc_next_hop_addr()
487 u64 hop_addr[MMU_V1_MAX_HOPS] = {0}, hop_pte_addr[MMU_V1_MAX_HOPS] = {0}, curr_pte = 0; in hl_mmu_v1_unmap() local
501 hop_addr[hop_idx] = hl_mmu_get_next_hop_addr(ctx, curr_pte); in hl_mmu_v1_unmap()
509 curr_pte = *(u64 *) (uintptr_t) hop_pte_addr[hop_idx]; in hl_mmu_v1_unmap()
512 is_huge = curr_pte & mmu_prop->last_mask; in hl_mmu_v1_unmap()
521 hop_addr[hop_idx] = hl_mmu_get_next_hop_addr(ctx, curr_pte); in hl_mmu_v1_unmap()
527 curr_pte = *(u64 *) (uintptr_t) hop_pte_addr[hop_idx]; in hl_mmu_v1_unmap()
535 if (curr_pte == default_pte) { in hl_mmu_v1_unmap()
542 if (!(curr_pte & PAGE_PRESENT_MASK)) { in hl_mmu_v1_unmap()
[all …]
Dmmu.c749 u64 hl_mmu_get_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte) in hl_mmu_get_next_hop_addr() argument
751 return (curr_pte & PAGE_PRESENT_MASK) ? (curr_pte & HOP_PHYS_ADDR_MASK) : ULLONG_MAX; in hl_mmu_get_next_hop_addr()
1073 u64 curr_pte) in hl_mmu_hr_get_next_hop_pgt_info() argument
1075 u64 next_hop_phys_addr = hl_mmu_get_next_hop_addr(ctx, curr_pte); in hl_mmu_hr_get_next_hop_pgt_info()
1163 u64 curr_pte, bool *is_new_hop) in hl_mmu_hr_get_alloc_next_hop() argument
1165 u64 hop_addr = hl_mmu_get_next_hop_addr(ctx, curr_pte); in hl_mmu_hr_get_alloc_next_hop()
/linux-6.1.9/arch/x86/kvm/mmu/
Dpaging_tmpl.h555 pt_element_t curr_pte; in FNAME() local
567 curr_pte = gw->prefetch_ptes[index]; in FNAME()
570 &curr_pte, sizeof(curr_pte)); in FNAME()
572 return r || curr_pte != gw->ptes[level - 1]; in FNAME()
/linux-6.1.9/drivers/misc/habanalabs/common/
Dhabanalabs.h3640 u64 hl_mmu_get_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte);
3660 u64 curr_pte);
3668 u64 curr_pte, bool *is_new_hop);