Searched refs:num_bufs (Results 1 – 2 of 2) sorted by relevance
61 static void aio_block_init(aio_block* aiob, unsigned num_bufs) { in aio_block_init() argument62 aiob->iocb.resize(num_bufs); in aio_block_init()63 aiob->iocbs.resize(num_bufs); in aio_block_init()64 aiob->events.resize(num_bufs); in aio_block_init()66 for (unsigned i = 0; i < num_bufs; i++) { in aio_block_init()70 if (io_setup(num_bufs, &aiob->ctx)) { in aio_block_init()180 int num_bufs = len / h->io_size + (len % h->io_size == 0 ? 0 : 1); in usb_ffs_do_aio() local189 for (int i = 0; i < num_bufs; i++) { in usb_ffs_do_aio()203 io_prep(&aiob->iocb[num_bufs], aiob->fd, reinterpret_cast<const void*>(cur_data), in usb_ffs_do_aio()205 num_bufs += 1; in usb_ffs_do_aio()[all …]
64 usb_handle *create_usb_handle(unsigned num_bufs, unsigned io_size);