Lines Matching defs:hpriv
138 if (ctx->hpriv) {
139 struct hl_fpriv *hpriv = ctx->hpriv;
141 mutex_lock(&hpriv->ctx_lock);
142 hpriv->ctx = NULL;
143 mutex_unlock(&hpriv->ctx_lock);
145 hl_hpriv_put(hpriv);
151 int hl_ctx_create(struct hl_device *hdev, struct hl_fpriv *hpriv)
153 struct hl_ctx_mgr *ctx_mgr = &hpriv->ctx_mgr;
178 hl_hpriv_get(hpriv);
179 ctx->hpriv = hpriv;
182 hpriv->ctx = ctx;
307 struct hl_fpriv *hpriv;
311 list_for_each_entry(hpriv, &hdev->fpriv_list, dev_node) {
312 mutex_lock(&hpriv->ctx_lock);
313 ctx = hpriv->ctx;
316 mutex_unlock(&hpriv->ctx_lock);
414 * This manager is an object inside the hpriv object of the user process.