Lines Matching refs:msg

122 vhost_user_gpu_handle_cursor(VhostUserGPU *g, VhostUserGpuMsg *msg)  in vhost_user_gpu_handle_cursor()  argument
124 VhostUserGpuCursorPos *pos = &msg->payload.cursor_pos; in vhost_user_gpu_handle_cursor()
132 if (msg->request == VHOST_USER_GPU_CURSOR_UPDATE) { in vhost_user_gpu_handle_cursor()
133 VhostUserGpuCursorUpdate *up = &msg->payload.cursor_update; in vhost_user_gpu_handle_cursor()
148 msg->request != VHOST_USER_GPU_CURSOR_POS_HIDE); in vhost_user_gpu_handle_cursor()
152 vhost_user_gpu_send_msg(VhostUserGPU *g, const VhostUserGpuMsg *msg) in vhost_user_gpu_send_msg() argument
154 qemu_chr_fe_write(&g->vhost_chr, (uint8_t *)msg, in vhost_user_gpu_send_msg()
155 VHOST_USER_GPU_HDR_SIZE + msg->size); in vhost_user_gpu_send_msg()
161 VhostUserGpuMsg msg = { in vhost_user_gpu_unblock() local
166 vhost_user_gpu_send_msg(g, &msg); in vhost_user_gpu_unblock()
170 vhost_user_gpu_handle_display(VhostUserGPU *g, VhostUserGpuMsg *msg) in vhost_user_gpu_handle_display() argument
175 switch (msg->request) { in vhost_user_gpu_handle_display()
178 .request = msg->request, in vhost_user_gpu_handle_display()
196 .request = msg->request, in vhost_user_gpu_handle_display()
209 VhostUserGpuEdidRequest *m = &msg->payload.edid_req; in vhost_user_gpu_handle_display()
212 .request = msg->request, in vhost_user_gpu_handle_display()
229 VhostUserGpuScanout *m = &msg->payload.scanout; in vhost_user_gpu_handle_display()
250 VhostUserGpuDMABUFScanout *m = &msg->payload.dmabuf_scanout; in vhost_user_gpu_handle_display()
279 if (msg->request == VHOST_USER_GPU_DMABUF_SCANOUT2) { in vhost_user_gpu_handle_display()
280 VhostUserGpuDMABUFScanout2 *m2 = &msg->payload.dmabuf_scanout2; in vhost_user_gpu_handle_display()
296 VhostUserGpuUpdate *m = &msg->payload.update; in vhost_user_gpu_handle_display()
317 VhostUserGpuUpdate *m = &msg->payload.update; in vhost_user_gpu_handle_display()
345 g_warning("unhandled message %d %d", msg->request, msg->size); in vhost_user_gpu_handle_display()
357 VhostUserGpuMsg *msg = NULL; in vhost_user_gpu_chr_read() local
383 msg = g_malloc(VHOST_USER_GPU_HDR_SIZE + size); in vhost_user_gpu_chr_read()
386 (uint8_t *)&msg->payload, size); in vhost_user_gpu_chr_read()
392 msg->request = request; in vhost_user_gpu_chr_read()
393 msg->flags = flags; in vhost_user_gpu_chr_read()
394 msg->size = size; in vhost_user_gpu_chr_read()
399 vhost_user_gpu_handle_cursor(g, msg); in vhost_user_gpu_chr_read()
401 vhost_user_gpu_handle_display(g, msg); in vhost_user_gpu_chr_read()
405 g_free(msg); in vhost_user_gpu_chr_read()