Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 25 of 36) sorted by relevance

12

/DragonOS/kernel/src/arch/x86_64/mm/
H A Dbump.rs23 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 Dutils.rs1 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 Dmount.rs611 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 Dlib.rs105 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp()
106 Some(self.cmp(other)) in partial_cmp()
111 fn cmp(&self, other: &Self) -> core::cmp::Ordering { in cmp() method
112 return self.id.cmp(&other.id); in cmp()
/DragonOS/kernel/src/driver/base/char/
H A Dmod.rs152 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 Dmisc.rs7 use core::cmp;
81 let step = cmp::min(remain_len, 4); in get_random()
/DragonOS/kernel/src/mm/
H A Dmod.rs8 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 Ducontext.rs4 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 Dmemblock.rs146 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 Dkthread.rs43 let to_dequeue = core::cmp::min(KEYBUF.len(), TO_DEQUEUE_MAX); in tty_refresh_thread()
/DragonOS/kernel/src/driver/base/
H A Dkset.rs38 impl core::cmp::Eq for KSet {}
40 impl core::cmp::PartialEq for KSet {
/DragonOS/kernel/src/net/socket/
H A Dunix.rs66 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 Dblock_device.rs608 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 Dboot.rs1 use core::cmp::min;
/DragonOS/kernel/src/libs/
H A Drbtree.rs14 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()
1017 match node.cmp(&x) { in insert()
1031 match node.cmp(&y) { in insert()
1055 let next = match k.cmp(&(*temp.0).key) { in find_node()
/DragonOS/kernel/crates/ida/src/
H A Dlib.rs10 use core::cmp::min;
/DragonOS/kernel/src/arch/x86_64/asm/
H A Dhead.S194 cmp %eax, %ebx
197 cmp %eax, %ebx
H A Dentry.S130 cmp $0x3, %rcx
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dtsc.rs8 cmp::{max, min},
/DragonOS/kernel/src/exception/
H A Dsysfs.rs159 let len = core::cmp::min(name.len() + 1, buf.len()); in show()
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dsc.rs25 core::cmp::min(a, b) in cmin()
H A Dpages.rs45 let relevant_bits = core::cmp::min(capacity / for_size, self.len() * 64); in initialize()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs550 let cmp = in futex_atomic_op_inuser() localVariable
574 match cmp { in futex_atomic_op_inuser()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs2 use core::cmp::Ordering;
62 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp()
1504 match len.cmp(&old_size) { in resize()
1518 let write_size = core::cmp::min(remain_size, buf_size); in resize()
/DragonOS/kernel/src/mm/allocator/
H A Dbuddy.rs13 use core::cmp::min;

12