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_CMD_CTX_RESERVE(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_CMD_CTX_RESERVE(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()
257 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_res_free() local
259 vmw_resource_unreference(&so->cotable); in vmw_dx_streamoutput_res_free()
260 kfree(so); in vmw_dx_streamoutput_res_free()
282 struct vmw_dx_streamoutput *so; in vmw_dx_streamoutput_add() local
287 so = kmalloc(sizeof(*so), GFP_KERNEL); in vmw_dx_streamoutput_add()
288 if (!so) { in vmw_dx_streamoutput_add()
292 res = &so->res; in vmw_dx_streamoutput_add()
293 so->ctx = ctx; in vmw_dx_streamoutput_add()
294 so->cotable = vmw_resource_reference in vmw_dx_streamoutput_add()
296 so->id = user_key; in vmw_dx_streamoutput_add()
297 so->committed = false; in vmw_dx_streamoutput_add()
298 INIT_LIST_HEAD(&so->cotable_head); in vmw_dx_streamoutput_add()
310 res->id = so->id; in vmw_dx_streamoutput_add()
326 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_set_size() local
328 so->size = size; in vmw_dx_streamoutput_set_size()