Lines Matching refs:hl_ctx
81 static void hl_ctx_fini(struct hl_ctx *ctx)
133 struct hl_ctx *ctx;
135 ctx = container_of(ref, struct hl_ctx, refcount);
155 struct hl_ctx *ctx;
200 int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx)
293 static int hl_ctx_get_unless_zero(struct hl_ctx *ctx)
298 void hl_ctx_get(struct hl_ctx *ctx)
303 int hl_ctx_put(struct hl_ctx *ctx)
308 struct hl_ctx *hl_get_compute_ctx(struct hl_device *hdev)
310 struct hl_ctx *ctx = NULL;
344 static struct hl_fence *hl_ctx_get_fence_locked(struct hl_ctx *ctx, u64 seq)
360 struct hl_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq)
383 int hl_ctx_get_fences(struct hl_ctx *ctx, u64 *seq_arr,
438 struct hl_ctx *ctx;