Lines Matching refs:header
522 SVGA3dCmdHeader *header) in vmw_cmd_invalid() argument
529 SVGA3dCmdHeader *header) in vmw_cmd_ok() argument
826 SVGA3dCmdHeader header; in vmw_rebind_all_dx_query() member
843 cmd->header.id = SVGA_3D_CMD_DX_BIND_ALL_QUERY; in vmw_rebind_all_dx_query()
844 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query()
962 SVGA3dCmdHeader *header) in vmw_cmd_cid_check() argument
965 SVGA3dCmdHeader header; in vmw_cmd_cid_check() member
969 cmd = container_of(header, struct vmw_cid_cmd, header); in vmw_cmd_cid_check()
976 SVGA3dCmdHeader *header) in vmw_cmd_set_render_target_check() argument
979 SVGA3dCmdHeader header; in vmw_cmd_set_render_target_check() member
986 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_set_render_target_check()
1022 SVGA3dCmdHeader *header) in vmw_cmd_surface_copy_check() argument
1025 SVGA3dCmdHeader header; in vmw_cmd_surface_copy_check() member
1030 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_surface_copy_check()
1045 SVGA3dCmdHeader *header) in vmw_cmd_buffer_copy_check() argument
1048 SVGA3dCmdHeader header; in vmw_cmd_buffer_copy_check() member
1053 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_buffer_copy_check()
1067 SVGA3dCmdHeader *header) in vmw_cmd_pred_copy_check() argument
1070 SVGA3dCmdHeader header; in vmw_cmd_pred_copy_check() member
1075 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_pred_copy_check()
1089 SVGA3dCmdHeader *header) in vmw_cmd_stretch_blt_check() argument
1092 SVGA3dCmdHeader header; in vmw_cmd_stretch_blt_check() member
1097 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_stretch_blt_check()
1110 SVGA3dCmdHeader *header) in vmw_cmd_blt_surf_screen_check() argument
1113 SVGA3dCmdHeader header; in vmw_cmd_blt_surf_screen_check() member
1117 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_blt_surf_screen_check()
1126 SVGA3dCmdHeader *header) in vmw_cmd_present_check() argument
1129 SVGA3dCmdHeader header; in vmw_cmd_present_check() member
1134 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_present_check()
1395 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_query() argument
1398 SVGA3dCmdHeader header; in vmw_cmd_dx_define_query() member
1412 cmd = container_of(header, struct vmw_dx_define_query_cmd, header); in vmw_cmd_dx_define_query()
1441 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_query() argument
1444 SVGA3dCmdHeader header; in vmw_cmd_dx_bind_query() member
1452 cmd = container_of(header, struct vmw_dx_bind_query_cmd, header); in vmw_cmd_dx_bind_query()
1483 SVGA3dCmdHeader *header) in vmw_cmd_begin_gb_query() argument
1486 SVGA3dCmdHeader header; in vmw_cmd_begin_gb_query() member
1490 cmd = container_of(header, struct vmw_begin_gb_query_cmd, in vmw_cmd_begin_gb_query()
1491 header); in vmw_cmd_begin_gb_query()
1507 SVGA3dCmdHeader *header) in vmw_cmd_begin_query() argument
1510 SVGA3dCmdHeader header; in vmw_cmd_begin_query() member
1514 cmd = container_of(header, struct vmw_begin_query_cmd, in vmw_cmd_begin_query()
1515 header); in vmw_cmd_begin_query()
1519 SVGA3dCmdHeader header; in vmw_cmd_begin_query() member
1525 gb_cmd.header.id = SVGA_3D_CMD_BEGIN_GB_QUERY; in vmw_cmd_begin_query()
1526 gb_cmd.header.size = cmd->header.size; in vmw_cmd_begin_query()
1531 return vmw_cmd_begin_gb_query(dev_priv, sw_context, header); in vmw_cmd_begin_query()
1548 SVGA3dCmdHeader *header) in vmw_cmd_end_gb_query() argument
1552 SVGA3dCmdHeader header; in vmw_cmd_end_gb_query() member
1557 cmd = container_of(header, struct vmw_query_cmd, header); in vmw_cmd_end_gb_query()
1558 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_end_gb_query()
1583 SVGA3dCmdHeader *header) in vmw_cmd_end_query() argument
1587 SVGA3dCmdHeader header; in vmw_cmd_end_query() member
1592 cmd = container_of(header, struct vmw_query_cmd, header); in vmw_cmd_end_query()
1595 SVGA3dCmdHeader header; in vmw_cmd_end_query() member
1601 gb_cmd.header.id = SVGA_3D_CMD_END_GB_QUERY; in vmw_cmd_end_query()
1602 gb_cmd.header.size = cmd->header.size; in vmw_cmd_end_query()
1609 return vmw_cmd_end_gb_query(dev_priv, sw_context, header); in vmw_cmd_end_query()
1612 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_end_query()
1637 SVGA3dCmdHeader *header) in vmw_cmd_wait_gb_query() argument
1641 SVGA3dCmdHeader header; in vmw_cmd_wait_gb_query() member
1646 cmd = container_of(header, struct vmw_query_cmd, header); in vmw_cmd_wait_gb_query()
1647 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_wait_gb_query()
1670 SVGA3dCmdHeader *header) in vmw_cmd_wait_query() argument
1674 SVGA3dCmdHeader header; in vmw_cmd_wait_query() member
1679 cmd = container_of(header, struct vmw_query_cmd, header); in vmw_cmd_wait_query()
1682 SVGA3dCmdHeader header; in vmw_cmd_wait_query() member
1688 gb_cmd.header.id = SVGA_3D_CMD_WAIT_FOR_GB_QUERY; in vmw_cmd_wait_query()
1689 gb_cmd.header.size = cmd->header.size; in vmw_cmd_wait_query()
1696 return vmw_cmd_wait_gb_query(dev_priv, sw_context, header); in vmw_cmd_wait_query()
1699 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_wait_query()
1715 SVGA3dCmdHeader *header) in vmw_cmd_dma() argument
1720 SVGA3dCmdHeader header; in vmw_cmd_dma() member
1727 cmd = container_of(header, struct vmw_dma_cmd, header); in vmw_cmd_dma()
1729 header->size - sizeof(*suffix)); in vmw_cmd_dma()
1766 header); in vmw_cmd_dma()
1775 SVGA3dCmdHeader *header) in vmw_cmd_draw() argument
1778 SVGA3dCmdHeader header; in vmw_cmd_draw() member
1782 (unsigned long)header + sizeof(*cmd)); in vmw_cmd_draw()
1788 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_draw()
1792 cmd = container_of(header, struct vmw_draw_cmd, header); in vmw_cmd_draw()
1793 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1808 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1829 SVGA3dCmdHeader *header) in vmw_cmd_tex_state() argument
1832 SVGA3dCmdHeader header; in vmw_cmd_tex_state() member
1837 ((unsigned long) header + header->size + sizeof(header)); in vmw_cmd_tex_state()
1839 ((unsigned long) header + sizeof(struct vmw_tex_state_cmd)); in vmw_cmd_tex_state()
1844 cmd = container_of(header, struct vmw_tex_state_cmd, in vmw_cmd_tex_state()
1845 header); in vmw_cmd_tex_state()
1892 uint32_t header; in vmw_cmd_check_define_gmrfb() member
1995 SVGA3dCmdHeader *header) in vmw_cmd_bind_gb_surface() argument
1998 SVGA3dCmdHeader header; in vmw_cmd_bind_gb_surface() member
2002 cmd = container_of(header, struct vmw_bind_gb_surface_cmd, header); in vmw_cmd_bind_gb_surface()
2020 SVGA3dCmdHeader *header) in vmw_cmd_update_gb_image() argument
2023 SVGA3dCmdHeader header; in vmw_cmd_update_gb_image() member
2027 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_update_gb_image()
2044 SVGA3dCmdHeader *header) in vmw_cmd_update_gb_surface() argument
2047 SVGA3dCmdHeader header; in vmw_cmd_update_gb_surface() member
2051 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_update_gb_surface()
2068 SVGA3dCmdHeader *header) in vmw_cmd_readback_gb_image() argument
2071 SVGA3dCmdHeader header; in vmw_cmd_readback_gb_image() member
2075 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_readback_gb_image()
2092 SVGA3dCmdHeader *header) in vmw_cmd_readback_gb_surface() argument
2095 SVGA3dCmdHeader header; in vmw_cmd_readback_gb_surface() member
2099 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_readback_gb_surface()
2116 SVGA3dCmdHeader *header) in vmw_cmd_invalidate_gb_image() argument
2119 SVGA3dCmdHeader header; in vmw_cmd_invalidate_gb_image() member
2123 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_invalidate_gb_image()
2140 SVGA3dCmdHeader *header) in vmw_cmd_invalidate_gb_surface() argument
2143 SVGA3dCmdHeader header; in vmw_cmd_invalidate_gb_surface() member
2147 cmd = container_of(header, struct vmw_gb_surface_cmd, header); in vmw_cmd_invalidate_gb_surface()
2165 SVGA3dCmdHeader *header) in vmw_cmd_shader_define() argument
2168 SVGA3dCmdHeader header; in vmw_cmd_shader_define() member
2175 cmd = container_of(header, struct vmw_shader_define_cmd, in vmw_cmd_shader_define()
2176 header); in vmw_cmd_shader_define()
2187 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
2199 &cmd->header.id), in vmw_cmd_shader_define()
2213 SVGA3dCmdHeader *header) in vmw_cmd_shader_destroy() argument
2216 SVGA3dCmdHeader header; in vmw_cmd_shader_destroy() member
2222 cmd = container_of(header, struct vmw_shader_destroy_cmd, in vmw_cmd_shader_destroy()
2223 header); in vmw_cmd_shader_destroy()
2244 &cmd->header.id), in vmw_cmd_shader_destroy()
2258 SVGA3dCmdHeader *header) in vmw_cmd_set_shader() argument
2261 SVGA3dCmdHeader header; in vmw_cmd_set_shader() member
2269 cmd = container_of(header, struct vmw_set_shader_cmd, in vmw_cmd_set_shader()
2270 header); in vmw_cmd_set_shader()
2330 SVGA3dCmdHeader *header) in vmw_cmd_set_shader_const() argument
2333 SVGA3dCmdHeader header; in vmw_cmd_set_shader_const() member
2338 cmd = container_of(header, struct vmw_set_shader_const_cmd, in vmw_cmd_set_shader_const()
2339 header); in vmw_cmd_set_shader_const()
2348 header->id = SVGA_3D_CMD_SET_GB_SHADERCONSTS_INLINE; in vmw_cmd_set_shader_const()
2363 SVGA3dCmdHeader *header) in vmw_cmd_bind_gb_shader() argument
2366 SVGA3dCmdHeader header; in vmw_cmd_bind_gb_shader() member
2370 cmd = container_of(header, struct vmw_bind_gb_shader_cmd, in vmw_cmd_bind_gb_shader()
2371 header); in vmw_cmd_bind_gb_shader()
2390 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_single_constant_buffer() argument
2393 SVGA3dCmdHeader header; in vmw_cmd_dx_set_single_constant_buffer() member
2406 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_single_constant_buffer()
2445 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_shader_res() argument
2448 SVGA3dCmdHeader header; in vmw_cmd_dx_set_shader_res() member
2450 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_shader_res()
2451 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_shader_res()
2478 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_shader() argument
2481 SVGA3dCmdHeader header; in vmw_cmd_dx_set_shader() member
2494 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_shader()
2538 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_vertex_buffers() argument
2544 SVGA3dCmdHeader header; in vmw_cmd_dx_set_vertex_buffers() member
2555 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_vertex_buffers()
2556 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_vertex_buffers()
2595 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_index_buffer() argument
2601 SVGA3dCmdHeader header; in vmw_cmd_dx_set_index_buffer() member
2611 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_index_buffer()
2639 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_rendertargets() argument
2642 SVGA3dCmdHeader header; in vmw_cmd_dx_set_rendertargets() member
2644 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_rendertargets()
2646 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_rendertargets()
2675 SVGA3dCmdHeader *header) in vmw_cmd_dx_clear_rendertarget_view() argument
2678 SVGA3dCmdHeader header; in vmw_cmd_dx_clear_rendertarget_view() member
2680 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_clear_rendertarget_view()
2696 SVGA3dCmdHeader *header) in vmw_cmd_dx_clear_depthstencil_view() argument
2699 SVGA3dCmdHeader header; in vmw_cmd_dx_clear_depthstencil_view() member
2701 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_clear_depthstencil_view()
2709 SVGA3dCmdHeader *header) in vmw_cmd_dx_view_define() argument
2721 SVGA3dCmdHeader header; in vmw_cmd_dx_view_define() member
2731 view_type = vmw_view_cmd_to_type(header->id); in vmw_cmd_dx_view_define()
2734 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_view_define()
2752 header, in vmw_cmd_dx_view_define()
2753 header->size + sizeof(*header), in vmw_cmd_dx_view_define()
2767 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_so_targets() argument
2773 SVGA3dCmdHeader header; in vmw_cmd_dx_set_so_targets() member
2784 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_so_targets()
2785 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_so_targets()
2816 SVGA3dCmdHeader *header) in vmw_cmd_dx_so_define() argument
2825 SVGA3dCmdHeader header; in vmw_cmd_dx_so_define() member
2836 so_type = vmw_so_cmd_to_type(header->id); in vmw_cmd_dx_so_define()
2838 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_so_define()
2855 SVGA3dCmdHeader *header) in vmw_cmd_dx_check_subresource() argument
2858 SVGA3dCmdHeader header; in vmw_cmd_dx_check_subresource() member
2874 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_check_subresource()
2883 SVGA3dCmdHeader *header) in vmw_cmd_dx_cid_check() argument
2908 SVGA3dCmdHeader *header) in vmw_cmd_dx_view_remove() argument
2912 SVGA3dCmdHeader header; in vmw_cmd_dx_view_remove() member
2914 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_view_remove()
2915 enum vmw_view_type view_type = vmw_view_cmd_to_type(header->id); in vmw_cmd_dx_view_remove()
2940 &cmd->header.id), in vmw_cmd_dx_view_remove()
2954 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_shader() argument
2959 SVGA3dCmdHeader header; in vmw_cmd_dx_define_shader() member
2961 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_shader()
2990 SVGA3dCmdHeader *header) in vmw_cmd_dx_destroy_shader() argument
2994 SVGA3dCmdHeader header; in vmw_cmd_dx_destroy_shader() member
2996 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_destroy_shader()
3022 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_shader() argument
3028 SVGA3dCmdHeader header; in vmw_cmd_dx_bind_shader() member
3030 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_shader()
3079 SVGA3dCmdHeader *header) in vmw_cmd_dx_genmips() argument
3082 SVGA3dCmdHeader header; in vmw_cmd_dx_genmips() member
3084 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_genmips()
3100 SVGA3dCmdHeader *header) in vmw_cmd_dx_transfer_from_buffer() argument
3103 SVGA3dCmdHeader header; in vmw_cmd_dx_transfer_from_buffer() member
3105 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_transfer_from_buffer()
3129 SVGA3dCmdHeader *header) in vmw_cmd_intra_surface_copy() argument
3132 SVGA3dCmdHeader header; in vmw_cmd_intra_surface_copy() member
3134 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_intra_surface_copy()
3509 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf; in vmw_cmd_describe() local
3512 *size = header->size + sizeof(SVGA3dCmdHeader); in vmw_cmd_describe()
3513 cmd_id = header->id; in vmw_cmd_describe()
3555 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf; in vmw_cmd_check() local
3566 cmd_id = header->id; in vmw_cmd_check()
3567 *size = header->size + sizeof(SVGA3dCmdHeader); in vmw_cmd_check()
3589 ret = entry->func(dev_priv, sw_context, header); in vmw_cmd_check()
3979 struct vmw_cmdbuf_header *header, in vmw_execbuf_submit_cmdbuf() argument
3986 id, false, header); in vmw_execbuf_submit_cmdbuf()
3991 vmw_cmdbuf_commit(dev_priv->cman, command_size, header, false); in vmw_execbuf_submit_cmdbuf()
4022 struct vmw_cmdbuf_header **header) in vmw_execbuf_cmdbuf() argument
4027 *header = NULL; in vmw_execbuf_cmdbuf()
4040 true, header); in vmw_execbuf_cmdbuf()
4048 vmw_cmdbuf_header_free(*header); in vmw_execbuf_cmdbuf()
4049 *header = NULL; in vmw_execbuf_cmdbuf()
4102 struct vmw_cmdbuf_header *header; in vmw_execbuf_process() local
4128 &header); in vmw_execbuf_process()
4156 } else if (!header) in vmw_execbuf_process()
4233 if (!header) { in vmw_execbuf_process()
4237 ret = vmw_execbuf_submit_cmdbuf(dev_priv, header, command_size, in vmw_execbuf_process()
4239 header = NULL; in vmw_execbuf_process()
4342 if (header) in vmw_execbuf_process()
4343 vmw_cmdbuf_header_free(header); in vmw_execbuf_process()