Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/misc/habanalabs/
Ddevice.c900 if ((hard_reset) && (hl_ctx_put(hdev->kernel_ctx) == 1)) in hl_device_reset()
901 hdev->kernel_ctx = NULL; in hl_device_reset()
941 if (hdev->kernel_ctx) { in hl_device_reset()
956 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), in hl_device_reset()
958 if (!hdev->kernel_ctx) { in hl_device_reset()
965 rc = hl_ctx_init(hdev, hdev->kernel_ctx, true); in hl_device_reset()
969 kfree(hdev->kernel_ctx); in hl_device_reset()
970 hdev->kernel_ctx = NULL; in hl_device_reset()
1162 hdev->kernel_ctx = kzalloc(sizeof(*hdev->kernel_ctx), GFP_KERNEL); in hl_device_init()
1163 if (!hdev->kernel_ctx) { in hl_device_init()
[all …]
Dhabanalabs.h1269 struct hl_ctx *kernel_ctx; member
Ddebugfs.c371 ctx = hdev->kernel_ctx; in mmu_show()
/Linux-v5.4/drivers/misc/habanalabs/goya/
Dgoya.c4715 rc = hl_mmu_map(hdev->kernel_ctx, prop->dram_base_address + off, in goya_mmu_add_mappings_for_device_cpu()
4725 rc = hl_mmu_map(hdev->kernel_ctx, VA_CPU_ACCESSIBLE_MEM_ADDR, in goya_mmu_add_mappings_for_device_cpu()
4736 rc = hl_mmu_map(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4763 if (hl_mmu_unmap(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4771 if (hl_mmu_unmap(hdev->kernel_ctx, in goya_mmu_add_mappings_for_device_cpu()
4796 if (hl_mmu_unmap(hdev->kernel_ctx, VA_CPU_ACCESSIBLE_MEM_ADDR, in goya_mmu_remove_device_cpu_mappings()
4802 if (hl_mmu_unmap(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()
4811 if (hl_mmu_unmap(hdev->kernel_ctx, in goya_mmu_remove_device_cpu_mappings()