Lines Matching refs:cmd

238 	struct vmw_surface_destroy *cmd = (struct vmw_surface_destroy *)  in vmw_surface_destroy_encode()  local
241 cmd->header.id = SVGA_3D_CMD_SURFACE_DESTROY; in vmw_surface_destroy_encode()
242 cmd->header.size = sizeof(cmd->body); in vmw_surface_destroy_encode()
243 cmd->body.sid = id; in vmw_surface_destroy_encode()
255 struct vmw_surface_define *cmd = (struct vmw_surface_define *) in vmw_surface_define_encode() local
262 cmd_len = sizeof(cmd->body) + srf->metadata.num_sizes * in vmw_surface_define_encode()
265 cmd->header.id = SVGA_3D_CMD_SURFACE_DEFINE; in vmw_surface_define_encode()
266 cmd->header.size = cmd_len; in vmw_surface_define_encode()
267 cmd->body.sid = srf->res.id; in vmw_surface_define_encode()
273 cmd->body.surfaceFlags = (SVGA3dSurface1Flags)srf->metadata.flags; in vmw_surface_define_encode()
274 cmd->body.format = srf->metadata.format; in vmw_surface_define_encode()
276 cmd->body.face[i].numMipLevels = srf->metadata.mip_levels[i]; in vmw_surface_define_encode()
278 cmd += 1; in vmw_surface_define_encode()
279 cmd_size = (SVGA3dSize *) cmd; in vmw_surface_define_encode()
304 struct vmw_surface_dma *cmd = (struct vmw_surface_dma *)cmd_space; in vmw_surface_dma_encode() local
309 SVGA3dCmdHeader *header = &cmd->header; in vmw_surface_dma_encode()
310 SVGA3dCmdSurfaceDMA *body = &cmd->body; in vmw_surface_dma_encode()
311 SVGA3dCopyBox *cb = &cmd->cb; in vmw_surface_dma_encode()
312 SVGA3dCmdSurfaceDMASuffix *suffix = &cmd->suffix; in vmw_surface_dma_encode()
344 ++cmd; in vmw_surface_dma_encode()
362 void *cmd; in vmw_hw_surface_destroy() local
371 cmd = VMW_CMD_RESERVE(dev_priv, vmw_surface_destroy_size()); in vmw_hw_surface_destroy()
372 if (unlikely(!cmd)) in vmw_hw_surface_destroy()
375 vmw_surface_destroy_encode(res->id, cmd); in vmw_hw_surface_destroy()
408 uint8_t *cmd; in vmw_legacy_srf_create() local
439 cmd = VMW_CMD_RESERVE(dev_priv, submit_size); in vmw_legacy_srf_create()
440 if (unlikely(!cmd)) { in vmw_legacy_srf_create()
445 vmw_surface_define_encode(srf, cmd); in vmw_legacy_srf_create()
486 uint8_t *cmd; in vmw_legacy_srf_dma() local
491 cmd = VMW_CMD_RESERVE(dev_priv, submit_size); in vmw_legacy_srf_dma()
492 if (unlikely(!cmd)) in vmw_legacy_srf_dma()
496 vmw_surface_dma_encode(srf, cmd, &ptr, bind); in vmw_legacy_srf_dma()
569 uint8_t *cmd; in vmw_legacy_srf_destroy() local
578 cmd = VMW_CMD_RESERVE(dev_priv, submit_size); in vmw_legacy_srf_destroy()
579 if (unlikely(!cmd)) in vmw_legacy_srf_destroy()
582 vmw_surface_destroy_encode(res->id, cmd); in vmw_legacy_srf_destroy()
1043 } *cmd; in vmw_gb_surface_create() local
1087 cmd_len = sizeof(cmd->body); in vmw_gb_surface_create()
1088 submit_len = sizeof(*cmd); in vmw_gb_surface_create()
1091 cmd = VMW_CMD_RESERVE(dev_priv, submit_len); in vmw_gb_surface_create()
1092 cmd2 = (typeof(cmd2))cmd; in vmw_gb_surface_create()
1093 cmd3 = (typeof(cmd3))cmd; in vmw_gb_surface_create()
1094 cmd4 = (typeof(cmd4))cmd; in vmw_gb_surface_create()
1095 if (unlikely(!cmd)) { in vmw_gb_surface_create()
1145 cmd->header.id = cmd_id; in vmw_gb_surface_create()
1146 cmd->header.size = cmd_len; in vmw_gb_surface_create()
1147 cmd->body.sid = srf->res.id; in vmw_gb_surface_create()
1148 cmd->body.surfaceFlags = metadata->flags; in vmw_gb_surface_create()
1149 cmd->body.format = metadata->format; in vmw_gb_surface_create()
1150 cmd->body.numMipLevels = metadata->mip_levels[0]; in vmw_gb_surface_create()
1151 cmd->body.multisampleCount = metadata->multisample_count; in vmw_gb_surface_create()
1152 cmd->body.autogenFilter = metadata->autogen_filter; in vmw_gb_surface_create()
1153 cmd->body.size.width = metadata->base_size.width; in vmw_gb_surface_create()
1154 cmd->body.size.height = metadata->base_size.height; in vmw_gb_surface_create()
1155 cmd->body.size.depth = metadata->base_size.depth; in vmw_gb_surface_create()
1236 uint8_t *cmd; in vmw_gb_surface_unbind() local
1242 cmd = VMW_CMD_RESERVE(dev_priv, submit_size); in vmw_gb_surface_unbind()
1243 if (unlikely(!cmd)) in vmw_gb_surface_unbind()
1247 cmd1 = (void *) cmd; in vmw_gb_surface_unbind()
1253 cmd2 = (void *) cmd; in vmw_gb_surface_unbind()
1289 } *cmd; in vmw_gb_surface_destroy() local
1298 cmd = VMW_CMD_RESERVE(dev_priv, sizeof(*cmd)); in vmw_gb_surface_destroy()
1299 if (unlikely(!cmd)) { in vmw_gb_surface_destroy()
1304 cmd->header.id = SVGA_3D_CMD_DESTROY_GB_SURFACE; in vmw_gb_surface_destroy()
1305 cmd->header.size = sizeof(cmd->body); in vmw_gb_surface_destroy()
1306 cmd->body.sid = res->id; in vmw_gb_surface_destroy()
1307 vmw_cmd_commit(dev_priv, sizeof(*cmd)); in vmw_gb_surface_destroy()
1844 void *cmd; in vmw_surface_dirty_sync() local
1858 cmd = VMW_CMD_RESERVE(dev_priv, alloc_size); in vmw_surface_dirty_sync()
1859 if (!cmd) in vmw_surface_dirty_sync()
1862 cmd1 = cmd; in vmw_surface_dirty_sync()
1863 cmd2 = cmd; in vmw_surface_dirty_sync()
1975 } *cmd; in vmw_surface_clean() local
1977 alloc_size = sizeof(*cmd); in vmw_surface_clean()
1978 cmd = VMW_CMD_RESERVE(dev_priv, alloc_size); in vmw_surface_clean()
1979 if (!cmd) in vmw_surface_clean()
1982 cmd->header.id = SVGA_3D_CMD_READBACK_GB_SURFACE; in vmw_surface_clean()
1983 cmd->header.size = sizeof(cmd->body); in vmw_surface_clean()
1984 cmd->body.sid = res->id; in vmw_surface_clean()