Home
last modified time | relevance | path

Searched refs:vtest_hdr (Results 1 – 1 of 1) sorted by relevance

/external/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_socket.c147 uint32_t vtest_hdr[VTEST_HDR_SIZE]; in virgl_vtest_negotiate_version() local
153 vtest_hdr[VTEST_CMD_LEN] = VCMD_PING_PROTOCOL_VERSION_SIZE; in virgl_vtest_negotiate_version()
154 vtest_hdr[VTEST_CMD_ID] = VCMD_PING_PROTOCOL_VERSION; in virgl_vtest_negotiate_version()
155 virgl_block_write(vws->sock_fd, &vtest_hdr, sizeof(vtest_hdr)); in virgl_vtest_negotiate_version()
157 vtest_hdr[VTEST_CMD_LEN] = VCMD_BUSY_WAIT_SIZE; in virgl_vtest_negotiate_version()
158 vtest_hdr[VTEST_CMD_ID] = VCMD_RESOURCE_BUSY_WAIT; in virgl_vtest_negotiate_version()
161 virgl_block_write(vws->sock_fd, &vtest_hdr, sizeof(vtest_hdr)); in virgl_vtest_negotiate_version()
164 ret = virgl_block_read(vws->sock_fd, vtest_hdr, sizeof(vtest_hdr)); in virgl_vtest_negotiate_version()
167 if (vtest_hdr[VTEST_CMD_ID] == VCMD_PING_PROTOCOL_VERSION) { in virgl_vtest_negotiate_version()
169 ret = virgl_block_read(vws->sock_fd, vtest_hdr, sizeof(vtest_hdr)); in virgl_vtest_negotiate_version()
[all …]