Lines Matching refs:header

54 		SVGA3dCmdHeader header;                                       \
592 SVGA3dCmdHeader *header) in vmw_cmd_invalid() argument
599 SVGA3dCmdHeader *header) in vmw_cmd_ok() argument
736 cmd->header.id = SVGA_3D_CMD_DX_BIND_ALL_QUERY; in vmw_rebind_all_dx_query()
737 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query()
839 SVGA3dCmdHeader *header) in vmw_cmd_cid_check() argument
842 container_of(header, typeof(*cmd), header); in vmw_cmd_cid_check()
879 SVGA3dCmdHeader *header) in vmw_cmd_set_render_target_check() argument
886 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_render_target_check()
926 SVGA3dCmdHeader *header) in vmw_cmd_surface_copy_check() argument
931 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_surface_copy_check()
946 SVGA3dCmdHeader *header) in vmw_cmd_buffer_copy_check() argument
951 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_buffer_copy_check()
965 SVGA3dCmdHeader *header) in vmw_cmd_pred_copy_check() argument
970 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_pred_copy_check()
984 SVGA3dCmdHeader *header) in vmw_cmd_stretch_blt_check() argument
989 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_stretch_blt_check()
1003 SVGA3dCmdHeader *header) in vmw_cmd_blt_surf_screen_check() argument
1006 container_of(header, typeof(*cmd), header); in vmw_cmd_blt_surf_screen_check()
1015 SVGA3dCmdHeader *header) in vmw_cmd_present_check() argument
1018 container_of(header, typeof(*cmd), header); in vmw_cmd_present_check()
1263 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_query() argument
1273 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_query()
1298 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_query() argument
1304 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_query()
1330 SVGA3dCmdHeader *header) in vmw_cmd_begin_gb_query() argument
1333 container_of(header, typeof(*cmd), header); in vmw_cmd_begin_gb_query()
1349 SVGA3dCmdHeader *header) in vmw_cmd_begin_query() argument
1352 container_of(header, typeof(*cmd), header); in vmw_cmd_begin_query()
1359 gb_cmd.header.id = SVGA_3D_CMD_BEGIN_GB_QUERY; in vmw_cmd_begin_query()
1360 gb_cmd.header.size = cmd->header.size; in vmw_cmd_begin_query()
1365 return vmw_cmd_begin_gb_query(dev_priv, sw_context, header); in vmw_cmd_begin_query()
1382 SVGA3dCmdHeader *header) in vmw_cmd_end_gb_query() argument
1388 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_end_gb_query()
1389 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_end_gb_query()
1412 SVGA3dCmdHeader *header) in vmw_cmd_end_query() argument
1418 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_end_query()
1424 gb_cmd.header.id = SVGA_3D_CMD_END_GB_QUERY; in vmw_cmd_end_query()
1425 gb_cmd.header.size = cmd->header.size; in vmw_cmd_end_query()
1432 return vmw_cmd_end_gb_query(dev_priv, sw_context, header); in vmw_cmd_end_query()
1435 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_end_query()
1458 SVGA3dCmdHeader *header) in vmw_cmd_wait_gb_query() argument
1464 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_wait_gb_query()
1465 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_wait_gb_query()
1486 SVGA3dCmdHeader *header) in vmw_cmd_wait_query() argument
1492 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_wait_query()
1498 gb_cmd.header.id = SVGA_3D_CMD_WAIT_FOR_GB_QUERY; in vmw_cmd_wait_query()
1499 gb_cmd.header.size = cmd->header.size; in vmw_cmd_wait_query()
1506 return vmw_cmd_wait_gb_query(dev_priv, sw_context, header); in vmw_cmd_wait_query()
1509 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_wait_query()
1523 SVGA3dCmdHeader *header) in vmw_cmd_dma() argument
1533 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dma()
1535 header->size - sizeof(*suffix)); in vmw_cmd_dma()
1572 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, header); in vmw_cmd_dma()
1579 SVGA3dCmdHeader *header) in vmw_cmd_draw() argument
1583 (unsigned long)header + sizeof(*cmd)); in vmw_cmd_draw()
1589 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_draw()
1593 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_draw()
1594 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1610 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1631 SVGA3dCmdHeader *header) in vmw_cmd_tex_state() argument
1635 ((unsigned long) header + header->size + sizeof(header)); in vmw_cmd_tex_state()
1637 ((unsigned long) header + sizeof(*cmd)); in vmw_cmd_tex_state()
1642 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_tex_state()
1694 uint32_t header; in vmw_cmd_check_define_gmrfb() member
1783 SVGA3dCmdHeader *header) in vmw_cmd_bind_gb_surface() argument
1786 container_of(header, typeof(*cmd), header); in vmw_cmd_bind_gb_surface()
1802 SVGA3dCmdHeader *header) in vmw_cmd_update_gb_image() argument
1805 container_of(header, typeof(*cmd), header); in vmw_cmd_update_gb_image()
1821 SVGA3dCmdHeader *header) in vmw_cmd_update_gb_surface() argument
1824 container_of(header, typeof(*cmd), header); in vmw_cmd_update_gb_surface()
1840 SVGA3dCmdHeader *header) in vmw_cmd_readback_gb_image() argument
1843 container_of(header, typeof(*cmd), header); in vmw_cmd_readback_gb_image()
1860 SVGA3dCmdHeader *header) in vmw_cmd_readback_gb_surface() argument
1863 container_of(header, typeof(*cmd), header); in vmw_cmd_readback_gb_surface()
1880 SVGA3dCmdHeader *header) in vmw_cmd_invalidate_gb_image() argument
1883 container_of(header, typeof(*cmd), header); in vmw_cmd_invalidate_gb_image()
1900 SVGA3dCmdHeader *header) in vmw_cmd_invalidate_gb_surface() argument
1903 container_of(header, typeof(*cmd), header); in vmw_cmd_invalidate_gb_surface()
1919 SVGA3dCmdHeader *header) in vmw_cmd_shader_define() argument
1926 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_shader_define()
1937 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
1946 &cmd->header.id), in vmw_cmd_shader_define()
1959 SVGA3dCmdHeader *header) in vmw_cmd_shader_destroy() argument
1965 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_shader_destroy()
1983 &cmd->header.id), in vmw_cmd_shader_destroy()
1996 SVGA3dCmdHeader *header) in vmw_cmd_set_shader() argument
2004 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_shader()
2076 SVGA3dCmdHeader *header) in vmw_cmd_set_shader_const() argument
2081 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_shader_const()
2090 header->id = SVGA_3D_CMD_SET_GB_SHADERCONSTS_INLINE; in vmw_cmd_set_shader_const()
2104 SVGA3dCmdHeader *header) in vmw_cmd_bind_gb_shader() argument
2107 container_of(header, typeof(*cmd), header); in vmw_cmd_bind_gb_shader()
2125 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_single_constant_buffer() argument
2139 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_single_constant_buffer()
2178 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_shader_res() argument
2181 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_shader_res()
2185 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_shader_res()
2211 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_shader() argument
2224 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_shader()
2266 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_vertex_buffers() argument
2272 SVGA3dCmdHeader header; in vmw_cmd_dx_set_vertex_buffers() member
2281 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_vertex_buffers()
2282 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_vertex_buffers()
2321 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_index_buffer() argument
2332 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_index_buffer()
2360 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_rendertargets() argument
2363 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_rendertargets()
2364 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_rendertargets()
2393 SVGA3dCmdHeader *header) in vmw_cmd_dx_clear_rendertarget_view() argument
2396 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_clear_rendertarget_view()
2415 SVGA3dCmdHeader *header) in vmw_cmd_dx_clear_depthstencil_view() argument
2418 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_clear_depthstencil_view()
2429 SVGA3dCmdHeader *header) in vmw_cmd_dx_view_define() argument
2441 SVGA3dCmdHeader header; in vmw_cmd_dx_view_define() member
2449 view_type = vmw_view_cmd_to_type(header->id); in vmw_cmd_dx_view_define()
2453 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_view_define()
2470 cmd->defined_id, header, in vmw_cmd_dx_view_define()
2471 header->size + sizeof(*header), in vmw_cmd_dx_view_define()
2484 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_so_targets() argument
2490 SVGA3dCmdHeader header; in vmw_cmd_dx_set_so_targets() member
2499 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_so_targets()
2500 num = (cmd->header.size - sizeof(cmd->body)) / sizeof(SVGA3dSoTarget); in vmw_cmd_dx_set_so_targets()
2530 SVGA3dCmdHeader *header) in vmw_cmd_dx_so_define() argument
2539 SVGA3dCmdHeader header; in vmw_cmd_dx_so_define() member
2548 so_type = vmw_so_cmd_to_type(header->id); in vmw_cmd_dx_so_define()
2552 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_so_define()
2568 SVGA3dCmdHeader *header) in vmw_cmd_dx_check_subresource() argument
2571 SVGA3dCmdHeader header; in vmw_cmd_dx_check_subresource() member
2587 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_check_subresource()
2595 SVGA3dCmdHeader *header) in vmw_cmd_dx_cid_check() argument
2618 SVGA3dCmdHeader *header) in vmw_cmd_dx_view_remove() argument
2622 SVGA3dCmdHeader header; in vmw_cmd_dx_view_remove() member
2624 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_view_remove()
2625 enum vmw_view_type view_type = vmw_view_cmd_to_type(header->id); in vmw_cmd_dx_view_remove()
2645 &cmd->header.id), in vmw_cmd_dx_view_remove()
2658 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_shader() argument
2663 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_shader()
2688 SVGA3dCmdHeader *header) in vmw_cmd_dx_destroy_shader() argument
2692 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_destroy_shader()
2713 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_shader() argument
2718 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_shader()
2765 SVGA3dCmdHeader *header) in vmw_cmd_dx_genmips() argument
2768 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_genmips()
2799 SVGA3dCmdHeader *header) in vmw_cmd_dx_transfer_from_buffer() argument
2802 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_transfer_from_buffer()
2825 SVGA3dCmdHeader *header) in vmw_cmd_intra_surface_copy() argument
2828 container_of(header, typeof(*cmd), header); in vmw_cmd_intra_surface_copy()
2840 SVGA3dCmdHeader *header) in vmw_cmd_sm5() argument
2850 SVGA3dCmdHeader *header) in vmw_cmd_sm5_view_define() argument
2855 return vmw_cmd_dx_view_define(dev_priv, sw_context, header); in vmw_cmd_sm5_view_define()
2860 SVGA3dCmdHeader *header) in vmw_cmd_sm5_view_remove() argument
2865 return vmw_cmd_dx_view_remove(dev_priv, sw_context, header); in vmw_cmd_sm5_view_remove()
2870 SVGA3dCmdHeader *header) in vmw_cmd_clear_uav_uint() argument
2873 SVGA3dCmdHeader header; in vmw_cmd_clear_uav_uint() member
2875 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_clear_uav_uint()
2889 SVGA3dCmdHeader *header) in vmw_cmd_clear_uav_float() argument
2892 SVGA3dCmdHeader header; in vmw_cmd_clear_uav_float() member
2894 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_clear_uav_float()
2908 SVGA3dCmdHeader *header) in vmw_cmd_set_uav() argument
2911 SVGA3dCmdHeader header; in vmw_cmd_set_uav() member
2913 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_uav()
2914 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_uav()
2940 SVGA3dCmdHeader *header) in vmw_cmd_set_cs_uav() argument
2943 SVGA3dCmdHeader header; in vmw_cmd_set_cs_uav() member
2945 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_cs_uav()
2946 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_cs_uav()
2972 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_streamoutput() argument
2977 SVGA3dCmdHeader header; in vmw_cmd_dx_define_streamoutput() member
2979 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_streamoutput()
3002 SVGA3dCmdHeader *header) in vmw_cmd_dx_destroy_streamoutput() argument
3007 SVGA3dCmdHeader header; in vmw_cmd_dx_destroy_streamoutput() member
3009 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_destroy_streamoutput()
3038 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_streamoutput() argument
3043 SVGA3dCmdHeader header; in vmw_cmd_dx_bind_streamoutput() member
3045 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_streamoutput()
3079 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_streamoutput() argument
3085 SVGA3dCmdHeader header; in vmw_cmd_dx_set_streamoutput() member
3087 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_streamoutput()
3135 SVGA3dCmdHeader *header) in vmw_cmd_indexed_instanced_indirect() argument
3138 SVGA3dCmdHeader header; in vmw_cmd_indexed_instanced_indirect() member
3140 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_indexed_instanced_indirect()
3152 SVGA3dCmdHeader *header) in vmw_cmd_instanced_indirect() argument
3155 SVGA3dCmdHeader header; in vmw_cmd_instanced_indirect() member
3157 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_instanced_indirect()
3169 SVGA3dCmdHeader *header) in vmw_cmd_dispatch_indirect() argument
3172 SVGA3dCmdHeader header; in vmw_cmd_dispatch_indirect() member
3174 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dispatch_indirect()
3571 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf; in vmw_cmd_describe() local
3574 *size = header->size + sizeof(SVGA3dCmdHeader); in vmw_cmd_describe()
3575 cmd_id = header->id; in vmw_cmd_describe()
3617 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf; in vmw_cmd_check() local
3628 cmd_id = header->id; in vmw_cmd_check()
3629 *size = header->size + sizeof(SVGA3dCmdHeader); in vmw_cmd_check()
3651 ret = entry->func(dev_priv, sw_context, header); in vmw_cmd_check()
3928 struct vmw_cmdbuf_header *header, in vmw_execbuf_submit_cmdbuf() argument
3935 header); in vmw_execbuf_submit_cmdbuf()
3940 vmw_cmdbuf_commit(dev_priv->cman, command_size, header, false); in vmw_execbuf_submit_cmdbuf()
3972 struct vmw_cmdbuf_header **header) in vmw_execbuf_cmdbuf() argument
3977 *header = NULL; in vmw_execbuf_cmdbuf()
3990 header); in vmw_execbuf_cmdbuf()
3997 vmw_cmdbuf_header_free(*header); in vmw_execbuf_cmdbuf()
3998 *header = NULL; in vmw_execbuf_cmdbuf()
4050 struct vmw_cmdbuf_header *header; in vmw_execbuf_process() local
4073 &header); in vmw_execbuf_process()
4100 } else if (!header) { in vmw_execbuf_process()
4168 if (!header) { in vmw_execbuf_process()
4172 ret = vmw_execbuf_submit_cmdbuf(dev_priv, header, command_size, in vmw_execbuf_process()
4174 header = NULL; in vmw_execbuf_process()
4267 if (header) in vmw_execbuf_process()
4268 vmw_cmdbuf_header_free(header); in vmw_execbuf_process()