Home
last modified time | relevance | path

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

12345

/linux/rust/kernel/alloc/
H A Dkbox.rs203 pub fn into_raw(b: Self) -> *mut T { in into_raw()
211 pub fn leak<'a>(b: Self) -> &'a mut T { in leak()
230 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
240 pub fn write(mut self, value: T) -> Box<T, A> { in write()
256 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new()
275 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit()
287 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin()
340 ) -> Result<Pin<Box<[T], A>>, E> in pin_slice()
343 Item: PinInit<T, E>, in pin_slice()
378 fn forget_contents(this: Self) -> Box<MaybeUninit<T>, A> { in forget_contents()
[all …]
H A Dkvec.rs218 unsafe fn dec_len(&mut self, count: usize) -> &mut [T] { in dec_len()
241 pub fn as_slice(&self) -> &[T] { in as_slice()
247 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
254 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
261 pub const fn as_ptr(&self) -> *const T { in as_ptr()
300 pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] { in spare_capacity_mut()
325 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push()
348 pub fn push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> { in push_within_capacity()
363 unsafe fn push_within_capacity_unchecked(&mut self, v: T) { in push_within_capacity_unchecked()
398 element: T, in insert_within_capacity()
[all …]
/linux/rust/kernel/
H A Dlist.rs340 raw_get_self_ptr(me: *const Self) -> *const Opaque<*const T> raw_get_self_ptr() argument
371 insert_inner( &mut self, item: ListArc<T, ID>, next: *mut ListLinksFields, ) -> *mut ListLinksFields insert_inner() argument
414 push_back(&mut self, item: ListArc<T, ID>) push_back() argument
422 push_front(&mut self, item: ListArc<T, ID>) push_front() argument
433 pop_back(&mut self) -> Option<ListArc<T, ID>> pop_back() argument
445 pop_front(&mut self) -> Option<ListArc<T, ID>> pop_front() argument
462 remove(&mut self, item: &T) -> Option<ListArc<T, ID>> remove() argument
503 remove_internal(&mut self, item: *mut ListLinksFields) -> ListArc<T, ID> remove_internal() argument
522 remove_internal_inner( &mut self, item: *mut ListLinksFields, next: *mut ListLinksFields, prev: *mut ListLinksFields, ) -> ListArc<T, ID> remove_internal_inner() argument
570 push_all_back(&mut self, other: &mut List<T, ID>) push_all_back() argument
599 cursor_front(&mut self) -> Cursor<'_, T, ID> cursor_front() argument
608 cursor_back(&mut self) -> Cursor<'_, T, ID> cursor_back() argument
617 iter(&self) -> Iter<'_, T, ID> iter() argument
659 next(&mut self) -> Option<ArcBorrow<'a, T>> next() argument
856 peek_next(&mut self) -> Option<CursorPeek<'_, 'a, T, true, ID>> peek_next() argument
871 peek_prev(&mut self) -> Option<CursorPeek<'_, 'a, T, false, ID>> peek_prev() argument
924 insert_inner(&mut self, item: ListArc<T, ID>) -> *mut ListLinksFields insert_inner() argument
942 insert(mut self, item: ListArc<T, ID>) insert() argument
953 insert_next(&mut self, item: ListArc<T, ID>) insert_next() argument
960 insert_prev(&mut self, item: ListArc<T, ID>) insert_prev() argument
965 remove_next(&mut self) -> Option<ListArc<T, ID>> remove_next() argument
970 remove_prev(&mut self) -> Option<ListArc<T, ID>> remove_prev() argument
990 remove(self) -> ListArc<T, ID> remove() argument
1003 arc(&self) -> ArcBorrow<'_, T> arc() argument
1030 deref(&self) -> &T deref() argument
1050 into_iter(self) -> Iter<'a, T, ID> into_iter() argument
1063 next(&mut self) -> Option<ListArc<T, ID>> next() argument
1071 next_back(&mut self) -> Option<ListArc<T, ID>> next_back() argument
1080 into_iter(self) -> IntoIter<T, ID> into_iter() argument
[all...]
H A Ddevres.rs132 data: impl PinInit<T, E> + 'a, in new() argument
175 inner(&self) -> &Inner<T> inner() argument
181 data(&self) -> &Revocable<T> data() argument
249 access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a T> access() argument
261 try_access(&self) -> Option<RevocableGuard<'_, T>> try_access() argument
271 try_access_with_guard<'a>(&'a self, guard: &'a rcu::Guard) -> Option<&'a T> try_access_with_guard() argument
361 register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result where T: Send + 'static, Error: From<E>, register() argument
[all...]
H 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()
H 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()
H A Dmaple_tree.rs50 fn deref(&self) -> &MapleTree<T> { in deref()
121 pub fn insert(&self, index: usize, value: T, gfp: Flags) -> Result<(), InsertError<T>> { in insert()
169 pub fn insert_range<R>(&self, range: R, value: T, gfp: Flags) -> Result<(), InsertError<T>> in insert_range()
227 pub fn erase(&self, index: usize) -> Option<T> { in erase()
238 pub fn lock(&self) -> MapleGuard<'_, T> { in lock() argument
314 pub fn ma_state(&mut self, first: usize, end: usize) -> MaState<'_, T> { in ma_state() argument
434 value: T, in alloc_range()
502 unsafe fn new_raw(mt: &'tree MapleTree<T>, first: usize, end: usize) -> Self { in new_raw()
H 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()
H 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()
H A Ddma.rs303 alloc_attrs( dev: &device::Device<Bound>, count: usize, gfp_flags: kernel::alloc::Flags, dma_attrs: Attrs, ) -> Result<CoherentAllocation<T>> alloc_attrs() argument
347 alloc_coherent( dev: &device::Device<Bound>, count: usize, gfp_flags: kernel::alloc::Flags, ) -> Result<CoherentAllocation<T>> alloc_coherent() argument
367 start_ptr(&self) -> *const T start_ptr() argument
373 start_ptr_mut(&mut self) -> *mut T start_ptr_mut() argument
419 as_slice(&self, offset: usize, count: usize) -> Result<&[T]> as_slice() argument
439 as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mut [T]> as_slice_mut() argument
471 write(&mut self, src: &[T], offset: usize) -> Result write() argument
489 item_from_index(&self, offset: usize) -> Result<*mut T> item_from_index() argument
[all...]
H A Derror.rs155 to_ptr<T>(self) -> *mut T to_ptr() argument
409 from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> from_err_ptr() argument
455 from_result<T, F>(f: F) -> T where T: From<i16>, F: FnOnce() -> Result<T>, from_result() argument
458 from_result<T, F>(f: F) -> T where T: From<i16>, F: FnOnce() -> Result<T>, from_result() argument
[all...]
H A Ddevice_id.rs88 const unsafe fn build(ids: [(T, argument
135 new_without_index(ids: [(T, U); N]) -> Self new_without_index() argument
142 raw_ids(&self) -> &RawIdArray<T, N> raw_ids() argument
151 new(ids: [(T, U); N]) -> Self new() argument
[all...]
/linux/rust/pin-init/src/
H A Dlib.rs1084 pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> where F: FnOnce(Pin<&mut T>) -> Result<(), E>, pin_chain() argument
1192 chain<F>(self, f: F) -> ChainInit<Self, F, T, E> where F: FnOnce(&mut T) -> Result<(), E>, chain() argument
1248 pin_init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl PinInit<T, E> pin_init_from_closure() argument
1267 init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl Init<T, E> init_from_closure() argument
1278 cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> cast_pin_init() argument
1294 cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> cast_init() argument
1307 uninit<T, E>() -> impl Init<MaybeUninit<T>, E> uninit() argument
1322 init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl Init<[T; N], E> where I: Init<T, E>, init_array_from_fn() argument
1326 init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl Init<[T; N], E> where I: Init<T, E>, global() argument
1365 pin_init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl PinInit<[T; N], E> where I: PinInit<T, E>, pin_init_array_from_fn() argument
1369 pin_init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl PinInit<[T; N], E> where I: PinInit<T, E>, global() argument
1394 unsafe impl<T> Init<T> for T { global() implementation
1404 unsafe impl<T> PinInit<T> for T { global() implementation
1442 write_init<E>(self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument
1447 write_pin_init<E>(self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument
1551 unsafe impl<T> ZeroableOption for &T {} global() implementation
1554 unsafe impl<T> ZeroableOption for &mut T {} global() implementation
1563 init_zeroed<T: Zeroable>() -> impl Init<T> init_zeroed() argument
1594 zeroed<T: Zeroable>() -> T zeroed() argument
1708 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument
1712 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument
1719 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument
1727 pin_init<E>(init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument
[all...]
H 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()
/linux/rust/kernel/sync/
H A Datomic.rs138 const unsafe fn from_repr<T: AtomicType>(r: T::Repr) -> T { in from_repr()
226 pub const fn as_ptr(&self) -> *mut T { in as_ptr()
236 pub fn get_mut(&mut self) -> &mut T { in get_mut()
267 pub fn load<Ordering: ordering::AcquireOrRelaxed>(&self, _: Ordering) -> T { in load()
297 pub fn store<Ordering: ordering::ReleaseOrRelaxed>(&self, v: T, _: Ordering) { in store()
329 pub fn xchg<Ordering: ordering::Ordering>(&self, v: T, _: Ordering) -> T { in xchg()
402 mut old: T, in cmpxchg()
403 new: T, in cmpxchg()
405 ) -> Result<T, T> { in cmpxchg() argument
447 fn try_cmpxchg<Ordering: ordering::Ordering>(&self, old: &mut T, new: T, _: Ordering) -> bool { in try_cmpxchg()
H A Darc.rs159 container_of(ptr: *const T) -> NonNull<ArcInner<T>> container_of() argument
211 try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> where E: From<AllocError>, try_pin_init() argument
219 try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, try_init() argument
229 new(contents: T, flags: Flags) -> Result<Self, AllocError> new() argument
263 into_raw(self) -> *const T into_raw() argument
271 as_ptr(this: &Self) -> *const T as_ptr() argument
300 as_arc_borrow(&self) -> ArcBorrow<'_, T> as_arc_borrow() argument
346 into_unique_or_drop(this: Self) -> Option<Pin<UniqueArc<T>>> into_unique_or_drop() argument
393 borrow<'a>(ptr: *mut c_void) -> ArcBorrow<'a, T> borrow() argument
403 borrow_mut<'a>(ptr: *mut c_void) -> ArcBorrow<'a, T> borrow_mut() argument
421 as_ref(&self) -> &T as_ref() argument
446 borrow(&self) -> &T borrow() argument
710 try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> where E: From<AllocError>, try_pin_init() argument
718 try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, try_init() argument
729 write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument
738 write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument
750 new(value: T, flags: Flags) -> Result<Self, AllocError> new() argument
758 new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> new_uninit() argument
777 write(mut self, value: T) -> UniqueArc<T> write() argument
789 assume_init(self) -> UniqueArc<T> assume_init() argument
799 init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> init_with() argument
811 pin_init_with<E>( mut self, init: impl PinInit<T, E>, ) -> core::result::Result<Pin<UniqueArc<T>>, E> pin_init_with() argument
812 pin_init_with<E>( mut self, init: impl PinInit<T, E>, ) -> core::result::Result<Pin<UniqueArc<T>>, E> pin_init_with() argument
868 borrow(&self) -> &T borrow() argument
893 borrow_mut(&mut self) -> &mut T borrow_mut() argument
[all...]
H 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
H 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()
/linux/rust/kernel/list/
H A Darc.rs173 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
183 pub fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> in pin_init()
194 pub fn init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in init()
237 pub fn pair_from_unique<const ID2: u64>(unique: UniqueArc<T>) -> (Self, ListArc<T, ID2>) in pair_from_unique()
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()
[all …]
/linux/drivers/comedi/drivers/tests/
H A Dni_routes_test.c310 const struct ni_route_tables *T = &private.routing_tables; in test_ni_route_to_register() local
360 const struct ni_route_tables *T = &private.routing_tables; in test_ni_lookup_route_register() local
399 const struct ni_route_tables *T = &private.routing_tables; in test_route_is_valid() local
454 const struct ni_route_tables *T = &private.routing_tables; in test_ni_count_valid_routes() local
462 const struct ni_route_tables *T = &private.routing_tables; in test_ni_get_valid_routes() local
479 const struct ni_route_tables *T = &private.routing_tables; in test_ni_find_route_source() local
496 const struct ni_route_tables *T = &private.routing_tables; in test_route_register_is_valid() local
511 const struct ni_route_tables *T = &private.routing_tables; in test_ni_check_trigger_arg() local
544 const struct ni_route_tables *T = &private.routing_tables; in test_ni_get_reg_value() local
/linux/drivers/gpu/drm/i915/
H A Di915_params.c44 #define i915_param_named(name, T, perm, desc) \ argument
47 #define i915_param_named_unsafe(name, T, perm, desc) \ argument
52 #define MEMBER(T, member, value, ...) .member = (value), argument
185 #define PRINT(T, x, ...) _param_print(p, #x, params->x); in i915_params_dump() argument
207 #define DUP(T, x, ...) _param_dup(&dest->x); in i915_params_copy() argument
226 #define FREE(T, x, ...) _param_free(&params->x); in i915_params_free() argument
/linux/include/linux/
H A Doverflow.h34 __type_max(T) global() argument
36 __type_min(T) global() argument
210 __overflows_type_constexpr(x,T) global() argument
217 __overflows_type(x,T) global() argument
236 overflows_type(n,T) global() argument
252 castable_to_type(n,T) global() argument
[all...]
/linux/tools/testing/selftests/kvm/
H A Dguest_print_test.c41 #define TYPE(fn, ext, fmt_t, T) TYPE_##ext, argument
49 #define BUILD_TYPE_STRINGS_AND_HELPER(fn, ext, fmt_t, T) \ argument
64 #define TYPE(fn, ext, fmt_t, T) \ argument
73 #define TYPE(fn, ext, fmt_t, T) \ in guest_code() argument
/linux/rust/kernel/drm/
H A Dfile.rs35 pub unsafe fn from_raw<'a>(ptr: *mut bindings::drm_file) -> &'a File<T> { in from_raw() argument
44 fn driver_priv(&self) -> *mut T { in driver_priv() argument
50 pub fn inner(&self) -> Pin<&T> { in inner() argument
[all...]
/linux/rust/kernel/device/
H A Dproperty.rs133 property_read_array_vec<'fwnode, 'name, T: PropertyInt>( &'fwnode self, name: &'name CStr, len: usize, ) -> Result<PropertyGuard<'fwnode, 'name, KVec<T>>> property_read_array_vec() argument
193 property_read<'fwnode, 'name, T: Property>( &'fwnode self, name: &'name CStr, ) -> PropertyGuard<'fwnode, 'name, T> property_read() argument
595 required_by(self, dev: &super::Device) -> Result<T> required_by() argument
611 optional(self) -> Option<T> optional() argument
619 or(self, default: T) -> T or() argument
628 or_default(self) -> T or_default() argument
[all...]

12345