Lines Matching refs:cmd1
1294 } *cmd1; in vmw_gb_surface_bind() local
1304 submit_size = sizeof(*cmd1) + (res->guest_memory_dirty ? sizeof(*cmd2) : 0); in vmw_gb_surface_bind()
1306 cmd1 = VMW_CMD_RESERVE(dev_priv, submit_size); in vmw_gb_surface_bind()
1307 if (unlikely(!cmd1)) in vmw_gb_surface_bind()
1310 cmd1->header.id = SVGA_3D_CMD_BIND_GB_SURFACE; in vmw_gb_surface_bind()
1311 cmd1->header.size = sizeof(cmd1->body); in vmw_gb_surface_bind()
1312 cmd1->body.sid = res->id; in vmw_gb_surface_bind()
1313 cmd1->body.mobid = bo->resource->start; in vmw_gb_surface_bind()
1315 cmd2 = (void *) &cmd1[1]; in vmw_gb_surface_bind()
1343 } *cmd1; in vmw_gb_surface_unbind() local
1358 submit_size = sizeof(*cmd3) + (readback ? sizeof(*cmd1) : sizeof(*cmd2)); in vmw_gb_surface_unbind()
1364 cmd1 = (void *) cmd; in vmw_gb_surface_unbind()
1365 cmd1->header.id = SVGA_3D_CMD_READBACK_GB_SURFACE; in vmw_gb_surface_unbind()
1366 cmd1->header.size = sizeof(cmd1->body); in vmw_gb_surface_unbind()
1367 cmd1->body.sid = res->id; in vmw_gb_surface_unbind()
1368 cmd3 = (void *) &cmd1[1]; in vmw_gb_surface_unbind()
1960 } *cmd1; in vmw_surface_dirty_sync() local
1978 alloc_size = num_dirty * ((has_sm4_context(dev_priv)) ? sizeof(*cmd1) : sizeof(*cmd2)); in vmw_surface_dirty_sync()
1983 cmd1 = cmd; in vmw_surface_dirty_sync()
1997 cmd1->header.id = SVGA_3D_CMD_DX_UPDATE_SUBRESOURCE; in vmw_surface_dirty_sync()
1998 cmd1->header.size = sizeof(cmd1->body); in vmw_surface_dirty_sync()
1999 cmd1->body.sid = res->id; in vmw_surface_dirty_sync()
2000 cmd1->body.subResource = i; in vmw_surface_dirty_sync()
2001 cmd1->body.box = *box; in vmw_surface_dirty_sync()
2002 cmd1++; in vmw_surface_dirty_sync()