Home
last modified time | relevance | path

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

12345

/linux/rust/kernel/alloc/
H A Dkbox.rs200 pub fn into_raw(b: Self) -> *mut T { in into_raw()
208 pub fn leak<'a>(b: Self) -> &'a mut T { in leak()
227 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
237 pub fn write(mut self, value: T) -> Box<T, A> { in write()
253 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new()
272 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit()
284 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin()
298 fn forget_contents(this: Self) -> Box<MaybeUninit<T>, A> { in forget_contents()
318 pub fn drop_contents(this: Self) -> Box<MaybeUninit<T>, A> { in drop_contents()
329 pub fn into_inner(b: Self) -> T { in into_inner()
[all …]
H A Dkvec.rs214 unsafe fn dec_len(&mut self, count: usize) -> &mut [T] { in dec_len()
227 pub fn as_slice(&self) -> &[T] { in as_slice()
233 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
240 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
247 pub fn as_ptr(&self) -> *const T { in as_ptr()
286 pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] { in spare_capacity_mut()
311 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push()
334 pub fn push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> { in push_within_capacity()
349 unsafe fn push_within_capacity_unchecked(&mut self, v: T) { in push_within_capacity_unchecked()
384 element: T, in insert_within_capacity()
[all …]
/linux/rust/kernel/
H A Dlist.rs367 item: ListArc<T, ID>, in insert_inner()
410 pub fn push_back(&mut self, item: ListArc<T, ID>) { in push_back()
418 pub fn push_front(&mut self, item: ListArc<T, ID>) { in push_front()
429 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back()
441 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front()
458 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove()
499 unsafe fn remove_internal(&mut self, item: *mut ListLinksFields) -> ListArc<T, ID> { in remove_internal()
518 ) -> ListArc<T, ID> { in remove_internal_inner()
566 pub fn push_all_back(&mut self, other: &mut List<T, ID>) { in push_all_back()
595 pub fn cursor_front(&mut self) -> Cursor<'_, T, ID> { in cursor_front() argument
[all …]
H A Ddevres.rs101 fn new(dev: &Device<Bound>, data: T, flags: Flags) -> Result<Arc<DevresInner<T>>> { in new()
181 pub fn new(dev: &Device<Bound>, data: T, flags: Flags) -> Result<Self> { in new()
189 pub fn new_foreign_owned(dev: &Device<Bound>, data: T, flags: Flags) -> Result { in new_foreign_owned()
223 pub fn access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a T> { in access()
235 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument
245 pub fn try_access_with_guard<'a>(&'a self, guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
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 Dxarray.rs121 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock() argument
134 pub fn lock(&self) -> Guard<'_, T> { in lock() argument
207 pub fn remove(&mut self, index: usize) -> Option<T> { in remove()
229 value: T, in store()
231 ) -> Result<Option<T>, StoreError<T>> { in store()
H A Dtypes.rs223 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
229 pub fn dismiss(mut self) -> T { in dismiss()
246 fn deref(&self) -> &T { in deref()
253 fn deref_mut(&mut self) -> &mut T { in deref_mut()
405 pub const fn get(&self) -> *mut T { in get()
413 pub const fn raw_get(this: *const Self) -> *mut T { in raw_get()
529 pub fn into_raw(me: Self) -> NonNull<T> { in into_raw()
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()
148 pub unsafe fn access(&self) -> &T { in access()
240 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new()
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 Dpage.rs104 fn with_page_mapped<T>(&self, f: impl FnOnce(*mut u8) -> T) -> T { in with_page_mapped()
149 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page()
/linux/rust/pin-init/src/
H A Dlib.rs1084 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument
1192 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument
1248 ) -> impl PinInit<T, E> { in pin_init_from_closure()
1267 ) -> impl Init<T, E> { in init_from_closure()
1278 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> { in cast_pin_init() argument
1294 pub const unsafe fn cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> { in cast_init() argument
1307 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument
1322 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() argument
1326 I: Init<T, E>,
1365 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn() 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 Darc.rs158 unsafe fn container_of(ptr: *const T) -> NonNull<ArcInner<T>> { in container_of()
210 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init()
218 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init()
228 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
263 pub fn into_raw(self) -> *const T { in into_raw()
271 pub fn as_ptr(this: &Self) -> *const T { in as_ptr()
300 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
346 pub fn into_unique_or_drop(self) -> Option<Pin<UniqueArc<T>>> { in into_unique_or_drop()
396 unsafe fn borrow<'a>(ptr: *mut Self::PointedTo) -> ArcBorrow<'a, T> { in borrow() argument
406 unsafe fn borrow_mut<'a>(ptr: *mut Self::PointedTo) -> ArcBorrow<'a, T> { in borrow_mut() argument
[all …]
/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
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/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/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 Ddriver.rs124 fn new(drm: &drm::Device<T>, flags: usize) -> Result<Self> { in new()
134 drm: &drm::Device<T>, in new_foreign_owned()
147 pub fn device(&self) -> &drm::Device<T> { in device()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/top/
H A 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
H A 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/rust/kernel/time/
H A Dhrtimer.rs251 fn start_scoped<T, F>(self, expires: Ktime, f: F) -> T in start_scoped()
253 F: FnOnce() -> T; in start_scoped()
259 unsafe impl<T> ScopedHrTimerPointer for T implementation
346 unsafe fn raw_get_timer(this: *const Self) -> *const HrTimer<T>; in raw_get_timer()
/linux/drivers/ata/
H A 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