Home
last modified time | relevance | path

Searched refs:self_ptr (Results 1 – 6 of 6) sorted by relevance

/linux/rust/kernel/time/hrtimer/
H A Dpin_mut.rs26 let self_ptr = self.inner.as_ptr(); in cancel() localVariable
28 // SAFETY: As we got `self_ptr` from a reference above, it must point to in cancel()
30 let timer_ptr = unsafe { <T as HasHrTimer<T>>::raw_get_timer(self_ptr) }; in cancel()
66 let self_ptr = unsafe { NonNull::new_unchecked(self.as_mut().get_unchecked_mut()) }; in start() localVariable
69 // - As we derive `self_ptr` from a reference above, it must point to a in start()
72 unsafe { T::start(self_ptr.as_ptr(), expires) }; in start()
75 inner: self_ptr, in start()
H A Dpin.rs28 let self_ptr: *const T = self.inner.get_ref(); in cancel() localVariable
30 // SAFETY: As we got `self_ptr` from a reference above, it must point to in cancel()
32 let timer_ptr = unsafe { <T as HasHrTimer<T>>::raw_get_timer(self_ptr) }; in cancel()
65 let self_ptr: *const T = self.get_ref(); in start() localVariable
68 // - As we derive `self_ptr` from a reference above, it must point to a in start()
71 unsafe { T::start(self_ptr, expires) }; in start()
H A Darc.rs29 let self_ptr = Arc::as_ptr(&self.inner); in cancel() localVariable
31 // SAFETY: As we obtained `self_ptr` from a valid reference above, it in cancel()
33 let timer_ptr = unsafe { <T as HasHrTimer<T>>::raw_get_timer(self_ptr) }; in cancel()
/linux/rust/kernel/list/
H A Dimpl_list_item_mod.rs278 let self_ptr = unsafe { localVariable
282 let cell_inner = $crate::types::Opaque::cast_into(self_ptr);
327 let self_ptr = unsafe { localVariable
331 let cell_inner = $crate::types::Opaque::cast_into(self_ptr);
/linux/rust/kernel/drm/gem/
H A Dmod.rs51 /// - `self_ptr` must be a valid pointer to `Self`.
54 unsafe fn from_raw<'a>(self_ptr: *mut bindings::drm_gem_object) -> &'a Self; in from_raw()
127 unsafe fn from_raw<'a>(self_ptr: *mut bindings::drm_gem_object) -> &'a Self { in from_raw()
130 unsafe { &*crate::container_of!(Opaque::cast_from(self_ptr), Object<T>, obj) } in from_raw()
/linux/rust/kernel/
H A Dlist.rs307 self_ptr: Opaque<*const T>, field
331 self_ptr: Opaque::uninit(), in new()
342 unsafe { ptr::addr_of!((*me).self_ptr) } in raw_get_self_ptr()