Lines Matching full:header
55 SVGA3dCmdHeader header; \
573 SVGA3dCmdHeader *header) in vmw_cmd_invalid() argument
580 SVGA3dCmdHeader *header) in vmw_cmd_ok() argument
723 cmd->header.id = SVGA_3D_CMD_DX_BIND_ALL_QUERY; in vmw_rebind_all_dx_query()
724 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query()
815 * vmw_cmd_cid_check - Check a command header for valid context information.
819 * @header: A command header with an embedded user-space context handle.
822 * handle embedded in @header.
826 SVGA3dCmdHeader *header) in vmw_cmd_cid_check() argument
829 container_of(header, typeof(*cmd), header); in vmw_cmd_cid_check()
866 SVGA3dCmdHeader *header) in vmw_cmd_set_render_target_check() argument
873 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_render_target_check()
913 SVGA3dCmdHeader *header) in vmw_cmd_surface_copy_check() argument
918 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_surface_copy_check()
933 SVGA3dCmdHeader *header) in vmw_cmd_buffer_copy_check() argument
938 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_buffer_copy_check()
952 SVGA3dCmdHeader *header) in vmw_cmd_pred_copy_check() argument
957 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_pred_copy_check()
971 SVGA3dCmdHeader *header) in vmw_cmd_stretch_blt_check() argument
976 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_stretch_blt_check()
990 SVGA3dCmdHeader *header) in vmw_cmd_blt_surf_screen_check() argument
993 container_of(header, typeof(*cmd), header); in vmw_cmd_blt_surf_screen_check()
1002 SVGA3dCmdHeader *header) in vmw_cmd_present_check() argument
1005 container_of(header, typeof(*cmd), header); in vmw_cmd_present_check()
1247 * @header: Pointer to the command header in the command stream.
1253 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_query() argument
1263 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_query()
1282 * @header: Pointer to the command header in the command stream.
1290 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_query() argument
1296 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_query()
1318 * @header: Pointer to the command header in the command stream.
1322 SVGA3dCmdHeader *header) in vmw_cmd_begin_gb_query() argument
1325 container_of(header, typeof(*cmd), header); in vmw_cmd_begin_gb_query()
1337 * @header: Pointer to the command header in the command stream.
1341 SVGA3dCmdHeader *header) in vmw_cmd_begin_query() argument
1344 container_of(header, typeof(*cmd), header); in vmw_cmd_begin_query()
1351 gb_cmd.header.id = SVGA_3D_CMD_BEGIN_GB_QUERY; in vmw_cmd_begin_query()
1352 gb_cmd.header.size = cmd->header.size; in vmw_cmd_begin_query()
1357 return vmw_cmd_begin_gb_query(dev_priv, sw_context, header); in vmw_cmd_begin_query()
1370 * @header: Pointer to the command header in the command stream.
1374 SVGA3dCmdHeader *header) in vmw_cmd_end_gb_query() argument
1380 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_end_gb_query()
1381 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_end_gb_query()
1400 * @header: Pointer to the command header in the command stream.
1404 SVGA3dCmdHeader *header) in vmw_cmd_end_query() argument
1410 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_end_query()
1416 gb_cmd.header.id = SVGA_3D_CMD_END_GB_QUERY; in vmw_cmd_end_query()
1417 gb_cmd.header.size = cmd->header.size; in vmw_cmd_end_query()
1424 return vmw_cmd_end_gb_query(dev_priv, sw_context, header); in vmw_cmd_end_query()
1427 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_end_query()
1446 * @header: Pointer to the command header in the command stream.
1450 SVGA3dCmdHeader *header) in vmw_cmd_wait_gb_query() argument
1456 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_wait_gb_query()
1457 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_wait_gb_query()
1474 * @header: Pointer to the command header in the command stream.
1478 SVGA3dCmdHeader *header) in vmw_cmd_wait_query() argument
1484 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_wait_query()
1490 gb_cmd.header.id = SVGA_3D_CMD_WAIT_FOR_GB_QUERY; in vmw_cmd_wait_query()
1491 gb_cmd.header.size = cmd->header.size; in vmw_cmd_wait_query()
1498 return vmw_cmd_wait_gb_query(dev_priv, sw_context, header); in vmw_cmd_wait_query()
1501 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_wait_query()
1515 SVGA3dCmdHeader *header) in vmw_cmd_dma() argument
1525 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dma()
1527 header->size - sizeof(*suffix)); in vmw_cmd_dma()
1564 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->tbo, header); in vmw_cmd_dma()
1571 SVGA3dCmdHeader *header) in vmw_cmd_draw() argument
1575 (unsigned long)header + sizeof(*cmd)); in vmw_cmd_draw()
1581 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_draw()
1585 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_draw()
1586 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1602 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1623 SVGA3dCmdHeader *header) in vmw_cmd_tex_state() argument
1627 ((unsigned long) header + header->size + sizeof(*header)); in vmw_cmd_tex_state()
1629 ((unsigned long) header + sizeof(*cmd)); in vmw_cmd_tex_state()
1634 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_tex_state()
1686 uint32_t header; in vmw_cmd_check_define_gmrfb() member
1771 * @header: Pointer to the command header in the command stream.
1775 SVGA3dCmdHeader *header) in vmw_cmd_bind_gb_surface() argument
1778 container_of(header, typeof(*cmd), header); in vmw_cmd_bind_gb_surface()
1790 * @header: Pointer to the command header in the command stream.
1794 SVGA3dCmdHeader *header) in vmw_cmd_update_gb_image() argument
1797 container_of(header, typeof(*cmd), header); in vmw_cmd_update_gb_image()
1809 * @header: Pointer to the command header in the command stream.
1813 SVGA3dCmdHeader *header) in vmw_cmd_update_gb_surface() argument
1816 container_of(header, typeof(*cmd), header); in vmw_cmd_update_gb_surface()
1828 * @header: Pointer to the command header in the command stream.
1832 SVGA3dCmdHeader *header) in vmw_cmd_readback_gb_image() argument
1835 container_of(header, typeof(*cmd), header); in vmw_cmd_readback_gb_image()
1848 * @header: Pointer to the command header in the command stream.
1852 SVGA3dCmdHeader *header) in vmw_cmd_readback_gb_surface() argument
1855 container_of(header, typeof(*cmd), header); in vmw_cmd_readback_gb_surface()
1868 * @header: Pointer to the command header in the command stream.
1872 SVGA3dCmdHeader *header) in vmw_cmd_invalidate_gb_image() argument
1875 container_of(header, typeof(*cmd), header); in vmw_cmd_invalidate_gb_image()
1888 * @header: Pointer to the command header in the command stream.
1892 SVGA3dCmdHeader *header) in vmw_cmd_invalidate_gb_surface() argument
1895 container_of(header, typeof(*cmd), header); in vmw_cmd_invalidate_gb_surface()
1907 * @header: Pointer to the command header in the command stream.
1911 SVGA3dCmdHeader *header) in vmw_cmd_shader_define() argument
1918 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_shader_define()
1929 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
1938 &cmd->header.id), in vmw_cmd_shader_define()
1947 * @header: Pointer to the command header in the command stream.
1951 SVGA3dCmdHeader *header) in vmw_cmd_shader_destroy() argument
1957 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_shader_destroy()
1975 &cmd->header.id), in vmw_cmd_shader_destroy()
1984 * @header: Pointer to the command header in the command stream.
1988 SVGA3dCmdHeader *header) in vmw_cmd_set_shader() argument
1996 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_shader()
2065 * @header: Pointer to the command header in the command stream.
2069 SVGA3dCmdHeader *header) in vmw_cmd_set_shader_const() argument
2074 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_shader_const()
2083 header->id = SVGA_3D_CMD_SET_GB_SHADERCONSTS_INLINE; in vmw_cmd_set_shader_const()
2093 * @header: Pointer to the command header in the command stream.
2097 SVGA3dCmdHeader *header) in vmw_cmd_bind_gb_shader() argument
2100 container_of(header, typeof(*cmd), header); in vmw_cmd_bind_gb_shader()
2113 * @header: Pointer to the command header in the command stream.
2118 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_single_constant_buffer() argument
2130 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_single_constant_buffer()
2165 * @header: Pointer to the command header in the command stream.
2170 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_constant_buffer_offset() argument
2183 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_constant_buffer_offset()
2190 shader_slot = cmd->header.id - SVGA_3D_CMD_DX_SET_VS_CONSTANT_BUFFER_OFFSET; in vmw_cmd_dx_set_constant_buffer_offset()
2203 * @header: Pointer to the command header in the command stream.
2207 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_shader_res() argument
2210 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_shader_res()
2212 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_shader_res()
2234 * @header: Pointer to the command header in the command stream.
2238 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_shader() argument
2249 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_shader()
2287 * @header: Pointer to the command header in the command stream.
2291 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_vertex_buffers() argument
2297 SVGA3dCmdHeader header; in vmw_cmd_dx_set_vertex_buffers() member
2306 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_vertex_buffers()
2307 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_vertex_buffers()
2342 * @header: Pointer to the command header in the command stream.
2346 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_index_buffer() argument
2357 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_index_buffer()
2381 * @header: Pointer to the command header in the command stream.
2385 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_rendertargets() argument
2388 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_rendertargets()
2389 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_rendertargets()
2414 * @header: Pointer to the command header in the command stream.
2418 SVGA3dCmdHeader *header) in vmw_cmd_dx_clear_rendertarget_view() argument
2421 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_clear_rendertarget_view()
2436 * @header: Pointer to the command header in the command stream.
2440 SVGA3dCmdHeader *header) in vmw_cmd_dx_clear_depthstencil_view() argument
2443 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_clear_depthstencil_view()
2454 SVGA3dCmdHeader *header) in vmw_cmd_dx_view_define() argument
2466 SVGA3dCmdHeader header; in vmw_cmd_dx_view_define() member
2474 view_type = vmw_view_cmd_to_type(header->id); in vmw_cmd_dx_view_define()
2478 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_view_define()
2497 cmd->defined_id, header, in vmw_cmd_dx_view_define()
2498 header->size + sizeof(*header), in vmw_cmd_dx_view_define()
2507 * @header: Pointer to the command header in the command stream.
2511 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_so_targets() argument
2517 SVGA3dCmdHeader header; in vmw_cmd_dx_set_so_targets() member
2526 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_so_targets()
2527 num = (cmd->header.size - sizeof(cmd->body)) / sizeof(SVGA3dSoTarget); in vmw_cmd_dx_set_so_targets()
2557 SVGA3dCmdHeader *header) in vmw_cmd_dx_so_define() argument
2566 SVGA3dCmdHeader header; in vmw_cmd_dx_so_define() member
2575 so_type = vmw_so_cmd_to_type(header->id); in vmw_cmd_dx_so_define()
2579 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_so_define()
2591 * @header: Pointer to the command header in the command stream.
2595 SVGA3dCmdHeader *header) in vmw_cmd_dx_check_subresource() argument
2598 SVGA3dCmdHeader header; in vmw_cmd_dx_check_subresource() member
2614 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_check_subresource()
2622 SVGA3dCmdHeader *header) in vmw_cmd_dx_cid_check() argument
2638 * @header: Pointer to the command header in the command stream.
2645 SVGA3dCmdHeader *header) in vmw_cmd_dx_view_remove() argument
2649 SVGA3dCmdHeader header; in vmw_cmd_dx_view_remove() member
2651 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_view_remove()
2652 enum vmw_view_type view_type = vmw_view_cmd_to_type(header->id); in vmw_cmd_dx_view_remove()
2672 &cmd->header.id), in vmw_cmd_dx_view_remove()
2681 * @header: Pointer to the command header in the command stream.
2685 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_shader() argument
2690 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_shader()
2713 * @header: Pointer to the command header in the command stream.
2717 SVGA3dCmdHeader *header) in vmw_cmd_dx_destroy_shader() argument
2721 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_destroy_shader()
2738 * @header: Pointer to the command header in the command stream.
2742 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_shader() argument
2747 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_shader()
2790 * @header: Pointer to the command header in the command stream.
2794 SVGA3dCmdHeader *header) in vmw_cmd_dx_genmips() argument
2797 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_genmips()
2824 * @header: Pointer to the command header in the command stream.
2828 SVGA3dCmdHeader *header) in vmw_cmd_dx_transfer_from_buffer() argument
2831 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_transfer_from_buffer()
2850 * @header: Pointer to the command header in the command stream.
2854 SVGA3dCmdHeader *header) in vmw_cmd_intra_surface_copy() argument
2857 container_of(header, typeof(*cmd), header); in vmw_cmd_intra_surface_copy()
2869 SVGA3dCmdHeader *header) in vmw_cmd_sm5() argument
2879 SVGA3dCmdHeader *header) in vmw_cmd_sm5_view_define() argument
2884 return vmw_cmd_dx_view_define(dev_priv, sw_context, header); in vmw_cmd_sm5_view_define()
2889 SVGA3dCmdHeader *header) in vmw_cmd_sm5_view_remove() argument
2894 return vmw_cmd_dx_view_remove(dev_priv, sw_context, header); in vmw_cmd_sm5_view_remove()
2899 SVGA3dCmdHeader *header) in vmw_cmd_clear_uav_uint() argument
2902 SVGA3dCmdHeader header; in vmw_cmd_clear_uav_uint() member
2904 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_clear_uav_uint()
2918 SVGA3dCmdHeader *header) in vmw_cmd_clear_uav_float() argument
2921 SVGA3dCmdHeader header; in vmw_cmd_clear_uav_float() member
2923 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_clear_uav_float()
2937 SVGA3dCmdHeader *header) in vmw_cmd_set_uav() argument
2940 SVGA3dCmdHeader header; in vmw_cmd_set_uav() member
2942 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_uav()
2943 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_uav()
2969 SVGA3dCmdHeader *header) in vmw_cmd_set_cs_uav() argument
2972 SVGA3dCmdHeader header; in vmw_cmd_set_cs_uav() member
2974 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_cs_uav()
2975 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_cs_uav()
3001 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_streamoutput() argument
3006 SVGA3dCmdHeader header; in vmw_cmd_dx_define_streamoutput() member
3008 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_streamoutput()
3033 SVGA3dCmdHeader *header) in vmw_cmd_dx_destroy_streamoutput() argument
3038 SVGA3dCmdHeader header; in vmw_cmd_dx_destroy_streamoutput() member
3040 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_destroy_streamoutput()
3069 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_streamoutput() argument
3074 SVGA3dCmdHeader header; in vmw_cmd_dx_bind_streamoutput() member
3076 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_streamoutput()
3110 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_streamoutput() argument
3116 SVGA3dCmdHeader header; in vmw_cmd_dx_set_streamoutput() member
3118 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_streamoutput()
3166 SVGA3dCmdHeader *header) in vmw_cmd_indexed_instanced_indirect() argument
3169 SVGA3dCmdHeader header; in vmw_cmd_indexed_instanced_indirect() member
3171 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_indexed_instanced_indirect()
3183 SVGA3dCmdHeader *header) in vmw_cmd_instanced_indirect() argument
3186 SVGA3dCmdHeader header; in vmw_cmd_instanced_indirect() member
3188 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_instanced_indirect()
3200 SVGA3dCmdHeader *header) in vmw_cmd_dispatch_indirect() argument
3203 SVGA3dCmdHeader header; in vmw_cmd_dispatch_indirect() member
3205 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dispatch_indirect()
3624 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf; in vmw_cmd_describe() local
3627 *size = header->size + sizeof(SVGA3dCmdHeader); in vmw_cmd_describe()
3628 cmd_id = header->id; in vmw_cmd_describe()
3670 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf; in vmw_cmd_check() local
3681 cmd_id = header->id; in vmw_cmd_check()
3682 *size = header->size + sizeof(SVGA3dCmdHeader); in vmw_cmd_check()
3704 ret = entry->func(dev_priv, sw_context, header); in vmw_cmd_check()
3965 * @header: Opaque handle to the command buffer allocation.
3970 * by @header will have been modified.
3973 struct vmw_cmdbuf_header *header, in vmw_execbuf_submit_cmdbuf() argument
3980 header); in vmw_execbuf_submit_cmdbuf()
3985 vmw_cmdbuf_commit(dev_priv->cman, command_size, header, false); in vmw_execbuf_submit_cmdbuf()
3997 * @header: Out parameter returning the opaque pointer to the command buffer.
4004 * command buffer and *@header is set to non-NULL.
4008 * NULL. In that case, the value of *@header will be set to NULL.
4017 struct vmw_cmdbuf_header **header) in vmw_execbuf_cmdbuf() argument
4022 *header = NULL; in vmw_execbuf_cmdbuf()
4035 header); in vmw_execbuf_cmdbuf()
4042 vmw_cmdbuf_header_free(*header); in vmw_execbuf_cmdbuf()
4043 *header = NULL; in vmw_execbuf_cmdbuf()
4099 struct vmw_cmdbuf_header *header; in vmw_execbuf_process() local
4120 &header); in vmw_execbuf_process()
4147 } else if (!header) { in vmw_execbuf_process()
4208 if (!header) { in vmw_execbuf_process()
4212 ret = vmw_execbuf_submit_cmdbuf(dev_priv, header, command_size, in vmw_execbuf_process()
4214 header = NULL; in vmw_execbuf_process()
4314 if (header) in vmw_execbuf_process()
4315 vmw_cmdbuf_header_free(header); in vmw_execbuf_process()