Lines Matching refs:control
91 struct iocb control = {}; member
94 TransferId id() const { return TransferId::from_value(control.aio_data); } in id()
144 UsbFfsConnection(unique_fd control, unique_fd read, unique_fd write, in UsbFfsConnection()
149 control_fd_(std::move(control)), in UsbFfsConnection()
466 block->control.aio_data = static_cast<uint64_t>(TransferId::read(id)); in PrepareReadBlock()
467 block->control.aio_buf = reinterpret_cast<uintptr_t>(block->payload.data()); in PrepareReadBlock()
468 block->control.aio_nbytes = block->payload.size(); in PrepareReadBlock()
474 block.control.aio_rw_flags = 0; in CreateReadBlock()
475 block.control.aio_lio_opcode = IOCB_CMD_PREAD; in CreateReadBlock()
476 block.control.aio_reqprio = 0; in CreateReadBlock()
477 block.control.aio_fildes = read_fd_.get(); in CreateReadBlock()
478 block.control.aio_offset = 0; in CreateReadBlock()
479 block.control.aio_flags = IOCB_FLAG_RESFD; in CreateReadBlock()
480 block.control.aio_resfd = worker_event_fd_.get(); in CreateReadBlock()
603 struct iocb* iocb = &block->control; in SubmitRead()
629 block.control.aio_data = static_cast<uint64_t>(TransferId::write(id)); in CreateWriteBlock()
630 block.control.aio_rw_flags = 0; in CreateWriteBlock()
631 block.control.aio_lio_opcode = IOCB_CMD_PWRITE; in CreateWriteBlock()
632 block.control.aio_reqprio = 0; in CreateWriteBlock()
633 block.control.aio_fildes = write_fd_.get(); in CreateWriteBlock()
634 block.control.aio_buf = reinterpret_cast<uintptr_t>(block.payload->data() + offset); in CreateWriteBlock()
635 block.control.aio_nbytes = len; in CreateWriteBlock()
636 block.control.aio_offset = 0; in CreateWriteBlock()
637 block.control.aio_flags = IOCB_FLAG_RESFD; in CreateWriteBlock()
638 block.control.aio_resfd = worker_event_fd_.get(); in CreateWriteBlock()
663 iocbs[i] = &write_requests_[writes_submitted_ + i].control; in SubmitWrites()
744 unique_fd control; in usb_ffs_open_thread() local
747 if (!open_functionfs(&control, &bulk_out, &bulk_in)) { in usb_ffs_open_thread()
763 std::move(control), std::move(bulk_out), std::move(bulk_in), in usb_ffs_open_thread()