Lines Matching refs:HrTimer
87 pub struct HrTimer<T> { struct
95 unsafe impl<T> Send for HrTimer<T> {} implementation
99 unsafe impl<T> Sync for HrTimer<T> {} implementation
101 impl<T> HrTimer<T> { impl
163 let c_timer_ptr = unsafe { HrTimer::raw_get(this) }; in raw_cancel()
236 let c_timer_ptr = unsafe { HrTimer::raw_get(self) }; in expires()
444 unsafe fn raw_get_timer(this: *const Self) -> *const HrTimer<T>; in raw_get_timer()
455 unsafe fn timer_container_of(ptr: *mut HrTimer<T>) -> *mut Self in timer_container_of()
472 unsafe { HrTimer::raw_get(timer_ptr) } in c_timer_ptr()
692 pub struct HrTimerCallbackContext<'a, T: HasHrTimer<T>>(NonNull<HrTimer<T>>, PhantomData<&'a ()>);
706 pub(crate) unsafe fn from_raw(timer: *mut HrTimer<T>) -> Self { in from_raw()
722 unsafe { HrTimer::<T>::raw_forward(self.0.as_ptr(), now, interval) } in forward()
759 ) -> *const $crate::time::hrtimer::HrTimer<$timer_type> {
766 ptr: *mut $crate::time::hrtimer::HrTimer<$timer_type>,