Lines Matching refs:cmd

179 	} *cmd;  in vmw_stdu_define_st()  local
181 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_stdu_define_st()
182 if (unlikely(cmd == NULL)) in vmw_stdu_define_st()
185 cmd->header.id = SVGA_3D_CMD_DEFINE_GB_SCREENTARGET; in vmw_stdu_define_st()
186 cmd->header.size = sizeof(cmd->body); in vmw_stdu_define_st()
188 cmd->body.stid = stdu->base.unit; in vmw_stdu_define_st()
189 cmd->body.width = mode->hdisplay; in vmw_stdu_define_st()
190 cmd->body.height = mode->vdisplay; in vmw_stdu_define_st()
191 cmd->body.flags = (0 == cmd->body.stid) ? SVGA_STFLAG_PRIMARY : 0; in vmw_stdu_define_st()
192 cmd->body.dpi = 0; in vmw_stdu_define_st()
193 cmd->body.xRoot = crtc_x; in vmw_stdu_define_st()
194 cmd->body.yRoot = crtc_y; in vmw_stdu_define_st()
196 stdu->base.set_gui_x = cmd->body.xRoot; in vmw_stdu_define_st()
197 stdu->base.set_gui_y = cmd->body.yRoot; in vmw_stdu_define_st()
199 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_stdu_define_st()
228 } *cmd; in vmw_stdu_bind_st() local
240 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_stdu_bind_st()
241 if (unlikely(cmd == NULL)) in vmw_stdu_bind_st()
244 cmd->header.id = SVGA_3D_CMD_BIND_GB_SCREENTARGET; in vmw_stdu_bind_st()
245 cmd->header.size = sizeof(cmd->body); in vmw_stdu_bind_st()
247 cmd->body.stid = stdu->base.unit; in vmw_stdu_bind_st()
248 cmd->body.image = image; in vmw_stdu_bind_st()
250 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_stdu_bind_st()
266 static void vmw_stdu_populate_update(void *cmd, int unit, in vmw_stdu_populate_update() argument
269 struct vmw_stdu_update *update = cmd; in vmw_stdu_populate_update()
297 struct vmw_stdu_update *cmd; in vmw_stdu_update_st() local
304 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_stdu_update_st()
305 if (unlikely(cmd == NULL)) in vmw_stdu_update_st()
308 vmw_stdu_populate_update(cmd, stdu->base.unit, in vmw_stdu_update_st()
312 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_stdu_update_st()
333 } *cmd; in vmw_stdu_destroy_st() local
340 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_stdu_destroy_st()
341 if (unlikely(cmd == NULL)) in vmw_stdu_destroy_st()
344 cmd->header.id = SVGA_3D_CMD_DESTROY_GB_SCREENTARGET; in vmw_stdu_destroy_st()
345 cmd->header.size = sizeof(cmd->body); in vmw_stdu_destroy_st()
347 cmd->body.stid = stdu->base.unit; in vmw_stdu_destroy_st()
349 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_stdu_destroy_st()
619 struct vmw_stdu_surface_copy *cmd = dirty->cmd; in vmw_kms_stdu_surface_clip() local
624 struct SVGA3dCopyBox *blit = (struct SVGA3dCopyBox *) &cmd[1]; in vmw_kms_stdu_surface_clip()
660 struct vmw_stdu_surface_copy *cmd = dirty->cmd; in vmw_kms_stdu_surface_fifo_commit() local
671 struct SVGA3dCopyBox *blit = (struct SVGA3dCopyBox *) &cmd[1]; in vmw_kms_stdu_surface_fifo_commit()
673 cmd->header.id = SVGA_3D_CMD_SURFACE_COPY; in vmw_kms_stdu_surface_fifo_commit()
674 cmd->header.size = sizeof(cmd->body) + blit_size; in vmw_kms_stdu_surface_fifo_commit()
675 cmd->body.src.sid = sdirty->sid; in vmw_kms_stdu_surface_fifo_commit()
676 cmd->body.dest.sid = stdu->display_srf->res.id; in vmw_kms_stdu_surface_fifo_commit()
678 commit_size = sizeof(*cmd) + blit_size + sizeof(*update); in vmw_kms_stdu_surface_fifo_commit()
681 update = dirty->cmd; in vmw_kms_stdu_surface_fifo_commit()
1105 void *cmd, uint32_t num_hits) in vmw_stdu_bo_pre_clip_cpu() argument
1117 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_clip_cpu() argument
1130 vmw_stdu_bo_populate_update_cpu(struct vmw_du_update_plane *update, void *cmd, in vmw_stdu_bo_populate_update_cpu() argument
1137 struct vmw_stdu_update_gb_image *cmd_img = cmd; in vmw_stdu_bo_populate_update_cpu()
1266 vmw_stdu_surface_update_proxy(struct vmw_du_update_plane *update, void *cmd) in vmw_stdu_surface_update_proxy() argument
1271 struct vmw_stdu_update_gb_image *cmd_update = cmd; in vmw_stdu_surface_update_proxy()
1307 vmw_stdu_surface_populate_copy(struct vmw_du_update_plane *update, void *cmd, in vmw_stdu_surface_populate_copy() argument
1312 struct vmw_stdu_surface_copy *cmd_copy = cmd; in vmw_stdu_surface_populate_copy()
1327 vmw_stdu_surface_populate_clip(struct vmw_du_update_plane *update, void *cmd, in vmw_stdu_surface_populate_clip() argument
1331 struct SVGA3dCopyBox *box = cmd; in vmw_stdu_surface_populate_clip()
1347 vmw_stdu_surface_populate_update(struct vmw_du_update_plane *update, void *cmd, in vmw_stdu_surface_populate_update() argument
1350 vmw_stdu_populate_update(cmd, update->du->unit, bb->x1, bb->x2, bb->y1, in vmw_stdu_surface_populate_update()