Home
last modified time | relevance | path

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

12345

/linux-6.14.4/rust/kernel/alloc/
Dkbox.rs157 pub fn into_raw(b: Self) -> *mut T { in into_raw()
165 pub fn leak<'a>(b: Self) -> &'a mut T { in leak()
184 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
194 pub fn write(mut self, value: T) -> Box<T, A> { in write()
210 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new()
229 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit()
241 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin()
249 fn forget_contents(this: Self) -> Box<MaybeUninit<T>, A> { in forget_contents()
269 pub fn drop_contents(this: Self) -> Box<MaybeUninit<T>, A> { in drop_contents()
280 pub fn into_inner(b: Self) -> T { in into_inner()
[all …]
Dkvec.rs201 pub fn as_slice(&self) -> &[T] { in as_slice()
207 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
214 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
221 pub fn as_ptr(&self) -> *const T { in as_ptr()
260 pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] { in spare_capacity_mut()
285 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push()
364 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
390 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts()
459 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with()
498 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> { in extend_from_slice()
[all …]
/linux-6.14.4/rust/kernel/
Dinit.rs901 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument
1000 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument
1056 ) -> impl PinInit<T, E> { in pin_init_from_closure()
1075 ) -> impl Init<T, E> { in init_from_closure()
1083 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument
1099 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() argument
1103 I: Init<T, E>,
1144 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn() argument
1148 I: PinInit<T, E>,
1179 unsafe impl<T, E> Init<T, E> for T { implementation
[all …]
Dlist.rs249 pub fn push_back(&mut self, item: ListArc<T, ID>) { in push_back()
288 pub fn push_front(&mut self, item: ListArc<T, ID>) { in push_front()
327 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back()
339 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front()
356 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove()
397 unsafe fn remove_internal(&mut self, item: *mut ListLinksFields) -> ListArc<T, ID> { in remove_internal()
416 ) -> ListArc<T, ID> { in remove_internal_inner()
464 pub fn push_all_back(&mut self, other: &mut List<T, ID>) { in push_all_back()
495 pub fn cursor_front(&mut self) -> Option<Cursor<'_, T, ID>> { in cursor_front() argument
507 pub fn iter(&self) -> Iter<'_, T, ID> { in iter() argument
[all …]
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()
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()
376 pub const fn get(&self) -> *mut T { in get()
384 pub const fn raw_get(this: *const Self) -> *mut T { in raw_get()
500 pub fn into_raw(me: Self) -> NonNull<T> { in into_raw()
Derror.rs153 pub fn to_ptr<T>(self) -> *mut T { in to_ptr()
286 pub fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
332 pub fn from_result<T, F>(f: F) -> T in from_result()
335 F: FnOnce() -> Result<T>, in from_result()
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()
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.14.4/rust/kernel/list/
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 …]
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.14.4/rust/kernel/sync/
Darc.rs157 unsafe fn container_of(ptr: *const T) -> NonNull<ArcInner<T>> { in container_of()
207 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
242 pub fn into_raw(self) -> *const T { in into_raw()
270 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
316 pub fn into_unique_or_drop(self) -> Option<Pin<UniqueArc<T>>> { in into_unique_or_drop()
364 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() argument
374 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> ArcBorrow<'a, T> { in borrow_mut() argument
392 fn as_ref(&self) -> &T { in as_ref()
664 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new()
672 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit()
[all …]
Dcondvar.rs115 fn wait_internal<T: ?Sized, B: Backend>( in wait_internal() argument
146 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait() argument
157 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible() argument
168 pub fn wait_interruptible_timeout<T: ?Sized, B: Backend>( in wait_interruptible_timeout() argument
Dlock.rs132 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
169 pub fn lock(&self) -> Guard<'_, T, B> { in lock() argument
180 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock() argument
244 pub unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
/linux-6.14.4/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.14.4/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
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
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.14.4/drivers/gpu/drm/i915/display/
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.14.4/include/linux/
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.14.4/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.14.4/tools/testing/selftests/kvm/
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.14.4/rust/kernel/sync/lock/
Dglobal.rs156 pub fn as_ref<'a>(&'a self, _guard: &'a GlobalGuard<B>) -> &'a T { in as_ref()
164 pub fn as_mut<'a>(&'a self, _guard: &'a mut GlobalGuard<B>) -> &'a mut T { in as_mut()
173 pub fn get_mut(&mut self) -> &mut T { in get_mut()
/linux-6.14.4/drivers/gpu/drm/nouveau/nvkm/subdev/top/
Dgk104.c75 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in gk104_top_parse() argument
76 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in gk104_top_parse() argument
Dga100.c71 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in ga100_top_parse() argument
72 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in ga100_top_parse() argument
/linux-6.14.4/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()

12345