Lines Matching refs:hl_ctx
14 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr);
16 static struct pgt_info *get_pgt_info(struct hl_ctx *ctx, u64 hop_addr) in get_pgt_info()
28 static void _free_hop(struct hl_ctx *ctx, struct pgt_info *pgt_info) in _free_hop()
39 static void free_hop(struct hl_ctx *ctx, u64 hop_addr) in free_hop()
46 static u64 alloc_hop(struct hl_ctx *ctx) in alloc_hop()
86 static inline u64 get_phys_hop0_addr(struct hl_ctx *ctx) in get_phys_hop0_addr()
92 static inline u64 get_hop0_addr(struct hl_ctx *ctx) in get_hop0_addr()
98 static void flush(struct hl_ctx *ctx) in flush()
106 static inline void write_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, u64 val) in write_pte()
126 static inline void write_final_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, in write_final_pte()
136 static inline void clear_pte(struct hl_ctx *ctx, u64 pte_addr) in clear_pte()
142 static inline void get_pte(struct hl_ctx *ctx, u64 hop_addr) in get_pte()
156 static inline int put_pte(struct hl_ctx *ctx, u64 hop_addr) in put_pte()
174 static inline u64 get_hopN_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hopN_pte_addr()
181 static inline u64 get_hop0_pte_addr(struct hl_ctx *ctx, in get_hop0_pte_addr()
189 static inline u64 get_hop1_pte_addr(struct hl_ctx *ctx, in get_hop1_pte_addr()
197 static inline u64 get_hop2_pte_addr(struct hl_ctx *ctx, in get_hop2_pte_addr()
205 static inline u64 get_hop3_pte_addr(struct hl_ctx *ctx, in get_hop3_pte_addr()
213 static inline u64 get_hop4_pte_addr(struct hl_ctx *ctx, in get_hop4_pte_addr()
221 static inline u64 get_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte) in get_next_hop_addr()
229 static inline u64 get_alloc_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte, in get_alloc_next_hop_addr()
243 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr) in get_phys_addr()
258 static int dram_default_mapping_init(struct hl_ctx *ctx) in dram_default_mapping_init()
358 static void dram_default_mapping_fini(struct hl_ctx *ctx) in dram_default_mapping_fini()
483 static int hl_mmu_v1_ctx_init(struct hl_ctx *ctx) in hl_mmu_v1_ctx_init()
501 static void hl_mmu_v1_ctx_fini(struct hl_ctx *ctx) in hl_mmu_v1_ctx_fini()
524 static int _hl_mmu_v1_unmap(struct hl_ctx *ctx, in _hl_mmu_v1_unmap()
658 static int _hl_mmu_v1_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, in _hl_mmu_v1_map()
829 static void hl_mmu_v1_swap_out(struct hl_ctx *ctx) in hl_mmu_v1_swap_out()
840 static void hl_mmu_v1_swap_in(struct hl_ctx *ctx) in hl_mmu_v1_swap_in()