Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 8 of 8) sorted by relevance

/DragonOS-0.1.9/kernel/src/time/
Dtimekeeping.rs46 shift: i32, field
72 shift: Default::default(), in new()
117 let mut temp = NTP_INTERVAL_LENGTH << clock_data.shift; in timekeeper_setup_internals()
126 timekeeper.raw_interval = (timekeeper.xtime_interval >> clock_data.shift) as i64; in timekeeper_setup_internals()
128 timekeeper.shift = clock_data.shift as i32; in timekeeper_setup_internals()
131 timekeeper.ntp_error_shift = (NTP_SCALE_SHIFT - clock_data.shift) as i32; in timekeeper_setup_internals()
145 return clocksource_cyc2ns(CycleNum(clock_delta), clcok_data.mult, clcok_data.shift); in tk_get_ns()
Dclocksource.rs258 cs_data_guard.shift, in clocksource_max_deferment()
552 pub shift: u32, field
565 shift: u32, in new()
574 shift, in new()
594 pub fn set_shift(&mut self, shift: u32) { in set_shift()
595 self.shift = shift; in set_shift()
615 pub fn clocksource_cyc2ns(cycles: CycleNum, mult: u32, shift: u32) -> u64 { in clocksource_cyc2ns()
616 return (cycles.data() * mult as u64) >> shift; in clocksource_cyc2ns()
671 cur_wd_data.shift, in clocksource_watchdog()
708 cs_data.shift, in clocksource_watchdog()
Djiffies.rs56 d.set_shift(_data.shift); in update_clocksource_data()
71 shift: JIFFIES_SHIFT, in new()
/DragonOS-0.1.9/kernel/crates/bitmap/src/
Dtraits.rs23 fn make_mask(shift: usize) -> Self; in make_mask()
177 fn make_mask(shift: usize) -> Self {
178 if shift == <$target>::BITS as usize {
181 (1 << shift) - 1
/DragonOS-0.1.9/kernel/src/mm/
Dpage.rs86 let shift = self.level * Arch::PAGE_ENTRY_SHIFT + Arch::PAGE_SHIFT; in entry_base() localVariable
87 return Some(self.base.add(i << shift)); in entry_base()
141 let shift = self.level * Arch::PAGE_ENTRY_SHIFT + Arch::PAGE_SHIFT; in index_of() localVariable
143 let mask = (MMArch::PAGE_ENTRY_NUM << shift) - 1; in index_of()
147 return Some((addr.data() >> shift) & MMArch::PAGE_ENTRY_MASK); in index_of()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/
Dmod.rs163 let mut shift; in fast_imageblit() localVariable
169 shift = 8; in fast_imageblit()
228 shift -= ppw; in fast_imageblit()
229 *dst = color_tab[(image.data[src] as usize >> shift) & bitmask]; in fast_imageblit()
231 if shift == 0 { in fast_imageblit()
232 shift = 8; in fast_imageblit()
/DragonOS-0.1.9/docs/community/code_contribution/
Dc-coding-style.md13 &emsp;&emsp;当您在编码时,经常性的按下`Ctrl+shift+I`或您设置的代码格式化快捷键,能帮助您始终保持良好的代码格式。
/DragonOS-0.1.9/kernel/src/libs/futex/
Dfutex.rs551 let shift = (31 - index) as u8; in futex_atomic_op_inuser() localVariable
552 return (value << shift) >> shift; in futex_atomic_op_inuser()