Lines Matching refs:vu_dev
214 static void vus_panic_cb(VuDev *vu_dev, const char *buf) in vus_panic_cb() argument
219 assert(vu_dev); in vus_panic_cb()
221 gdev = container_of(vu_dev, VugDev, parent); in vus_panic_cb()
230 static void vus_proc_req(VuDev *vu_dev, int idx) in vus_proc_req() argument
237 assert(vu_dev); in vus_proc_req()
239 gdev = container_of(vu_dev, VugDev, parent); in vus_proc_req()
242 vq = vu_get_queue(vu_dev, idx); in vus_proc_req()
244 g_warning("Error fetching VQ (dev=%p, idx=%d)", vu_dev, idx); in vus_proc_req()
245 vus_panic_cb(vu_dev, NULL); in vus_proc_req()
255 elem = vu_queue_pop(vu_dev, vq, sizeof(VuVirtqElement)); in vus_proc_req()
267 vus_panic_cb(vu_dev, NULL); in vus_proc_req()
274 vus_panic_cb(vu_dev, NULL); in vus_proc_req()
282 vus_panic_cb(vu_dev, NULL); in vus_proc_req()
286 vu_queue_push(vu_dev, vq, elem, 0); in vus_proc_req()
287 vu_queue_notify(vu_dev, vq); in vus_proc_req()
294 static void vus_queue_set_started(VuDev *vu_dev, int idx, bool started) in vus_queue_set_started() argument
298 assert(vu_dev); in vus_queue_set_started()
300 vq = vu_get_queue(vu_dev, idx); in vus_queue_set_started()
305 vu_set_queue_handler(vu_dev, vq, started ? vus_proc_req : NULL); in vus_queue_set_started()