Lines Matching refs:cmd

101 	} *cmd;  in vmw_setup_otable_base()  local
134 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_setup_otable_base()
135 if (unlikely(cmd == NULL)) { in vmw_setup_otable_base()
141 memset(cmd, 0, sizeof(*cmd)); in vmw_setup_otable_base()
142 cmd->header.id = SVGA_3D_CMD_SET_OTABLE_BASE64; in vmw_setup_otable_base()
143 cmd->header.size = sizeof(cmd->body); in vmw_setup_otable_base()
144 cmd->body.type = type; in vmw_setup_otable_base()
145 cmd->body.baseAddress = cpu_to_le64(mob->pt_root_page >> PAGE_SHIFT); in vmw_setup_otable_base()
146 cmd->body.sizeInBytes = otable->size; in vmw_setup_otable_base()
147 cmd->body.validSizeInBytes = 0; in vmw_setup_otable_base()
148 cmd->body.ptDepth = mob->pt_level; in vmw_setup_otable_base()
157 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_setup_otable_base()
183 } *cmd; in vmw_takedown_otable_base() local
190 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_takedown_otable_base()
191 if (unlikely(cmd == NULL)) { in vmw_takedown_otable_base()
195 memset(cmd, 0, sizeof(*cmd)); in vmw_takedown_otable_base()
196 cmd->header.id = SVGA_3D_CMD_SET_OTABLE_BASE; in vmw_takedown_otable_base()
197 cmd->header.size = sizeof(cmd->body); in vmw_takedown_otable_base()
198 cmd->body.type = type; in vmw_takedown_otable_base()
199 cmd->body.baseAddress = 0; in vmw_takedown_otable_base()
200 cmd->body.sizeInBytes = 0; in vmw_takedown_otable_base()
201 cmd->body.validSizeInBytes = 0; in vmw_takedown_otable_base()
202 cmd->body.ptDepth = SVGA3D_MOBFMT_INVALID; in vmw_takedown_otable_base()
203 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_takedown_otable_base()
551 } *cmd; in vmw_mob_unbind() local
563 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_mob_unbind()
564 if (unlikely(cmd == NULL)) { in vmw_mob_unbind()
568 cmd->header.id = SVGA_3D_CMD_DESTROY_GB_MOB; in vmw_mob_unbind()
569 cmd->header.size = sizeof(cmd->body); in vmw_mob_unbind()
570 cmd->body.mobid = mob->id; in vmw_mob_unbind()
571 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_mob_unbind()
607 } *cmd; in vmw_mob_bind() local
632 cmd = vmw_fifo_reserve(dev_priv, sizeof(*cmd)); in vmw_mob_bind()
633 if (unlikely(cmd == NULL)) { in vmw_mob_bind()
639 cmd->header.id = SVGA_3D_CMD_DEFINE_GB_MOB64; in vmw_mob_bind()
640 cmd->header.size = sizeof(cmd->body); in vmw_mob_bind()
641 cmd->body.mobid = mob_id; in vmw_mob_bind()
642 cmd->body.ptDepth = mob->pt_level; in vmw_mob_bind()
643 cmd->body.base = cpu_to_le64(mob->pt_root_page >> PAGE_SHIFT); in vmw_mob_bind()
644 cmd->body.sizeInBytes = num_data_pages * PAGE_SIZE; in vmw_mob_bind()
646 vmw_fifo_commit(dev_priv, sizeof(*cmd)); in vmw_mob_bind()