Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/
H A Dmmio_buddy.rs495 let mut new_size = size; in create_mmio() localVariable
499 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()
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs299 let new_size = self.size() + extra_bytes; in ensure_len() localVariable
300 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()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs230 let new_size = vc_data.cols * vc_data.rows; in con_init() localVariable
231 vc_data.screen_buf.resize(new_size, 0); in con_init()