Lines Matching refs:vu_dev
85 static void panic_cb(VuDev *vu_dev, const char *buf) in panic_cb() argument
111 vu_message_read(VuDev *vu_dev, int conn_fd, VhostUserMsg *vmsg) in vu_message_read() argument
120 VuServer *server = container_of(vu_dev, VuServer, vu_dev); in vu_message_read()
213 VuDev *vu_dev = &server->vu_dev; in vu_client_trip() local
215 while (!vu_dev->broken) { in vu_client_trip()
222 if (!vu_dispatch(vu_dev) && server->ctx) { in vu_client_trip()
235 vu_deinit(vu_dev); in vu_client_trip()
263 VuDev *vu_dev = vu_fd_watch->vu_dev; in kick_handler() local
265 vu_fd_watch->cb(vu_dev, 0, vu_fd_watch->pvt); in kick_handler()
268 if (vu_dev->broken) { in kick_handler()
269 VuServer *server = container_of(vu_dev, VuServer, vu_dev); in kick_handler()
288 set_watch(VuDev *vu_dev, int fd, int vu_evt, in set_watch() argument
292 VuServer *server = container_of(vu_dev, VuServer, vu_dev); in set_watch()
293 g_assert(vu_dev); in set_watch()
309 vu_fd_watch->vu_dev = vu_dev; in set_watch()
315 static void remove_watch(VuDev *vu_dev, int fd) in remove_watch() argument
318 g_assert(vu_dev); in remove_watch()
321 server = container_of(vu_dev, VuServer, vu_dev); in remove_watch()
346 if (!vu_init(&server->vu_dev, server->max_queues, sioc->fd, panic_cb, in vu_accept()