Lines Matching full:bounce
27 * Allocated bounce buffers are kept in a list sorted by buffer address.
32 /* The bounce buffer */
61 /* Bounce buffer pool */
64 /* Sorted list of allocated bounce buffers */
67 /* Queue for coroutines waiting for bounce buffer space */
86 /* There can be no allocated bounce buffers during resize */ in blkio_resize_bounce_pool()
123 blkio_do_alloc_bounce_buffer(BDRVBlkioState *s, BlkioBounceBuf *bounce, in blkio_do_alloc_bounce_buffer() argument
138 QLIST_INSERT_BEFORE(cur, bounce, next); in blkio_do_alloc_bounce_buffer()
139 bounce->buf.iov_base = addr; in blkio_do_alloc_bounce_buffer()
140 bounce->buf.iov_len = bytes; in blkio_do_alloc_bounce_buffer()
154 QLIST_INSERT_AFTER(prev, bounce, next); in blkio_do_alloc_bounce_buffer()
156 QLIST_INSERT_HEAD(&s->bounce_bufs, bounce, next); in blkio_do_alloc_bounce_buffer()
158 bounce->buf.iov_base = addr; in blkio_do_alloc_bounce_buffer()
159 bounce->buf.iov_len = bytes; in blkio_do_alloc_bounce_buffer()
164 blkio_alloc_bounce_buffer(BDRVBlkioState *s, BlkioBounceBuf *bounce, in blkio_alloc_bounce_buffer() argument
183 if (blkio_do_alloc_bounce_buffer(s, bounce, bytes)) { in blkio_alloc_bounce_buffer()
204 ok = blkio_do_alloc_bounce_buffer(s, bounce, bytes); in blkio_alloc_bounce_buffer()
216 BlkioBounceBuf *bounce) in blkio_free_bounce_buffer() argument
220 QLIST_REMOVE(bounce, next); in blkio_free_bounce_buffer()
369 BlkioBounceBuf bounce; in blkio_co_preadv() local
374 int ret = blkio_alloc_bounce_buffer(s, &bounce, bytes); in blkio_co_preadv()
379 iov = &bounce.buf; in blkio_co_preadv()
393 bounce.buf.iov_base, in blkio_co_preadv()
394 bounce.buf.iov_len); in blkio_co_preadv()
397 blkio_free_bounce_buffer(s, &bounce); in blkio_co_preadv()
413 BlkioBounceBuf bounce; in blkio_co_pwritev() local
418 int ret = blkio_alloc_bounce_buffer(s, &bounce, bytes); in blkio_co_pwritev()
423 qemu_iovec_to_buf(qiov, 0, bounce.buf.iov_base, bytes); in blkio_co_pwritev()
424 iov = &bounce.buf; in blkio_co_pwritev()
436 blkio_free_bounce_buffer(s, &bounce); in blkio_co_pwritev()