Lines Matching full: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); in vmw_dx_streamoutput_unscrub() local
99 if (!list_empty(&so->cotable_head) || !so->committed ) in vmw_dx_streamoutput_unscrub()
102 cmd = VMW_FIFO_RESERVE_DX(dev_priv, sizeof(*cmd), so->ctx->id); in vmw_dx_streamoutput_unscrub()
108 cmd->body.soid = so->id; in vmw_dx_streamoutput_unscrub()
111 cmd->body.sizeInBytes = so->size; in vmw_dx_streamoutput_unscrub()
114 vmw_cotable_add_resource(so->cotable, &so->cotable_head); in vmw_dx_streamoutput_unscrub()
122 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_create() local
125 WARN_ON_ONCE(!so->committed); in vmw_dx_streamoutput_create()
133 res->id = so->id; in vmw_dx_streamoutput_create()
164 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_scrub() local
170 if (list_empty(&so->cotable_head)) in vmw_dx_streamoutput_scrub()
173 WARN_ON_ONCE(!so->committed); in vmw_dx_streamoutput_scrub()
175 cmd = VMW_FIFO_RESERVE_DX(dev_priv, sizeof(*cmd), so->ctx->id); in vmw_dx_streamoutput_scrub()
184 cmd->body.sizeInBytes = so->size; in vmw_dx_streamoutput_scrub()
188 list_del_init(&so->cotable_head); in vmw_dx_streamoutput_scrub()
223 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_commit_notify() local
227 vmw_cotable_add_resource(so->cotable, &so->cotable_head); in vmw_dx_streamoutput_commit_notify()
228 so->committed = true; in vmw_dx_streamoutput_commit_notify()
229 res->id = so->id; in vmw_dx_streamoutput_commit_notify()
233 list_del_init(&so->cotable_head); in vmw_dx_streamoutput_commit_notify()
234 so->committed = false; in vmw_dx_streamoutput_commit_notify()
258 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_res_free() local
260 vmw_resource_unreference(&so->cotable); in vmw_dx_streamoutput_res_free()
261 kfree(so); in vmw_dx_streamoutput_res_free()
284 struct vmw_dx_streamoutput *so; in vmw_dx_streamoutput_add() local
294 vmw_streamoutput_size = ttm_round_pot(sizeof(*so)); in vmw_dx_streamoutput_add()
304 so = kmalloc(sizeof(*so), GFP_KERNEL); in vmw_dx_streamoutput_add()
305 if (!so) { in vmw_dx_streamoutput_add()
311 res = &so->res; in vmw_dx_streamoutput_add()
312 so->ctx = ctx; in vmw_dx_streamoutput_add()
313 so->cotable = vmw_resource_reference in vmw_dx_streamoutput_add()
315 so->id = user_key; in vmw_dx_streamoutput_add()
316 so->committed = false; in vmw_dx_streamoutput_add()
317 INIT_LIST_HEAD(&so->cotable_head); in vmw_dx_streamoutput_add()
329 res->id = so->id; in vmw_dx_streamoutput_add()
345 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_set_size() local
347 so->size = size; in vmw_dx_streamoutput_set_size()