Lines Matching defs:uctx
124 static void vmw_context_cotables_unref(struct vmw_user_context *uctx)
130 spin_lock(&uctx->cotable_lock);
131 res = uctx->cotables[i];
132 uctx->cotables[i] = NULL;
133 spin_unlock(&uctx->cotable_lock);
142 struct vmw_user_context *uctx =
154 vmw_cmdbuf_res_man_destroy(uctx->man);
156 vmw_binding_state_kill(uctx->cbs);
163 vmw_context_cotables_unref(uctx);
186 struct vmw_user_context *uctx =
199 uctx->man = vmw_cmdbuf_res_man_create(dev_priv);
200 if (IS_ERR(uctx->man)) {
201 ret = PTR_ERR(uctx->man);
202 uctx->man = NULL;
207 uctx->cbs = vmw_binding_state_alloc(dev_priv);
208 if (IS_ERR(uctx->cbs)) {
209 ret = PTR_ERR(uctx->cbs);
213 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(uctx);
373 struct vmw_user_context *uctx =
391 vmw_binding_state_scrub(uctx->cbs);
551 struct vmw_user_context *uctx =
555 vmw_binding_state_scrub(uctx->cbs);
560 spin_lock(&uctx->cotable_lock);
561 res = uctx->cotables[vmw_cotable_scrub_order[i]];
564 spin_unlock(&uctx->cotable_lock);
580 struct vmw_user_context *uctx =
600 if (uctx->dx_query_mob && uctx->dx_query_mob->dx_query_ctx &&
602 WARN_ON(uctx->dx_query_mob->dx_query_ctx != res);
603 if (vmw_query_readback_all(uctx->dx_query_mob))
833 struct vmw_user_context *uctx =
836 return vmw_binding_state_list(uctx->cbs);
884 struct vmw_user_context *uctx =
888 if (uctx->dx_query_mob) {
889 uctx->dx_query_mob->dx_query_ctx = NULL;
890 vmw_bo_unreference(&uctx->dx_query_mob);
891 uctx->dx_query_mob = NULL;
898 if (uctx->dx_query_mob && uctx->dx_query_mob != mob)
903 if (!uctx->dx_query_mob)
904 uctx->dx_query_mob = vmw_bo_reference(mob);
917 struct vmw_user_context *uctx =
920 return uctx->dx_query_mob;