Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Dmmio_buddy.rs492 let mut new_size = size; in create_mmio() localVariable
496 new_size = PAGE_4K_SIZE as usize; in create_mmio()
498 } else if (new_size & (!(1 << size_exp))) != 0 { in create_mmio()
501 new_size = 1 << size_exp; in create_mmio()
512 unsafe { *res_length = new_size as u64 }; in create_mmio()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs304 let new_size = self.size() + extra_bytes; in ensure_len() localVariable
305 self.set_size(new_size as u32); in ensure_len()
343 pub fn truncate(&mut self, fs: &Arc<FATFileSystem>, new_size: u64) -> Result<(), SystemError> { in truncate()
344 if new_size >= self.size() { in truncate()
348 let new_last_cluster = (new_size + fs.bytes_per_cluster() - 1) / fs.bytes_per_cluster(); in truncate()
355 if new_size == 0 { in truncate()
361 self.set_size(new_size as u32); in truncate()