Home
last modified time | relevance | path

Searched refs:TransferId (Results 1 – 3 of 3) sorted by relevance

/packages/modules/adb/
Dtransfer_id.h27 struct TransferId { struct
31 constexpr TransferId() : TransferId(TransferDirection::READ, 0) {} in TransferId() function
32 TransferId(const TransferId& copy) = default;
33 TransferId(TransferId&& move) = default;
35 TransferId& operator=(const TransferId& copy) = default; argument
36 TransferId& operator=(TransferId&& move) = default; argument
39 constexpr TransferId(TransferDirection direction, uint64_t id) : direction(direction), id(id) {} in TransferId() argument
42 bool operator==(const TransferId& rhs) const {
50 static constexpr TransferId read(uint64_t id) { in read() argument
51 return TransferId(TransferDirection::READ, id); in read()
[all …]
/packages/modules/adb/daemon/
Dusb.cpp94 TransferId id() const { return TransferId::from_value(control.aio_data); } in id()
466 block->control.aio_data = static_cast<uint64_t>(TransferId::read(id)); in PrepareReadBlock()
496 TransferId id = TransferId::from_value(event.data); in ReadEvents()
531 bool HandleRead(TransferId id, int64_t size) { in HandleRead()
612 void HandleWrite(TransferId id) { in HandleWrite()
629 block.control.aio_data = static_cast<uint64_t>(TransferId::write(id)); in CreateWriteBlock()
/packages/modules/adb/client/
Dusb_libusb.cpp112 TransferId id;
286 write->id = TransferId::write(next_write_id_++); in SubmitWrite()
686 std::unordered_map<TransferId, std::unique_ptr<WriteBlock>> writes_ GUARDED_BY(write_mutex_);