Searched refs:buf_size (Results 1 – 8 of 8) sorted by relevance
/DragonOS/kernel/src/libs/ |
H A D | printk.c | 54 static int __do_vsprintf(char *buf, const char *fmt, int buf_size, va_list args) in __do_vsprintf() argument 70 if (buf_size != -1) in __do_vsprintf() 72 end = buf + buf_size; in __do_vsprintf() 336 if (buf_size > 0) in __do_vsprintf() 346 return buf_size; in __do_vsprintf() 378 int vsnprintf(char *buf, const char *fmt, int buf_size, va_list args) in vsnprintf() argument 380 return __do_vsprintf(buf, fmt, buf_size, args); in vsnprintf()
|
H A D | elf.rs | 335 let buf_size = min(size, Self::FILE_READ_BUF_SIZE); in do_load_file() localVariable 336 let mut buf = vec![0u8; buf_size]; in do_load_file() 343 let read_size = min(remain, buf_size); in do_load_file()
|
/DragonOS/kernel/src/driver/video/ |
H A D | mod.rs | 87 let buf_size = bp.screen_info.lfb_size; in init_frame_buffer() localVariable 89 let mmio_guard = mmio_pool().create_mmio(page_align_up(buf_size)).unwrap(); in init_frame_buffer() 106 .map_phys_with_flags(paddr, page_align_up(buf_size), page_flags) in init_frame_buffer() 288 manager.device_buffer().buf_size() as usize, in run()
|
/DragonOS/kernel/src/libs/lib_ui/ |
H A D | screen_manager.rs | 141 pub fn buf_size(&self) -> usize { in buf_size() method 165 assert!(self.buf_size() == src.buf_size()); in copy_from_nonoverlapping() 168 let len = self.buf_size() / core::mem::size_of::<u32>(); in copy_from_nonoverlapping() 188 let len = src.buf_size() / core::mem::size_of::<u8>(); in copy_from_nonoverlapping()
|
H A D | textui.rs | 307 let len = buf.buf_size() / 4; in new()
|
/DragonOS/kernel/src/common/ |
H A D | printk.h | 56 int vsnprintf(char *buf, const char *fmt, int buf_size, va_list args);
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 1560 buf_size: usize, in readlink_at() 1566 let mut user_buf = UserBufferWriter::new(user_buf, buf_size, true)?; in readlink_at() 1579 let len = file.read(buf_size, ubuf)?; in readlink_at() 1587 buf_size: usize, in readlink() 1589 return Self::readlink_at(AtFlags::AT_FDCWD.bits(), path, user_buf, buf_size); in readlink()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 1514 let buf_size = remain_size; in resize() localVariable 1516 buf.resize(buf_size, 0); in resize() 1520 let write_size = core::cmp::min(remain_size, buf_size); in resize()
|