Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/misc/habanalabs/common/
Ddevice.c975 if (hl_ctx_put(hdev->kernel_ctx) == 1) in hl_device_reset()
976 hdev->kernel_ctx = NULL; in hl_device_reset()
1011 if (hdev->kernel_ctx) { in hl_device_reset()
1026 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), in hl_device_reset()
1028 if (!hdev->kernel_ctx) { in hl_device_reset()
1035 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_reset()
1039 kfree(hdev->kernel_ctx); in hl_device_reset()
1040 hdev->kernel_ctx = NULL; in hl_device_reset()
1241 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), GFP_KERNEL); in hl_device_init()
1242 if (!hdev->kernel_ctx) { in hl_device_init()
[all …]
Dcommand_buffer.c589 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, cb_size, in hl_cb_kernel_create()
Dhabanalabs.h1612 struct hl_ctx *kernel_ctx; member
Ddebugfs.c395 ctx = hdev->kernel_ctx; in mmu_show()
/Linux-v5.10/drivers/misc/habanalabs/goya/
Dgoya.c3815 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, in goya_parse_cb_mmu()
3889 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, in goya_parse_cb_no_mmu()
4875 rc = hl_mmu_map(hdev->kernel_ctx, prop->dram_base_address + off, in goya_mmu_add_mappings_for_device_cpu()
4886 rc = hl_mmu_map(hdev->kernel_ctx, VA_CPU_ACCESSIBLE_MEM_ADDR, in goya_mmu_add_mappings_for_device_cpu()
4897 rc = hl_mmu_map(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4924 if (hl_mmu_unmap(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4932 if (hl_mmu_unmap(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4958 if (hl_mmu_unmap(hdev->kernel_ctx, VA_CPU_ACCESSIBLE_MEM_ADDR, in goya_mmu_remove_device_cpu_mappings()
4964 if (hl_mmu_unmap(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
4974 if (hl_mmu_unmap(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
/Linux-v5.10/drivers/misc/habanalabs/gaudi/
Dgaudi.c4128 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, in gaudi_parse_cb_mmu()
4202 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, in gaudi_parse_cb_no_mmu()