Lines Matching refs:cctx
70 struct nvkm_cctx *cctx;
79 struct nvkm_cctx *cctx = uobj->cctx;
80 struct nvkm_ectx *ectx = cctx->vctx->ectx;
86 if (refcount_dec_and_mutex_lock(&cctx->uses, &chan->cgrp->mutex)) {
102 struct nvkm_cctx *cctx = uobj->cctx;
103 struct nvkm_ectx *ectx = cctx->vctx->ectx;
110 if (!refcount_inc_not_zero(&cctx->uses)) {
112 if (!refcount_inc_not_zero(&cctx->uses)) {
120 nvkm_chan_cctx_bind(chan, ectx->engn, cctx);
121 refcount_set(&cctx->uses, 1);
136 if (!uobj->cctx)
139 engn = uobj->cctx->vctx->ectx->engn;
143 nvkm_chan_cctx_put(uobj->chan, &uobj->cctx);
177 ret = nvkm_chan_cctx_get(chan, engn, &uobj->cctx, oclass->client);
188 .parent = uobj->cctx->vctx->ectx->object ?: oclass->parent,