Home
last modified time | relevance | path

Searched refs:GptEntry (Results 1 – 3 of 3) sorted by relevance

/bootable/libbootloader/gbl/libstorage/src/
Dgpt.rs61 pub struct GptEntry { struct
70 impl GptEntry { argument
102 impl core::fmt::Display for GptEntry { implementation
114 const GPT_ENTRY_ALIGNMENT: u64 = align_of::<GptEntry>() as u64;
115 const GPT_ENTRY_SIZE: u64 = size_of::<GptEntry>() as u64;
222 pub(crate) fn entries(&self) -> Result<&[GptEntry]> { in entries() argument
224 Ok(&Ref::<_, [GptEntry]>::new_slice(&self.primary_entries[..]).unwrap().into_slice() in entries()
233 pub(crate) fn find_partition(&self, part: &str) -> Result<&GptEntry> { in find_partition() argument
346 - (SafeNum::from(self.info.max_entries) * core::mem::size_of::<GptEntry>()); in load_and_sync()
372 Ref::<_, [GptEntry]>::new_slice(&self.primary_entries[..]).unwrap().into_slice(); in load_and_sync()
Dtestlib.rs18 AsMultiBlockDevices, BlockDeviceEx, BlockInfo, BlockIo, BlockIoError, GptEntry, GptHeader,
448 let entry_blocks: u64 = ((SafeNum::from(partitions.len()) * std::mem::size_of::<GptEntry>()) in partitions_to_disk_data()
466 entries_size: std::mem::size_of::<GptEntry>() as u32, in partitions_to_disk_data()
471 let entries: Vec<GptEntry> = partitions in partitions_to_disk_data()
478 let mut entry = GptEntry { in partitions_to_disk_data()
Dlib.rs109 pub use gpt::{GptEntry, GptHeader, GPT_MAGIC, GPT_NAME_LEN_U16};
255 entry: GptEntry,
261 fn new(entry: GptEntry, block_size: u64) -> Self { in new() argument
278 pub fn gpt_entry(&self) -> &GptEntry { in gpt_entry() argument