Home
last modified time | relevance | path

Searched refs:hl_ctx (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/misc/habanalabs/common/mmu/
A Dmmu_v1.c38 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()
180 static inline u64 get_hop0_pte_addr(struct hl_ctx *ctx, in get_hop0_pte_addr()
490 static int hl_mmu_v1_ctx_init(struct hl_ctx *ctx) in hl_mmu_v1_ctx_init()
506 static void hl_mmu_v1_ctx_fini(struct hl_ctx *ctx) in hl_mmu_v1_ctx_fini()
527 static int _hl_mmu_v1_unmap(struct hl_ctx *ctx, in _hl_mmu_v1_unmap()
832 static void hl_mmu_v1_swap_out(struct hl_ctx *ctx) in hl_mmu_v1_swap_out()
[all …]
A Dmmu.c76 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()
540 int hl_mmu_va_to_pa(struct hl_ctx *ctx, u64 virt_addr, u64 *phys_addr) in hl_mmu_va_to_pa()
[all …]
/linux/drivers/misc/habanalabs/common/
A Dcontext.c16 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()
267 void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_get()
272 int hl_ctx_put(struct hl_ctx *ctx) in hl_ctx_put()
304 struct hl_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq) in hl_ctx_get_fence()
327 int hl_ctx_get_fences(struct hl_ctx *ctx, u64 *seq_arr, in hl_ctx_get_fences()
[all …]
A Dhabanalabs.h191 struct hl_ctx *ctx;
697 struct hl_ctx *ctx;
1385 struct hl_ctx *ctx;
1428 struct hl_ctx { struct
1538 struct hl_ctx *ctx;
1687 struct hl_ctx *ctx;
1801 struct hl_ctx *ctx;
2342 struct hl_ctx *ctx;
2530 struct hl_ctx *kernel_ctx;
3122 struct hl_ctx *ctx) in hl_debugfs_add_ctx_mem_hash()
[all …]
A Dmemory.c1422 struct hl_ctx *ctx = lnode->ctx; in hw_block_vm_close()
1448 struct hl_ctx *ctx = hpriv->ctx; in hl_hw_block_mmap()
1737 struct hl_ctx *ctx = hl_dmabuf->ctx; in hl_release_dmabuf()
1759 static int export_dmabuf_common(struct hl_ctx *ctx, in export_dmabuf_common()
1976 struct hl_ctx *ctx = hpriv->ctx; in mem_ioctl_no_mmu()
2053 struct hl_ctx *ctx = hpriv->ctx; in hl_mem_ioctl()
2449 static int vm_ctx_init_with_ranges(struct hl_ctx *ctx, in vm_ctx_init_with_ranges()
2547 int hl_vm_ctx_init(struct hl_ctx *ctx) in hl_vm_ctx_init()
2602 void hl_vm_ctx_fini(struct hl_ctx *ctx) in hl_vm_ctx_fini()
2760 void hl_hw_block_mem_init(struct hl_ctx *ctx) in hl_hw_block_mem_init()
[all …]
A Dcommand_buffer.c15 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()
A Dcommand_submission.c30 static int _hl_cs_wait_ioctl(struct hl_device *hdev, struct hl_ctx *ctx,
776 static int allocate_cs(struct hl_device *hdev, struct hl_ctx *ctx, in allocate_cs()
1128 struct hl_ctx *ctx = hpriv->ctx; in hl_cs_sanity_checks()
1184 struct hl_ctx *ctx) in hl_cs_copy_chunk_array()
1271 struct hl_ctx *ctx = hpriv->ctx; in cs_ioctl_default()
1455 struct hl_ctx *ctx = hpriv->ctx; in hl_cs_ctx_switch()
1647 struct hl_cs_chunk *chunk, u64 *signal_seq, struct hl_ctx *ctx, in cs_ioctl_extract_signal_seq()
1705 struct hl_ctx *ctx, struct hl_cs *cs, in cs_ioctl_signal_wait_create_jobs()
1965 struct hl_ctx *ctx = hpriv->ctx; in cs_ioctl_signal_wait()
2438 static int _hl_cs_wait_ioctl(struct hl_device *hdev, struct hl_ctx *ctx, in _hl_cs_wait_ioctl()
[all …]
A Ddebugfs.c233 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()
1594 void hl_debugfs_add_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx) in hl_debugfs_add_ctx_mem_hash()
1603 void hl_debugfs_remove_ctx_mem_hash(struct hl_device *hdev, struct hl_ctx *ctx) in hl_debugfs_remove_ctx_mem_hash()
A Dhw_queue.c545 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/drivers/misc/habanalabs/gaudi/
A Dgaudi.c1281 struct hl_ctx *ctx; in gaudi_collective_wait_init_cs()
1371 struct hl_ctx *ctx, struct hl_cs *cs, in gaudi_collective_wait_create_job()
1468 struct hl_ctx *ctx, struct hl_cs *cs, in gaudi_collective_wait_create_jobs()
8612 struct hl_ctx *ctx) in gaudi_internal_cb_pool_init()
8688 struct hl_ctx *ctx) in gaudi_internal_cb_pool_fini()
8711 static int gaudi_ctx_init(struct hl_ctx *ctx) in gaudi_ctx_init()
8729 static void gaudi_ctx_fini(struct hl_ctx *ctx) in gaudi_ctx_fini()
/linux/drivers/misc/habanalabs/goya/
A Dgoya.c5427 static int goya_ctx_init(struct hl_ctx *ctx) in goya_ctx_init()
5499 struct hl_ctx *ctx, struct hl_cs *cs, u32 wait_queue_id, in goya_collective_wait_create_jobs()
5505 static void goya_ctx_fini(struct hl_ctx *ctx) in goya_ctx_fini()

Completed in 56 milliseconds