Lines Matching full:so

12  * permit persons to whom the Software is furnished to do so, subject to
90 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_unscrub() local
97 if (!list_empty(&so->cotable_head) || !so->committed ) in vmw_dx_streamoutput_unscrub()
100 cmd = VMW_CMD_CTX_RESERVE(dev_priv, sizeof(*cmd), so->ctx->id); in vmw_dx_streamoutput_unscrub()
106 cmd->body.soid = so->id; in vmw_dx_streamoutput_unscrub()
109 cmd->body.sizeInBytes = so->size; in vmw_dx_streamoutput_unscrub()
112 vmw_cotable_add_resource(so->cotable, &so->cotable_head); in vmw_dx_streamoutput_unscrub()
120 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_create() local
123 WARN_ON_ONCE(!so->committed); in vmw_dx_streamoutput_create()
131 res->id = so->id; in vmw_dx_streamoutput_create()
162 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_scrub() local
168 if (list_empty(&so->cotable_head)) in vmw_dx_streamoutput_scrub()
171 WARN_ON_ONCE(!so->committed); in vmw_dx_streamoutput_scrub()
173 cmd = VMW_CMD_CTX_RESERVE(dev_priv, sizeof(*cmd), so->ctx->id); in vmw_dx_streamoutput_scrub()
182 cmd->body.sizeInBytes = so->size; in vmw_dx_streamoutput_scrub()
186 list_del_init(&so->cotable_head); in vmw_dx_streamoutput_scrub()
221 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_commit_notify() local
225 vmw_cotable_add_resource(so->cotable, &so->cotable_head); in vmw_dx_streamoutput_commit_notify()
226 so->committed = true; in vmw_dx_streamoutput_commit_notify()
227 res->id = so->id; in vmw_dx_streamoutput_commit_notify()
231 list_del_init(&so->cotable_head); in vmw_dx_streamoutput_commit_notify()
232 so->committed = false; in vmw_dx_streamoutput_commit_notify()
255 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_res_free() local
257 vmw_resource_unreference(&so->cotable); in vmw_dx_streamoutput_res_free()
258 kfree(so); in vmw_dx_streamoutput_res_free()
280 struct vmw_dx_streamoutput *so; in vmw_dx_streamoutput_add() local
285 so = kmalloc(sizeof(*so), GFP_KERNEL); in vmw_dx_streamoutput_add()
286 if (!so) { in vmw_dx_streamoutput_add()
290 res = &so->res; in vmw_dx_streamoutput_add()
291 so->ctx = ctx; in vmw_dx_streamoutput_add()
292 so->cotable = vmw_resource_reference in vmw_dx_streamoutput_add()
294 so->id = user_key; in vmw_dx_streamoutput_add()
295 so->committed = false; in vmw_dx_streamoutput_add()
296 INIT_LIST_HEAD(&so->cotable_head); in vmw_dx_streamoutput_add()
308 res->id = so->id; in vmw_dx_streamoutput_add()
324 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_set_size() local
326 so->size = size; in vmw_dx_streamoutput_set_size()