Home
last modified time | relevance | path

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

1234

/linux-6.1.9/rust/alloc/
Dslice.rs167 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec() argument
177 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec() argument
189 impl<T: Clone> ConvertVec for T { implementation
226 impl<T: Copy> ConvertVec for T { implementation
243 impl<T> [T] { implementation
332 F: FnMut(&T, &T) -> Ordering, in sort_by()
503 pub fn to_vec_in<A: Allocator>(&self, alloc: A) -> Vec<T, A> in to_vec_in()
528 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec() argument
777 fn concat(slice: &Self) -> Vec<T> { in concat()
792 fn join(slice: &Self, sep: &T) -> Vec<T> { in join()
[all …]
Dboxed.rs265 pub fn pin(x: T) -> Pin<Box<T>> { in pin()
361 pub const fn new_in(x: T, alloc: A) -> Self in new_in()
390 pub const fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
427 pub const fn new_uninit_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_uninit_in()
465 pub const fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_uninit_in()
499 pub const fn new_zeroed_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_zeroed_in()
537 pub const fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in()
553 pub const fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
565 pub const fn into_boxed_slice(boxed: Self) -> Box<[T], A> { in into_boxed_slice()
616 pub fn new_uninit_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_uninit_slice()
[all …]
Draw_vec.rs156 pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> { in into_box()
217 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
225 pub fn ptr(&self) -> *mut T { in ptr()
282 fn do_reserve_and_handle<T, A: Allocator>( in reserve()
283 slf: &mut RawVec<T, A>, in reserve()
Dborrow.rs86 impl<T> ToOwned for T implementation
91 fn to_owned(&self) -> T { in to_owned()
95 fn clone_into(&self, target: &mut T) { in clone_into()
437 fn as_ref(&self) -> &T { in as_ref()
Dalloc.rs336 pub(crate) const unsafe fn box_free<T: ?Sized, A: ~const Allocator + ~const Destruct>( in box_free()
425 impl<T: Clone> WriteCloneIntoRaw for T { implementation
434 impl<T: Copy> WriteCloneIntoRaw for T { implementation
/linux-6.1.9/rust/alloc/vec/
Dmod.rs545 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
692 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
729 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts()
773 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc()
1003 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice()
1091 pub fn as_slice(&self) -> &[T] { in as_slice()
1108 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
1139 pub fn as_ptr(&self) -> *const T { in as_ptr()
1175 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
1304 pub fn swap_remove(&mut self, index: usize) -> T { in swap_remove()
[all …]
Dinto_iter.rs66 pub fn as_slice(&self) -> &[T] { in as_slice()
84 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
95 fn as_raw_mut_slice(&mut self) -> *mut [T] { in as_raw_mut_slice()
137 fn as_ref(&self) -> &[T] { in as_ref()
152 fn next(&mut self) -> Option<T> { in next()
230 fn next_back(&mut self) -> Option<T> { in next_back()
291 impl<T: Copy> NonDrop for T {} implementation
Ddrain.rs59 pub fn as_slice(&self) -> &[T] { in as_slice()
74 fn as_ref(&self) -> &[T] { in as_ref()
89 fn next(&mut self) -> Option<T> { in next()
101 fn next_back(&mut self) -> Option<T> { in next_back()
Dis_zero.rs40 unsafe impl<T> IsZero for *const T { implementation
47 unsafe impl<T> IsZero for *mut T { implementation
Ddrain_filter.rs68 fn next(&mut self) -> Option<T> { in next()
85 let src: *const T = &v[i]; in next() constant
/linux-6.1.9/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
252 #define PRINT(T, x, ...) _print_param(p, #x, #T, &params->x); in i915_params_dump() argument
266 #define DUP(T, x, ...) dup_param(#T, &dest->x); in i915_params_copy() argument
282 #define FREE(T, x, ...) free_param(#T, &params->x); in i915_params_free() argument
Di915_selftest.h89 #define i915_subtests(T, data) \ argument
93 #define i915_live_subtests(T, data) ({ \ argument
99 #define intel_gt_live_subtests(T, data) ({ \ argument
Di915_utils.h77 #define add_overflows_t(T, A, B) \ argument
80 #define add_overflows_t(T, A, B) ({ \ argument
115 #define overflows_type(x, T) \ argument
152 #define struct_member(T, member) (((T *)0)->member) argument
196 #define u64_to_ptr(T, x) ({ \ argument
Di915_params.h89 #define MEMBER(T, member, ...) T member; argument
/linux-6.1.9/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.1.9/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.1.9/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_oneinit() argument
74 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in gk104_top_oneinit() argument
Dga100.c69 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in ga100_top_oneinit() argument
70 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in ga100_top_oneinit() argument
/linux-6.1.9/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.1.9/tools/include/linux/
Doverflow.h33 #define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) argument
34 #define type_min(T) ((T)((T)-type_max(T)-(T)1)) argument
/linux-6.1.9/arch/x86/include/asm/
Dkvm_para.h150 #define kvm_async_pf_task_wait_schedule(T) do {} while(0) argument
151 #define kvm_async_pf_task_wake(T) do {} while(0) argument
/linux-6.1.9/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
Dcontainer_of.h8 #define typeof_member(T, m) typeof(((T*)0)->m) argument
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
Dpower.c55 #define ASLP_TOUT(T) cpu_to_le32(T) argument
57 #define SLP_TOUT(T) cpu_to_le32((T) * TU_TO_USEC) argument
/linux-6.1.9/drivers/net/wireguard/selftest/
Dcounter.c24 #define T(n, v) do { \ in wg_packet_counter_selftest() macro

1234