Searched refs:read_block (Results 1 – 3 of 3) sorted by relevance
144 void Cleanup(ReadBlock* read_block) REQUIRES(read_mutex_) { in Cleanup()145 libusb_free_transfer(read_block->transfer); in Cleanup()146 read_block->active = false; in Cleanup()147 read_block->transfer = nullptr; in Cleanup()153 bool MaybeCleanup(ReadBlock* read_block) REQUIRES(read_mutex_) { in MaybeCleanup()154 CHECK(read_block); in MaybeCleanup()155 CHECK(read_block->transfer); in MaybeCleanup()158 Cleanup(read_block); in MaybeCleanup()166 auto read_block = static_cast<ReadBlock*>(transfer->user_data); in header_read_cb() local167 auto self = read_block->self; in header_read_cb()[all …]
78 pub fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block() method80 self.partitions.read_block(index, blk) in read_block()132 self.read_block(i, &mut blk)?; in get_partition_by_name()148 fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block() method
118 instance_img.read_block(payload_index, &mut blk).map_err(Error::FailedIo)?; in get_recorded_entry()209 partition.read_block(header_index, &mut blk).map_err(Error::FailedIo)?; in locate_entry()217 partition.read_block(header_index, &mut blk).map_err(Error::FailedIo)?; in locate_entry()