Searched refs:BlockIoError (Results 1 – 4 of 4) sorted by relevance
/bootable/libbootloader/gbl/libstorage/src/ |
D | testlib.rs | 18 AsMultiBlockDevices, BlockDeviceEx, BlockInfo, BlockIo, BlockIoError, GptEntry, GptHeader, 104 fn read_blocks(&mut self, blk_offset: u64, out: &mut [u8]) -> Result<(), BlockIoError> { in read_blocks() argument 109 fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<(), BlockIoError> { in write_blocks() argument 136 ) -> core::result::Result<(), BlockIoError> { in write_blocks() argument 138 Some(_) => Err(BlockIoError::MediaBusy), in write_blocks() 156 ) -> core::result::Result<(), BlockIoError> { in read_blocks() argument 158 Some(_) => Err(BlockIoError::MediaBusy), in read_blocks() 197 fn abort(&mut self) -> core::result::Result<(), BlockIoError> { in abort() argument
|
D | non_blocking.rs | 16 is_aligned, is_buffer_aligned, BlockInfo, BlockIo, BlockIoError, Result, StorageError, 76 ) -> core::result::Result<(), BlockIoError>; in write_blocks() argument 102 ) -> core::result::Result<(), BlockIoError>; in read_blocks() argument 128 fn abort(&mut self) -> core::result::Result<(), BlockIoError>; in abort() argument 141 ) -> core::result::Result<(), BlockIoError> { in read_blocks() argument 151 IoStatus::Aborted => return Err(BlockIoError::Others(Some("Read aborted"))), in read_blocks() 161 ) -> core::result::Result<(), BlockIoError> { in write_blocks() argument 171 IoStatus::Aborted => return Err(BlockIoError::Others(Some("write aborted"))), in write_blocks()
|
D | lib.rs | 127 BlockIoError(BlockIoError), enumerator 152 impl From<BlockIoError> for StorageError { 153 fn from(val: BlockIoError) -> Self { in from() 154 Self::BlockIoError(val) in from() 186 pub enum BlockIoError { enum 231 ) -> core::result::Result<(), BlockIoError>; in read_blocks() argument 249 ) -> core::result::Result<(), BlockIoError>; in write_blocks() argument
|
/bootable/libbootloader/gbl/efi/src/ |
D | utils.rs | 32 required_scratch_size, AsBlockDevice, AsMultiBlockDevices, BlockInfo, BlockIo, BlockIoError, 79 ) -> core::result::Result<(), BlockIoError> { in read_blocks() argument 82 .map_err(|_| BlockIoError::Others(Some("EFI BLOCK_IO protocol read error"))) in read_blocks() 89 ) -> core::result::Result<(), BlockIoError> { in write_blocks() argument 92 .map_err(|_| BlockIoError::Others(Some("EFI BLOCK_IO protocol write error"))) in write_blocks()
|