Home
last modified time | relevance | path

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

12

/DragonOS-0.1.9/kernel/src/arch/x86_64/mm/
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()
Dmod.rs533 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
/DragonOS-0.1.9/kernel/crates/klog_types/src/
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-0.1.9/kernel/src/driver/base/char/
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-0.1.9/kernel/src/driver/tty/
Dkthread.rs48 let to_dequeue = core::cmp::min(KEYBUF.len(), TO_DEQUEUE_MAX); in tty_refresh_thread()
/DragonOS-0.1.9/kernel/src/driver/base/block/
Dblock_device.rs439 match item.device_number().major().cmp(&major) { in __register_blockdev_region()
440 core::cmp::Ordering::Less => continue, in __register_blockdev_region()
441 core::cmp::Ordering::Greater => { in __register_blockdev_region()
444 core::cmp::Ordering::Equal => { in __register_blockdev_region()
/DragonOS-0.1.9/kernel/src/mm/
Dmod.rs7 cmp,
722 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp()
728 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp() method
729 return self.start.cmp(&other.start); in cmp()
Ducontext.rs4 cmp,
741 let region = VirtRegion::new(cmp::max(*hole_vaddr, min_vaddr), *size); in find_free()
1295 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp()
1301 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp() method
1302 return self.region.cmp(&other.region); in cmp()
Dmemblock.rs145 base = core::cmp::min(range_end, end); in do_add_block()
195 end_index = core::cmp::min(end_index, inner.initial_memory_regions_num as isize - 1); in do_merge_blocks()
/DragonOS-0.1.9/kernel/src/smp/cpu/
Dc_adapter.rs55 cpu_info.sort_by(|a, b| a.apic_id.cmp(&b.apic_id)); in rs_smp_get_cpus()
/DragonOS-0.1.9/kernel/src/init/
Dmod.rs1 use core::cmp::min;
/DragonOS-0.1.9/kernel/src/driver/base/
Dkset.rs38 impl core::cmp::Eq for KSet {}
40 impl core::cmp::PartialEq for KSet {
/DragonOS-0.1.9/kernel/src/libs/
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 unsafe { Some((*self.0).key.cmp(&(*other.0).key)) } in partial_cmp()
1032 match node.cmp(&&mut x) { in insert()
1046 match node.cmp(&&mut y) { in insert()
1070 let next = match k.cmp(&(*temp.0).key) { in find_node()
Delf.rs2 cmp::{max, min},
/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/
Dtsc.rs9 cmp::{max, min},
/DragonOS-0.1.9/kernel/src/exception/
Dsysfs.rs158 let len = core::cmp::min(name.len() + 1, buf.len()); in show()
/DragonOS-0.1.9/kernel/src/libs/futex/
Dfutex.rs547 let cmp = in futex_atomic_op_inuser() localVariable
573 match cmp { in futex_atomic_op_inuser()
/DragonOS-0.1.9/kernel/src/arch/x86_64/asm/
Dentry.S131 cmp $0x3, %rcx
/DragonOS-0.1.9/kernel/src/mm/allocator/
Dbuddy.rs11 use core::cmp::min;
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/
Dvesafb.rs351 let len = core::cmp::min(size - pos, buf.len() as i64) as usize; in fb_read()
372 let len = core::cmp::min(size - pos, buf.len() as i64) as usize; in fb_write()
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/
Dmod.rs1 use core::{cmp::min, fmt::Debug, intrinsics::unlikely};
/DragonOS-0.1.9/kernel/src/filesystem/fat/
Dfs.rs51 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp()
1485 let write_size = core::cmp::min(remain_size, buf_size); in resize()
/DragonOS-0.1.9/kernel/src/net/
Dsyscall.rs1 use core::cmp::min;
/DragonOS-0.1.9/kernel/src/net/socket/
Dsockets.rs952 let len = core::cmp::min(buf.len(), buffer.len()); in read()
/DragonOS-0.1.9/kernel/src/filesystem/vfs/
Dsyscall.rs1096 let len = core::cmp::min(slice.len(), data.len()); in scatter()

12