Searched refs:sec (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/time/ |
H A D | mod.rs | 61 pub fn new(sec: i64, nsec: i64) -> PosixTimeSpec { in new() 63 tv_sec: sec, in new() 104 let sec = self.tv_sec.checked_sub(rhs.tv_sec).unwrap_or(0); in sub() localVariable 106 Duration::from_micros((sec * 1000000 + nsec / 1000) as u64) in sub() 180 pub fn mktime64(year0: u32, mon0: u32, day: u32, hour: u32, min: u32, sec: u32) -> Self { in mktime64() 186 let sec: u64 = sec.into(); in mktime64() localVariable 202 + sec; /* finally seconds */ in mktime64()
|
H A D | clocksource.rs | 327 let mut sec: u64 = cs_data.mask.bits(); in clocksource_update_freq_scale() localVariable 329 sec /= freq as u64; in clocksource_update_freq_scale() 330 sec /= scale as u64; in clocksource_update_freq_scale() 331 if sec == 0 { in clocksource_update_freq_scale() 332 sec = 1; in clocksource_update_freq_scale() 333 } else if sec > 600 && cs_data.mask.bits() > u32::MAX as u64 { in clocksource_update_freq_scale() 334 sec = 600; in clocksource_update_freq_scale() 338 self.clocks_calc_mult_shift(freq, NSEC_PER_SEC / scale, sec as u32 * scale); in clocksource_update_freq_scale()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | syscall.rs | 49 let sec: i64 = timeout as i64 / 1000; in epoll_wait() localVariable 52 timespec = Some(PosixTimeSpec::new(sec, nsec)) in epoll_wait()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 274 let sec = time.tv_sec; in futex_wait() localVariable 276 let jiffies = next_n_us_timer_jiffies((nsec / 1000 + sec * 1_000_000) as u64); in futex_wait()
|