/Linux-v5.15/drivers/misc/habanalabs/common/ |
D | context.c | 16 struct hl_ctx *ctx = handle->hdev->compute_ctx; in hl_encaps_handle_do_release() 30 struct hl_ctx *ctx = handle->hdev->compute_ctx; in hl_encaps_handle_do_release_sob() 71 static void hl_ctx_fini(struct hl_ctx *ctx) in hl_ctx_fini() 124 struct hl_ctx *ctx; in hl_ctx_do_release() 126 ctx = container_of(ref, struct hl_ctx, refcount); in hl_ctx_do_release() 139 struct hl_ctx *ctx; in hl_ctx_create() 184 void hl_ctx_free(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_free() 190 int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx) in hl_ctx_init() 273 void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_get() 278 int hl_ctx_put(struct hl_ctx *ctx) in hl_ctx_put() [all …]
|
D | habanalabs.h | 182 struct hl_ctx *ctx; 679 struct hl_ctx *ctx; 1262 int (*ctx_init)(struct hl_ctx *ctx); 1263 void (*ctx_fini)(struct hl_ctx *ctx); 1280 struct hl_ctx *ctx, struct hl_cs *cs, 1393 struct hl_ctx { struct 1503 struct hl_ctx *ctx; 1652 struct hl_ctx *ctx; 1764 struct hl_ctx *ctx; 2252 int (*ctx_init)(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() 333 static int free_device_memory(struct hl_ctx *ctx, struct hl_mem_in *args) in free_device_memory() 733 u64 hl_reserve_va_block(struct hl_device *hdev, struct hl_ctx *ctx, in hl_reserve_va_block() 749 static int hl_get_va_range_type(struct hl_ctx *ctx, u64 address, u64 size, in hl_get_va_range_type() 776 int hl_unreserve_va_block(struct hl_device *hdev, struct hl_ctx *ctx, in hl_unreserve_va_block() 815 static int init_phys_pg_pack_from_userptr(struct hl_ctx *ctx, in init_phys_pg_pack_from_userptr() 919 static int map_phys_pg_pack(struct hl_ctx *ctx, u64 vaddr, in map_phys_pg_pack() 982 static void unmap_phys_pg_pack(struct hl_ctx *ctx, u64 vaddr, in unmap_phys_pg_pack() 1013 static int get_paddr_from_handle(struct hl_ctx *ctx, struct hl_mem_in *args, in get_paddr_from_handle() 1050 static int map_device_va(struct hl_ctx *ctx, struct hl_mem_in *args, in map_device_va() [all …]
|
D | command_buffer.c | 15 static int cb_map_mem(struct hl_ctx *ctx, struct hl_cb *cb) in cb_map_mem() 114 static void cb_unmap_mem(struct hl_ctx *ctx, struct hl_cb *cb) in cb_unmap_mem() 242 struct hl_ctx *ctx, u32 cb_size, bool internal_cb, in hl_cb_create() 692 int hl_cb_va_pool_init(struct hl_ctx *ctx) in hl_cb_va_pool_init() 724 void hl_cb_va_pool_fini(struct hl_ctx *ctx) in hl_cb_va_pool_fini()
|
D | command_submission.c | 30 static int _hl_cs_wait_ioctl(struct hl_device *hdev, struct hl_ctx *ctx, 765 static int allocate_cs(struct hl_device *hdev, struct hl_ctx *ctx, in allocate_cs() 1117 struct hl_ctx *ctx = hpriv->ctx; in hl_cs_sanity_checks() 1173 struct hl_ctx *ctx) in hl_cs_copy_chunk_array() 1260 struct hl_ctx *ctx = hpriv->ctx; in cs_ioctl_default() 1444 struct hl_ctx *ctx = hpriv->ctx; in hl_cs_ctx_switch() 1636 struct hl_cs_chunk *chunk, u64 *signal_seq, struct hl_ctx *ctx, in cs_ioctl_extract_signal_seq() 1694 struct hl_ctx *ctx, struct hl_cs *cs, in cs_ioctl_signal_wait_create_jobs() 1954 struct hl_ctx *ctx = hpriv->ctx; in cs_ioctl_signal_wait() 2268 static int hl_wait_for_fence(struct hl_ctx *ctx, u64 seq, struct hl_fence *fence, in hl_wait_for_fence() [all …]
|
D | debugfs.c | 233 struct hl_ctx *ctx; in vm_show() 399 struct hl_ctx *ctx; in mmu_show() 563 struct hl_ctx *ctx = hdev->compute_ctx; in device_va_to_pa() 1543 void hl_debugfs_add_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx) in hl_debugfs_add_ctx_mem_hash() 1552 void hl_debugfs_remove_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx) in hl_debugfs_remove_ctx_mem_hash()
|
D | hw_queue.c | 545 struct hl_ctx *ctx = cs->ctx; in init_signal_wait_cs() 625 struct hl_ctx *ctx = cs->ctx; in hl_hw_queue_schedule_cs()
|
/Linux-v5.15/drivers/misc/habanalabs/common/mmu/ |
D | mmu_v1.c | 13 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr); 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() [all …]
|
D | mmu.c | 76 int hl_mmu_ctx_init(struct hl_ctx *ctx) in hl_mmu_ctx_init() 108 void hl_mmu_ctx_fini(struct hl_ctx *ctx) in hl_mmu_ctx_fini() 145 int hl_mmu_unmap_page(struct hl_ctx *ctx, u64 virt_addr, u32 page_size, in hl_mmu_unmap_page() 233 int hl_mmu_map_page(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, in hl_mmu_map_page() 347 int hl_mmu_map_contiguous(struct hl_ctx *ctx, u64 virt_addr, in hl_mmu_map_contiguous() 406 int hl_mmu_unmap_contiguous(struct hl_ctx *ctx, u64 virt_addr, u32 size) in hl_mmu_unmap_contiguous() 445 void hl_mmu_swap_out(struct hl_ctx *ctx) in hl_mmu_swap_out() 465 void hl_mmu_swap_in(struct hl_ctx *ctx) in hl_mmu_swap_in() 479 static void hl_mmu_pa_page_with_offset(struct hl_ctx *ctx, u64 virt_addr, in hl_mmu_pa_page_with_offset() 538 int hl_mmu_va_to_pa(struct hl_ctx *ctx, u64 virt_addr, u64 *phys_addr) in hl_mmu_va_to_pa() [all …]
|
/Linux-v5.15/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 1277 struct hl_ctx *ctx; in gaudi_collective_wait_init_cs() 1367 struct hl_ctx *ctx, struct hl_cs *cs, in gaudi_collective_wait_create_job() 1464 struct hl_ctx *ctx, struct hl_cs *cs, in gaudi_collective_wait_create_jobs() 8606 struct hl_ctx *ctx) in gaudi_internal_cb_pool_init() 8682 struct hl_ctx *ctx) in gaudi_internal_cb_pool_fini() 8705 static int gaudi_ctx_init(struct hl_ctx *ctx) in gaudi_ctx_init() 8723 static void gaudi_ctx_fini(struct hl_ctx *ctx) in gaudi_ctx_fini()
|
/Linux-v5.15/drivers/misc/habanalabs/goya/ |
D | goya.c | 5418 static int goya_ctx_init(struct hl_ctx *ctx) in goya_ctx_init() 5490 struct hl_ctx *ctx, struct hl_cs *cs, u32 wait_queue_id, in goya_collective_wait_create_jobs() 5496 static void goya_ctx_fini(struct hl_ctx *ctx) in goya_ctx_fini()
|