Lines Matching defs:so
12 * permit persons to whom the Software is furnished to do so, subject to
92 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res);
99 if (!list_empty(&so->cotable_head) || !so->committed )
102 cmd = VMW_FIFO_RESERVE_DX(dev_priv, sizeof(*cmd), so->ctx->id);
108 cmd->body.soid = so->id;
111 cmd->body.sizeInBytes = so->size;
114 vmw_cotable_add_resource(so->cotable, &so->cotable_head);
122 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res);
125 WARN_ON_ONCE(!so->committed);
133 res->id = so->id;
164 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res);
170 if (list_empty(&so->cotable_head))
173 WARN_ON_ONCE(!so->committed);
175 cmd = VMW_FIFO_RESERVE_DX(dev_priv, sizeof(*cmd), so->ctx->id);
184 cmd->body.sizeInBytes = so->size;
188 list_del_init(&so->cotable_head);
223 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res);
227 vmw_cotable_add_resource(so->cotable, &so->cotable_head);
228 so->committed = true;
229 res->id = so->id;
233 list_del_init(&so->cotable_head);
234 so->committed = false;
258 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res);
260 vmw_resource_unreference(&so->cotable);
261 kfree(so);
284 struct vmw_dx_streamoutput *so;
294 vmw_streamoutput_size = ttm_round_pot(sizeof(*so));
304 so = kmalloc(sizeof(*so), GFP_KERNEL);
305 if (!so) {
311 res = &so->res;
312 so->ctx = ctx;
313 so->cotable = vmw_resource_reference
315 so->id = user_key;
316 so->committed = false;
317 INIT_LIST_HEAD(&so->cotable_head);
329 res->id = so->id;
345 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res);
347 so->size = size;