/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | bump.rs | 23 let offset_start = page_align_up(core::cmp::max(load_base + 16384, 0x200000)); in arch_remain_areas() 38 let new_start = core::cmp::max(offset_start, area_base); in arch_remain_areas() 39 let new_end = core::cmp::min(offset_end, area_end); in arch_remain_areas()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | utils.rs | 1 use core::cmp::Ordering; 103 Some(self.cmp(other)) in partial_cmp() 108 fn cmp(&self, other: &Self) -> Ordering { in cmp() method 109 return self.0.cmp(&other.0); in cmp()
|
H A D | mount.rs | 611 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() 612 Some(self.cmp(other)) in partial_cmp() 617 fn cmp(&self, other: &Self) -> core::cmp::Ordering { in cmp() method 623 other.0.cmp(&self.0) in cmp() 626 othe_dep.cmp(&self_dep) in cmp()
|
/DragonOS/kernel/crates/klog_types/src/ |
H A D | lib.rs | 104 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() 105 Some(self.cmp(other)) in partial_cmp() 110 fn cmp(&self, other: &Self) -> core::cmp::Ordering { in cmp() method 111 return self.id.cmp(&other.id); in cmp()
|
/DragonOS/kernel/src/driver/base/char/ |
H A D | mod.rs | 152 match item.device_number().major().cmp(&major) { in __register_chardev_region() 153 core::cmp::Ordering::Less => continue, in __register_chardev_region() 154 core::cmp::Ordering::Greater => { in __register_chardev_region() 157 core::cmp::Ordering::Equal => { in __register_chardev_region()
|
/DragonOS/kernel/src/syscall/ |
H A D | misc.rs | 7 use core::cmp; 80 let step = cmp::min(remain_len, 4); in get_random()
|
/DragonOS/kernel/src/mm/ |
H A D | mod.rs | 8 cmp, 835 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp() 836 Some(self.cmp(other)) in partial_cmp() 841 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp() method 842 return self.start.cmp(&other.start); in cmp()
|
H A D | ucontext.rs | 4 cmp, 947 let region = VirtRegion::new(cmp::max(*hole_vaddr, min_vaddr), *size); in find_free() 1692 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp() 1693 Some(self.cmp(other)) in partial_cmp() 1698 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp() method 1699 return self.region.cmp(&other.region); in cmp()
|
H A D | memblock.rs | 146 base = core::cmp::min(range_end, end); in do_add_block() 196 end_index = core::cmp::min(end_index, inner.initial_memory_regions_num as isize - 1); in do_merge_blocks()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | kthread.rs | 43 let to_dequeue = core::cmp::min(KEYBUF.len(), TO_DEQUEUE_MAX); in tty_refresh_thread()
|
/DragonOS/kernel/src/driver/base/ |
H A D | kset.rs | 38 impl core::cmp::Eq for KSet {} 40 impl core::cmp::PartialEq for KSet {
|
/DragonOS/kernel/src/net/socket/ |
H A D | unix.rs | 66 let len = core::cmp::min(buf.len(), buffer.len()); in read() 177 let len = core::cmp::min(buf.len(), buffer.len()); in read()
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 608 match item.device_number().major().cmp(&major) { in __register_blockdev_region() 609 core::cmp::Ordering::Less => continue, in __register_blockdev_region() 610 core::cmp::Ordering::Greater => { in __register_blockdev_region() 613 core::cmp::Ordering::Equal => { in __register_blockdev_region()
|
/DragonOS/kernel/src/init/ |
H A D | boot.rs | 1 use core::cmp::min;
|
/DragonOS/kernel/src/libs/ |
H A D | rbtree.rs | 14 use core::cmp::Ord; 15 use core::cmp::Ordering; 73 fn cmp(&self, other: &NodePtr<K, V>) -> Ordering { in cmp() method 74 unsafe { (*self.0).key.cmp(&(*other.0).key) } in cmp() 80 Some(self.cmp(other)) in partial_cmp() 1016 match node.cmp(&x) { in insert() 1030 match node.cmp(&y) { in insert() 1054 let next = match k.cmp(&(*temp.0).key) { in find_node()
|
/DragonOS/kernel/crates/ida/src/ |
H A D | lib.rs | 10 use core::cmp::min;
|
/DragonOS/kernel/src/arch/x86_64/asm/ |
H A D | head.S | 194 cmp %eax, %ebx 197 cmp %eax, %ebx
|
H A D | entry.S | 130 cmp $0x3, %rcx
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | tsc.rs | 8 cmp::{max, min},
|
/DragonOS/kernel/src/exception/ |
H A D | sysfs.rs | 159 let len = core::cmp::min(name.len() + 1, buf.len()); in show()
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | sc.rs | 25 core::cmp::min(a, b) in cmin()
|
H A D | pages.rs | 45 let relevant_bits = core::cmp::min(capacity / for_size, self.len() * 64); in initialize()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 550 let cmp = in futex_atomic_op_inuser() localVariable 574 match cmp { in futex_atomic_op_inuser()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 2 use core::cmp::Ordering; 62 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() 1506 match len.cmp(&old_size) { in resize() 1520 let write_size = core::cmp::min(remain_size, buf_size); in resize()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | buddy.rs | 13 use core::cmp::min;
|