Lines Matching refs:msg
151 struct msghdr msg = { in vg_sock_fd_write() local
162 msg.msg_control = cmsgu.control; in vg_sock_fd_write()
163 msg.msg_controllen = sizeof(cmsgu.control); in vg_sock_fd_write()
165 cmsg = CMSG_FIRSTHDR(&msg); in vg_sock_fd_write()
174 ret = sendmsg(sock, &msg, 0); in vg_sock_fd_write()
182 vg_send_msg(VuGpu *vg, const VhostUserGpuMsg *msg, int fd) in vg_send_msg() argument
184 if (vg_sock_fd_write(vg->sock_fd, msg, in vg_send_msg()
185 VHOST_USER_GPU_HDR_SIZE + msg->size, fd) < 0) { in vg_send_msg()
293 VhostUserGpuMsg msg = { in vg_get_display_info() local
300 vg_send_msg(vg, &msg, -1); in vg_get_display_info()
337 VhostUserGpuMsg msg = { in vg_get_edid() local
347 vg_send_msg(vg, &msg, -1); in vg_get_edid()
428 VhostUserGpuMsg msg = { in vg_disable_scanout() local
433 vg_send_msg(g, &msg, -1); in vg_disable_scanout()
716 VhostUserGpuMsg msg = { in vg_set_scanout() local
733 vg_send_msg(g, &msg, fd); in vg_set_scanout()
737 VhostUserGpuMsg msg = { in vg_set_scanout() local
746 vg_send_msg(g, &msg, -1); in vg_set_scanout()
827 VhostUserGpuMsg *msg = p; in vg_resource_flush() local
828 msg->request = VHOST_USER_GPU_UPDATE; in vg_resource_flush()
829 msg->size = sizeof(VhostUserGpuUpdate) + size; in vg_resource_flush()
830 msg->payload.update = (VhostUserGpuUpdate) { in vg_resource_flush()
839 msg->payload.update.width, in vg_resource_flush()
840 msg->payload.update.height, in vg_resource_flush()
850 vg_send_msg(g, msg, -1); in vg_resource_flush()
851 g_free(msg); in vg_resource_flush()
968 VhostUserGpuMsg msg = { in vg_process_cursor_cmd() local
979 vg_send_msg(g, &msg, -1); in vg_process_cursor_cmd()
983 VhostUserGpuMsg msg = { in vg_process_cursor_cmd() local
999 msg.payload.cursor_update.data); in vg_process_cursor_cmd()
1002 msg.payload.cursor_update.data); in vg_process_cursor_cmd()
1004 vg_send_msg(g, &msg, -1); in vg_process_cursor_cmd()
1045 vg_panic(VuDev *dev, const char *msg) in vg_panic() argument
1047 g_critical("%s\n", msg); in vg_panic()
1077 VhostUserGpuMsg msg = { in protocol_features_cb() local
1081 if (!vg_recv_msg(g, msg.request, in protocol_features_cb()
1088 msg = (VhostUserGpuMsg) { in protocol_features_cb()
1093 vg_send_msg(g, &msg, -1); in protocol_features_cb()
1112 VhostUserGpuMsg msg = { in set_gpu_protocol_features() local
1116 vg_send_msg(g, &msg, -1); in set_gpu_protocol_features()
1123 vg_process_msg(VuDev *dev, VhostUserMsg *msg, int *do_reply) in vg_process_msg() argument
1127 switch (msg->request) { in vg_process_msg()
1129 g_return_val_if_fail(msg->fd_num == 1, 1); in vg_process_msg()
1131 g->sock_fd = msg->fds[0]; in vg_process_msg()