Lines Matching refs:scratch
254 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()
387 scratch: &mut [u8], in gpt_sync()
389 gpt.load_and_sync(blk_dev, scratch) in gpt_sync()
427 let (_, gpt) = dev.scratch.split_at_mut(alignment_scratch_size(&mut dev.io).unwrap()); in gpt()
445 dev.scratch = vec![0u8; dev.scratch.len() - 1]; in test_gpt_buffer_too_small()