Lines Matching refs:cmd

116 	} *cmd;  in vmw_setup_otable_base()  local
149 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_setup_otable_base()
150 if (unlikely(cmd == NULL)) { in vmw_setup_otable_base()
156 memset(cmd, 0, sizeof(*cmd)); in vmw_setup_otable_base()
157 cmd->header.id = SVGA_3D_CMD_SET_OTABLE_BASE64; in vmw_setup_otable_base()
158 cmd->header.size = sizeof(cmd->body); in vmw_setup_otable_base()
159 cmd->body.type = type; in vmw_setup_otable_base()
160 cmd->body.baseAddress = mob->pt_root_page >> PAGE_SHIFT; in vmw_setup_otable_base()
161 cmd->body.sizeInBytes = otable->size; in vmw_setup_otable_base()
162 cmd->body.validSizeInBytes = 0; in vmw_setup_otable_base()
163 cmd->body.ptDepth = mob->pt_level; in vmw_setup_otable_base()
172 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_setup_otable_base()
198 } *cmd; in vmw_takedown_otable_base() local
205 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_takedown_otable_base()
206 if (unlikely(cmd == NULL)) { in vmw_takedown_otable_base()
212 memset(cmd, 0, sizeof(*cmd)); in vmw_takedown_otable_base()
213 cmd->header.id = SVGA_3D_CMD_SET_OTABLE_BASE; in vmw_takedown_otable_base()
214 cmd->header.size = sizeof(cmd->body); in vmw_takedown_otable_base()
215 cmd->body.type = type; in vmw_takedown_otable_base()
216 cmd->body.baseAddress = 0; in vmw_takedown_otable_base()
217 cmd->body.sizeInBytes = 0; in vmw_takedown_otable_base()
218 cmd->body.validSizeInBytes = 0; in vmw_takedown_otable_base()
219 cmd->body.ptDepth = SVGA3D_MOBFMT_INVALID; in vmw_takedown_otable_base()
220 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_takedown_otable_base()
593 } *cmd; in vmw_mob_unbind() local
605 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_mob_unbind()
606 if (unlikely(cmd == NULL)) { in vmw_mob_unbind()
610 cmd->header.id = SVGA_3D_CMD_DESTROY_GB_MOB; in vmw_mob_unbind()
611 cmd->header.size = sizeof(cmd->body); in vmw_mob_unbind()
612 cmd->body.mobid = mob->id; in vmw_mob_unbind()
613 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_mob_unbind()
649 } *cmd; in vmw_mob_bind() local
674 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_mob_bind()
675 if (unlikely(cmd == NULL)) { in vmw_mob_bind()
681 cmd->header.id = SVGA_3D_CMD_DEFINE_GB_MOB64; in vmw_mob_bind()
682 cmd->header.size = sizeof(cmd->body); in vmw_mob_bind()
683 cmd->body.mobid = mob_id; in vmw_mob_bind()
684 cmd->body.ptDepth = mob->pt_level; in vmw_mob_bind()
685 cmd->body.base = mob->pt_root_page >> PAGE_SHIFT; in vmw_mob_bind()
686 cmd->body.sizeInBytes = num_data_pages * PAGE_SIZE; in vmw_mob_bind()
688 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_mob_bind()