Searched refs:devs (Results 1 – 2 of 2) sorted by relevance
/bootable/libbootloader/gbl/libstorage/src/ |
D | multi_blocks.rs | 45 Ok(SelectedBlockDevice { devs: self, id: id }) in get() 110 fn until_ok<F, R>(devs: &mut (impl AsMultiBlockDevices + ?Sized), mut f: F) -> Result<R> in until_ok() 115 devs.for_each_until(&mut |v, id| { in until_ok() 123 fn with_id<F, R>(devs: &mut (impl AsMultiBlockDevices + ?Sized), dev_id: u64, mut f: F) -> Result<R> in with_id() 127 until_ok(devs, |dev, id| match dev_id == id { in with_id() 136 devs: &'a mut dyn AsMultiBlockDevices, field 142 let _ = with_id(self.devs, self.id, |dev| dev.with(f)); in with() 154 let mut devs: TestMultiBlockDevices = TestMultiBlockDevices(vec![ in test_get() localVariable 158 devs.sync_gpt_all(&mut |_, _, _| panic!("GPT sync failed")); in test_get() 159 devs.get(0).unwrap(); in test_get() [all …]
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | mod.rs | 54 devs: &'a mut dyn AsMultiBlockDevices, field 69 let mut dev = (&mut self.devs).get(self.part.blk_id)?; in read() 79 let mut dev = (&mut self.devs).get(self.part.blk_id)?; in write() 128 let devs = self.storage(); in parse_partition() localVariable 144 (blk_id, devs.get(blk_id)?.total_size()?) in parse_partition() 147 Some(id) => (id, devs.get(id)?.find_partition(gpt)?.size()?), in parse_partition() 149 devs.check_part(gpt).map(|(id, p)| Ok::<_, CommandError>((id, p.size()?)))?? in parse_partition() 169 GblFbPartitionIo { part: part, devs: self.storage() } in partition_io() 286 let mut devs = TestMultiBlockDevices(vec![ in test_get_var_partition_info() localVariable 290 devs.sync_gpt_all(&mut |_, _, _| panic!("GPT sync failed")); in test_get_var_partition_info() [all …]
|