Lines Matching refs:ring
62 struct blkif_front_ring ring; member
113 free(dev->ring.sring); in free_blkfront()
151 FRONT_RING_INIT(&dev->ring, s, PAGE_SIZE); in init_blkfront()
368 rp = dev->ring.sring->rsp_prod; in blkfront_aio_poll()
370 cons = dev->ring.rsp_cons; in blkfront_aio_poll()
377 rsp = RING_GET_RESPONSE(&dev->ring, cons); in blkfront_aio_poll()
418 dev->ring.rsp_cons = ++cons; in blkfront_aio_poll()
422 if (dev->ring.rsp_cons != cons) in blkfront_aio_poll()
427 RING_FINAL_CHECK_FOR_RESPONSES(&dev->ring, more); in blkfront_aio_poll()
437 if (RING_FULL(&dev->ring)) { in blkfront_wait_slot()
440 if (!RING_FULL(&dev->ring)) in blkfront_wait_slot()
442 wait_event_timeout(NULL, !RING_FULL(&dev->ring), in blkfront_wait_slot()
485 i = dev->ring.req_prod_pvt; in blkfront_aio()
486 req = RING_GET_REQUEST(&dev->ring, i); in blkfront_aio()
517 dev->ring.req_prod_pvt = i + 1; in blkfront_aio()
520 RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&dev->ring, notify); in blkfront_aio()
553 i = dev->ring.req_prod_pvt; in blkfront_push_operation()
554 req = RING_GET_REQUEST(&dev->ring, i); in blkfront_push_operation()
560 dev->ring.req_prod_pvt = i + 1; in blkfront_push_operation()
562 RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&dev->ring, notify); in blkfront_push_operation()
581 if (RING_FREE_REQUESTS(&dev->ring) == RING_SIZE(&dev->ring)) in blkfront_sync()