Lines Matching full:header
53 SVGA3dCmdHeader header; \
587 SVGA3dCmdHeader *header) in vmw_cmd_invalid() argument
594 SVGA3dCmdHeader *header) in vmw_cmd_ok() argument
731 cmd->header.id = SVGA_3D_CMD_DX_BIND_ALL_QUERY; in vmw_rebind_all_dx_query()
732 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query()
823 * vmw_cmd_cid_check - Check a command header for valid context information.
827 * @header: A command header with an embedded user-space context handle.
830 * handle embedded in @header.
834 SVGA3dCmdHeader *header) in vmw_cmd_cid_check() argument
837 container_of(header, typeof(*cmd), header); in vmw_cmd_cid_check()
874 SVGA3dCmdHeader *header) in vmw_cmd_set_render_target_check() argument
881 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_render_target_check()
921 SVGA3dCmdHeader *header) in vmw_cmd_surface_copy_check() argument
926 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_surface_copy_check()
941 SVGA3dCmdHeader *header) in vmw_cmd_buffer_copy_check() argument
946 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_buffer_copy_check()
960 SVGA3dCmdHeader *header) in vmw_cmd_pred_copy_check() argument
965 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_pred_copy_check()
979 SVGA3dCmdHeader *header) in vmw_cmd_stretch_blt_check() argument
984 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_stretch_blt_check()
998 SVGA3dCmdHeader *header) in vmw_cmd_blt_surf_screen_check() argument
1001 container_of(header, typeof(*cmd), header); in vmw_cmd_blt_surf_screen_check()
1010 SVGA3dCmdHeader *header) in vmw_cmd_present_check() argument
1013 container_of(header, typeof(*cmd), header); in vmw_cmd_present_check()
1252 * @header: Pointer to the command header in the command stream.
1258 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_query() argument
1268 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_query()
1285 * @header: Pointer to the command header in the command stream.
1293 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_query() argument
1299 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_query()
1321 * @header: Pointer to the command header in the command stream.
1325 SVGA3dCmdHeader *header) in vmw_cmd_begin_gb_query() argument
1328 container_of(header, typeof(*cmd), header); in vmw_cmd_begin_gb_query()
1340 * @header: Pointer to the command header in the command stream.
1344 SVGA3dCmdHeader *header) in vmw_cmd_begin_query() argument
1347 container_of(header, typeof(*cmd), header); in vmw_cmd_begin_query()
1354 gb_cmd.header.id = SVGA_3D_CMD_BEGIN_GB_QUERY; in vmw_cmd_begin_query()
1355 gb_cmd.header.size = cmd->header.size; in vmw_cmd_begin_query()
1360 return vmw_cmd_begin_gb_query(dev_priv, sw_context, header); in vmw_cmd_begin_query()
1373 * @header: Pointer to the command header in the command stream.
1377 SVGA3dCmdHeader *header) in vmw_cmd_end_gb_query() argument
1383 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_end_gb_query()
1384 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_end_gb_query()
1403 * @header: Pointer to the command header in the command stream.
1407 SVGA3dCmdHeader *header) in vmw_cmd_end_query() argument
1413 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_end_query()
1419 gb_cmd.header.id = SVGA_3D_CMD_END_GB_QUERY; in vmw_cmd_end_query()
1420 gb_cmd.header.size = cmd->header.size; in vmw_cmd_end_query()
1427 return vmw_cmd_end_gb_query(dev_priv, sw_context, header); in vmw_cmd_end_query()
1430 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_end_query()
1449 * @header: Pointer to the command header in the command stream.
1453 SVGA3dCmdHeader *header) in vmw_cmd_wait_gb_query() argument
1459 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_wait_gb_query()
1460 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_wait_gb_query()
1477 * @header: Pointer to the command header in the command stream.
1481 SVGA3dCmdHeader *header) in vmw_cmd_wait_query() argument
1487 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_wait_query()
1493 gb_cmd.header.id = SVGA_3D_CMD_WAIT_FOR_GB_QUERY; in vmw_cmd_wait_query()
1494 gb_cmd.header.size = cmd->header.size; in vmw_cmd_wait_query()
1501 return vmw_cmd_wait_gb_query(dev_priv, sw_context, header); in vmw_cmd_wait_query()
1504 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_wait_query()
1518 SVGA3dCmdHeader *header) in vmw_cmd_dma() argument
1528 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dma()
1530 header->size - sizeof(*suffix)); in vmw_cmd_dma()
1567 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, header); in vmw_cmd_dma()
1574 SVGA3dCmdHeader *header) in vmw_cmd_draw() argument
1578 (unsigned long)header + sizeof(*cmd)); in vmw_cmd_draw()
1584 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_draw()
1588 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_draw()
1589 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); in vmw_cmd_draw()
1605 maxnum = (header->size - sizeof(cmd->body) - in vmw_cmd_draw()
1626 SVGA3dCmdHeader *header) in vmw_cmd_tex_state() argument
1630 ((unsigned long) header + header->size + sizeof(header)); in vmw_cmd_tex_state()
1632 ((unsigned long) header + sizeof(*cmd)); in vmw_cmd_tex_state()
1637 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_tex_state()
1689 uint32_t header; in vmw_cmd_check_define_gmrfb() member
1774 * @header: Pointer to the command header in the command stream.
1778 SVGA3dCmdHeader *header) in vmw_cmd_bind_gb_surface() argument
1781 container_of(header, typeof(*cmd), header); in vmw_cmd_bind_gb_surface()
1793 * @header: Pointer to the command header in the command stream.
1797 SVGA3dCmdHeader *header) in vmw_cmd_update_gb_image() argument
1800 container_of(header, typeof(*cmd), header); in vmw_cmd_update_gb_image()
1812 * @header: Pointer to the command header in the command stream.
1816 SVGA3dCmdHeader *header) in vmw_cmd_update_gb_surface() argument
1819 container_of(header, typeof(*cmd), header); in vmw_cmd_update_gb_surface()
1831 * @header: Pointer to the command header in the command stream.
1835 SVGA3dCmdHeader *header) in vmw_cmd_readback_gb_image() argument
1838 container_of(header, typeof(*cmd), header); in vmw_cmd_readback_gb_image()
1851 * @header: Pointer to the command header in the command stream.
1855 SVGA3dCmdHeader *header) in vmw_cmd_readback_gb_surface() argument
1858 container_of(header, typeof(*cmd), header); in vmw_cmd_readback_gb_surface()
1871 * @header: Pointer to the command header in the command stream.
1875 SVGA3dCmdHeader *header) in vmw_cmd_invalidate_gb_image() argument
1878 container_of(header, typeof(*cmd), header); in vmw_cmd_invalidate_gb_image()
1891 * @header: Pointer to the command header in the command stream.
1895 SVGA3dCmdHeader *header) in vmw_cmd_invalidate_gb_surface() argument
1898 container_of(header, typeof(*cmd), header); in vmw_cmd_invalidate_gb_surface()
1910 * @header: Pointer to the command header in the command stream.
1914 SVGA3dCmdHeader *header) in vmw_cmd_shader_define() argument
1921 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_shader_define()
1932 size = cmd->header.size - sizeof(cmd->body); in vmw_cmd_shader_define()
1941 &cmd->header.id), in vmw_cmd_shader_define()
1950 * @header: Pointer to the command header in the command stream.
1954 SVGA3dCmdHeader *header) in vmw_cmd_shader_destroy() argument
1960 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_shader_destroy()
1978 &cmd->header.id), in vmw_cmd_shader_destroy()
1987 * @header: Pointer to the command header in the command stream.
1991 SVGA3dCmdHeader *header) in vmw_cmd_set_shader() argument
1999 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_shader()
2067 * @header: Pointer to the command header in the command stream.
2071 SVGA3dCmdHeader *header) in vmw_cmd_set_shader_const() argument
2076 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_shader_const()
2085 header->id = SVGA_3D_CMD_SET_GB_SHADERCONSTS_INLINE; in vmw_cmd_set_shader_const()
2095 * @header: Pointer to the command header in the command stream.
2099 SVGA3dCmdHeader *header) in vmw_cmd_bind_gb_shader() argument
2102 container_of(header, typeof(*cmd), header); in vmw_cmd_bind_gb_shader()
2115 * @header: Pointer to the command header in the command stream.
2120 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_single_constant_buffer() argument
2134 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_single_constant_buffer()
2169 * @header: Pointer to the command header in the command stream.
2173 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_shader_res() argument
2176 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_shader_res()
2180 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_shader_res()
2202 * @header: Pointer to the command header in the command stream.
2206 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_shader() argument
2219 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_shader()
2257 * @header: Pointer to the command header in the command stream.
2261 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_vertex_buffers() argument
2267 SVGA3dCmdHeader header; in vmw_cmd_dx_set_vertex_buffers() member
2276 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_vertex_buffers()
2277 num = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_vertex_buffers()
2312 * @header: Pointer to the command header in the command stream.
2316 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_index_buffer() argument
2327 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_index_buffer()
2351 * @header: Pointer to the command header in the command stream.
2355 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_rendertargets() argument
2358 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_rendertargets()
2359 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_dx_set_rendertargets()
2384 * @header: Pointer to the command header in the command stream.
2388 SVGA3dCmdHeader *header) in vmw_cmd_dx_clear_rendertarget_view() argument
2391 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_clear_rendertarget_view()
2406 * @header: Pointer to the command header in the command stream.
2410 SVGA3dCmdHeader *header) in vmw_cmd_dx_clear_depthstencil_view() argument
2413 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_clear_depthstencil_view()
2424 SVGA3dCmdHeader *header) in vmw_cmd_dx_view_define() argument
2436 SVGA3dCmdHeader header; in vmw_cmd_dx_view_define() member
2444 view_type = vmw_view_cmd_to_type(header->id); in vmw_cmd_dx_view_define()
2448 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_view_define()
2465 cmd->defined_id, header, in vmw_cmd_dx_view_define()
2466 header->size + sizeof(*header), in vmw_cmd_dx_view_define()
2475 * @header: Pointer to the command header in the command stream.
2479 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_so_targets() argument
2485 SVGA3dCmdHeader header; in vmw_cmd_dx_set_so_targets() member
2494 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_so_targets()
2495 num = (cmd->header.size - sizeof(cmd->body)) / sizeof(SVGA3dSoTarget); in vmw_cmd_dx_set_so_targets()
2525 SVGA3dCmdHeader *header) in vmw_cmd_dx_so_define() argument
2534 SVGA3dCmdHeader header; in vmw_cmd_dx_so_define() member
2543 so_type = vmw_so_cmd_to_type(header->id); in vmw_cmd_dx_so_define()
2545 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_so_define()
2557 * @header: Pointer to the command header in the command stream.
2561 SVGA3dCmdHeader *header) in vmw_cmd_dx_check_subresource() argument
2564 SVGA3dCmdHeader header; in vmw_cmd_dx_check_subresource() member
2580 cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_check_subresource()
2588 SVGA3dCmdHeader *header) in vmw_cmd_dx_cid_check() argument
2604 * @header: Pointer to the command header in the command stream.
2611 SVGA3dCmdHeader *header) in vmw_cmd_dx_view_remove() argument
2615 SVGA3dCmdHeader header; in vmw_cmd_dx_view_remove() member
2617 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_view_remove()
2618 enum vmw_view_type view_type = vmw_view_cmd_to_type(header->id); in vmw_cmd_dx_view_remove()
2638 &cmd->header.id), in vmw_cmd_dx_view_remove()
2647 * @header: Pointer to the command header in the command stream.
2651 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_shader() argument
2656 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_shader()
2677 * @header: Pointer to the command header in the command stream.
2681 SVGA3dCmdHeader *header) in vmw_cmd_dx_destroy_shader() argument
2685 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_destroy_shader()
2702 * @header: Pointer to the command header in the command stream.
2706 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_shader() argument
2711 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_shader()
2754 * @header: Pointer to the command header in the command stream.
2758 SVGA3dCmdHeader *header) in vmw_cmd_dx_genmips() argument
2761 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_genmips()
2776 * @header: Pointer to the command header in the command stream.
2780 SVGA3dCmdHeader *header) in vmw_cmd_dx_transfer_from_buffer() argument
2783 container_of(header, typeof(*cmd), header); in vmw_cmd_dx_transfer_from_buffer()
2802 * @header: Pointer to the command header in the command stream.
2806 SVGA3dCmdHeader *header) in vmw_cmd_intra_surface_copy() argument
2809 container_of(header, typeof(*cmd), header); in vmw_cmd_intra_surface_copy()
2821 SVGA3dCmdHeader *header) in vmw_cmd_sm5() argument
2831 SVGA3dCmdHeader *header) in vmw_cmd_sm5_view_define() argument
2836 return vmw_cmd_dx_view_define(dev_priv, sw_context, header); in vmw_cmd_sm5_view_define()
2841 SVGA3dCmdHeader *header) in vmw_cmd_sm5_view_remove() argument
2846 return vmw_cmd_dx_view_remove(dev_priv, sw_context, header); in vmw_cmd_sm5_view_remove()
2851 SVGA3dCmdHeader *header) in vmw_cmd_clear_uav_uint() argument
2854 SVGA3dCmdHeader header; in vmw_cmd_clear_uav_uint() member
2856 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_clear_uav_uint()
2870 SVGA3dCmdHeader *header) in vmw_cmd_clear_uav_float() argument
2873 SVGA3dCmdHeader header; in vmw_cmd_clear_uav_float() member
2875 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_clear_uav_float()
2889 SVGA3dCmdHeader *header) in vmw_cmd_set_uav() argument
2892 SVGA3dCmdHeader header; in vmw_cmd_set_uav() member
2894 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_uav()
2895 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_uav()
2921 SVGA3dCmdHeader *header) in vmw_cmd_set_cs_uav() argument
2924 SVGA3dCmdHeader header; in vmw_cmd_set_cs_uav() member
2926 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_set_cs_uav()
2927 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) / in vmw_cmd_set_cs_uav()
2953 SVGA3dCmdHeader *header) in vmw_cmd_dx_define_streamoutput() argument
2958 SVGA3dCmdHeader header; in vmw_cmd_dx_define_streamoutput() member
2960 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_define_streamoutput()
2983 SVGA3dCmdHeader *header) in vmw_cmd_dx_destroy_streamoutput() argument
2988 SVGA3dCmdHeader header; in vmw_cmd_dx_destroy_streamoutput() member
2990 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_destroy_streamoutput()
3019 SVGA3dCmdHeader *header) in vmw_cmd_dx_bind_streamoutput() argument
3024 SVGA3dCmdHeader header; in vmw_cmd_dx_bind_streamoutput() member
3026 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_bind_streamoutput()
3060 SVGA3dCmdHeader *header) in vmw_cmd_dx_set_streamoutput() argument
3066 SVGA3dCmdHeader header; in vmw_cmd_dx_set_streamoutput() member
3068 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dx_set_streamoutput()
3116 SVGA3dCmdHeader *header) in vmw_cmd_indexed_instanced_indirect() argument
3119 SVGA3dCmdHeader header; in vmw_cmd_indexed_instanced_indirect() member
3121 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_indexed_instanced_indirect()
3133 SVGA3dCmdHeader *header) in vmw_cmd_instanced_indirect() argument
3136 SVGA3dCmdHeader header; in vmw_cmd_instanced_indirect() member
3138 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_instanced_indirect()
3150 SVGA3dCmdHeader *header) in vmw_cmd_dispatch_indirect() argument
3153 SVGA3dCmdHeader header; in vmw_cmd_dispatch_indirect() member
3155 } *cmd = container_of(header, typeof(*cmd), header); in vmw_cmd_dispatch_indirect()
3552 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf; in vmw_cmd_describe() local
3555 *size = header->size + sizeof(SVGA3dCmdHeader); in vmw_cmd_describe()
3556 cmd_id = header->id; in vmw_cmd_describe()
3598 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf; in vmw_cmd_check() local
3609 cmd_id = header->id; in vmw_cmd_check()
3610 *size = header->size + sizeof(SVGA3dCmdHeader); in vmw_cmd_check()
3632 ret = entry->func(dev_priv, sw_context, header); in vmw_cmd_check()
3901 * @header: Opaque handle to the command buffer allocation.
3906 * by @header will have been modified.
3909 struct vmw_cmdbuf_header *header, in vmw_execbuf_submit_cmdbuf() argument
3916 header); in vmw_execbuf_submit_cmdbuf()
3921 vmw_cmdbuf_commit(dev_priv->cman, command_size, header, false); in vmw_execbuf_submit_cmdbuf()
3933 * @header: Out parameter returning the opaque pointer to the command buffer.
3940 * command buffer and *@header is set to non-NULL.
3944 * value of *@header will be set to NULL.
3953 struct vmw_cmdbuf_header **header) in vmw_execbuf_cmdbuf() argument
3958 *header = NULL; in vmw_execbuf_cmdbuf()
3971 header); in vmw_execbuf_cmdbuf()
3978 vmw_cmdbuf_header_free(*header); in vmw_execbuf_cmdbuf()
3979 *header = NULL; in vmw_execbuf_cmdbuf()
4031 struct vmw_cmdbuf_header *header; in vmw_execbuf_process() local
4058 &header); in vmw_execbuf_process()
4085 } else if (!header) { in vmw_execbuf_process()
4153 if (!header) { in vmw_execbuf_process()
4157 ret = vmw_execbuf_submit_cmdbuf(dev_priv, header, command_size, in vmw_execbuf_process()
4159 header = NULL; in vmw_execbuf_process()
4252 if (header) in vmw_execbuf_process()
4253 vmw_cmdbuf_header_free(header); in vmw_execbuf_process()