Lines Matching full:asid
104 if (ctx->asid != HL_KERNEL_ASID_ID) { in hl_ctx_fini()
105 dev_dbg(hdev->dev, "closing user context, asid=%u\n", ctx->asid); in hl_ctx_fini()
120 hl_asid_free(hdev, ctx->asid); in hl_ctx_fini()
229 ctx->asid = HL_KERNEL_ASID_ID; /* Kernel driver gets ASID 0 */ in hl_ctx_init()
243 ctx->asid = hl_asid_alloc(hdev); in hl_ctx_init()
244 if (!ctx->asid) { in hl_ctx_init()
245 dev_err(hdev->dev, "No free ASID, failed to create context\n"); in hl_ctx_init()
274 dev_dbg(hdev->dev, "create user context, comm=\"%s\", asid=%u\n", in hl_ctx_init()
275 get_task_comm(task_comm, current), ctx->asid); in hl_ctx_init()
285 if (ctx->asid != HL_KERNEL_ASID_ID) in hl_ctx_init()
286 hl_asid_free(hdev, ctx->asid); in hl_ctx_init()