Lines Matching defs:uctx

122 				       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(dev_priv, 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);
219 uctx->cotables[i] = vmw_cotable_alloc(dev_priv,
220 &uctx->res, i);
221 if (IS_ERR(uctx->cotables[i])) {
222 ret = PTR_ERR(uctx->cotables[i]);
232 vmw_context_cotables_unref(dev_priv, uctx);
375 struct vmw_user_context *uctx =
393 vmw_binding_state_scrub(uctx->cbs);
553 struct vmw_user_context *uctx =
559 vmw_binding_state_scrub(uctx->cbs);
564 spin_lock(&uctx->cotable_lock);
565 res = uctx->cotables[vmw_cotable_scrub_order[i]];
568 spin_unlock(&uctx->cotable_lock);
584 struct vmw_user_context *uctx =
604 if (uctx->dx_query_mob && uctx->dx_query_mob->dx_query_ctx &&
606 WARN_ON(uctx->dx_query_mob->dx_query_ctx != res);
607 if (vmw_query_readback_all(uctx->dx_query_mob))
808 struct vmw_user_context *uctx =
811 return vmw_binding_state_list(uctx->cbs);
862 struct vmw_user_context *uctx =
866 if (uctx->dx_query_mob) {
867 uctx->dx_query_mob->dx_query_ctx = NULL;
868 vmw_bo_unreference(&uctx->dx_query_mob);
869 uctx->dx_query_mob = NULL;
876 if (uctx->dx_query_mob && uctx->dx_query_mob != mob)
881 if (!uctx->dx_query_mob)
882 uctx->dx_query_mob = vmw_bo_reference(mob);
895 struct vmw_user_context *uctx =
898 return uctx->dx_query_mob;