Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 68) sorted by relevance

123

/rust/kernel/time/hrtimer/
A Darc.rs17 T: HasHrTimer<T>,
24 unsafe impl<T> HrTimerHandle for ArcHrTimerHandle<T>
26 T: HasHrTimer<T>,
41 impl<T> Drop for ArcHrTimerHandle<T>
43 T: HasHrTimer<T>,
50 impl<T> HrTimerPointer for Arc<T>
52 T: 'static,
54 T: HasHrTimer<T>,
57 type TimerMode = <T as HasHrTimer<T>>::TimerMode;
73 impl<T> RawHrTimerCallback for Arc<T>
[all …]
A Dpin.rs16 T: HasHrTimer<T>,
23 unsafe impl<'a, T> HrTimerHandle for PinHrTimerHandle<'a, T>
25 T: HasHrTimer<T>,
40 impl<'a, T> Drop for PinHrTimerHandle<'a, T>
42 T: HasHrTimer<T>,
51 unsafe impl<'a, T> UnsafeHrTimerPointer for Pin<&'a T>
53 T: Send + Sync,
54 T: HasHrTimer<T>,
57 type TimerMode = <T as HasHrTimer<T>>::TimerMode;
77 impl<'a, T> RawHrTimerCallback for Pin<&'a T>
[all …]
A Dpin_mut.rs13 T: HasHrTimer<T>,
21 unsafe impl<'a, T> HrTimerHandle for PinMutHrTimerHandle<'a, T>
23 T: HasHrTimer<T>,
38 impl<'a, T> Drop for PinMutHrTimerHandle<'a, T>
40 T: HasHrTimer<T>,
49 unsafe impl<'a, T> UnsafeHrTimerPointer for Pin<&'a mut T>
51 T: Send + Sync,
52 T: HasHrTimer<T>,
55 type TimerMode = <T as HasHrTimer<T>>::TimerMode;
81 impl<'a, T> RawHrTimerCallback for Pin<&'a mut T>
[all …]
A Dtbox.rs21 T: HasHrTimer<T>,
30 unsafe impl<T, A> HrTimerHandle for BoxHrTimerHandle<T, A>
32 T: HasHrTimer<T>,
46 impl<T, A> Drop for BoxHrTimerHandle<T, A>
48 T: HasHrTimer<T>,
59 impl<T, A> HrTimerPointer for Pin<Box<T, A>>
61 T: 'static,
63 T: HasHrTimer<T>,
67 type TimerMode = <T as HasHrTimer<T>>::TimerMode;
95 impl<T, A> RawHrTimerCallback for Pin<Box<T, A>>
[all …]
/rust/kernel/alloc/
A Dkbox.rs148 unsafe impl<T, A> Send for Box<T, A>
163 impl<T, A> Box<T, A>
217 impl<T, A> Box<MaybeUninit<T>, A>
247 impl<T, A> Box<T, A>
339 impl<T, A> From<Box<T, A>> for Pin<Box<T, A>>
355 impl<T, A> InPlaceWrite<T> for Box<MaybeUninit<T>, A>
380 impl<T, A> InPlaceInit<T> for Box<T, A>
482 impl<T, A> Deref for Box<T, A>
526 impl<T, A> Borrow<T> for Box<T, A>
554 impl<T, A> BorrowMut<T> for Box<T, A>
[all …]
A Dkvec.rs123 pub type KVec<T> = Vec<T, Kmalloc>;
136 pub type VVec<T> = Vec<T, Vmalloc>;
167 impl<T, A> Vec<T, A>
817 impl<T, A> Drop for Vec<T, A>
837 impl<T, A, const N: usize> From<Box<[T; N], A>> for Vec<T, A>
868 impl<T, A> Deref for Vec<T, A>
911 impl<T, A> Borrow<[T]> for Vec<T, A>
937 impl<T, A> BorrowMut<[T]> for Vec<T, A>
948 impl<T, I: SliceIndex<[T]>, A> Index<I> for Vec<T, A>
960 impl<T, I: SliceIndex<[T]>, A> IndexMut<I> for Vec<T, A>
[all …]
A Dlayout.rs17 pub struct ArrayLayout<T> {
19 _phantom: PhantomData<fn() -> T>,
22 impl<T> Clone for ArrayLayout<T> {
27 impl<T> Copy for ArrayLayout<T> {}
31 impl<T> ArrayLayout<T> {
66 match len.checked_mul(core::mem::size_of::<T>()) { in new()
103 impl<T> From<ArrayLayout<T>> for Layout {
104 fn from(value: ArrayLayout<T>) -> Self { in from()
105 let res = Layout::array::<T>(value.len); in from()
/rust/kernel/sync/
A Darc.rs207 impl<T> InPlaceInit<T> for Arc<T> {
227 impl<T> Arc<T> {
246 impl<T: ?Sized> Arc<T> {
426 impl<T: ?Sized> AsRef<T> for Arc<T> {
451 impl<T: ?Sized> Borrow<T> for Arc<T> {
494 impl<T: ?Sized> From<UniqueArc<T>> for Arc<T> {
623 impl<T: ?Sized> From<ArcBorrow<'_, T>> for Arc<T> {
722 impl<T> InPlaceInit<T> for UniqueArc<T> {
764 impl<T> UniqueArc<T> {
884 impl<T: ?Sized> Borrow<T> for UniqueArc<T> {
[all …]
A Daref.rs54 ptr: NonNull<T>,
55 _p: PhantomData<T>,
62 unsafe impl<T: AlwaysRefCounted + Sync + Send> Send for ARef<T> {}
69 unsafe impl<T: AlwaysRefCounted + Sync + Send> Sync for ARef<T> {}
71 impl<T: AlwaysRefCounted> ARef<T> {
123 impl<T: AlwaysRefCounted> Clone for ARef<T> {
131 impl<T: AlwaysRefCounted> Deref for ARef<T> {
132 type Target = T;
140 impl<T: AlwaysRefCounted> From<&T> for ARef<T> {
141 fn from(b: &T) -> Self { in from()
[all …]
A Dlocked_by.rs78 pub struct LockedBy<T: ?Sized, U: ?Sized> {
80 data: UnsafeCell<T>,
84 unsafe impl<T: ?Sized + Send, U: ?Sized> Send for LockedBy<T, U> {}
92 unsafe impl<T: ?Sized + Send, U: ?Sized> Sync for LockedBy<T, U> {}
94 impl<T, U> LockedBy<T, U> {
102 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new()
114 impl<T: ?Sized, U> LockedBy<T, U> {
125 pub fn access<'a>(&'a self, owner: &'a U) -> &'a T in access()
127 T: Sync, in access()
157 pub fn access_mut<'a>(&'a self, owner: &'a mut U) -> &'a mut T { in access_mut() argument
A Dlock.rs122 unsafe impl<T: ?Sized + Send, B: Backend> Send for Lock<T, B> {}
126 unsafe impl<T: ?Sized + Send, B: Backend> Sync for Lock<T, B> {}
128 impl<T, B: Backend> Lock<T, B> {
165 impl<T: ?Sized, B: Backend> Lock<T, B> {
200 unsafe impl<T: Sync + ?Sized, B: Backend> Sync for Guard<'_, T, B> {}
202 impl<'a, T: ?Sized, B: Backend> Guard<'a, T, B> {
245 impl<T: ?Sized, B: Backend> core::ops::Deref for Guard<'_, T, B> {
246 type Target = T;
254 impl<T: ?Sized, B: Backend> core::ops::DerefMut for Guard<'_, T, B> {
261 impl<T: ?Sized, B: Backend> Drop for Guard<'_, T, B> {
[all …]
/rust/pin-init/src/
A D__internal.rs17 pub(crate) type Invariant<T> = PhantomData<fn(*mut T) -> *mut T>;
27 unsafe impl<T: ?Sized, F, E> Init<T, E> for InitClosure<F, T, E>
39 unsafe impl<T: ?Sized, F, E> PinInit<T, E> for InitClosure<F, T, E>
111 impl<T: ?Sized> Clone for AllData<T> {
117 impl<T: ?Sized> Copy for AllData<T> {}
145 impl<T> Drop for StackInit<T> {
156 impl<T> StackInit<T> {
225 impl<T: ?Sized> DropGuard<T> {
242 impl<T: ?Sized> Drop for DropGuard<T> {
275 impl<T: ?Sized> AlwaysFail<T> {
[all …]
A Dlib.rs1394 unsafe impl<T> Init<T> for T { implementation
1404 unsafe impl<T> PinInit<T> for T { implementation
1415 unsafe impl<T, E> Init<T, E> for Result<T, E> {
1426 unsafe impl<T, E> PinInit<T, E> for Result<T, E> {
1625 {<T>} MaybeUninit<T>,
1644 {<T>} *mut T, {<T>} *const T,
1648 {<T>} *mut [T], {<T>} *const [T], *mut str, *const str,
1651 {<const N: usize, T: Zeroable>} [T; N], {<T: Zeroable>} Wrapping<T>,
1711 impl<T> Wrapper<T> for UnsafeCell<T> {
1718 impl<T> Wrapper<T> for MaybeUninit<T> {
[all …]
A Dalloc.rs22 unsafe impl<T> ZeroableOption for Box<T> {}
25 pub trait InPlaceInit<T>: Sized {
30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() argument
50 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init() argument
55 fn init(init: impl Init<T>) -> Result<Self, AllocError> { in init()
80 impl<T> InPlaceInit<T> for Box<T> {
90 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init() argument
98 impl<T> InPlaceInit<T> for Arc<T> {
118 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init() argument
136 impl<T> InPlaceWrite<T> for Box<MaybeUninit<T>> {
[all …]
/rust/kernel/
A Dtypes.rs220 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>);
222 impl<T, F: FnOnce(T)> ScopeGuard<T, F> {
244 impl<T, F: FnOnce(T)> Deref for ScopeGuard<T, F> {
245 type Target = T;
253 impl<T, F: FnOnce(T)> DerefMut for ScopeGuard<T, F> {
260 impl<T, F: FnOnce(T)> Drop for ScopeGuard<T, F> {
324 pub struct Opaque<T> {
330 unsafe impl<T> Zeroable for Opaque<T> {}
332 impl<T> Opaque<T> {
404 UnsafeCell::raw_get(this.cast::<UnsafeCell<MaybeUninit<T>>>()).cast::<T>() in cast_into()
[all …]
A Dlist.rs150 unsafe impl<T, const ID: u64> Send for List<T, ID>
152 ListArc<T, ID>: Send,
158 unsafe impl<T, const ID: u64> Sync for List<T, ID>
160 ListArc<T, ID>: Sync,
319 impl<T: ?Sized, const ID: u64> ListLinksSelfPtr<T, ID> {
346 impl<T: ?Sized + ListItem<ID>, const ID: u64> List<T, ID> {
462 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove() argument
628 impl<T: ?Sized + ListItem<ID>, const ID: u64> Default for List<T, ID> {
634 impl<T: ?Sized + ListItem<ID>, const ID: u64> Drop for List<T, ID> {
831 impl<'a, T: ?Sized + ListItem<ID>, const ID: u64> Cursor<'a, T, ID> {
[all …]
A Dxarray.rs59 _p: PhantomData<T>,
63 impl<T: ForeignOwnable> PinnedDrop for XArray<T> {
87 impl<T: ForeignOwnable> XArray<T> {
155 impl<T: ForeignOwnable> Drop for Guard<'_, T> {
171 pub value: T,
174 impl<T> From<StoreError<T>> for Error {
180 impl<'a, T: ForeignOwnable> Guard<'a, T> {
230 value: T, in store() argument
232 ) -> Result<Option<T>, StoreError<T>> { in store() argument
272 unsafe impl<T: ForeignOwnable + Send> Send for XArray<T> {}
[all …]
A Drevocable.rs67 pub struct Revocable<T> {
70 data: Opaque<T>,
76 unsafe impl<T: Send> Send for Revocable<T> {}
81 unsafe impl<T: Sync + Send> Sync for Revocable<T> {}
83 impl<T> Revocable<T> {
212 impl<T> PinnedDrop for Revocable<T> {
235 pub struct RevocableGuard<'a, T> {
240 data_ref: *const T,
245 impl<T> RevocableGuard<'_, T> {
255 impl<T> Deref for RevocableGuard<'_, T> {
[all …]
A Dworkqueue.rs359 impl<T> ClosureWork<T> {
366 impl<T: FnOnce()> WorkItem for ClosureWork<T> {
501 impl<T: ?Sized, const ID: u64> Work<T, ID> {
669 impl<T: ?Sized, const ID: u64> DelayedWork<T, ID> {
825 T: HasWork<T, ID>,
846 unsafe impl<T, const ID: u64> RawWorkItem<ID> for Arc<T>
849 T: HasWork<T, ID>,
880 T: HasDelayedWork<T, ID>,
888 T: HasWork<T, ID>,
908 T: HasWork<T, ID>,
[all …]
A Ddevice_id.rs58 ids: [T::RawType; N],
59 sentinel: MaybeUninit<T::RawType>,
62 impl<T: RawDeviceId, const N: usize> RawIdArray<T, N> {
72 raw_ids: RawIdArray<T, N>,
76 impl<T: RawDeviceId, U, const N: usize> IdArray<T, U, N> {
147 impl<T: RawDeviceId + RawDeviceIdIndex, U, const N: usize> IdArray<T, U, N> {
165 pub trait IdTable<T: RawDeviceId, U> {
167 fn as_ptr(&self) -> *const T::RawType; in as_ptr()
170 fn id(&self, index: usize) -> &T::RawType; in id()
176 impl<T: RawDeviceId, U, const N: usize> IdTable<T, U> for IdArray<T, U, N> {
[all …]
A Dmiscdevice.rs56 pub struct MiscDeviceRegistration<T> {
59 _t: PhantomData<T>,
64 unsafe impl<T> Send for MiscDeviceRegistration<T> {}
67 unsafe impl<T> Sync for MiscDeviceRegistration<T> {}
69 impl<T: MiscDevice> MiscDeviceRegistration<T> {
105 impl<T> PinnedDrop for MiscDeviceRegistration<T> {
186 struct MiscdeviceVTable<T: MiscDevice>(PhantomData<T>);
188 impl<T: MiscDevice> MiscdeviceVTable<T> {
337 T::show_fdinfo(device, m, file); in show_fdinfo()
344 unlocked_ioctl: if T::HAS_IOCTL {
[all …]
A Ddevres.rs24 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> {
134 T: 'a, in new()
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
[all …]
/rust/kernel/alloc/kvec/
A Derrors.rs9 pub struct PushError<T>(pub T);
11 impl<T> Debug for PushError<T> {
17 impl<T> From<PushError<T>> for Error {
18 fn from(_: PushError<T>) -> Error { in from()
41 pub enum InsertError<T> {
43 IndexOutOfBounds(T),
45 OutOfCapacity(T),
48 impl<T> Debug for InsertError<T> {
57 impl<T> From<InsertError<T>> for Error {
58 fn from(_: InsertError<T>) -> Error { in from()
/rust/kernel/list/
A Darc.rs167 arc: Arc<T>,
170 impl<T: ListArcSafe<ID>, const ID: u64> ListArc<T, ID> {
202 impl<T, const ID: u64> From<UniqueArc<T>> for ListArc<T, ID>
213 impl<T, const ID: u64> From<Pin<UniqueArc<T>>> for ListArc<T, ID>
229 impl<T, const ID: u64> ListArc<T, ID>
277 pub fn try_from_arc(arc: Arc<T>) -> Result<Self, Arc<T>> in try_from_arc()
411 impl<T, const ID: u64> Deref for ListArc<T, ID>
415 type Target = T;
423 impl<T, const ID: u64> Drop for ListArc<T, ID>
435 impl<T, const ID: u64> AsRef<Arc<T>> for ListArc<T, ID>
[all …]
/rust/kernel/drm/
A Ddevice.rs57 pub struct Device<T: drm::Driver> {
60 data: T::Data,
63 impl<T: drm::Driver> Device<T> {
83 major: T::INFO.major,
84 minor: T::INFO.minor,
175 impl<T: drm::Driver> Deref for Device<T> {
176 type Target = T::Data;
185 unsafe impl<T: drm::Driver> AlwaysRefCounted for Device<T> {
197 impl<T: drm::Driver> AsRef<device::Device> for Device<T> {
206 unsafe impl<T: drm::Driver> Send for Device<T> {}
[all …]

Completed in 50 milliseconds

123