Home
last modified time | relevance | path

Searched refs:max (Results 1 – 22 of 22) sorted by relevance

/DragonOS/kernel/src/sched/
H A Dcputime.rs45 pub fn irqtime_tick_accounted(&mut self, max: u64) -> u64 { in irqtime_tick_accounted()
46 let delta = self.tick_delta.min(max); in irqtime_tick_accounted()
90 pub fn account_other_time(max: u64) -> u64 { in account_other_time()
93 let mut accounted = Self::steal_account_process_time(max); in account_other_time()
95 if accounted < max { in account_other_time()
97 accounted += irqtime.irqtime_tick_accounted(max - accounted); in account_other_time()
H A Dfair.rs511 slice = min_gran.max(slice) in sched_slice()
878 .max((self.avg.util_avg * PELT_MIN_DIVIDER) as u64); in detach_entity_load_avg()
888 .max((self.avg.runnable_avg * PELT_MIN_DIVIDER) as u64); in detach_entity_load_avg()
919 .max((self.avg.load_avg * PELT_MIN_DIVIDER) as u64); in update_self_load_avg()
927 .max((self.avg.util_avg * PELT_MIN_DIVIDER) as u64); in update_self_load_avg()
935 .max((self.avg.runnable_avg * PELT_MIN_DIVIDER) as u64); in update_self_load_avg()
1094 let limit = se.calculate_delta_fair((TICK_NESC as u64).max(2 * se.slice)) as i64; in update_entity_lag()
1241 .max((self.avg.load_avg * PELT_MIN_DIVIDER) as u64) in dequeue_load_avg()
1267 .max((self.avg.util_avg * PELT_MIN_DIVIDER) as u64); in update_task_group_util()
1293 .max((self.avg.runnable_avg * PELT_MIN_DIVIDER) as u64); in update_task_group_runnable()
[all …]
H A Dpelt.rs251 *x = res.max(0); in add_positive()
/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()
/DragonOS/kernel/crates/rbpf/src/
H A Dhelpers.rs259 pub fn rand(min: u64, max: u64, unused3: u64, unused4: u64, unused5: u64) -> u64 { in rand()
261 if min < max { in rand()
262 n = n % (max + 1 - min) + min; in rand()
/DragonOS/kernel/src/common/
H A Dglib.h33 #define max(x, y) ((x > y) ? (x) : (y)) macro
/DragonOS/kernel/src/libs/
H A Dalign.rs24 const fn max(a: usize, b: usize) -> usize { in max() method
33 max(ALIGN, core::mem::align_of::<T>()),
H A Delf.rs2 cmp::{max, min},
611 max_address = max( in load()
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dvirtual_console.rs1069 let mut max = color.red.max(color.green); in csi_m() localVariable
1070 max = max.max(color.blue); in csi_m()
1073 if color.red > max / 2 { in csi_m()
1076 if color.green > max / 2 { in csi_m()
1079 if color.blue > max / 2 { in csi_m()
1083 if hue == 7 && max <= 0x55 { in csi_m()
1086 } else if max > 0xaa { in csi_m()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dtsc.rs8 cmp::{max, min},
275 tscmax = max(tscmax, delta); in pit_calibrate_tsc()
/DragonOS/kernel/crates/bitmap/src/
H A Dtraits.rs26 fn max() -> Self; in max() method
196 fn max() -> Self {
H A Dbitmap_core.rs47 let val = if value { T::max() } else { T::zero() }; in set_all()
233 mask = T::max(); in is_full()
/DragonOS/kernel/src/mm/
H A Dfault.rs3 cmp::{max, min},
549 let from_pte = max( in do_fault_around()
H A Dmod.rs744 let start = self.start.max(other.start); in intersect()
H A Ducontext.rs947 let region = VirtRegion::new(cmp::max(*hole_vaddr, min_vaddr), *size); in find_free()
/DragonOS/kernel/src/time/
H A Dtimekeeping.rs413 shift = shift.max(0); in update_wall_time()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs114 .max(fb_info.current_fb_var().red.length); in mono_color()
116 max_len = max_len.max(fb_info.current_fb_var().blue.length); in mono_color()
/DragonOS/kernel/src/libs/lib_ui/
H A Dtextui.rs140 pub fn check(&self, max: i32) -> bool { in check()
141 self.0 < max && self.0 >= 0 in check()
/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs63 let start = usize::max(self.lba_start, rhs.lba_start); in intersects_with()
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs519 let visiable_x = s_relative_x.max(d_relative_x); in fb_copyarea()
520 let visiable_y = s_relative_y.max(d_relative_y); in fb_copyarea()
/DragonOS/user/apps/user-manage/src/check/
H A Dcheck.rs137 max_gid = max_gid.max(u32::from_str_radix(data[2], 10).unwrap()); in check_group_gid()
/DragonOS/kernel/src/net/socket/
H A Dinet.rs817 let backlog = handlen.max(backlog); in listen()