Home
last modified time | relevance | path

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

12345

/linux-6.15/rust/kernel/alloc/
H A Dkbox.rs162 pub fn into_raw(b: Self) -> *mut T { in into_raw()
170 pub fn leak<'a>(b: Self) -> &'a mut T { in leak()
189 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
199 pub fn write(mut self, value: T) -> Box<T, A> { in write()
215 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new()
246 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin()
260 fn forget_contents(this: Self) -> Box<MaybeUninit<T>, A> { in forget_contents()
291 pub fn into_inner(b: Self) -> T { in into_inner()
308 fn from(b: Box<T, A>) -> Self { in from()
443 fn deref(&self) -> &T { in deref()
[all …]
H A Dkvec.rs204 pub fn as_slice(&self) -> &[T] { in as_slice()
210 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
217 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
224 pub fn as_ptr(&self) -> *const T { in as_ptr()
393 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts()
550 fn from(b: Box<[T; N], A>) -> Vec<T, A> { in from() argument
584 fn deref(&self) -> &[T] { in deref()
596 fn deref_mut(&mut self) -> &mut [T] { in deref_mut()
702 fn into_raw_parts(self) -> (*mut T, NonNull<T>, usize, usize) { in into_raw_parts()
746 pub fn collect(self, flags: Flags) -> Vec<T, A> { in collect()
[all …]
/linux-6.15/rust/kernel/
H A Dlist.rs262 item: ListArc<T, ID>, in insert_inner()
413 ) -> ListArc<T, ID> { in remove_internal_inner()
508 pub fn iter(&self) -> Iter<'_, T, ID> { in iter() argument
550 fn next(&mut self) -> Option<ArcBorrow<'a, T>> { in next() argument
836 pub fn insert(mut self, item: ListArc<T, ID>) { in insert()
884 pub fn remove(self) -> ListArc<T, ID> { in remove()
897 pub fn arc(&self) -> ArcBorrow<'_, T> { in arc() argument
924 fn deref(&self) -> &T { in deref()
944 fn into_iter(self) -> Iter<'a, T, ID> { in into_iter() argument
957 fn next(&mut self) -> Option<ListArc<T, ID>> { in next()
[all …]
H A Dinit.rs155 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
163 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init()
175 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
180 fn init<E>(init: impl Init<T, E>, flags: Flags) -> error::Result<Self> in init()
H A Ddevres.rs102 fn new(dev: &Device, data: T, flags: Flags) -> Result<Arc<DevresInner<T>>> { in new()
174 pub fn new(dev: &Device, data: T, flags: Flags) -> Result<Self> { in new()
182 pub fn new_foreign_owned(dev: &Device, data: T, flags: Flags) -> Result { in new_foreign_owned()
H A Dtypes.rs207 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
213 pub fn dismiss(mut self) -> T { in dismiss()
230 fn deref(&self) -> &T { in deref()
237 fn deref_mut(&mut self) -> &mut T { in deref_mut()
381 pub const fn get(&self) -> *mut T { in get()
389 pub const fn raw_get(this: *const Self) -> *mut T { in raw_get()
505 pub fn into_raw(me: Self) -> NonNull<T> { in into_raw()
H A Ddma.rs159 ) -> Result<CoherentAllocation<T>> { in alloc_attrs()
200 ) -> Result<CoherentAllocation<T>> { in alloc_coherent()
205 pub fn start_ptr(&self) -> *const T { in start_ptr()
211 pub fn start_ptr_mut(&mut self) -> *mut T { in start_ptr_mut()
226 pub fn item_from_index(&self, offset: usize) -> Result<*mut T> { in item_from_index()
H A Derror.rs154 pub fn to_ptr<T>(self) -> *mut T { in to_ptr()
408 pub fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
454 pub fn from_result<T, F>(f: F) -> T in from_result()
457 F: FnOnce() -> Result<T>, in from_result()
H A Drevocable.rs97 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument
116 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
202 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new()
H A Dpage.rs103 fn with_page_mapped<T>(&self, f: impl FnOnce(*mut u8) -> T) -> T { in with_page_mapped()
148 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page()
/linux-6.15/rust/kernel/sync/
H A Darc.rs157 unsafe fn container_of(ptr: *const T) -> NonNull<ArcInner<T>> { in container_of()
262 pub fn into_raw(self) -> *const T { in into_raw()
270 pub fn as_ptr(this: &Self) -> *const T { in as_ptr()
299 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
345 pub fn into_unique_or_drop(self) -> Option<Pin<UniqueArc<T>>> { in into_unique_or_drop()
421 fn as_ref(&self) -> &T { in as_ref()
763 pub fn write(mut self, value: T) -> UniqueArc<T> { in write()
775 pub unsafe fn assume_init(self) -> UniqueArc<T> { in assume_init()
785 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with() argument
797 init: impl PinInit<T, E>, in pin_init_with()
[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
178 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock() argument
227 pub fn lock_ref(&self) -> &'a Lock<T, B> { in lock_ref()
272 pub unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
/linux-6.15/rust/kernel/list/
H 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 …]
H 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()
/linux-6.15/rust/pin-init/src/
H A Dlib.rs1140 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument
1196 ) -> impl PinInit<T, E> { in pin_init_from_closure()
1215 ) -> impl Init<T, E> { in init_from_closure()
1223 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument
1238 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() argument
1242 I: Init<T, E>,
1281 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn() argument
1285 I: PinInit<T, E>,
1310 unsafe impl<T, E> Init<T, E> for T { implementation
1319 unsafe impl<T, E> PinInit<T, E> for T { implementation
[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-6.15/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-6.15/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
H A Di915_selftest.h89 #define i915_subtests(T, data) \ argument
93 #define i915_live_subtests(T, data) ({ \ argument
100 #define intel_gt_live_subtests(T, data) ({ \ argument
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_display_params.c14 #define intel_display_param_named(name, T, perm, desc) \ argument
17 #define intel_display_param_named_unsafe(name, T, perm, desc) \ argument
22 #define MEMBER(T, member, value, ...) .member = (value), argument
190 #define PRINT(T, x, ...) _param_print(p, driver_name, #x, params->x); in intel_display_params_dump() argument
213 #define DUP(T, x, ...) _param_dup(&dest->x); in intel_display_params_copy() argument
233 #define FREE(T, x, ...) _param_free(&params->x); in intel_display_params_free() argument
/linux-6.15/include/linux/
H A Doverflow.h34 #define __type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) argument
36 #define __type_min(T) ((T)((T)-type_max(T)-(T)1)) argument
210 #define __overflows_type_constexpr(x, T) ( \ argument
217 #define __overflows_type(x, T) ({ \ argument
236 #define overflows_type(n, T) \ argument
252 #define castable_to_type(n, T) \ argument
/linux-6.15/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-6.15/lib/tests/
H A Dscanf_kunit.c173 #define value_representable_in_type(T, val) \ argument
179 #define test_one_number(T, gen_fmt, scan_fmt, val, fn) \ argument
188 #define simple_numbers_loop(T, gen_fmt, scan_fmt, fn) \ argument
272 #define random_for_type(T) \ argument
338 #define numbers_list_8(T, gen_fmt, field_sep, scan_fmt, fn) \ argument
358 #define numbers_list_fix_width(T, gen_fmt, field_sep, width, scan_fmt, fn) \ argument
366 #define numbers_list_val_width(T, gen_fmt, field_sep, scan_fmt, fn) \ argument
606 #define test_number_prefix(T, str, scan_fmt, expect0, expect1, n_args, fn) \ argument
682 #define _test_simple_strtoxx(T, fn, gen_fmt, expect, base) \ argument
700 #define test_simple_strtoxx(T, fn, gen_fmt, base) \ argument
/linux-6.15/rust/kernel/sync/lock/
H 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()

12345