Searched refs:new_size (Results 1 – 3 of 3) sorted by relevance
495 let mut new_size = size; in create_mmio() localVariable499 new_size = PAGE_4K_SIZE; in create_mmio()501 } else if (new_size & (!(1 << size_exp))) != 0 { in create_mmio()504 new_size = 1 << size_exp; in create_mmio()509 unsafe { MMIOSpaceGuard::from_raw(region.vaddr, new_size, false) }; in create_mmio()
299 let new_size = self.size() + extra_bytes; in ensure_len() localVariable300 self.set_size(new_size as u32); in ensure_len()335 pub fn truncate(&mut self, fs: &Arc<FATFileSystem>, new_size: u64) -> Result<(), SystemError> { in truncate()336 if new_size >= self.size() { in truncate()340 let new_last_cluster = new_size.div_ceil(fs.bytes_per_cluster()); in truncate()347 if new_size == 0 { in truncate()353 self.set_size(new_size as u32); in truncate()
230 let new_size = vc_data.cols * vc_data.rows; in con_init() localVariable231 vc_data.screen_buf.resize(new_size, 0); in con_init()