Lines Matching refs:cmd

148 	} *cmd;  in vmw_hw_context_destroy()  local
168 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_hw_context_destroy()
169 if (unlikely(cmd == NULL)) in vmw_hw_context_destroy()
172 cmd->header.id = SVGA_3D_CMD_CONTEXT_DESTROY; in vmw_hw_context_destroy()
173 cmd->header.size = sizeof(cmd->body); in vmw_hw_context_destroy()
174 cmd->body.cid = res->id; in vmw_hw_context_destroy()
176 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_hw_context_destroy()
251 } *cmd; in vmw_context_init() local
270 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_context_init()
271 if (unlikely(cmd == NULL)) { in vmw_context_init()
276 cmd->header.id = SVGA_3D_CMD_CONTEXT_DEFINE; in vmw_context_init()
277 cmd->header.size = sizeof(cmd->body); in vmw_context_init()
278 cmd->body.cid = res->id; in vmw_context_init()
280 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_context_init()
305 } *cmd; in vmw_gb_context_create() local
321 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_gb_context_create()
322 if (unlikely(cmd == NULL)) { in vmw_gb_context_create()
327 cmd->header.id = SVGA_3D_CMD_DEFINE_GB_CONTEXT; in vmw_gb_context_create()
328 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_create()
329 cmd->body.cid = res->id; in vmw_gb_context_create()
330 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_create()
348 } *cmd; in vmw_gb_context_bind() local
353 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_gb_context_bind()
354 if (unlikely(cmd == NULL)) in vmw_gb_context_bind()
357 cmd->header.id = SVGA_3D_CMD_BIND_GB_CONTEXT; in vmw_gb_context_bind()
358 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_bind()
359 cmd->body.cid = res->id; in vmw_gb_context_bind()
360 cmd->body.mobid = bo->resource->start; in vmw_gb_context_bind()
361 cmd->body.validContents = res->guest_memory_dirty; in vmw_gb_context_bind()
363 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_bind()
387 uint8_t *cmd; in vmw_gb_context_unbind() local
397 cmd = VMW_CMD_RESERVE(dev_priv, submit_size); in vmw_gb_context_unbind()
398 if (unlikely(cmd == NULL)) { in vmw_gb_context_unbind()
403 cmd2 = (void *) cmd; in vmw_gb_context_unbind()
405 cmd1 = (void *) cmd; in vmw_gb_context_unbind()
440 } *cmd; in vmw_gb_context_destroy() local
445 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_gb_context_destroy()
446 if (unlikely(cmd == NULL)) in vmw_gb_context_destroy()
449 cmd->header.id = SVGA_3D_CMD_DESTROY_GB_CONTEXT; in vmw_gb_context_destroy()
450 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_destroy()
451 cmd->body.cid = res->id; in vmw_gb_context_destroy()
452 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_destroy()
472 } *cmd; in vmw_dx_context_create() local
488 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_dx_context_create()
489 if (unlikely(cmd == NULL)) { in vmw_dx_context_create()
494 cmd->header.id = SVGA_3D_CMD_DX_DEFINE_CONTEXT; in vmw_dx_context_create()
495 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_create()
496 cmd->body.cid = res->id; in vmw_dx_context_create()
497 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_create()
515 } *cmd; in vmw_dx_context_bind() local
520 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_dx_context_bind()
521 if (unlikely(cmd == NULL)) in vmw_dx_context_bind()
524 cmd->header.id = SVGA_3D_CMD_DX_BIND_CONTEXT; in vmw_dx_context_bind()
525 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_bind()
526 cmd->body.cid = res->id; in vmw_dx_context_bind()
527 cmd->body.mobid = bo->resource->start; in vmw_dx_context_bind()
528 cmd->body.validContents = res->guest_memory_dirty; in vmw_dx_context_bind()
530 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_bind()
596 uint8_t *cmd; in vmw_dx_context_unbind() local
613 cmd = VMW_CMD_RESERVE(dev_priv, submit_size); in vmw_dx_context_unbind()
614 if (unlikely(cmd == NULL)) { in vmw_dx_context_unbind()
619 cmd2 = (void *) cmd; in vmw_dx_context_unbind()
621 cmd1 = (void *) cmd; in vmw_dx_context_unbind()
656 } *cmd; in vmw_dx_context_destroy() local
661 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_dx_context_destroy()
662 if (unlikely(cmd == NULL)) in vmw_dx_context_destroy()
665 cmd->header.id = SVGA_3D_CMD_DX_DESTROY_CONTEXT; in vmw_dx_context_destroy()
666 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_destroy()
667 cmd->body.cid = res->id; in vmw_dx_context_destroy()
668 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_destroy()