Lines Matching refs:cmd

138 	} *cmd;  in vmw_hw_context_destroy()  local
158 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_hw_context_destroy()
159 if (unlikely(cmd == NULL)) { in vmw_hw_context_destroy()
165 cmd->header.id = SVGA_3D_CMD_CONTEXT_DESTROY; in vmw_hw_context_destroy()
166 cmd->header.size = sizeof(cmd->body); in vmw_hw_context_destroy()
167 cmd->body.cid = res->id; in vmw_hw_context_destroy()
169 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_hw_context_destroy()
244 } *cmd; in vmw_context_init() local
263 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_context_init()
264 if (unlikely(cmd == NULL)) { in vmw_context_init()
270 cmd->header.id = SVGA_3D_CMD_CONTEXT_DEFINE; in vmw_context_init()
271 cmd->header.size = sizeof(cmd->body); in vmw_context_init()
272 cmd->body.cid = res->id; in vmw_context_init()
274 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_context_init()
299 } *cmd; in vmw_gb_context_create() local
315 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_gb_context_create()
316 if (unlikely(cmd == NULL)) { in vmw_gb_context_create()
323 cmd->header.id = SVGA_3D_CMD_DEFINE_GB_CONTEXT; in vmw_gb_context_create()
324 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_create()
325 cmd->body.cid = res->id; in vmw_gb_context_create()
326 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_create()
344 } *cmd; in vmw_gb_context_bind() local
349 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_gb_context_bind()
350 if (unlikely(cmd == NULL)) { in vmw_gb_context_bind()
355 cmd->header.id = SVGA_3D_CMD_BIND_GB_CONTEXT; in vmw_gb_context_bind()
356 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_bind()
357 cmd->body.cid = res->id; in vmw_gb_context_bind()
358 cmd->body.mobid = bo->mem.start; in vmw_gb_context_bind()
359 cmd->body.validContents = res->backup_dirty; in vmw_gb_context_bind()
361 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_bind()
385 uint8_t *cmd; in vmw_gb_context_unbind() local
395 cmd = vmw_fifo_reserve(dev_priv, submit_size); in vmw_gb_context_unbind()
396 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_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_gb_context_destroy()
446 if (unlikely(cmd == NULL)) { in vmw_gb_context_destroy()
452 cmd->header.id = SVGA_3D_CMD_DESTROY_GB_CONTEXT; in vmw_gb_context_destroy()
453 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_destroy()
454 cmd->body.cid = res->id; in vmw_gb_context_destroy()
455 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_destroy()
475 } *cmd; in vmw_dx_context_create() local
491 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_dx_context_create()
492 if (unlikely(cmd == NULL)) { in vmw_dx_context_create()
499 cmd->header.id = SVGA_3D_CMD_DX_DEFINE_CONTEXT; in vmw_dx_context_create()
500 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_create()
501 cmd->body.cid = res->id; in vmw_dx_context_create()
502 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_create()
520 } *cmd; in vmw_dx_context_bind() local
525 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_dx_context_bind()
526 if (unlikely(cmd == NULL)) { in vmw_dx_context_bind()
532 cmd->header.id = SVGA_3D_CMD_DX_BIND_CONTEXT; in vmw_dx_context_bind()
533 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_bind()
534 cmd->body.cid = res->id; in vmw_dx_context_bind()
535 cmd->body.mobid = bo->mem.start; in vmw_dx_context_bind()
536 cmd->body.validContents = res->backup_dirty; in vmw_dx_context_bind()
538 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_bind()
602 uint8_t *cmd; in vmw_dx_context_unbind() local
619 cmd = vmw_fifo_reserve(dev_priv, submit_size); in vmw_dx_context_unbind()
620 if (unlikely(cmd == NULL)) { in vmw_dx_context_unbind()
627 cmd2 = (void *) cmd; in vmw_dx_context_unbind()
629 cmd1 = (void *) cmd; in vmw_dx_context_unbind()
664 } *cmd; in vmw_dx_context_destroy() local
669 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_dx_context_destroy()
670 if (unlikely(cmd == NULL)) { in vmw_dx_context_destroy()
676 cmd->header.id = SVGA_3D_CMD_DX_DESTROY_CONTEXT; in vmw_dx_context_destroy()
677 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_destroy()
678 cmd->body.cid = res->id; in vmw_dx_context_destroy()
679 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_destroy()