Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/misc/habanalabs/common/
Ddevice.c1488 if (hdev->kernel_ctx && hl_ctx_put(hdev->kernel_ctx) == 1) in hl_device_reset()
1489 hdev->kernel_ctx = NULL; in hl_device_reset()
1527 if (hdev->kernel_ctx) { in hl_device_reset()
1542 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), in hl_device_reset()
1544 if (!hdev->kernel_ctx) { in hl_device_reset()
1552 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_reset()
1556 kfree(hdev->kernel_ctx); in hl_device_reset()
1557 hdev->kernel_ctx = NULL; in hl_device_reset()
1891 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), GFP_KERNEL); in hl_device_init()
1892 if (!hdev->kernel_ctx) { in hl_device_init()
[all …]
Dcommand_buffer.c429 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, cb_size, in hl_cb_kernel_create()
Ddebugfs.c443 ctx = hdev->kernel_ctx; in mmu_show()
Dhabanalabs.h3237 struct hl_ctx *kernel_ctx; member
/linux-6.1.9/drivers/misc/habanalabs/goya/
Dgoya.c3996 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in goya_parse_cb_mmu()
4066 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in goya_parse_cb_no_mmu()
4904 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4916 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4929 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4956 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4964 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4990 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
4997 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
5007 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
/linux-6.1.9/drivers/misc/habanalabs/gaudi/
Dgaudi.c5421 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in gaudi_parse_cb_mmu()
5497 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in gaudi_parse_cb_no_mmu()