Lines Matching refs:cmd
146 } *cmd; in vmw_hw_context_destroy() local
166 cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd)); in vmw_hw_context_destroy()
167 if (unlikely(cmd == NULL)) in vmw_hw_context_destroy()
170 cmd->header.id = SVGA_3D_CMD_CONTEXT_DESTROY; in vmw_hw_context_destroy()
171 cmd->header.size = sizeof(cmd->body); in vmw_hw_context_destroy()
172 cmd->body.cid = res->id; in vmw_hw_context_destroy()
174 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_hw_context_destroy()
249 } *cmd; in vmw_context_init() local
268 cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd)); in vmw_context_init()
269 if (unlikely(cmd == NULL)) { in vmw_context_init()
274 cmd->header.id = SVGA_3D_CMD_CONTEXT_DEFINE; in vmw_context_init()
275 cmd->header.size = sizeof(cmd->body); in vmw_context_init()
276 cmd->body.cid = res->id; in vmw_context_init()
278 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_context_init()
303 } *cmd; in vmw_gb_context_create() local
319 cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd)); in vmw_gb_context_create()
320 if (unlikely(cmd == NULL)) { in vmw_gb_context_create()
325 cmd->header.id = SVGA_3D_CMD_DEFINE_GB_CONTEXT; in vmw_gb_context_create()
326 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_create()
327 cmd->body.cid = res->id; in vmw_gb_context_create()
328 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_create()
346 } *cmd; in vmw_gb_context_bind() local
351 cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd)); in vmw_gb_context_bind()
352 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()
401 cmd2 = (void *) cmd; in vmw_gb_context_unbind()
403 cmd1 = (void *) cmd; in vmw_gb_context_unbind()
438 } *cmd; in vmw_gb_context_destroy() local
443 cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd)); in vmw_gb_context_destroy()
444 if (unlikely(cmd == NULL)) in vmw_gb_context_destroy()
447 cmd->header.id = SVGA_3D_CMD_DESTROY_GB_CONTEXT; in vmw_gb_context_destroy()
448 cmd->header.size = sizeof(cmd->body); in vmw_gb_context_destroy()
449 cmd->body.cid = res->id; in vmw_gb_context_destroy()
450 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_gb_context_destroy()
470 } *cmd; in vmw_dx_context_create() local
486 cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd)); in vmw_dx_context_create()
487 if (unlikely(cmd == NULL)) { in vmw_dx_context_create()
492 cmd->header.id = SVGA_3D_CMD_DX_DEFINE_CONTEXT; in vmw_dx_context_create()
493 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_create()
494 cmd->body.cid = res->id; in vmw_dx_context_create()
495 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_create()
513 } *cmd; in vmw_dx_context_bind() local
518 cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd)); in vmw_dx_context_bind()
519 if (unlikely(cmd == NULL)) in vmw_dx_context_bind()
522 cmd->header.id = SVGA_3D_CMD_DX_BIND_CONTEXT; in vmw_dx_context_bind()
523 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_bind()
524 cmd->body.cid = res->id; in vmw_dx_context_bind()
525 cmd->body.mobid = bo->mem.start; in vmw_dx_context_bind()
526 cmd->body.validContents = res->backup_dirty; in vmw_dx_context_bind()
528 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_bind()
594 uint8_t *cmd; in vmw_dx_context_unbind() local
611 cmd = VMW_FIFO_RESERVE(dev_priv, submit_size); in vmw_dx_context_unbind()
612 if (unlikely(cmd == NULL)) { in vmw_dx_context_unbind()
617 cmd2 = (void *) cmd; in vmw_dx_context_unbind()
619 cmd1 = (void *) cmd; in vmw_dx_context_unbind()
654 } *cmd; in vmw_dx_context_destroy() local
659 cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd)); in vmw_dx_context_destroy()
660 if (unlikely(cmd == NULL)) in vmw_dx_context_destroy()
663 cmd->header.id = SVGA_3D_CMD_DX_DESTROY_CONTEXT; in vmw_dx_context_destroy()
664 cmd->header.size = sizeof(cmd->body); in vmw_dx_context_destroy()
665 cmd->body.cid = res->id; in vmw_dx_context_destroy()
666 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_dx_context_destroy()