Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/time/
Dtimekeeping.rs43 shift: i32, field
69 shift: Default::default(), in new()
114 let mut temp = NTP_INTERVAL_LENGTH << clock_data.shift; in timekeeper_setup_internals()
123 timekeeper.raw_interval = (timekeeper.xtime_interval >> clock_data.shift) as i64; in timekeeper_setup_internals()
125 timekeeper.shift = clock_data.shift as i32; in timekeeper_setup_internals()
128 timekeeper.ntp_error_shift = (NTP_SCALE_SHIFT - clock_data.shift) as i32; in timekeeper_setup_internals()
141 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.rs55 d.set_shift(_data.shift); in update_clocksource_data()
70 shift: JIFFIES_SHIFT, in new()
/DragonOS-0.1.8/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.8/docs/community/code_contribution/
Dc-coding-style.md13 &emsp;&emsp;当您在编码时,经常性的按下`Ctrl+shift+I`或您设置的代码格式化快捷键,能帮助您始终保持良好的代码格式。