Home
last modified time | relevance | path

Searched defs:T (Results 1 – 25 of 39) sorted by relevance

12

/rust/kernel/alloc/
A Dkbox.rs202 pub fn into_raw(b: Self) -> *mut T { in into_raw()
210 pub fn leak<'a>(b: Self) -> &'a mut T { in leak()
229 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
239 pub fn write(mut self, value: T) -> Box<T, A> { in write()
286 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin()
331 pub fn into_inner(b: Self) -> T { in into_inner()
348 fn from(b: Box<T, A>) -> Self { in from()
489 fn deref(&self) -> &T { in deref()
501 fn deref_mut(&mut self) -> &mut T { in deref_mut()
531 fn borrow(&self) -> &T { in borrow()
[all …]
A Dkvec.rs228 pub fn as_slice(&self) -> &[T] { in as_slice()
248 pub fn as_ptr(&self) -> *const T { in as_ptr()
385 element: T, in insert_within_capacity()
386 ) -> Result<(), InsertError<T>> { in insert_within_capacity()
426 pub fn pop(&mut self) -> Option<T> { in pop()
875 fn deref(&self) -> &[T] { in deref()
887 fn deref_mut(&mut self) -> &mut [T] { in deref_mut()
915 fn borrow(&self) -> &[T] { in borrow()
1045 fn into_raw_parts(self) -> (*mut T, NonNull<T>, usize, usize) { in into_raw_parts()
1156 fn next(&mut self) -> Option<T> { in next()
[all …]
/rust/pin-init/src/
A Dlib.rs1248 ) -> impl PinInit<T, E> { in pin_init_from_closure()
1267 ) -> impl Init<T, E> { in init_from_closure()
1278 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> { in cast_pin_init() argument
1294 pub const unsafe fn cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> { in cast_init() argument
1307 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument
1326 I: Init<T, E>,
1369 I: PinInit<T, E>,
1394 unsafe impl<T> Init<T> for T { implementation
1404 unsafe impl<T> PinInit<T> for T { implementation
1551 unsafe impl<T> ZeroableOption for &T {} implementation
[all …]
A Dalloc.rs30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
50 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
82 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
90 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
100 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
118 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
139 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init()
148 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
/rust/kernel/
A Dlist.rs371 item: ListArc<T, ID>, in insert_inner()
522 ) -> ListArc<T, ID> { in remove_internal_inner()
617 pub fn iter(&self) -> Iter<'_, T, ID> { in iter() argument
659 fn next(&mut self) -> Option<ArcBorrow<'a, T>> { in next() argument
942 pub fn insert(mut self, item: ListArc<T, ID>) { in insert()
990 pub fn remove(self) -> ListArc<T, ID> { in remove()
1003 pub fn arc(&self) -> ArcBorrow<'_, T> { in arc() argument
1030 fn deref(&self) -> &T { in deref()
1050 fn into_iter(self) -> Iter<'a, T, ID> { in into_iter() argument
1063 fn next(&mut self) -> Option<ListArc<T, ID>> { in next()
[all …]
A Dinit.rs147 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
155 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init()
167 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
172 fn init<E>(init: impl Init<T, E>, flags: Flags) -> error::Result<Self> in init()
A Ddevres.rs131 data: impl PinInit<T, E> + 'a, in new()
166 fn inner(&self) -> &Inner<T> { in inner()
172 fn data(&self) -> &Revocable<T> { in data()
240 pub fn access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a T> { in access()
252 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument
262 pub fn try_access_with_guard<'a>(&'a self, guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
352 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register()
A Drevocable.rs85 pub fn new<E>(data: impl PinInit<T, E>) -> impl PinInit<Self, E> { in new()
99 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument
118 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
150 pub unsafe fn access(&self) -> &T { in access()
246 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new()
A Dxarray.rs122 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock() argument
135 pub fn lock(&self) -> Guard<'_, T> { in lock() argument
208 pub fn remove(&mut self, index: usize) -> Option<T> { in remove()
230 value: T, in store()
232 ) -> Result<Option<T>, StoreError<T>> { in store()
A Dtypes.rs224 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
230 pub fn dismiss(mut self) -> T { in dismiss()
247 fn deref(&self) -> &T { in deref()
254 fn deref_mut(&mut self) -> &mut T { in deref_mut()
395 pub const fn get(&self) -> *mut T { in get()
403 pub const fn cast_into(this: *const Self) -> *mut T { in cast_into()
415 fn pin_init<E>(slot: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init()
A Ddma.rs303 ) -> Result<CoherentAllocation<T>> { in alloc_attrs()
347 ) -> Result<CoherentAllocation<T>> { in alloc_coherent()
367 pub fn start_ptr(&self) -> *const T { in start_ptr()
373 pub fn start_ptr_mut(&mut self) -> *mut T { in start_ptr_mut()
419 pub unsafe fn as_slice(&self, offset: usize, count: usize) -> Result<&[T]> { in as_slice()
439 pub unsafe fn as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mut [T]> { in as_slice_mut()
471 pub unsafe fn write(&mut self, src: &[T], offset: usize) -> Result { in write()
489 pub fn item_from_index(&self, offset: usize) -> Result<*mut T> { in item_from_index()
A Derror.rs155 pub fn to_ptr<T>(self) -> *mut T { in to_ptr()
409 pub fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
455 pub fn from_result<T, F>(f: F) -> T in from_result()
458 F: FnOnce() -> Result<T>, in from_result()
A Ddevice_id.rs88 const unsafe fn build(ids: [(T, U); N], data_offset: Option<usize>) -> Self { in build()
135 pub const fn new_without_index(ids: [(T, U); N]) -> Self { in new_without_index()
142 pub const fn raw_ids(&self) -> &RawIdArray<T, N> { in raw_ids()
151 pub const fn new(ids: [(T, U); N]) -> Self { in new()
A Dpage.rs104 fn with_page_mapped<T>(&self, f: impl FnOnce(*mut u8) -> T) -> T { in with_page_mapped()
149 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page()
A Dworkqueue.rs337 func: T, in try_spawn()
360 fn project(self: Pin<&mut Self>) -> &mut Option<T> { in project()
578 unsafe fn raw_get_work(ptr: *mut Self) -> *mut Work<T, ID>; in raw_get_work()
585 unsafe fn work_container_of(ptr: *mut Work<T, ID>) -> *mut Self; in work_container_of()
719 pub unsafe fn raw_as_work(ptr: *const Self) -> *mut Work<T, ID> { in raw_as_work()
/rust/kernel/sync/
A Darc.rs264 pub fn into_raw(self) -> *const T { in into_raw()
272 pub fn as_ptr(this: &Self) -> *const T { in as_ptr()
301 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
427 fn as_ref(&self) -> &T { in as_ref()
452 fn borrow(&self) -> &T { in borrow()
806 pub unsafe fn assume_init(self) -> UniqueArc<T> { in assume_init()
816 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with() argument
828 init: impl PinInit<T, E>, in pin_init_with()
829 ) -> core::result::Result<Pin<UniqueArc<T>>, E> { in pin_init_with()
885 fn borrow(&self) -> &T { in borrow()
[all …]
A Dcondvar.rs114 fn wait_internal<T: ?Sized, B: Backend>( in wait_internal() argument
145 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait() argument
156 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible() argument
168 pub fn wait_interruptible_freezable<T: ?Sized, B: Backend>( in wait_interruptible_freezable() argument
186 pub fn wait_interruptible_timeout<T: ?Sized, B: Backend>( in wait_interruptible_timeout() argument
A Dlock.rs130 pub fn new(t: T, name: &'static CStr, key: Pin<&'static LockClassKey>) -> impl PinInit<Self> { in new()
167 pub fn lock(&self) -> Guard<'_, T, B> { in lock() argument
180 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock() argument
229 pub fn lock_ref(&self) -> &'a Lock<T, B> { in lock_ref()
274 pub unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
/rust/kernel/list/
A Darc.rs173 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
194 pub fn init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in init()
249 mut unique: Pin<UniqueArc<T>>, in pair_from_pin_unique()
250 ) -> (Self, ListArc<T, ID2>) in pair_from_pin_unique()
337 fn transmute_to_arc(self) -> Arc<T> { in transmute_to_arc()
349 pub fn into_raw(self) -> *const T { in into_raw()
371 pub fn into_arc(self) -> Arc<T> { in into_arc()
380 pub fn clone_arc(&self) -> Arc<T> { in clone_arc()
391 pub fn as_arc(&self) -> &Arc<T> { in as_arc()
400 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
[all …]
A Darc_field.rs37 pub fn get_mut(&mut self) -> &mut T { in get_mut()
47 pub unsafe fn assert_ref(&self) -> &T { in assert_ref()
60 pub unsafe fn assert_mut(&self) -> &mut T { in assert_mut()
/rust/kernel/drm/
A Dfile.rs35 pub unsafe fn from_raw<'a>(ptr: *mut bindings::drm_file) -> &'a File<T> { in from_raw()
44 fn driver_priv(&self) -> *mut T { in driver_priv()
50 pub fn inner(&self) -> Pin<&T> { in inner()
A Ddriver.rs122 fn new(drm: &drm::Device<T>, flags: usize) -> Result<Self> { in new()
132 drm: &drm::Device<T>, in new_foreign_owned()
149 pub fn device(&self) -> &drm::Device<T> { in device()
/rust/kernel/sync/arc/
A Dstd_vendor.rs15 pub fn downcast<T>(self) -> core::result::Result<Arc<T>, Self> in downcast()
/rust/kernel/sync/lock/
A Dglobal.rs157 pub fn as_ref<'a>(&'a self, _guard: &'a GlobalGuard<B>) -> &'a T { in as_ref()
165 pub fn as_mut<'a>(&'a self, _guard: &'a mut GlobalGuard<B>) -> &'a mut T { in as_mut()
174 pub fn get_mut(&mut self) -> &mut T { in get_mut()
/rust/kernel/device/
A Dproperty.rs133 ) -> Result<PropertyGuard<'fwnode, 'name, KVec<T>>> { in property_read_array_vec()
193 ) -> PropertyGuard<'fwnode, 'name, T> { in property_read() argument
595 pub fn required_by(self, dev: &super::Device) -> Result<T> { in required_by()
611 pub fn optional(self) -> Option<T> { in optional()
619 pub fn or(self, default: T) -> T { in or()
628 pub fn or_default(self) -> T { in or_default()

Completed in 848 milliseconds

12