Lines Matching refs:max_entries
137 max_entries: u64, field
174 pub(crate) fn new_from_buffer(max_entries: u64, buffer: &'a mut [u8]) -> Result<Gpt<'a>> { in new_from_buffer()
175 if max_entries > GPT_MAX_NUM_ENTRIES in new_from_buffer()
176 || buffer.len() < Self::required_buffer_size(max_entries)? in new_from_buffer()
182 GptInfo { num_valid_entries: None, max_entries, block_size: 0 }; in new_from_buffer()
194 let entries_size = SafeNum::from(info.max_entries) * GPT_ENTRY_SIZE; in from_existing()
211 pub(crate) fn required_buffer_size(max_entries: u64) -> Result<usize> { in required_buffer_size()
212 let entries_size = SafeNum::from(max_entries) * GPT_ENTRY_SIZE; in required_buffer_size()
277 if self.info.max_entries < header.entries_count.into() in validate_gpt()
346 - (SafeNum::from(self.info.max_entries) * core::mem::size_of::<GptEntry>()); in load_and_sync()
376 _ => self.info.max_entries, in load_and_sync()