#include "habanalabs.h"
#include <linux/slab.h>
static void encaps_handle_do_release(struct hl_cs_encaps_sig_handle *handle, bool put_hw_sob,
bool put_ctx)
{ … }
void hl_encaps_release_handle_and_put_ctx(struct kref *ref)
{ … }
static void hl_encaps_release_handle_and_put_sob(struct kref *ref)
{ … }
void hl_encaps_release_handle_and_put_sob_ctx(struct kref *ref)
{ … }
static void hl_encaps_sig_mgr_init(struct hl_encaps_signals_mgr *mgr)
{ … }
static void hl_encaps_sig_mgr_fini(struct hl_device *hdev, struct hl_encaps_signals_mgr *mgr)
{ … }
static void hl_ctx_fini(struct hl_ctx *ctx)
{ … }
void hl_ctx_do_release(struct kref *ref)
{ … }
int hl_ctx_create(struct hl_device *hdev, struct hl_fpriv *hpriv)
{ … }
int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx)
{ … }
static int hl_ctx_get_unless_zero(struct hl_ctx *ctx)
{ … }
void hl_ctx_get(struct hl_ctx *ctx)
{ … }
int hl_ctx_put(struct hl_ctx *ctx)
{ … }
struct hl_ctx *hl_get_compute_ctx(struct hl_device *hdev)
{ … }
static struct hl_fence *hl_ctx_get_fence_locked(struct hl_ctx *ctx, u64 seq)
{ … }
struct hl_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq)
{ … }
int hl_ctx_get_fences(struct hl_ctx *ctx, u64 *seq_arr,
struct hl_fence **fence, u32 arr_len)
{ … }
void hl_ctx_mgr_init(struct hl_ctx_mgr *ctx_mgr)
{ … }
void hl_ctx_mgr_fini(struct hl_device *hdev, struct hl_ctx_mgr *ctx_mgr)
{ … }