Home
last modified time | relevance | path

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

12345

/linux-6.6.21/rust/alloc/
Dslice.rs102 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec() argument
112 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec() argument
124 impl<T: Clone> ConvertVec for T { implementation
161 impl<T: Copy> ConvertVec for T { implementation
178 impl<T> [T] { implementation
267 F: FnMut(&T, &T) -> Ordering, in sort_by()
438 pub fn to_vec_in<A: Allocator>(&self, alloc: A) -> Vec<T, A> in to_vec_in()
463 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec() argument
712 fn concat(slice: &Self) -> Vec<T> { in concat()
727 fn join(slice: &Self, sep: &T) -> Vec<T> { in join()
[all …]
Dboxed.rs287 pub fn pin(x: T) -> Pin<Box<T>> { in pin()
382 pub fn new_in(x: T, alloc: A) -> Self in new_in()
410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
445 pub fn new_uninit_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_uninit_in()
482 pub fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_uninit_in()
519 pub fn new_zeroed_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_zeroed_in()
556 pub fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in()
580 pub fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
591 pub fn into_boxed_slice(boxed: Self) -> Box<[T], A> { in into_boxed_slice()
609 pub fn into_inner(boxed: Self) -> T { in into_inner()
[all …]
Draw_vec.rs162 pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> { in into_box()
247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
255 pub fn ptr(&self) -> *mut T { in ptr()
317 fn do_reserve_and_handle<T, A: Allocator>( in reserve()
318 slf: &mut RawVec<T, A>, in reserve()
/linux-6.6.21/rust/alloc/vec/
Dmod.rs643 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
901 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
938 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts()
982 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc()
1218 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice()
1306 pub fn as_slice(&self) -> &[T] { in as_slice()
1323 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
1355 pub fn as_ptr(&self) -> *const T { in as_ptr()
1388 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
1513 pub fn swap_remove(&mut self, index: usize) -> T { in swap_remove()
[all …]
Dinto_iter.rs71 pub fn as_slice(&self) -> &[T] { in as_slice()
89 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
100 fn as_raw_mut_slice(&mut self) -> *mut [T] { in as_raw_mut_slice()
147 pub(crate) fn into_vecdeque(self) -> VecDeque<T, A> { in into_vecdeque()
175 fn as_ref(&self) -> &[T] { in as_ref()
190 fn next(&mut self) -> Option<T> { in next()
242 fn next_chunk<const N: usize>(&mut self) -> Result<[T; N], core::array::IntoIter<T, N>> { in next_chunk()
299 fn next_back(&mut self) -> Option<T> { in next_back()
373 impl<T: Copy> NonDrop for T {} implementation
Ddrain.rs59 pub fn as_slice(&self) -> &[T] { in as_slice()
143 fn as_ref(&self) -> &[T] { in as_ref()
158 fn next(&mut self) -> Option<T> { in next()
170 fn next_back(&mut self) -> Option<T> { in next_back()
Dextract_if.rs63 fn next(&mut self) -> Option<T> { in next()
78 let src: *const T = &v[i]; in next() constant
/linux-6.6.21/rust/kernel/
Dinit.rs818 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument
920 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument
978 ) -> impl PinInit<T, E> { in pin_init_from_closure()
997 ) -> impl Init<T, E> { in init_from_closure()
1005 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument
1019 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() argument
1023 I: Init<T, E>,
1063 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn() argument
1067 I: PinInit<T, E>,
1098 unsafe impl<T, E> Init<T, E> for T { implementation
[all …]
Dtypes.rs58 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> &'a T { in borrow()
160 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
166 pub fn dismiss(mut self) -> T { in dismiss()
183 fn deref(&self) -> &T { in deref()
190 fn deref_mut(&mut self) -> &mut T { in deref_mut()
251 pub fn get(&self) -> *mut T { in get()
259 pub const fn raw_get(this: *const Self) -> *mut T { in raw_get()
Derror.rs135 pub(crate) fn to_ptr<T>(self) -> *mut T { in to_ptr()
278 pub(crate) fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
325 pub(crate) fn from_result<T, F>(f: F) -> T in from_result()
328 F: FnOnce() -> Result<T>, in from_result()
/linux-6.6.21/rust/kernel/sync/
Darc.rs184 pub fn pin_init<E>(init: impl PinInit<T, E>) -> error::Result<Self> in pin_init()
195 pub fn init<E>(init: impl Init<T, E>) -> error::Result<Self> in init()
223 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
243 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() argument
272 fn as_ref(&self) -> &T { in as_ref()
544 pub fn write(mut self, value: T) -> UniqueArc<T> { in write()
556 pub unsafe fn assume_init(self) -> UniqueArc<T> { in assume_init()
566 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with() argument
578 init: impl PinInit<T, E>, in pin_init_with()
579 ) -> core::result::Result<Pin<UniqueArc<T>>, E> { in pin_init_with()
Dcondvar.rs106 fn wait_internal<T: ?Sized, B: Backend>(&self, wait_state: u32, guard: &mut Guard<'_, T, B>) { in wait_internal() argument
133 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait() argument
142 pub fn wait_uninterruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait_uninterruptible() argument
Dlocked_by.rs118 pub fn access<'a>(&'a self, owner: &'a U) -> &'a T { in access()
144 pub fn access_mut<'a>(&'a self, owner: &'a mut U) -> &'a mut T { in access_mut()
Dlock.rs103 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
118 pub fn lock(&self) -> Guard<'_, T, B> { in lock() argument
184 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
/linux-6.6.21/drivers/comedi/drivers/tests/
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.6.21/drivers/gpu/drm/i915/
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
278 #define PRINT(T, x, ...) _param_print(p, #x, params->x); in i915_params_dump() argument
300 #define DUP(T, x, ...) _param_dup(&dest->x); in i915_params_copy() argument
319 #define FREE(T, x, ...) _param_free(&params->x); in i915_params_free() argument
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.6.21/include/linux/
Doverflow.h34 #define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) argument
35 #define type_min(T) ((T)((T)-type_max(T)-(T)1)) argument
131 #define __overflows_type_constexpr(x, T) ( \ argument
138 #define __overflows_type(x, T) ({ \ argument
157 #define overflows_type(n, T) \ argument
173 #define castable_to_type(n, T) \ argument
/linux-6.6.21/lib/
Dtest_scanf.c187 #define value_representable_in_type(T, val) \ argument
193 #define test_one_number(T, gen_fmt, scan_fmt, val, fn) \ argument
202 #define simple_numbers_loop(T, gen_fmt, scan_fmt, fn) \ argument
286 #define random_for_type(T) \ argument
352 #define numbers_list_8(T, gen_fmt, field_sep, scan_fmt, fn) \ argument
372 #define numbers_list_fix_width(T, gen_fmt, field_sep, width, scan_fmt, fn) \ argument
380 #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
708 #define test_simple_strtoxx(T, fn, gen_fmt, base) \ argument
/linux-6.6.21/tools/testing/selftests/kvm/
Dguest_print_test.c40 #define TYPE(fn, ext, fmt_t, T) TYPE_##ext, argument
48 #define BUILD_TYPE_STRINGS_AND_HELPER(fn, ext, fmt_t, T) \ argument
63 #define TYPE(fn, ext, fmt_t, T) \ argument
72 #define TYPE(fn, ext, fmt_t, T) \ in guest_code() argument
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/top/
Dgk104.c73 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in gk104_top_parse() argument
74 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in gk104_top_parse() argument
Dga100.c69 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in ga100_top_parse() argument
70 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in ga100_top_parse() argument
/linux-6.6.21/drivers/ata/
Dlibata-pata-timings.c61 struct ata_timing *q, int T, int UT) in ata_timing_quantize()
116 struct ata_timing *t, int T, int UT) in ata_timing_compute()
/linux-6.6.21/arch/loongarch/kernel/
Dhw_breakpoint.c36 #define READ_WB_REG_CASE(OFF, N, REG, T, VAL) \ argument
41 #define WRITE_WB_REG_CASE(OFF, N, REG, T, VAL) \ argument
46 #define GEN_READ_WB_REG_CASES(OFF, REG, T, VAL) \ argument
56 #define GEN_WRITE_WB_REG_CASES(OFF, REG, T, VAL) \ argument
/linux-6.6.21/rust/kernel/init/
D__internal.rs119 unsafe impl<T: ?Sized> HasInitData for T { implementation
165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init() method

12345