Home
last modified time | relevance | path

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

/drivers/accel/habanalabs/common/mmu/
A Dmmu.c938 kfree(pgt_info); in hl_mmu_hr_free_hop_remove_pgt()
1069 struct pgt_info *pgt_info; in hl_mmu_hr_alloc_hop() local
1074 pgt_info = kmalloc(sizeof(*pgt_info), GFP_KERNEL); in hl_mmu_hr_alloc_hop()
1075 if (!pgt_info) in hl_mmu_hr_alloc_hop()
1112 return pgt_info; in hl_mmu_hr_alloc_hop()
1115 kfree(pgt_info); in hl_mmu_hr_alloc_hop()
1221 struct pgt_info *pgt_info = NULL; in hl_mmu_dr_get_pgt_info() local
1228 return pgt_info; in hl_mmu_dr_get_pgt_info()
1325 struct pgt_info *pgt_info; in hl_mmu_dr_alloc_hop() local
1328 pgt_info = kmalloc(sizeof(*pgt_info), GFP_KERNEL); in hl_mmu_dr_alloc_hop()
[all …]
A Dmmu_v2_hr.c15 struct pgt_info *pgt_info = NULL; in hl_mmu_v2_hr_get_pgt_info() local
17 hash_for_each_possible(ctx->hr_mmu_phys_hash, pgt_info, node, in hl_mmu_v2_hr_get_pgt_info()
19 if (phys_hop_addr == pgt_info->phys_addr) in hl_mmu_v2_hr_get_pgt_info()
22 return pgt_info; in hl_mmu_v2_hr_get_pgt_info()
25 static void hl_mmu_v2_hr_add_pgt_info(struct hl_ctx *ctx, struct pgt_info *pgt_info, in hl_mmu_v2_hr_add_pgt_info() argument
28 hash_add(ctx->hr_mmu_phys_hash, &pgt_info->node, phys_addr); in hl_mmu_v2_hr_add_pgt_info()
98 struct pgt_info *pgt_info; in hl_mmu_v2_hr_ctx_fini() local
109 pgt_info->phys_addr, ctx->asid, pgt_info->num_of_ptes); in hl_mmu_v2_hr_ctx_fini()
110 hl_mmu_hr_free_hop_remove_pgt(pgt_info, &ctx->hdev->mmu_priv.hr, in hl_mmu_v2_hr_ctx_fini()
119 struct pgt_info *hops_pgt_info[MMU_ARCH_6_HOPS] = { NULL }; in _hl_mmu_v2_hr_unmap()
[all …]
A Dmmu_v2.c42 struct pgt_info *pgt_info; in hl_mmu_v2_ctx_fini() local
50 hash_for_each_safe(ctx->mmu_shadow_hash, i, tmp, pgt_info, node) { in hl_mmu_v2_ctx_fini()
53 pgt_info->phys_addr, ctx->asid, pgt_info->num_of_ptes); in hl_mmu_v2_ctx_fini()
54 hl_mmu_dr_free_pgt_node(ctx, pgt_info); in hl_mmu_v2_ctx_fini()
A Dmmu_v1.c201 struct pgt_info *pgt_info; in hl_mmu_v1_ctx_fini() local
211 hash_for_each_safe(ctx->mmu_shadow_hash, i, tmp, pgt_info, node) { in hl_mmu_v1_ctx_fini()
214 pgt_info->phys_addr, ctx->asid, pgt_info->num_of_ptes); in hl_mmu_v1_ctx_fini()
215 hl_mmu_dr_free_pgt_node(ctx, pgt_info); in hl_mmu_v1_ctx_fini()
/drivers/accel/habanalabs/common/
A Dhabanalabs.h297 struct pgt_info { struct
2809 struct pgt_info *mmu_asid_hop0;
2875 struct pgt_info *(*get_hop0_pgt_info)(struct hl_ctx *ctx);
2877 void (*add_pgt_info)(struct hl_ctx *ctx, struct pgt_info *pgt_info, dma_addr_t phys_addr);
3898 void hl_mmu_hr_free_hop_remove_pgt(struct pgt_info *pgt_info, struct hl_mmu_hr_priv *hr_priv,
3902 void hl_mmu_hr_write_pte(struct hl_ctx *ctx, struct pgt_info *pgt_info, u64 phys_pte_addr,
3904 void hl_mmu_hr_clear_pte(struct hl_ctx *ctx, struct pgt_info *pgt_info, u64 phys_pte_addr,
3906 int hl_mmu_hr_put_pte(struct hl_ctx *ctx, struct pgt_info *pgt_info, struct hl_mmu_hr_priv *hr_priv,
3909 struct pgt_info *hl_mmu_hr_get_next_hop_pgt_info(struct hl_ctx *ctx,
3915 struct pgt_info *hl_mmu_hr_get_alloc_next_hop(struct hl_ctx *ctx,
[all …]

Completed in 26 milliseconds