Home
last modified time | relevance | path

Searched refs:scratch (Results 1 – 5 of 5) sorted by relevance

/bootable/libbootloader/gbl/libgbl/src/
Dops.rs145 scratch: &'b mut [u8], field
159 pub fn new(ops: &'a mut T, scratch: &'b mut [u8]) -> GblResult<(Self, &'b mut [u8])> { in new()
161 let (scratch, remaining) = scratch.split_at_mut(total_scratch_size); in new()
162 Ok((Self { ops: ops, scratch: scratch }, remaining)) in new()
176 let scratch = in for_each() localVariable
177 &mut self.scratch[scratch_offset.try_into().unwrap()..][..scratch_size]; in for_each()
179 f(&mut BlockDevice::new(io, scratch, max_gpt_entries), id); in for_each()
/bootable/libbootloader/gbl/libstorage/src/
Dlib.rs484 scratch: &'b mut [u8], field
489 pub fn new(io: &'a mut dyn BlockIo, scratch: &'b mut [u8], max_gpt_entries: u64) -> Self { in new()
490 Self { io, scratch, max_gpt_entries } in new()
496 f(self.io, self.scratch, self.max_gpt_entries) in with()
523 dev.with(&mut |io, scratch, max_entries| { in with_partitioned_scratch()
525 if scratch.len() < required_scratch_size(io, max_entries)? { in with_partitioned_scratch()
528 let (alignment, gpt) = scratch.split_at_mut(alignment_scratch_size(io)?); in with_partitioned_scratch()
583 scratch: &mut [u8], in read_aligned_offset_and_buffer()
599 let block_scratch = &mut scratch[..block_size.try_into()?]; in read_aligned_offset_and_buffer()
617 scratch: &mut [u8], in read_aligned_buffer()
[all …]
Dgpt.rs254 scratch: &mut [u8], in validate_gpt()
267 read(blk_dev, header_start.try_into()?, header_bytes, scratch)?; in validate_gpt()
295 read(blk_dev, entries_offset.try_into()?, out, scratch)?; in validate_gpt()
304 scratch: &mut [u8], in load_and_sync()
319 let primary_valid = self.validate_gpt(blk_dev, scratch, HeaderType::Primary)?; in load_and_sync()
320 let secondary_valid = self.validate_gpt(blk_dev, scratch, HeaderType::Secondary)?; in load_and_sync()
336 write_bytes_mut(blk_dev, primary_header_pos, primary_header.as_bytes_mut(), scratch)?; in load_and_sync()
341 scratch, in load_and_sync()
360 scratch, in load_and_sync()
366 scratch, in load_and_sync()
[all …]
Dtestlib.rs213 pub scratch: Vec<u8>, field
231 f(&mut self.io, &mut self.scratch[..], self.max_gpt_entries) in with()
407 scratch: vec![0u8; scratch_size], in build()
/bootable/libbootloader/gbl/efi/src/
Dutils.rs99 scratch: Vec<u8>, field
108 let scratch = vec![0u8; required_scratch_size(&mut io, MAX_GPT_ENTRIES)?]; in new() localVariable
109 Ok(Self { io, scratch }) in new()
115 f(&mut self.io, &mut self.scratch[..], MAX_GPT_ENTRIES) in with()