Home
last modified time | relevance | path

Searched refs:kernel_ctx (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/drivers/accel/habanalabs/common/
Ddevice.c1665 if (hdev->kernel_ctx && hl_ctx_put(hdev->kernel_ctx) == 1) in hl_device_reset()
1666 hdev->kernel_ctx = NULL; in hl_device_reset()
1709 if (hdev->kernel_ctx) { in hl_device_reset()
1725 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), in hl_device_reset()
1727 if (!hdev->kernel_ctx) { in hl_device_reset()
1735 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_reset()
1739 kfree(hdev->kernel_ctx); in hl_device_reset()
1740 hdev->kernel_ctx = NULL; in hl_device_reset()
2163 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), GFP_KERNEL); in hl_device_init()
2164 if (!hdev->kernel_ctx) { in hl_device_init()
[all …]
Dcommand_buffer.c450 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, cb_size, in hl_cb_kernel_create()
Ddebugfs.c437 ctx = hdev->kernel_ctx; in mmu_show()
Dhabanalabs.h3335 struct hl_ctx *kernel_ctx; member
/Linux-v6.6/drivers/accel/habanalabs/goya/
Dgoya.c4001 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in goya_parse_cb_mmu()
4071 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in goya_parse_cb_no_mmu()
4909 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4921 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4934 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4961 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4969 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4995 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
5002 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
5012 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
/Linux-v6.6/drivers/accel/habanalabs/gaudi/
Dgaudi.c5355 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in gaudi_parse_cb_mmu()
5431 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in gaudi_parse_cb_no_mmu()