Lines Matching full:bindings
33 pub const NSEC_PER_USEC: i64 = bindings::NSEC_PER_USEC as i64;
36 pub const NSEC_PER_MSEC: i64 = bindings::NSEC_PER_MSEC as i64;
39 pub const NSEC_PER_SEC: i64 = bindings::NSEC_PER_SEC as i64;
52 unsafe { bindings::__msecs_to_jiffies(msecs) } in msecs_to_jiffies()
66 const ID: bindings::clockid_t;
71 fn ktime_get() -> bindings::ktime_t; in ktime_get()
88 const ID: bindings::clockid_t = bindings::CLOCK_MONOTONIC as bindings::clockid_t;
90 fn ktime_get() -> bindings::ktime_t { in ktime_get()
92 unsafe { bindings::ktime_get() } in ktime_get()
113 const ID: bindings::clockid_t = bindings::CLOCK_REALTIME as bindings::clockid_t;
115 fn ktime_get() -> bindings::ktime_t { in ktime_get()
117 unsafe { bindings::ktime_get_real() } in ktime_get()
131 const ID: bindings::clockid_t = bindings::CLOCK_BOOTTIME as bindings::clockid_t;
133 fn ktime_get() -> bindings::ktime_t { in ktime_get()
135 unsafe { bindings::ktime_get_boottime() } in ktime_get()
153 const ID: bindings::clockid_t = bindings::CLOCK_TAI as bindings::clockid_t;
155 fn ktime_get() -> bindings::ktime_t { in ktime_get()
157 unsafe { bindings::ktime_get_clocktai() } in ktime_get()
169 inner: bindings::ktime_t,
297 bindings::ktime_to_us(self.as_nanos().saturating_add(NSEC_PER_USEC - 1)) in as_micros_ceil()
312 bindings::ktime_to_ms(self.as_nanos()) in as_millis()