Home
last modified time | relevance | path

Searched refs:mult (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/time/
H A Dtimekeeping.rs62 mult: u32, field
82 mult: Default::default(), in new()
128 temp += (clock_data.mult / 2) as u64; in timekeeper_setup_internals()
132 timekeeper.xtime_interval = temp * clock_data.mult as u64; in timekeeper_setup_internals()
142 timekeeper.mult = clock_data.mult; in timekeeper_setup_internals()
155 timekeeper.mult, in timekeeping_get_ns()
169 let mut mult = 1; in timekeeping_bigadjust() localVariable
175 mult = -1; in timekeeping_bigadjust()
184 mult <<= adj; in timekeeping_bigadjust()
186 return (interval, offset, mult); in timekeeping_bigadjust()
[all …]
H A Dclocksource.rs279 max_cycles = (1 << (63 - (log2(cs_data_guard.mult + cs_data_guard.maxadj) + 1))) as u64; in clocksource_max_deferment()
283 cs_data_guard.mult - cs_data_guard.maxadj, in clocksource_max_deferment()
295 let mut mult = (maxsec as u64 * from as u64) >> 32; in clocks_calc_mult_shift() localVariable
296 while mult != 0 { in clocks_calc_mult_shift()
297 mult >>= 1; in clocks_calc_mult_shift()
304 mult = (to as u64) << sft; in clocks_calc_mult_shift()
305 mult += from as u64 / 2; in clocks_calc_mult_shift()
306 mult /= from as u64; in clocks_calc_mult_shift()
307 if (mult >> sftacc) == 0 { in clocks_calc_mult_shift()
312 return (mult as u32, sft); in clocks_calc_mult_shift()
[all …]
H A Djiffies.rs56 d.set_mult(data.mult); in update_clocksource_data()
78 mult: NSEC_PER_JIFFY << JIFFIES_SHIFT, in new()
/DragonOS/kernel/src/driver/clocksource/
H A Dacpi_pm.rs86 mult: 0, in new()
125 d.set_mult(data.mult); in update_clocksource_data()