Lines Matching refs:cmd

620 	} *cmd;  in vmw_cmd_cid_check()  local
622 cmd = container_of(header, struct vmw_cid_cmd, header); in vmw_cmd_cid_check()
624 user_context_converter, &cmd->cid, NULL); in vmw_cmd_cid_check()
634 } *cmd; in vmw_cmd_set_render_target_check() local
639 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_set_render_target_check()
642 user_context_converter, &cmd->body.cid, in vmw_cmd_set_render_target_check()
649 &cmd->body.target.sid, &res_node); in vmw_cmd_set_render_target_check()
659 bi.i1.rt_type = cmd->body.type; in vmw_cmd_set_render_target_check()
673 } *cmd; in vmw_cmd_surface_copy_check() local
676 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_surface_copy_check()
679 &cmd->body.src.sid, NULL); in vmw_cmd_surface_copy_check()
684 &cmd->body.dest.sid, NULL); in vmw_cmd_surface_copy_check()
694 } *cmd; in vmw_cmd_stretch_blt_check() local
697 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_stretch_blt_check()
700 &cmd->body.src.sid, NULL); in vmw_cmd_stretch_blt_check()
705 &cmd->body.dest.sid, NULL); in vmw_cmd_stretch_blt_check()
715 } *cmd; in vmw_cmd_blt_surf_screen_check() local
717 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_blt_surf_screen_check()
721 &cmd->body.srcImage.sid, NULL); in vmw_cmd_blt_surf_screen_check()
731 } *cmd; in vmw_cmd_present_check() local
734 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_present_check()
737 user_surface_converter, &cmd->body.sid, in vmw_cmd_present_check()
999 } *cmd; in vmw_cmd_begin_gb_query() local
1001 cmd = container_of(header, struct vmw_begin_gb_query_cmd, in vmw_cmd_begin_gb_query()
1005 user_context_converter, &cmd->q.cid, in vmw_cmd_begin_gb_query()
1023 } *cmd; in vmw_cmd_begin_query() local
1025 cmd = container_of(header, struct vmw_begin_query_cmd, in vmw_cmd_begin_query()
1034 BUG_ON(sizeof(gb_cmd) != sizeof(*cmd)); in vmw_cmd_begin_query()
1037 gb_cmd.header.size = cmd->header.size; in vmw_cmd_begin_query()
1038 gb_cmd.q.cid = cmd->q.cid; in vmw_cmd_begin_query()
1039 gb_cmd.q.type = cmd->q.type; in vmw_cmd_begin_query()
1041 memcpy(cmd, &gb_cmd, sizeof(*cmd)); in vmw_cmd_begin_query()
1046 user_context_converter, &cmd->q.cid, in vmw_cmd_begin_query()
1065 } *cmd; in vmw_cmd_end_gb_query() local
1068 cmd = container_of(header, struct vmw_query_cmd, header); in vmw_cmd_end_gb_query()
1074 &cmd->q.mobid, in vmw_cmd_end_gb_query()
1100 } *cmd; in vmw_cmd_end_query() local
1103 cmd = container_of(header, struct vmw_query_cmd, header); in vmw_cmd_end_query()
1110 BUG_ON(sizeof(gb_cmd) != sizeof(*cmd)); in vmw_cmd_end_query()
1113 gb_cmd.header.size = cmd->header.size; in vmw_cmd_end_query()
1114 gb_cmd.q.cid = cmd->q.cid; in vmw_cmd_end_query()
1115 gb_cmd.q.type = cmd->q.type; in vmw_cmd_end_query()
1116 gb_cmd.q.mobid = cmd->q.guestResult.gmrId; in vmw_cmd_end_query()
1117 gb_cmd.q.offset = cmd->q.guestResult.offset; in vmw_cmd_end_query()
1119 memcpy(cmd, &gb_cmd, sizeof(*cmd)); in vmw_cmd_end_query()
1128 &cmd->q.guestResult, in vmw_cmd_end_query()
1154 } *cmd; in vmw_cmd_wait_gb_query() local
1157 cmd = container_of(header, struct vmw_query_cmd, header); in vmw_cmd_wait_gb_query()
1163 &cmd->q.mobid, in vmw_cmd_wait_gb_query()
1187 } *cmd; in vmw_cmd_wait_query() local
1190 cmd = container_of(header, struct vmw_query_cmd, header); in vmw_cmd_wait_query()
1197 BUG_ON(sizeof(gb_cmd) != sizeof(*cmd)); in vmw_cmd_wait_query()
1200 gb_cmd.header.size = cmd->header.size; in vmw_cmd_wait_query()
1201 gb_cmd.q.cid = cmd->q.cid; in vmw_cmd_wait_query()
1202 gb_cmd.q.type = cmd->q.type; in vmw_cmd_wait_query()
1203 gb_cmd.q.mobid = cmd->q.guestResult.gmrId; in vmw_cmd_wait_query()
1204 gb_cmd.q.offset = cmd->q.guestResult.offset; in vmw_cmd_wait_query()
1206 memcpy(cmd, &gb_cmd, sizeof(*cmd)); in vmw_cmd_wait_query()
1215 &cmd->q.guestResult, in vmw_cmd_wait_query()
1233 } *cmd; in vmw_cmd_dma() local
1238 cmd = container_of(header, struct vmw_dma_cmd, header); in vmw_cmd_dma()
1239 suffix = (SVGA3dCmdSurfaceDMASuffix *)((unsigned long) &cmd->dma + in vmw_cmd_dma()
1249 &cmd->dma.guest.ptr, in vmw_cmd_dma()
1256 if (unlikely(cmd->dma.guest.ptr.offset > bo_size)) { in vmw_cmd_dma()
1261 bo_size -= cmd->dma.guest.ptr.offset; in vmw_cmd_dma()
1266 user_surface_converter, &cmd->dma.host.sid, in vmw_cmd_dma()
1291 } *cmd; in vmw_cmd_draw() local
1293 (unsigned long)header + sizeof(*cmd)); in vmw_cmd_draw()
1303 cmd = container_of(header, struct vmw_draw_cmd, header); in vmw_cmd_draw()
1304 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1306 if (unlikely(cmd->body.numVertexDecls > maxnum)) { in vmw_cmd_draw()
1311 for (i = 0; i < cmd->body.numVertexDecls; ++i, ++decl) { in vmw_cmd_draw()
1319 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1320 cmd->body.numVertexDecls * sizeof(*decl)) / sizeof(*range); in vmw_cmd_draw()
1321 if (unlikely(cmd->body.numRanges > maxnum)) { in vmw_cmd_draw()
1327 for (i = 0; i < cmd->body.numRanges; ++i, ++range) { in vmw_cmd_draw()
1345 } *cmd; in vmw_cmd_tex_state() local
1355 cmd = container_of(header, struct vmw_tex_state_cmd, in vmw_cmd_tex_state()
1359 user_context_converter, &cmd->state.cid, in vmw_cmd_tex_state()
1399 } *cmd = buf; in vmw_cmd_check_define_gmrfb() local
1402 &cmd->body.ptr, in vmw_cmd_check_define_gmrfb()
1474 } *cmd; in vmw_cmd_bind_gb_surface() local
1476 cmd = container_of(header, struct vmw_bind_gb_surface_cmd, header); in vmw_cmd_bind_gb_surface()
1480 &cmd->body.sid, &cmd->body.mobid, in vmw_cmd_bind_gb_surface()
1499 } *cmd; in vmw_cmd_update_gb_image() local
1501 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_update_gb_image()
1505 &cmd->body.image.sid, NULL); in vmw_cmd_update_gb_image()
1523 } *cmd; in vmw_cmd_update_gb_surface() local
1525 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_update_gb_surface()
1529 &cmd->body.sid, NULL); in vmw_cmd_update_gb_surface()
1547 } *cmd; in vmw_cmd_readback_gb_image() local
1549 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_readback_gb_image()
1553 &cmd->body.image.sid, NULL); in vmw_cmd_readback_gb_image()
1571 } *cmd; in vmw_cmd_readback_gb_surface() local
1573 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_readback_gb_surface()
1577 &cmd->body.sid, NULL); in vmw_cmd_readback_gb_surface()
1595 } *cmd; in vmw_cmd_invalidate_gb_image() local
1597 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_invalidate_gb_image()
1601 &cmd->body.image.sid, NULL); in vmw_cmd_invalidate_gb_image()
1619 } *cmd; in vmw_cmd_invalidate_gb_surface() local
1621 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_invalidate_gb_surface()
1625 &cmd->body.sid, NULL); in vmw_cmd_invalidate_gb_surface()
1644 } *cmd; in vmw_cmd_shader_define() local
1649 cmd = container_of(header, struct vmw_shader_define_cmd, in vmw_cmd_shader_define()
1653 user_context_converter, &cmd->body.cid, in vmw_cmd_shader_define()
1661 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
1664 cmd->body.shid, cmd + 1, in vmw_cmd_shader_define()
1665 cmd->body.type, size, in vmw_cmd_shader_define()
1671 NULL, &cmd->header.id - in vmw_cmd_shader_define()
1692 } *cmd; in vmw_cmd_shader_destroy() local
1696 cmd = container_of(header, struct vmw_shader_destroy_cmd, in vmw_cmd_shader_destroy()
1700 user_context_converter, &cmd->body.cid, in vmw_cmd_shader_destroy()
1709 cmd->body.shid, in vmw_cmd_shader_destroy()
1710 cmd->body.type, in vmw_cmd_shader_destroy()
1716 NULL, &cmd->header.id - in vmw_cmd_shader_destroy()
1737 } *cmd; in vmw_cmd_set_shader() local
1743 cmd = container_of(header, struct vmw_set_shader_cmd, in vmw_cmd_set_shader()
1747 user_context_converter, &cmd->body.cid, in vmw_cmd_set_shader()
1755 if (cmd->body.shid != SVGA3D_INVALID_ID) { in vmw_cmd_set_shader()
1758 cmd->body.shid, in vmw_cmd_set_shader()
1759 cmd->body.type); in vmw_cmd_set_shader()
1764 &cmd->body.shid, res, in vmw_cmd_set_shader()
1776 &cmd->body.shid, &res_node); in vmw_cmd_set_shader()
1784 bi.i1.shader_type = cmd->body.type; in vmw_cmd_set_shader()
1803 } *cmd; in vmw_cmd_set_shader_const() local
1806 cmd = container_of(header, struct vmw_set_shader_const_cmd, in vmw_cmd_set_shader_const()
1810 user_context_converter, &cmd->body.cid, in vmw_cmd_set_shader_const()
1836 } *cmd; in vmw_cmd_bind_gb_shader() local
1838 cmd = container_of(header, struct vmw_bind_gb_shader_cmd, in vmw_cmd_bind_gb_shader()
1843 &cmd->body.shid, &cmd->body.mobid, in vmw_cmd_bind_gb_shader()
1844 cmd->body.offsetInBytes); in vmw_cmd_bind_gb_shader()
2439 void *cmd; in vmw_execbuf_process() local
2527 cmd = vmw_fifo_reserve(dev_priv, command_size); in vmw_execbuf_process()
2528 if (unlikely(cmd == NULL)) { in vmw_execbuf_process()
2535 memcpy(cmd, kernel_commands, command_size); in vmw_execbuf_process()
2537 vmw_resource_relocations_apply(cmd, &sw_context->res_relocations); in vmw_execbuf_process()