Lines Matching defs:ctx

15 static struct pgt_info *get_pgt_info(struct hl_ctx *ctx, u64 hop_addr)  in get_pgt_info()
27 static void _free_hop(struct hl_ctx *ctx, struct pgt_info *pgt_info) in _free_hop()
38 static void free_hop(struct hl_ctx *ctx, u64 hop_addr) in free_hop()
45 static u64 alloc_hop(struct hl_ctx *ctx) in alloc_hop()
85 static inline u64 get_phys_hop0_addr(struct hl_ctx *ctx) in get_phys_hop0_addr()
91 static inline u64 get_hop0_addr(struct hl_ctx *ctx) in get_hop0_addr()
97 static void flush(struct hl_ctx *ctx) in flush()
105 static inline void write_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, u64 val) in write_pte()
125 static inline void write_final_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, in write_final_pte()
135 static inline void clear_pte(struct hl_ctx *ctx, u64 pte_addr) in clear_pte()
141 static inline void get_pte(struct hl_ctx *ctx, u64 hop_addr) in get_pte()
155 static inline int put_pte(struct hl_ctx *ctx, u64 hop_addr) in put_pte()
173 static inline u64 get_hopN_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hopN_pte_addr()
180 static inline u64 get_hop0_pte_addr(struct hl_ctx *ctx, in get_hop0_pte_addr()
188 static inline u64 get_hop1_pte_addr(struct hl_ctx *ctx, in get_hop1_pte_addr()
196 static inline u64 get_hop2_pte_addr(struct hl_ctx *ctx, in get_hop2_pte_addr()
204 static inline u64 get_hop3_pte_addr(struct hl_ctx *ctx, in get_hop3_pte_addr()
212 static inline u64 get_hop4_pte_addr(struct hl_ctx *ctx, in get_hop4_pte_addr()
220 static inline u64 get_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte) in get_next_hop_addr()
228 static inline u64 get_alloc_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte, in get_alloc_next_hop_addr()
242 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr) in get_phys_addr()
257 static int dram_default_mapping_init(struct hl_ctx *ctx) in dram_default_mapping_init()
357 static void dram_default_mapping_fini(struct hl_ctx *ctx) in dram_default_mapping_fini()
490 static int hl_mmu_v1_ctx_init(struct hl_ctx *ctx) in hl_mmu_v1_ctx_init()
506 static void hl_mmu_v1_ctx_fini(struct hl_ctx *ctx) in hl_mmu_v1_ctx_fini()
527 static int _hl_mmu_v1_unmap(struct hl_ctx *ctx, in _hl_mmu_v1_unmap()
661 static int _hl_mmu_v1_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, in _hl_mmu_v1_map()
832 static void hl_mmu_v1_swap_out(struct hl_ctx *ctx) in hl_mmu_v1_swap_out()
843 static void hl_mmu_v1_swap_in(struct hl_ctx *ctx) in hl_mmu_v1_swap_in()
848 static inline u64 get_hop_pte_addr(struct hl_ctx *ctx, in get_hop_pte_addr()
869 static int hl_mmu_v1_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, in hl_mmu_v1_get_tlb_info()