Searched refs:hl_ctx (Results 1 – 7 of 7) sorted by relevance
/drivers/misc/habanalabs/ |
D | mmu.c | 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, u64 hop_addr) in free_hop() 40 static u64 alloc_hop(struct hl_ctx *ctx) in alloc_hop() 79 static inline u64 get_phys_hop0_addr(struct hl_ctx *ctx) in get_phys_hop0_addr() 85 static inline u64 get_hop0_addr(struct hl_ctx *ctx) in get_hop0_addr() 91 static inline void flush(struct hl_ctx *ctx) in flush() 99 static inline void write_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, u64 val) in write_pte() 119 static inline void write_final_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, in write_final_pte() 129 static inline void clear_pte(struct hl_ctx *ctx, u64 pte_addr) in clear_pte() [all …]
|
D | context.c | 12 static void hl_ctx_fini(struct hl_ctx *ctx) in hl_ctx_fini() 47 struct hl_ctx *ctx; in hl_ctx_do_release() 49 ctx = container_of(ref, struct hl_ctx, refcount); in hl_ctx_do_release() 62 struct hl_ctx *ctx; in hl_ctx_create() 107 void hl_ctx_free(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_free() 117 int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx) in hl_ctx_init() 161 void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_get() 166 int hl_ctx_put(struct hl_ctx *ctx) in hl_ctx_put() 171 struct dma_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq) in hl_ctx_get_fence() 227 struct hl_ctx *ctx; in hl_ctx_mgr_fini()
|
D | habanalabs.h | 73 struct hl_ctx *ctx; 644 struct hl_ctx { struct 728 struct hl_ctx *ctx; 929 struct hl_ctx *ctx; 1269 struct hl_ctx *kernel_ctx; 1302 struct hl_ctx *compute_ctx; 1461 void hl_ctx_free(struct hl_device *hdev, struct hl_ctx *ctx); 1462 int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx); 1464 void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx); 1465 int hl_ctx_put(struct hl_ctx *ctx); [all …]
|
D | memory.c | 53 static int alloc_device_memory(struct hl_ctx *ctx, struct hl_mem_in *args, in alloc_device_memory() 304 static int free_device_memory(struct hl_ctx *ctx, u32 handle) in free_device_memory() 645 static int init_phys_pg_pack_from_userptr(struct hl_ctx *ctx, in init_phys_pg_pack_from_userptr() 745 static int map_phys_page_pack(struct hl_ctx *ctx, u64 vaddr, in map_phys_page_pack() 786 static int get_paddr_from_handle(struct hl_ctx *ctx, struct hl_mem_in *args, in get_paddr_from_handle() 824 static int map_device_va(struct hl_ctx *ctx, struct hl_mem_in *args, in map_device_va() 974 static int unmap_device_va(struct hl_ctx *ctx, u64 vaddr, bool ctx_free) in unmap_device_va() 1096 struct hl_ctx *ctx = hpriv->ctx; in mem_ioctl_no_mmu() 1155 struct hl_ctx *ctx = hpriv->ctx; in hl_mem_ioctl() 1466 static int hl_vm_ctx_init_with_ranges(struct hl_ctx *ctx, u64 host_range_start, in hl_vm_ctx_init_with_ranges() [all …]
|
D | debugfs.c | 228 struct hl_ctx *ctx; in vm_show() 304 static inline u64 get_hop0_addr(struct hl_ctx *ctx) in get_hop0_addr() 310 static inline u64 get_hop0_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hop0_pte_addr() 317 static inline u64 get_hop1_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hop1_pte_addr() 324 static inline u64 get_hop2_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hop2_pte_addr() 331 static inline u64 get_hop3_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hop3_pte_addr() 338 static inline u64 get_hop4_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hop4_pte_addr() 358 struct hl_ctx *ctx; in mmu_show() 536 struct hl_ctx *ctx = hdev->compute_ctx; in device_va_to_pa() 1145 void hl_debugfs_add_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx) in hl_debugfs_add_ctx_mem_hash() [all …]
|
D | command_submission.c | 16 struct hl_ctx *ctx, u64 timeout_us, u64 seq); 284 static int allocate_cs(struct hl_device *hdev, struct hl_ctx *ctx, in allocate_cs() 614 struct hl_ctx *ctx = hpriv->ctx; in hl_cs_ioctl() 737 struct hl_ctx *ctx, u64 timeout_us, u64 seq) in _hl_cs_wait_ioctl()
|
D | device.c | 45 struct hl_ctx *ctx; in hpriv_release()
|