Lines Matching refs:T
24 struct Inner<T: Send> {
26 data: Revocable<T>,
108 pub struct Devres<T: Send> {
121 inner: Opaque<Inner<T>>,
124 impl<T: Send> Devres<T> {
131 data: impl PinInit<T, E> + 'a, in new() argument
134 T: 'a, in new()
166 fn inner(&self) -> &Inner<T> { in inner() argument
172 fn data(&self) -> &Revocable<T> { in data() argument
180 let inner = unsafe { &*ptr.cast::<Inner<T>>() }; in devres_callback()
240 pub fn access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a T> { in access() argument
252 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument
257 pub fn try_access_with<R, F: FnOnce(&T) -> R>(&self, f: F) -> Option<R> { in try_access_with()
262 pub fn try_access_with_guard<'a>(&'a self, guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard() argument
268 unsafe impl<T: Send> Send for Devres<T> {}
271 unsafe impl<T: Send + Sync> Sync for Devres<T> {}
274 impl<T: Send> PinnedDrop for Devres<T> {
352 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register() argument
354 T: Send + 'static, in register()