Searched refs:write_block (Results 1 – 3 of 3) sorted by relevance
83 pub fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block() method85 self.partitions.write_block(index, blk) in write_block()152 fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block() method
147 instance_img.write_block(payload_index, &blk).map_err(Error::FailedIo)?; in record_instance_entry()152 instance_img.write_block(header_index, &blk).map_err(Error::FailedIo)?; in record_instance_entry()
253 auto write_block = static_cast<WriteBlock*>(transfer->user_data); in write_cb() local254 auto self = write_block->self; in write_cb()261 self->writes_.erase(write_block->id); in write_cb()690 auto const& [id, write_block] = write_item; in CloseDevice()691 int rc = libusb_cancel_transfer(write_block->transfer); in CloseDevice()697 libusb_free_transfer(write_block->transfer); in CloseDevice()