hl_ctx 16 drivers/misc/habanalabs/command_submission.c struct hl_ctx *ctx, u64 timeout_us, u64 seq); hl_ctx 284 drivers/misc/habanalabs/command_submission.c static int allocate_cs(struct hl_device *hdev, struct hl_ctx *ctx, hl_ctx 614 drivers/misc/habanalabs/command_submission.c struct hl_ctx *ctx = hpriv->ctx; hl_ctx 737 drivers/misc/habanalabs/command_submission.c struct hl_ctx *ctx, u64 timeout_us, u64 seq) hl_ctx 12 drivers/misc/habanalabs/context.c static void hl_ctx_fini(struct hl_ctx *ctx) hl_ctx 47 drivers/misc/habanalabs/context.c struct hl_ctx *ctx; hl_ctx 49 drivers/misc/habanalabs/context.c ctx = container_of(ref, struct hl_ctx, refcount); hl_ctx 62 drivers/misc/habanalabs/context.c struct hl_ctx *ctx; hl_ctx 107 drivers/misc/habanalabs/context.c void hl_ctx_free(struct hl_device *hdev, struct hl_ctx *ctx) hl_ctx 117 drivers/misc/habanalabs/context.c int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx) hl_ctx 161 drivers/misc/habanalabs/context.c void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx) hl_ctx 166 drivers/misc/habanalabs/context.c int hl_ctx_put(struct hl_ctx *ctx) hl_ctx 171 drivers/misc/habanalabs/context.c struct dma_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq) hl_ctx 227 drivers/misc/habanalabs/context.c struct hl_ctx *ctx; hl_ctx 228 drivers/misc/habanalabs/debugfs.c struct hl_ctx *ctx; hl_ctx 304 drivers/misc/habanalabs/debugfs.c static inline u64 get_hop0_addr(struct hl_ctx *ctx) hl_ctx 310 drivers/misc/habanalabs/debugfs.c static inline u64 get_hop0_pte_addr(struct hl_ctx *ctx, u64 hop_addr, hl_ctx 317 drivers/misc/habanalabs/debugfs.c static inline u64 get_hop1_pte_addr(struct hl_ctx *ctx, u64 hop_addr, hl_ctx 324 drivers/misc/habanalabs/debugfs.c static inline u64 get_hop2_pte_addr(struct hl_ctx *ctx, u64 hop_addr, hl_ctx 331 drivers/misc/habanalabs/debugfs.c static inline u64 get_hop3_pte_addr(struct hl_ctx *ctx, u64 hop_addr, hl_ctx 338 drivers/misc/habanalabs/debugfs.c static inline u64 get_hop4_pte_addr(struct hl_ctx *ctx, u64 hop_addr, hl_ctx 358 drivers/misc/habanalabs/debugfs.c struct hl_ctx *ctx; hl_ctx 536 drivers/misc/habanalabs/debugfs.c struct hl_ctx *ctx = hdev->compute_ctx; hl_ctx 1145 drivers/misc/habanalabs/debugfs.c void hl_debugfs_add_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx) hl_ctx 1154 drivers/misc/habanalabs/debugfs.c void hl_debugfs_remove_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx) hl_ctx 45 drivers/misc/habanalabs/device.c struct hl_ctx *ctx; hl_ctx 73 drivers/misc/habanalabs/habanalabs.h struct hl_ctx *ctx; hl_ctx 728 drivers/misc/habanalabs/habanalabs.h struct hl_ctx *ctx; hl_ctx 929 drivers/misc/habanalabs/habanalabs.h struct hl_ctx *ctx; hl_ctx 1269 drivers/misc/habanalabs/habanalabs.h struct hl_ctx *kernel_ctx; hl_ctx 1302 drivers/misc/habanalabs/habanalabs.h struct hl_ctx *compute_ctx; hl_ctx 1461 drivers/misc/habanalabs/habanalabs.h void hl_ctx_free(struct hl_device *hdev, struct hl_ctx *ctx); hl_ctx 1462 drivers/misc/habanalabs/habanalabs.h int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx); hl_ctx 1464 drivers/misc/habanalabs/habanalabs.h void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx); hl_ctx 1465 drivers/misc/habanalabs/habanalabs.h int hl_ctx_put(struct hl_ctx *ctx); hl_ctx 1466 drivers/misc/habanalabs/habanalabs.h struct dma_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq); hl_ctx 1508 drivers/misc/habanalabs/habanalabs.h int hl_vm_ctx_init(struct hl_ctx *ctx); hl_ctx 1509 drivers/misc/habanalabs/habanalabs.h void hl_vm_ctx_fini(struct hl_ctx *ctx); hl_ctx 1525 drivers/misc/habanalabs/habanalabs.h int hl_mmu_ctx_init(struct hl_ctx *ctx); hl_ctx 1526 drivers/misc/habanalabs/habanalabs.h void hl_mmu_ctx_fini(struct hl_ctx *ctx); hl_ctx 1527 drivers/misc/habanalabs/habanalabs.h int hl_mmu_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, u32 page_size); hl_ctx 1528 drivers/misc/habanalabs/habanalabs.h int hl_mmu_unmap(struct hl_ctx *ctx, u64 virt_addr, u32 page_size); hl_ctx 1529 drivers/misc/habanalabs/habanalabs.h void hl_mmu_swap_out(struct hl_ctx *ctx); hl_ctx 1530 drivers/misc/habanalabs/habanalabs.h void hl_mmu_swap_in(struct hl_ctx *ctx); hl_ctx 1587 drivers/misc/habanalabs/habanalabs.h void hl_debugfs_add_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx); hl_ctx 1588 drivers/misc/habanalabs/habanalabs.h void hl_debugfs_remove_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx); hl_ctx 1653 drivers/misc/habanalabs/habanalabs.h struct hl_ctx *ctx) hl_ctx 1658 drivers/misc/habanalabs/habanalabs.h struct hl_ctx *ctx) hl_ctx 53 drivers/misc/habanalabs/memory.c static int alloc_device_memory(struct hl_ctx *ctx, struct hl_mem_in *args, hl_ctx 304 drivers/misc/habanalabs/memory.c static int free_device_memory(struct hl_ctx *ctx, u32 handle) hl_ctx 645 drivers/misc/habanalabs/memory.c static int init_phys_pg_pack_from_userptr(struct hl_ctx *ctx, hl_ctx 745 drivers/misc/habanalabs/memory.c static int map_phys_page_pack(struct hl_ctx *ctx, u64 vaddr, hl_ctx 786 drivers/misc/habanalabs/memory.c static int get_paddr_from_handle(struct hl_ctx *ctx, struct hl_mem_in *args, hl_ctx 824 drivers/misc/habanalabs/memory.c static int map_device_va(struct hl_ctx *ctx, struct hl_mem_in *args, hl_ctx 974 drivers/misc/habanalabs/memory.c static int unmap_device_va(struct hl_ctx *ctx, u64 vaddr, bool ctx_free) hl_ctx 1096 drivers/misc/habanalabs/memory.c struct hl_ctx *ctx = hpriv->ctx; hl_ctx 1155 drivers/misc/habanalabs/memory.c struct hl_ctx *ctx = hpriv->ctx; hl_ctx 1466 drivers/misc/habanalabs/memory.c static int hl_vm_ctx_init_with_ranges(struct hl_ctx *ctx, u64 host_range_start, hl_ctx 1518 drivers/misc/habanalabs/memory.c int hl_vm_ctx_init(struct hl_ctx *ctx) hl_ctx 1615 drivers/misc/habanalabs/memory.c void hl_vm_ctx_fini(struct hl_ctx *ctx) hl_ctx 14 drivers/misc/habanalabs/mmu.c static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr); hl_ctx 16 drivers/misc/habanalabs/mmu.c static struct pgt_info *get_pgt_info(struct hl_ctx *ctx, u64 hop_addr) hl_ctx 28 drivers/misc/habanalabs/mmu.c static void free_hop(struct hl_ctx *ctx, u64 hop_addr) hl_ctx 40 drivers/misc/habanalabs/mmu.c static u64 alloc_hop(struct hl_ctx *ctx) hl_ctx 79 drivers/misc/habanalabs/mmu.c static inline u64 get_phys_hop0_addr(struct hl_ctx *ctx) hl_ctx 85 drivers/misc/habanalabs/mmu.c static inline u64 get_hop0_addr(struct hl_ctx *ctx) hl_ctx 91 drivers/misc/habanalabs/mmu.c static inline void flush(struct hl_ctx *ctx) hl_ctx 99 drivers/misc/habanalabs/mmu.c static inline void write_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, u64 val) hl_ctx 119 drivers/misc/habanalabs/mmu.c static inline void write_final_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, hl_ctx 129 drivers/misc/habanalabs/mmu.c static inline void clear_pte(struct hl_ctx *ctx, u64 pte_addr) hl_ctx 135 drivers/misc/habanalabs/mmu.c static inline void get_pte(struct hl_ctx *ctx, u64 hop_addr) hl_ctx 149 drivers/misc/habanalabs/mmu.c static inline int put_pte(struct hl_ctx *ctx, u64 hop_addr) hl_ctx 167 drivers/misc/habanalabs/mmu.c static inline u64 get_hopN_pte_addr(struct hl_ctx *ctx, u64 hop_addr, hl_ctx 174 drivers/misc/habanalabs/mmu.c static inline u64 get_hop0_pte_addr(struct hl_ctx *ctx, u64 hop_addr, u64 vaddr) hl_ctx 179 drivers/misc/habanalabs/mmu.c static inline u64 get_hop1_pte_addr(struct hl_ctx *ctx, u64 hop_addr, u64 vaddr) hl_ctx 184 drivers/misc/habanalabs/mmu.c static inline u64 get_hop2_pte_addr(struct hl_ctx *ctx, u64 hop_addr, u64 vaddr) hl_ctx 189 drivers/misc/habanalabs/mmu.c static inline u64 get_hop3_pte_addr(struct hl_ctx *ctx, u64 hop_addr, u64 vaddr) hl_ctx 194 drivers/misc/habanalabs/mmu.c static inline u64 get_hop4_pte_addr(struct hl_ctx *ctx, u64 hop_addr, u64 vaddr) hl_ctx 199 drivers/misc/habanalabs/mmu.c static inline u64 get_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte) hl_ctx 207 drivers/misc/habanalabs/mmu.c static inline u64 get_alloc_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte, hl_ctx 221 drivers/misc/habanalabs/mmu.c static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr) hl_ctx 236 drivers/misc/habanalabs/mmu.c static int dram_default_mapping_init(struct hl_ctx *ctx) hl_ctx 336 drivers/misc/habanalabs/mmu.c static void dram_default_mapping_fini(struct hl_ctx *ctx) hl_ctx 467 drivers/misc/habanalabs/mmu.c int hl_mmu_ctx_init(struct hl_ctx *ctx) hl_ctx 491 drivers/misc/habanalabs/mmu.c void hl_mmu_ctx_fini(struct hl_ctx *ctx) hl_ctx 516 drivers/misc/habanalabs/mmu.c static int _hl_mmu_unmap(struct hl_ctx *ctx, u64 virt_addr) hl_ctx 667 drivers/misc/habanalabs/mmu.c int hl_mmu_unmap(struct hl_ctx *ctx, u64 virt_addr, u32 page_size) hl_ctx 707 drivers/misc/habanalabs/mmu.c static int _hl_mmu_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, hl_ctx 890 drivers/misc/habanalabs/mmu.c int hl_mmu_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, u32 page_size) hl_ctx 956 drivers/misc/habanalabs/mmu.c void hl_mmu_swap_out(struct hl_ctx *ctx) hl_ctx 967 drivers/misc/habanalabs/mmu.c void hl_mmu_swap_in(struct hl_ctx *ctx)