Lines Matching refs:xbd_ring
137 RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&sc->xbd_ring, notify); in xbd_flush_requests()
234 RING_GET_REQUEST(&sc->xbd_ring, sc->xbd_ring.req_prod_pvt); in xbd_queue_cb()
235 sc->xbd_ring.req_prod_pvt++; in xbd_queue_cb()
252 RING_GET_REQUEST(&sc->xbd_ring, sc->xbd_ring.req_prod_pvt); in xbd_queue_cb()
253 sc->xbd_ring.req_prod_pvt++; in xbd_queue_cb()
430 while (!RING_FULL(&sc->xbd_ring)) { in xbd_startio()
500 rp = sc->xbd_ring.sring->rsp_prod; in xbd_int()
503 for (i = sc->xbd_ring.rsp_cons; i != rp;) { in xbd_int()
504 bret = RING_GET_RESPONSE(&sc->xbd_ring, i); in xbd_int()
541 sc->xbd_ring.rsp_cons = i; in xbd_int()
543 if (i != sc->xbd_ring.req_prod_pvt) { in xbd_int()
545 RING_FINAL_CHECK_FOR_RESPONSES(&sc->xbd_ring, more_to_do); in xbd_int()
549 sc->xbd_ring.sring->rsp_event = i + 1; in xbd_int()
574 RING_FINAL_CHECK_FOR_RESPONSES(&sc->xbd_ring, mtd); in xbd_quiesce()
764 FRONT_RING_INIT(&sc->xbd_ring, sring, sc->xbd_ring_pages * PAGE_SIZE); in xbd_alloc_ring()
822 if (sc->xbd_ring.sring == NULL) in xbd_free_ring()
831 free(sc->xbd_ring.sring, M_XENBLOCKFRONT); in xbd_free_ring()
832 sc->xbd_ring.sring = NULL; in xbd_free_ring()