Home
last modified time | relevance | path

Searched refs:HL_KERNEL_ASID_ID (Results 1 – 10 of 10) sorted by relevance

/linux-6.12.1/drivers/accel/habanalabs/common/
Dcommand_buffer.c118 if (ctx_id == HL_KERNEL_ASID_ID && !hdev->disabled) in hl_cb_alloc()
137 } else if (ctx_id == HL_KERNEL_ASID_ID) { in hl_cb_alloc()
194 if (ctx_id == HL_KERNEL_ASID_ID && in hl_cb_mmap_mem_alloc()
226 if (ctx_id == HL_KERNEL_ASID_ID) { in hl_cb_mmap_mem_alloc()
280 if ((hdev->disabled) || (hdev->reset_info.in_reset && (ctx_id != HL_KERNEL_ASID_ID))) { in hl_cb_create()
294 ctx_id == HL_KERNEL_ASID_ID ? GFP_ATOMIC : GFP_KERNEL, &args); in hl_cb_create()
485 HL_KERNEL_ASID_ID, false); in hl_cb_pool_init()
Dcontext.c104 if (ctx->asid != HL_KERNEL_ASID_ID) { in hl_ctx_fini()
229 ctx->asid = HL_KERNEL_ASID_ID; /* Kernel driver gets ASID 0 */ in hl_ctx_init()
285 if (ctx->asid != HL_KERNEL_ASID_ID) in hl_ctx_init()
Dasid.c52 if (asid == HL_KERNEL_ASID_ID || asid >= hdev->asic_prop.max_asid) { in hl_asid_free()
Ddebugfs.c191 job->id, HL_KERNEL_ASID_ID, in command_submission_jobs_show()
281 if (ctx->asid != HL_KERNEL_ASID_ID && in vm_show()
429 if (dev_entry->mmu_asid == HL_KERNEL_ASID_ID) in mmu_show()
469 if (dev_entry->mmu_asid != HL_KERNEL_ASID_ID) in mmu_show()
Dmemory.c2823 if (ctx->asid != HL_KERNEL_ASID_ID && in hl_vm_ctx_fini()
Dhabanalabs.h1781 #define HL_KERNEL_ASID_ID 0 macro
/linux-6.12.1/drivers/accel/habanalabs/common/mmu/
Dmmu_v1.c36 (ctx->asid == HL_KERNEL_ASID_ID)) in dram_default_mapping_init()
136 (ctx->asid == HL_KERNEL_ASID_ID)) in dram_default_mapping_fini()
/linux-6.12.1/drivers/accel/habanalabs/goya/
Dgoya.c4936 goya_mmu_prepare_reg(hdev, mmCPU_IF_ARUSER_OVR, HL_KERNEL_ASID_ID); in goya_mmu_add_mappings_for_device_cpu()
4937 goya_mmu_prepare_reg(hdev, mmCPU_IF_AWUSER_OVR, HL_KERNEL_ASID_ID); in goya_mmu_add_mappings_for_device_cpu()
5238 if (ctx->asid != HL_KERNEL_ASID_ID) in goya_ctx_init()
/linux-6.12.1/drivers/accel/habanalabs/gaudi2/
Dgaudi2.c10741 gaudi2_kdma_set_mmbp_asid(hdev, true, HL_KERNEL_ASID_ID); in gaudi2_debugfs_read_dma()
10892 if (ctx->asid == HL_KERNEL_ASID_ID) in gaudi2_ctx_init()
10920 if (ctx->asid == HL_KERNEL_ASID_ID) in gaudi2_ctx_fini()
/linux-6.12.1/drivers/accel/habanalabs/gaudi/
Dgaudi.c8392 if (ctx->asid == HL_KERNEL_ASID_ID) in gaudi_ctx_init()
8408 if (ctx->asid == HL_KERNEL_ASID_ID) in gaudi_ctx_fini()