/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | bump.rs | 53 let area_base = (area.base.data() + (MMA::PAGE_SIZE - 1)) & !(MMA::PAGE_SIZE - 1); in allocate() 56 let area_end = (area.base.data() + area.size) & !(MMA::PAGE_SIZE - 1); in allocate() 94 let area_base = (area.base.data() + MMA::PAGE_SHIFT) & !(MMA::PAGE_SHIFT); in usage() 96 let area_end = (area.base.data() + area.size) & !(MMA::PAGE_SHIFT); in usage()
|
D | buddy.rs | 437 unsafe fn buddy_free(&mut self, mut base: PhysAddr, order: u8) { in buddy_free() 443 if base.data() & ((1 << (order)) - 1) != 0 { in buddy_free() 446 base.data(), in buddy_free() 453 let buddy_addr = PhysAddr::new(base.data() ^ (1 << order)); in buddy_free() 494 base in buddy_free() 548 unsafe { A::write(Self::entry_virt_addr(paddr, page_list.entry_num), base) } in buddy_free() 627 base = min(base, buddy_addr); in buddy_free() 650 unsafe fn free(&mut self, base: PhysAddr, count: PageFrameCount) { in free() 661 self.buddy_free(base, order); in free()
|
/DragonOS-0.1.8/user/libs/libc/src/ |
D | printf.c | 10 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags… 352 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags) in write_num() argument 366 if (base < 2 || base > 36) in write_num() 404 if (base == 16) // 0x占用2个位置 in write_num() 406 else if (base == 8) // O占用一个位置 in write_num() 419 tmp_num[js_num++] = digits[num % base]; // 注意这里,输出的数字,是小端对齐的。低位存低位 in write_num() 420 num /= base; in write_num() 437 if (base == 16) in write_num() 442 else if (base == 8) in write_num()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | printk.c | 25 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags); 383 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags) in write_num() argument 397 if (base < 2 || base > 36) in write_num() 435 if (base == 16) // 0x占用2个位置 in write_num() 437 else if (base == 8) // O占用一个位置 in write_num() 450 tmp_num[js_num++] = digits[num % base]; // 注意这里,输出的数字,是小端对齐的。低位存低位 in write_num() 451 num /= base; in write_num() 468 if (base == 16) in write_num() 473 else if (base == 8) in write_num()
|
D | lz4.c | 1159 const BYTE *base = (const BYTE *)source - startIndex; in LZ4_compress_generic_validated() local 1225 LZ4_putPosition(ip, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated() 1253 match = LZ4_getPositionOnHash(h, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated() 1255 LZ4_putPositionOnHash(ip, h, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated() 1268 U32 const current = (U32)(forwardIp - base); in LZ4_compress_generic_validated() 1271 assert(forwardIp - base < (ptrdiff_t)(2 GB - 1)); in LZ4_compress_generic_validated() 1293 match = base + matchIndex; in LZ4_compress_generic_validated() 1308 match = base + matchIndex; in LZ4_compress_generic_validated() 1314 match = base + matchIndex; in LZ4_compress_generic_validated() 1501 LZ4_putPosition(ip - 2, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated() [all …]
|
/DragonOS-0.1.8/kernel/src/driver/ |
D | mod.rs | 2 pub mod base; module
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | page.rs | 23 base: VirtAddr, field 33 pub unsafe fn new(base: VirtAddr, phys: PhysAddr, level: usize) -> Self { in new() 35 base, in new() 67 pub fn base(&self) -> VirtAddr { in base() method 68 self.base in base() 87 return Some(self.base.add(i << shift)); in entry_base() 144 if addr < self.base || addr >= self.base.add(mask) { in index_of()
|
D | mod.rs | 315 pub base: PhysAddr, field
|
/DragonOS-0.1.8/kernel/src/driver/uart/ |
D | uart.rs | 1 use super::super::base::device::Device; 3 driver::base::{ 250 ) -> Result<(), crate::driver::base::device::driver::DriverError> { in probe()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 42 base: PhysAddr::new(0), 253 PHYS_MEMORY_AREAS[areas_count].base = PhysAddr::new(mb2_mem_info[i].addr as usize); in init_memory_area_from_multiboot2() 368 let paddr = area.base.add(i * MMArch::PAGE_SIZE); in allocator_init()
|
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.7.md | 331 * 添加base mod
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | mod.rs | 140 crate::driver::base::platform::platform_bus_init().expect("platform bus init failed"); in new()
|