Lines Matching defs:ctx

17 static struct pgt_info *get_pgt_info(struct hl_ctx *ctx, u64 hop_addr)  in get_pgt_info()
29 static void _free_hop(struct hl_ctx *ctx, struct pgt_info *pgt_info) in _free_hop()
40 static void free_hop(struct hl_ctx *ctx, u64 hop_addr) in free_hop()
47 static u64 alloc_hop(struct hl_ctx *ctx) in alloc_hop()
87 static inline u64 get_phys_hop0_addr(struct hl_ctx *ctx) in get_phys_hop0_addr()
93 static inline u64 get_hop0_addr(struct hl_ctx *ctx) in get_hop0_addr()
99 static void flush(struct hl_ctx *ctx) in flush()
107 static inline void write_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, u64 val) in write_pte()
127 static inline void write_final_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, in write_final_pte()
137 static inline void clear_pte(struct hl_ctx *ctx, u64 pte_addr) in clear_pte()
143 static inline void get_pte(struct hl_ctx *ctx, u64 hop_addr) in get_pte()
157 static inline int put_pte(struct hl_ctx *ctx, u64 hop_addr) in put_pte()
175 static inline u64 get_hop_pte_addr(struct hl_ctx *ctx, struct hl_mmu_properties *mmu_prop, in get_hop_pte_addr()
186 static inline u64 get_alloc_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte, in get_alloc_next_hop_addr()
200 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr) in get_phys_addr()
215 static int dram_default_mapping_init(struct hl_ctx *ctx) in dram_default_mapping_init()
315 static void dram_default_mapping_fini(struct hl_ctx *ctx) in dram_default_mapping_fini()
446 static int hl_mmu_v1_ctx_init(struct hl_ctx *ctx) in hl_mmu_v1_ctx_init()
462 static void hl_mmu_v1_ctx_fini(struct hl_ctx *ctx) in hl_mmu_v1_ctx_fini()
483 static int hl_mmu_v1_unmap(struct hl_ctx *ctx, in hl_mmu_v1_unmap()
587 static int hl_mmu_v1_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, in hl_mmu_v1_map()
701 static void hl_mmu_v1_swap_out(struct hl_ctx *ctx) in hl_mmu_v1_swap_out()
712 static void hl_mmu_v1_swap_in(struct hl_ctx *ctx) in hl_mmu_v1_swap_in()
717 static int hl_mmu_v1_get_tlb_info(struct hl_ctx *ctx, u64 virt_addr, in hl_mmu_v1_get_tlb_info()