Lines Matching defs:header
53 SVGA3dCmdHeader header; \
587 SVGA3dCmdHeader *header)
594 SVGA3dCmdHeader *header)
731 cmd->header.id = SVGA_3D_CMD_DX_BIND_ALL_QUERY;
732 cmd->header.size = sizeof(cmd->body);
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)
837 container_of(header, typeof(*cmd), header);
874 SVGA3dCmdHeader *header)
881 cmd = container_of(header, typeof(*cmd), header);
921 SVGA3dCmdHeader *header)
926 cmd = container_of(header, typeof(*cmd), header);
941 SVGA3dCmdHeader *header)
946 cmd = container_of(header, typeof(*cmd), header);
960 SVGA3dCmdHeader *header)
965 cmd = container_of(header, typeof(*cmd), header);
979 SVGA3dCmdHeader *header)
984 cmd = container_of(header, typeof(*cmd), header);
998 SVGA3dCmdHeader *header)
1001 container_of(header, typeof(*cmd), header);
1010 SVGA3dCmdHeader *header)
1013 container_of(header, typeof(*cmd), header);
1252 * @header: Pointer to the command header in the command stream.
1258 SVGA3dCmdHeader *header)
1268 cmd = container_of(header, typeof(*cmd), header);
1285 * @header: Pointer to the command header in the command stream.
1293 SVGA3dCmdHeader *header)
1299 cmd = container_of(header, typeof(*cmd), header);
1321 * @header: Pointer to the command header in the command stream.
1325 SVGA3dCmdHeader *header)
1328 container_of(header, typeof(*cmd), header);
1340 * @header: Pointer to the command header in the command stream.
1344 SVGA3dCmdHeader *header)
1347 container_of(header, typeof(*cmd), header);
1354 gb_cmd.header.id = SVGA_3D_CMD_BEGIN_GB_QUERY;
1355 gb_cmd.header.size = cmd->header.size;
1360 return vmw_cmd_begin_gb_query(dev_priv, sw_context, header);
1373 * @header: Pointer to the command header in the command stream.
1377 SVGA3dCmdHeader *header)
1383 cmd = container_of(header, typeof(*cmd), header);
1384 ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
1403 * @header: Pointer to the command header in the command stream.
1407 SVGA3dCmdHeader *header)
1413 cmd = container_of(header, typeof(*cmd), header);
1419 gb_cmd.header.id = SVGA_3D_CMD_END_GB_QUERY;
1420 gb_cmd.header.size = cmd->header.size;
1427 return vmw_cmd_end_gb_query(dev_priv, sw_context, header);
1430 ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
1449 * @header: Pointer to the command header in the command stream.
1453 SVGA3dCmdHeader *header)
1459 cmd = container_of(header, typeof(*cmd), header);
1460 ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
1477 * @header: Pointer to the command header in the command stream.
1481 SVGA3dCmdHeader *header)
1487 cmd = container_of(header, typeof(*cmd), header);
1493 gb_cmd.header.id = SVGA_3D_CMD_WAIT_FOR_GB_QUERY;
1494 gb_cmd.header.size = cmd->header.size;
1501 return vmw_cmd_wait_gb_query(dev_priv, sw_context, header);
1504 ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
1518 SVGA3dCmdHeader *header)
1528 cmd = container_of(header, typeof(*cmd), header);
1530 header->size - sizeof(*suffix));
1567 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, header);
1574 SVGA3dCmdHeader *header)
1578 (unsigned long)header + sizeof(*cmd));
1584 ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
1588 cmd = container_of(header, typeof(*cmd), header);
1589 maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl);
1605 maxnum = (header->size - sizeof(cmd->body) -
1626 SVGA3dCmdHeader *header)
1630 ((unsigned long) header + header->size + sizeof(*header));
1632 ((unsigned long) header + sizeof(*cmd));
1637 cmd = container_of(header, typeof(*cmd), header);
1689 uint32_t header;
1774 * @header: Pointer to the command header in the command stream.
1778 SVGA3dCmdHeader *header)
1781 container_of(header, typeof(*cmd), header);
1793 * @header: Pointer to the command header in the command stream.
1797 SVGA3dCmdHeader *header)
1800 container_of(header, typeof(*cmd), header);
1812 * @header: Pointer to the command header in the command stream.
1816 SVGA3dCmdHeader *header)
1819 container_of(header, typeof(*cmd), header);
1831 * @header: Pointer to the command header in the command stream.
1835 SVGA3dCmdHeader *header)
1838 container_of(header, typeof(*cmd), header);
1851 * @header: Pointer to the command header in the command stream.
1855 SVGA3dCmdHeader *header)
1858 container_of(header, typeof(*cmd), header);
1871 * @header: Pointer to the command header in the command stream.
1875 SVGA3dCmdHeader *header)
1878 container_of(header, typeof(*cmd), header);
1891 * @header: Pointer to the command header in the command stream.
1895 SVGA3dCmdHeader *header)
1898 container_of(header, typeof(*cmd), header);
1910 * @header: Pointer to the command header in the command stream.
1914 SVGA3dCmdHeader *header)
1921 cmd = container_of(header, typeof(*cmd), header);
1932 size = cmd->header.size - sizeof(cmd->body);
1941 &cmd->header.id),
1950 * @header: Pointer to the command header in the command stream.
1954 SVGA3dCmdHeader *header)
1960 cmd = container_of(header, typeof(*cmd), header);
1978 &cmd->header.id),
1987 * @header: Pointer to the command header in the command stream.
1991 SVGA3dCmdHeader *header)
1999 cmd = container_of(header, typeof(*cmd), header);
2067 * @header: Pointer to the command header in the command stream.
2071 SVGA3dCmdHeader *header)
2076 cmd = container_of(header, typeof(*cmd), header);
2085 header->id = SVGA_3D_CMD_SET_GB_SHADERCONSTS_INLINE;
2095 * @header: Pointer to the command header in the command stream.
2099 SVGA3dCmdHeader *header)
2102 container_of(header, typeof(*cmd), header);
2115 * @header: Pointer to the command header in the command stream.
2120 SVGA3dCmdHeader *header)
2132 cmd = container_of(header, typeof(*cmd), header);
2167 * @header: Pointer to the command header in the command stream.
2171 SVGA3dCmdHeader *header)
2174 container_of(header, typeof(*cmd), header);
2176 u32 num_sr_view = (cmd->header.size - sizeof(cmd->body)) /
2198 * @header: Pointer to the command header in the command stream.
2202 SVGA3dCmdHeader *header)
2213 cmd = container_of(header, typeof(*cmd), header);
2250 * @header: Pointer to the command header in the command stream.
2254 SVGA3dCmdHeader *header)
2260 SVGA3dCmdHeader header;
2269 cmd = container_of(header, typeof(*cmd), header);
2270 num = (cmd->header.size - sizeof(cmd->body)) /
2305 * @header: Pointer to the command header in the command stream.
2309 SVGA3dCmdHeader *header)
2320 cmd = container_of(header, typeof(*cmd), header);
2344 * @header: Pointer to the command header in the command stream.
2348 SVGA3dCmdHeader *header)
2351 container_of(header, typeof(*cmd), header);
2352 u32 num_rt_view = (cmd->header.size - sizeof(cmd->body)) /
2377 * @header: Pointer to the command header in the command stream.
2381 SVGA3dCmdHeader *header)
2384 container_of(header, typeof(*cmd), header);
2399 * @header: Pointer to the command header in the command stream.
2403 SVGA3dCmdHeader *header)
2406 container_of(header, typeof(*cmd), header);
2417 SVGA3dCmdHeader *header)
2429 SVGA3dCmdHeader header;
2437 view_type = vmw_view_cmd_to_type(header->id);
2441 cmd = container_of(header, typeof(*cmd), header);
2458 cmd->defined_id, header,
2459 header->size + sizeof(*header),
2468 * @header: Pointer to the command header in the command stream.
2472 SVGA3dCmdHeader *header)
2478 SVGA3dCmdHeader header;
2487 cmd = container_of(header, typeof(*cmd), header);
2488 num = (cmd->header.size - sizeof(cmd->body)) / sizeof(SVGA3dSoTarget);
2518 SVGA3dCmdHeader *header)
2527 SVGA3dCmdHeader header;
2536 so_type = vmw_so_cmd_to_type(header->id);
2538 cmd = container_of(header, typeof(*cmd), header);
2550 * @header: Pointer to the command header in the command stream.
2554 SVGA3dCmdHeader *header)
2557 SVGA3dCmdHeader header;
2573 cmd = container_of(header, typeof(*cmd), header);
2581 SVGA3dCmdHeader *header)
2597 * @header: Pointer to the command header in the command stream.
2604 SVGA3dCmdHeader *header)
2608 SVGA3dCmdHeader header;
2610 } *cmd = container_of(header, typeof(*cmd), header);
2611 enum vmw_view_type view_type = vmw_view_cmd_to_type(header->id);
2631 &cmd->header.id),
2640 * @header: Pointer to the command header in the command stream.
2644 SVGA3dCmdHeader *header)
2649 container_of(header, typeof(*cmd), header);
2670 * @header: Pointer to the command header in the command stream.
2674 SVGA3dCmdHeader *header)
2678 container_of(header, typeof(*cmd), header);
2695 * @header: Pointer to the command header in the command stream.
2699 SVGA3dCmdHeader *header)
2704 container_of(header, typeof(*cmd), header);
2747 * @header: Pointer to the command header in the command stream.
2751 SVGA3dCmdHeader *header)
2754 container_of(header, typeof(*cmd), header);
2781 * @header: Pointer to the command header in the command stream.
2785 SVGA3dCmdHeader *header)
2788 container_of(header, typeof(*cmd), header);
2807 * @header: Pointer to the command header in the command stream.
2811 SVGA3dCmdHeader *header)
2814 container_of(header, typeof(*cmd), header);
2826 SVGA3dCmdHeader *header)
2836 SVGA3dCmdHeader *header)
2841 return vmw_cmd_dx_view_define(dev_priv, sw_context, header);
2846 SVGA3dCmdHeader *header)
2851 return vmw_cmd_dx_view_remove(dev_priv, sw_context, header);
2856 SVGA3dCmdHeader *header)
2859 SVGA3dCmdHeader header;
2861 } *cmd = container_of(header, typeof(*cmd), header);
2875 SVGA3dCmdHeader *header)
2878 SVGA3dCmdHeader header;
2880 } *cmd = container_of(header, typeof(*cmd), header);
2894 SVGA3dCmdHeader *header)
2897 SVGA3dCmdHeader header;
2899 } *cmd = container_of(header, typeof(*cmd), header);
2900 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) /
2926 SVGA3dCmdHeader *header)
2929 SVGA3dCmdHeader header;
2931 } *cmd = container_of(header, typeof(*cmd), header);
2932 u32 num_uav = (cmd->header.size - sizeof(cmd->body)) /
2958 SVGA3dCmdHeader *header)
2963 SVGA3dCmdHeader header;
2965 } *cmd = container_of(header, typeof(*cmd), header);
2988 SVGA3dCmdHeader *header)
2993 SVGA3dCmdHeader header;
2995 } *cmd = container_of(header, typeof(*cmd), header);
3024 SVGA3dCmdHeader *header)
3029 SVGA3dCmdHeader header;
3031 } *cmd = container_of(header, typeof(*cmd), header);
3065 SVGA3dCmdHeader *header)
3071 SVGA3dCmdHeader header;
3073 } *cmd = container_of(header, typeof(*cmd), header);
3121 SVGA3dCmdHeader *header)
3124 SVGA3dCmdHeader header;
3126 } *cmd = container_of(header, typeof(*cmd), header);
3138 SVGA3dCmdHeader *header)
3141 SVGA3dCmdHeader header;
3143 } *cmd = container_of(header, typeof(*cmd), header);
3155 SVGA3dCmdHeader *header)
3158 SVGA3dCmdHeader header;
3160 } *cmd = container_of(header, typeof(*cmd), header);
3557 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf;
3560 *size = header->size + sizeof(SVGA3dCmdHeader);
3561 cmd_id = header->id;
3603 SVGA3dCmdHeader *header = (SVGA3dCmdHeader *) buf;
3614 cmd_id = header->id;
3615 *size = header->size + sizeof(SVGA3dCmdHeader);
3637 ret = entry->func(dev_priv, sw_context, header);
3900 * @header: Opaque handle to the command buffer allocation.
3905 * by @header will have been modified.
3908 struct vmw_cmdbuf_header *header,
3915 header);
3920 vmw_cmdbuf_commit(dev_priv->cman, command_size, header, false);
3932 * @header: Out parameter returning the opaque pointer to the command buffer.
3939 * command buffer and *@header is set to non-NULL.
3943 * value of *@header will be set to NULL.
3952 struct vmw_cmdbuf_header **header)
3957 *header = NULL;
3970 header);
3977 vmw_cmdbuf_header_free(*header);
3978 *header = NULL;
4030 struct vmw_cmdbuf_header *header;
4057 &header);
4084 } else if (!header) {
4152 if (!header) {
4156 ret = vmw_execbuf_submit_cmdbuf(dev_priv, header, command_size,
4158 header = NULL;
4258 if (header)
4259 vmw_cmdbuf_header_free(header);