Lines Matching defs:uctx

120 				       struct vmw_user_context *uctx)
128 spin_lock(&uctx->cotable_lock);
129 res = uctx->cotables[i];
130 uctx->cotables[i] = NULL;
131 spin_unlock(&uctx->cotable_lock);
140 struct vmw_user_context *uctx =
152 vmw_cmdbuf_res_man_destroy(uctx->man);
154 vmw_binding_state_kill(uctx->cbs);
161 vmw_context_cotables_unref(dev_priv, uctx);
184 struct vmw_user_context *uctx =
197 uctx->man = vmw_cmdbuf_res_man_create(dev_priv);
198 if (IS_ERR(uctx->man)) {
199 ret = PTR_ERR(uctx->man);
200 uctx->man = NULL;
205 uctx->cbs = vmw_binding_state_alloc(dev_priv);
206 if (IS_ERR(uctx->cbs)) {
207 ret = PTR_ERR(uctx->cbs);
211 spin_lock_init(&uctx->cotable_lock);
217 uctx->cotables[i] = vmw_cotable_alloc(dev_priv,
218 &uctx->res, i);
219 if (IS_ERR(uctx->cotables[i])) {
220 ret = PTR_ERR(uctx->cotables[i]);
230 vmw_context_cotables_unref(dev_priv, uctx);
373 struct vmw_user_context *uctx =
391 vmw_binding_state_scrub(uctx->cbs);
551 struct vmw_user_context *uctx =
557 vmw_binding_state_scrub(uctx->cbs);
562 spin_lock(&uctx->cotable_lock);
563 res = uctx->cotables[vmw_cotable_scrub_order[i]];
566 spin_unlock(&uctx->cotable_lock);
582 struct vmw_user_context *uctx =
602 if (uctx->dx_query_mob && uctx->dx_query_mob->dx_query_ctx &&
604 WARN_ON(uctx->dx_query_mob->dx_query_ctx != res);
605 if (vmw_query_readback_all(uctx->dx_query_mob))
835 struct vmw_user_context *uctx =
838 return vmw_binding_state_list(uctx->cbs);
889 struct vmw_user_context *uctx =
893 if (uctx->dx_query_mob) {
894 uctx->dx_query_mob->dx_query_ctx = NULL;
895 vmw_bo_unreference(&uctx->dx_query_mob);
896 uctx->dx_query_mob = NULL;
903 if (uctx->dx_query_mob && uctx->dx_query_mob != mob)
908 if (!uctx->dx_query_mob)
909 uctx->dx_query_mob = vmw_bo_reference(mob);
922 struct vmw_user_context *uctx =
925 return uctx->dx_query_mob;