Home
last modified time | relevance | path

Searched refs:num_bufs (Results 1 – 2 of 2) sorted by relevance

/system/core/fastboot/device/
Dusb.cpp54 static void aio_block_init(aio_block* aiob, unsigned num_bufs) { in aio_block_init() argument
55 aiob->iocb.resize(num_bufs); in aio_block_init()
56 aiob->iocbs.resize(num_bufs); in aio_block_init()
57 aiob->events.resize(num_bufs); in aio_block_init()
59 for (unsigned i = 0; i < num_bufs; i++) { in aio_block_init()
63 if (io_setup(num_bufs, &aiob->ctx)) { in aio_block_init()
133 int num_bufs = len / h->io_size + (len % h->io_size == 0 ? 0 : 1); in usb_ffs_do_aio() local
142 for (int i = 0; i < num_bufs; i++) { in usb_ffs_do_aio()
156 io_prep(&aiob->iocb[num_bufs], aiob->fd, reinterpret_cast<const void*>(cur_data), in usb_ffs_do_aio()
158 num_bufs += 1; in usb_ffs_do_aio()
[all …]
Dusb.h63 usb_handle* create_usb_handle(unsigned num_bufs, unsigned io_size);