Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/accel/habanalabs/common/
Ddevice.c1806 if (hdev->kernel_ctx && hl_ctx_put(hdev->kernel_ctx) == 1) in hl_device_reset()
1807 hdev->kernel_ctx = NULL; in hl_device_reset()
1852 if (hdev->kernel_ctx) { in hl_device_reset()
1868 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), in hl_device_reset()
1870 if (!hdev->kernel_ctx) { in hl_device_reset()
1878 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_reset()
1882 kfree(hdev->kernel_ctx); in hl_device_reset()
1883 hdev->kernel_ctx = NULL; in hl_device_reset()
2292 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), GFP_KERNEL); in hl_device_init()
2293 if (!hdev->kernel_ctx) { in hl_device_init()
[all …]
Dcommand_buffer.c451 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, cb_size, in hl_cb_kernel_create()
Ddebugfs.c430 ctx = hdev->kernel_ctx; in mmu_show()
Dhabanalabs.h3441 struct hl_ctx *kernel_ctx; member
/linux-6.12.1/drivers/accel/habanalabs/goya/
Dgoya.c3990 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in goya_parse_cb_mmu()
4060 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in goya_parse_cb_no_mmu()
4898 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4910 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4923 rc = hl_mmu_map_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4950 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4958 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4984 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
4991 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
5001 if (hl_mmu_unmap_page(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
/linux-6.12.1/drivers/accel/habanalabs/gaudi/
Dgaudi.c5349 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in gaudi_parse_cb_mmu()
5425 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in gaudi_parse_cb_no_mmu()