Lines Matching refs:hl_ctx
106 int hl_mmu_ctx_init(struct hl_ctx *ctx) in hl_mmu_ctx_init()
145 void hl_mmu_ctx_fini(struct hl_ctx *ctx) in hl_mmu_ctx_fini()
227 int hl_mmu_unmap_page(struct hl_ctx *ctx, u64 virt_addr, u32 page_size, bool flush_pte) in hl_mmu_unmap_page()
293 int hl_mmu_map_page(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, u32 page_size, in hl_mmu_map_page()
382 int hl_mmu_map_contiguous(struct hl_ctx *ctx, u64 virt_addr, in hl_mmu_map_contiguous()
443 int hl_mmu_unmap_contiguous(struct hl_ctx *ctx, u64 virt_addr, u32 size) in hl_mmu_unmap_contiguous()
476 static void hl_mmu_pa_page_with_offset(struct hl_ctx *ctx, u64 virt_addr, in hl_mmu_pa_page_with_offset()
532 int hl_mmu_va_to_pa(struct hl_ctx *ctx, u64 virt_addr, u64 *phys_addr) in hl_mmu_va_to_pa()
548 int hl_mmu_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, in hl_mmu_get_tlb_info()
675 struct hl_ctx *ctx = pfw->ctx; in hl_mmu_prefetch_work_function()
696 int hl_mmu_prefetch_cache_range(struct hl_ctx *ctx, u32 flags, u32 asid, u64 va, u64 size) in hl_mmu_prefetch_cache_range()
721 u64 hl_mmu_get_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte) in hl_mmu_get_next_hop_addr()
736 u64 hl_mmu_get_hop_pte_phys_addr(struct hl_ctx *ctx, struct hl_mmu_properties *mmu_prop, in hl_mmu_get_hop_pte_phys_addr()
762 void hl_mmu_hr_flush(struct hl_ctx *ctx) in hl_mmu_hr_flush()
953 u64 hl_mmu_hr_pte_phys_to_virt(struct hl_ctx *ctx, struct pgt_info *pgt, in hl_mmu_hr_pte_phys_to_virt()
970 void hl_mmu_hr_write_pte(struct hl_ctx *ctx, struct pgt_info *pgt_info, u64 phys_pte_addr, in hl_mmu_hr_write_pte()
989 void hl_mmu_hr_clear_pte(struct hl_ctx *ctx, struct pgt_info *pgt_info, u64 phys_pte_addr, in hl_mmu_hr_clear_pte()
1005 int hl_mmu_hr_put_pte(struct hl_ctx *ctx, struct pgt_info *pgt_info, in hl_mmu_hr_put_pte()
1030 void hl_mmu_hr_get_pte(struct hl_ctx *ctx, struct hl_hr_mmu_funcs *hr_func, u64 phys_hop_addr) in hl_mmu_hr_get_pte()
1043 struct pgt_info *hl_mmu_hr_get_next_hop_pgt_info(struct hl_ctx *ctx, in hl_mmu_hr_get_next_hop_pgt_info()
1064 struct pgt_info *hl_mmu_hr_alloc_hop(struct hl_ctx *ctx, struct hl_mmu_hr_priv *hr_priv, in hl_mmu_hr_alloc_hop()
1131 struct pgt_info *hl_mmu_hr_get_alloc_next_hop(struct hl_ctx *ctx, in hl_mmu_hr_get_alloc_next_hop()
1155 int hl_mmu_hr_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops, in hl_mmu_hr_get_tlb_info()
1219 struct pgt_info *hl_mmu_dr_get_pgt_info(struct hl_ctx *ctx, u64 hop_addr) in hl_mmu_dr_get_pgt_info()
1231 void hl_mmu_dr_free_hop(struct hl_ctx *ctx, u64 hop_addr) in hl_mmu_dr_free_hop()
1238 void hl_mmu_dr_free_pgt_node(struct hl_ctx *ctx, struct pgt_info *pgt_info) in hl_mmu_dr_free_pgt_node()
1249 u64 hl_mmu_dr_get_phys_hop0_addr(struct hl_ctx *ctx) in hl_mmu_dr_get_phys_hop0_addr()
1255 u64 hl_mmu_dr_get_hop0_addr(struct hl_ctx *ctx) in hl_mmu_dr_get_hop0_addr()
1261 u64 hl_mmu_dr_get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr) in hl_mmu_dr_get_phys_addr()
1276 void hl_mmu_dr_write_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, u64 val) in hl_mmu_dr_write_pte()
1286 void hl_mmu_dr_write_final_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, u64 val) in hl_mmu_dr_write_final_pte()
1293 void hl_mmu_dr_clear_pte(struct hl_ctx *ctx, u64 pte_addr) in hl_mmu_dr_clear_pte()
1298 void hl_mmu_dr_get_pte(struct hl_ctx *ctx, u64 hop_addr) in hl_mmu_dr_get_pte()
1303 int hl_mmu_dr_put_pte(struct hl_ctx *ctx, u64 hop_addr) in hl_mmu_dr_put_pte()
1321 u64 hl_mmu_dr_alloc_hop(struct hl_ctx *ctx) in hl_mmu_dr_alloc_hop()
1361 u64 hl_mmu_dr_get_alloc_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte, bool *is_new_hop) in hl_mmu_dr_get_alloc_next_hop_addr()
1373 void hl_mmu_dr_flush(struct hl_ctx *ctx) in hl_mmu_dr_flush()