Home
last modified time | relevance | path

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

/linux-6.6.21/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()
484 HL_KERNEL_ASID_ID, false); in hl_cb_pool_init()
Dcontext.c104 if (ctx->asid != HL_KERNEL_ASID_ID) { in hl_ctx_fini()
227 ctx->asid = HL_KERNEL_ASID_ID; /* Kernel driver gets ASID 0 */ in hl_ctx_init()
280 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.c198 job->id, HL_KERNEL_ASID_ID, in command_submission_jobs_show()
288 if (ctx->asid != HL_KERNEL_ASID_ID && in vm_show()
436 if (dev_entry->mmu_asid == HL_KERNEL_ASID_ID) in mmu_show()
476 if (dev_entry->mmu_asid != HL_KERNEL_ASID_ID) in mmu_show()
Dmemory.c2798 if (ctx->asid != HL_KERNEL_ASID_ID && in hl_vm_ctx_fini()
Dhabanalabs.h1720 #define HL_KERNEL_ASID_ID 0 macro
/linux-6.6.21/drivers/accel/habanalabs/common/mmu/
Dmmu_v1.c225 (ctx->asid == HL_KERNEL_ASID_ID)) in dram_default_mapping_init()
325 (ctx->asid == HL_KERNEL_ASID_ID)) in dram_default_mapping_fini()
/linux-6.6.21/drivers/accel/habanalabs/goya/
Dgoya.c4947 goya_mmu_prepare_reg(hdev, mmCPU_IF_ARUSER_OVR, HL_KERNEL_ASID_ID); in goya_mmu_add_mappings_for_device_cpu()
4948 goya_mmu_prepare_reg(hdev, mmCPU_IF_AWUSER_OVR, HL_KERNEL_ASID_ID); in goya_mmu_add_mappings_for_device_cpu()
5249 if (ctx->asid != HL_KERNEL_ASID_ID) in goya_ctx_init()
/linux-6.6.21/drivers/accel/habanalabs/gaudi/
Dgaudi.c8398 if (ctx->asid == HL_KERNEL_ASID_ID) in gaudi_ctx_init()
8414 if (ctx->asid == HL_KERNEL_ASID_ID) in gaudi_ctx_fini()
/linux-6.6.21/drivers/accel/habanalabs/gaudi2/
Dgaudi2.c10375 gaudi2_kdma_set_mmbp_asid(hdev, true, HL_KERNEL_ASID_ID); in gaudi2_debugfs_read_dma()
10551 if (ctx->asid == HL_KERNEL_ASID_ID) in gaudi2_ctx_fini()