/Linux-v5.10/drivers/misc/habanalabs/common/ |
D | mmu_v1.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, struct pgt_info *pgt_info) in _free_hop() 39 static void free_hop(struct hl_ctx *ctx, u64 hop_addr) in free_hop() 46 static u64 alloc_hop(struct hl_ctx *ctx) in alloc_hop() 86 static inline u64 get_phys_hop0_addr(struct hl_ctx *ctx) in get_phys_hop0_addr() 92 static inline u64 get_hop0_addr(struct hl_ctx *ctx) in get_hop0_addr() 98 static void flush(struct hl_ctx *ctx) in flush() 106 static inline void write_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, u64 val) in write_pte() 126 static inline void write_final_pte(struct hl_ctx *ctx, u64 shadow_pte_addr, in write_final_pte() [all …]
|
D | context.c | 12 static void hl_ctx_fini(struct hl_ctx *ctx) in hl_ctx_fini() 61 struct hl_ctx *ctx; in hl_ctx_do_release() 63 ctx = container_of(ref, struct hl_ctx, refcount); in hl_ctx_do_release() 76 struct hl_ctx *ctx; in hl_ctx_create() 121 void hl_ctx_free(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_free() 130 int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx) in hl_ctx_init() 200 void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_get() 205 int hl_ctx_put(struct hl_ctx *ctx) in hl_ctx_put() 210 struct hl_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq) in hl_ctx_get_fence() 260 struct hl_ctx *ctx; in hl_ctx_mgr_fini()
|
D | habanalabs.h | 100 struct hl_ctx *ctx; 449 struct hl_ctx *ctx; 804 int (*ctx_init)(struct hl_ctx *ctx); 879 struct hl_ctx { struct 969 struct hl_ctx *ctx; 1195 struct hl_ctx *ctx; 1475 int (*ctx_init)(struct hl_ctx *ctx); 1476 void (*ctx_fini)(struct hl_ctx *ctx); 1477 int (*map)(struct hl_ctx *ctx, 1480 int (*unmap)(struct hl_ctx *ctx, [all …]
|
D | mmu.c | 63 int hl_mmu_ctx_init(struct hl_ctx *ctx) in hl_mmu_ctx_init() 83 void hl_mmu_ctx_fini(struct hl_ctx *ctx) in hl_mmu_ctx_fini() 112 int hl_mmu_unmap(struct hl_ctx *ctx, u64 virt_addr, u32 page_size, in hl_mmu_unmap() 188 int hl_mmu_map(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, u32 page_size, in hl_mmu_map() 270 void hl_mmu_swap_out(struct hl_ctx *ctx) in hl_mmu_swap_out() 284 void hl_mmu_swap_in(struct hl_ctx *ctx) in hl_mmu_swap_in()
|
D | memory.c | 52 static int alloc_device_memory(struct hl_ctx *ctx, struct hl_mem_in *args, in alloc_device_memory() 305 static int free_device_memory(struct hl_ctx *ctx, u32 handle) in free_device_memory() 633 static int init_phys_pg_pack_from_userptr(struct hl_ctx *ctx, in init_phys_pg_pack_from_userptr() 734 static int map_phys_pg_pack(struct hl_ctx *ctx, u64 vaddr, in map_phys_pg_pack() 783 static void unmap_phys_pg_pack(struct hl_ctx *ctx, u64 vaddr, in unmap_phys_pg_pack() 808 static int get_paddr_from_handle(struct hl_ctx *ctx, struct hl_mem_in *args, in get_paddr_from_handle() 846 static int map_device_va(struct hl_ctx *ctx, struct hl_mem_in *args, in map_device_va() 1032 static int unmap_device_va(struct hl_ctx *ctx, u64 vaddr, bool ctx_free) in unmap_device_va() 1163 struct hl_ctx *ctx = hpriv->ctx; in mem_ioctl_no_mmu() 1222 struct hl_ctx *ctx = hpriv->ctx; in hl_mem_ioctl() [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_hopN_pte_addr(struct hl_ctx *ctx, u64 hop_addr, in get_hopN_pte_addr() 317 static inline u64 get_hop0_pte_addr(struct hl_ctx *ctx, in get_hop0_pte_addr() 325 static inline u64 get_hop1_pte_addr(struct hl_ctx *ctx, in get_hop1_pte_addr() 333 static inline u64 get_hop2_pte_addr(struct hl_ctx *ctx, in get_hop2_pte_addr() 341 static inline u64 get_hop3_pte_addr(struct hl_ctx *ctx, in get_hop3_pte_addr() 349 static inline u64 get_hop4_pte_addr(struct hl_ctx *ctx, in get_hop4_pte_addr() 357 static inline u64 get_hop5_pte_addr(struct hl_ctx *ctx, in get_hop5_pte_addr() 380 struct hl_ctx *ctx; in mmu_show() [all …]
|
D | command_buffer.c | 16 static int cb_map_mem(struct hl_ctx *ctx, struct hl_cb *cb) in cb_map_mem() 115 static void cb_unmap_mem(struct hl_ctx *ctx, struct hl_cb *cb) in cb_unmap_mem() 239 struct hl_ctx *ctx, u32 cb_size, bool internal_cb, in hl_cb_create() 647 int hl_cb_va_pool_init(struct hl_ctx *ctx) in hl_cb_va_pool_init() 679 void hl_cb_va_pool_fini(struct hl_ctx *ctx) in hl_cb_va_pool_fini()
|
D | command_submission.c | 18 struct hl_ctx *ctx, u64 timeout_us, u64 seq); 245 static void cs_counters_aggregate(struct hl_device *hdev, struct hl_ctx *ctx) in cs_counters_aggregate() 397 static int allocate_cs(struct hl_device *hdev, struct hl_ctx *ctx, in allocate_cs() 772 struct hl_ctx *ctx = hpriv->ctx; in cs_ioctl_signal_wait() 1000 struct hl_ctx *ctx = hpriv->ctx; in hl_cs_ioctl() 1162 struct hl_ctx *ctx, u64 timeout_us, u64 seq) in _hl_cs_wait_ioctl()
|
D | hw_queue.c | 399 struct hl_ctx *ctx = cs->ctx; in init_signal_wait_cs() 487 struct hl_ctx *ctx = cs->ctx; in hl_hw_queue_schedule_cs()
|
/Linux-v5.10/drivers/misc/habanalabs/goya/ |
D | goya.c | 5273 static int goya_ctx_init(struct hl_ctx *ctx) in goya_ctx_init()
|
/Linux-v5.10/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 6354 static int gaudi_ctx_init(struct hl_ctx *ctx) in gaudi_ctx_init()
|