Lines Matching defs:hpriv
139 if (ctx->hpriv) {
140 struct hl_fpriv *hpriv = ctx->hpriv;
142 mutex_lock(&hpriv->ctx_lock);
143 hpriv->ctx = NULL;
144 mutex_unlock(&hpriv->ctx_lock);
146 hl_hpriv_put(hpriv);
152 int hl_ctx_create(struct hl_device *hdev, struct hl_fpriv *hpriv)
154 struct hl_ctx_mgr *ctx_mgr = &hpriv->ctx_mgr;
179 hl_hpriv_get(hpriv);
180 ctx->hpriv = hpriv;
183 hpriv->ctx = ctx;
311 struct hl_fpriv *hpriv;
315 list_for_each_entry(hpriv, &hdev->fpriv_list, dev_node) {
316 mutex_lock(&hpriv->ctx_lock);
317 ctx = hpriv->ctx;
320 mutex_unlock(&hpriv->ctx_lock);
418 * This manager is an object inside the hpriv object of the user process.