Lines Matching refs:bindings
34 pub const NSEC_PER_USEC: i64 = bindings::NSEC_PER_USEC as i64;
37 pub const NSEC_PER_MSEC: i64 = bindings::NSEC_PER_MSEC as i64;
40 pub const NSEC_PER_SEC: i64 = bindings::NSEC_PER_SEC as i64;
53 unsafe { bindings::__msecs_to_jiffies(msecs) } in msecs_to_jiffies()
73 const ID: bindings::clockid_t;
78 fn ktime_get() -> bindings::ktime_t; in ktime_get()
97 const ID: bindings::clockid_t = bindings::CLOCK_MONOTONIC as bindings::clockid_t;
99 fn ktime_get() -> bindings::ktime_t { in ktime_get()
101 unsafe { bindings::ktime_get() } in ktime_get()
124 const ID: bindings::clockid_t = bindings::CLOCK_REALTIME as bindings::clockid_t;
126 fn ktime_get() -> bindings::ktime_t { in ktime_get()
128 unsafe { bindings::ktime_get_real() } in ktime_get()
144 const ID: bindings::clockid_t = bindings::CLOCK_BOOTTIME as bindings::clockid_t;
146 fn ktime_get() -> bindings::ktime_t { in ktime_get()
148 unsafe { bindings::ktime_get_boottime() } in ktime_get()
168 const ID: bindings::clockid_t = bindings::CLOCK_TAI as bindings::clockid_t;
170 fn ktime_get() -> bindings::ktime_t { in ktime_get()
172 unsafe { bindings::ktime_get_clocktai() } in ktime_get()
184 inner: bindings::ktime_t,
230 pub(crate) unsafe fn from_ktime(ktime: bindings::ktime_t) -> Self { in from_ktime()
421 unsafe { bindings::div64_s64(self.value, rhs.value) } in div()
512 bindings::ktime_to_us(n) + add in as_micros_ceil()
527 bindings::ktime_to_ms(self.as_nanos()) in as_millis()
553 bindings::ktime_to_ms(n) + add in as_millis_ceil()
575 unsafe { bindings::div_s64_rem(self.as_nanos(), dividend, &mut rem) }; in rem_nanos()