| /linux/rust/kernel/ |
| H A D | debugfs.rs | 71 fn create_file<'a, T, E: 'a>( in create_file() argument 74 data: impl PinInit<T, E> + 'a, in create_file() 75 file_ops: &'static FileOps<T>, in create_file() 76 ) -> impl PinInit<File<T>, E> + 'a in create_file() 141 pub fn read_only_file<'a, T, E: 'a>( in read_only_file() argument 144 data: impl PinInit<T, E> + 'a, in read_only_file() 145 ) -> impl PinInit<File<T>, E> + 'a in read_only_file() 179 pub fn read_callback_file<'a, T, E: 'a, F>( in read_callback_file() argument 182 data: impl PinInit<T, E> + 'a, in read_callback_file() 184 ) -> impl PinInit<File<T>, E> + 'a in read_callback_file() [all …]
|
| H A D | list.rs | 460 pub unsafe fn raw_get_self_ptr(me: *const Self) -> *const Opaque<*const T> { in raw_get_self_ptr() 491 item: ListArc<T, ID>, in insert_inner() 534 pub fn push_back(&mut self, item: ListArc<T, ID>) { in push_back() 542 pub fn push_front(&mut self, item: ListArc<T, ID>) { in push_front() 553 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back() 565 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front() 582 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove() 623 unsafe fn remove_internal(&mut self, item: *mut ListLinksFields) -> ListArc<T, ID> { in remove_internal() 642 ) -> ListArc<T, ID> { in remove_internal_inner() 690 pub fn push_all_back(&mut self, other: &mut List<T, ID>) { in push_all_back() [all …]
|
| H A D | devres.rs | 132 data: impl PinInit<T, E> + 'a, in new() 173 fn inner(&self) -> &Inner<T> { in inner() 179 fn data(&self) -> &Revocable<T> { in data() 247 pub fn access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a T> { in access() 259 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument 269 pub fn try_access_with_guard<'a>(&'a self, guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard() 359 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register()
|
| H A D | init.rs | 147 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() 155 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init() 167 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() 172 fn init<E>(init: impl Init<T, E>, flags: Flags) -> error::Result<Self> in init()
|
| H A D | types.rs | 224 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data() 230 pub fn dismiss(mut self) -> T { in dismiss() 247 fn deref(&self) -> &T { in deref() 254 fn deref_mut(&mut self) -> &mut T { in deref_mut() 395 pub const fn get(&self) -> *mut T { in get() 403 pub const fn cast_into(this: *const Self) -> *mut T { in cast_into() 415 fn pin_init<E>(slot: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init()
|
| H A D | maple_tree.rs | 50 fn deref(&self) -> &MapleTree<T> { in deref() 121 pub fn insert(&self, index: usize, value: T, gfp: Flags) -> Result<(), InsertError<T>> { in insert() 169 pub fn insert_range<R>(&self, range: R, value: T, gfp: Flags) -> Result<(), InsertError<T>> in insert_range() 227 pub fn erase(&self, index: usize) -> Option<T> { in erase() 238 pub fn lock(&self) -> MapleGuard<'_, T> { in lock() argument 314 pub fn ma_state(&mut self, first: usize, end: usize) -> MaState<'_, T> { in ma_state() argument 434 value: T, in alloc_range() 502 unsafe fn new_raw(mt: &'tree MapleTree<T>, first: usize, end: usize) -> Self { in new_raw()
|
| H A D | revocable.rs | 85 pub fn new<E>(data: impl PinInit<T, E>) -> impl PinInit<Self, E> { in new() 99 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument 118 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard() 150 pub unsafe fn access(&self) -> &T { in access() 246 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new()
|
| H A D | xarray.rs | 122 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock() argument 135 pub fn lock(&self) -> Guard<'_, T> { in lock() argument 208 pub fn remove(&mut self, index: usize) -> Option<T> { in remove() 230 value: T, in store() 232 ) -> Result<Option<T>, StoreError<T>> { in store()
|
| H A D | dma.rs | 384 ) -> Result<CoherentAllocation<T>> { in alloc_attrs() 428 ) -> Result<CoherentAllocation<T>> { in alloc_coherent() 448 pub fn start_ptr(&self) -> *const T { in start_ptr() 454 pub fn start_ptr_mut(&mut self) -> *mut T { in start_ptr_mut() 500 pub unsafe fn as_slice(&self, offset: usize, count: usize) -> Result<&[T]> { in as_slice() 520 pub unsafe fn as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mut [T]> { in as_slice_mut() 552 pub unsafe fn write(&mut self, src: &[T], offset: usize) -> Result { in write() 570 pub fn item_from_index(&self, offset: usize) -> Result<*mut T> { in item_from_index()
|
| /linux/rust/kernel/alloc/ |
| H A D | kbox.rs | 203 pub fn into_raw(b: Self) -> *mut T { in into_raw() 211 pub fn leak<'a>(b: Self) -> &'a mut T { in leak() 230 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init() 240 pub fn write(mut self, value: T) -> Box<T, A> { in write() 256 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() 275 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit() 287 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin() 340 ) -> Result<Pin<Box<[T], A>>, E> in pin_slice() 343 Item: PinInit<T, E>, in pin_slice() 378 fn forget_contents(this: Self) -> Box<MaybeUninit<T>, A> { in forget_contents() [all …]
|
| H A D | kvec.rs | 218 unsafe fn dec_len(&mut self, count: usize) -> &mut [T] { in dec_len() 241 pub fn as_slice(&self) -> &[T] { in as_slice() 247 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice() 254 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() 261 pub const fn as_ptr(&self) -> *const T { in as_ptr() 300 pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] { in spare_capacity_mut() 325 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() 348 pub fn push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> { in push_within_capacity() 363 unsafe fn push_within_capacity_unchecked(&mut self, v: T) { in push_within_capacity_unchecked() 398 element: T, in insert_within_capacity() [all …]
|
| /linux/rust/pin-init/src/ |
| H A D | lib.rs | 1086 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument 1194 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument 1250 ) -> impl PinInit<T, E> { in pin_init_from_closure() 1269 ) -> impl Init<T, E> { in init_from_closure() 1280 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> { in cast_pin_init() argument 1296 pub const unsafe fn cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> { in cast_init() argument 1309 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument 1324 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() argument 1328 I: Init<T, E>, 1367 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn() argument [all …]
|
| H A D | alloc.rs | 30 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 D | atomic.rs | 138 const unsafe fn from_repr<T: AtomicType>(r: T::Repr) -> T { in from_repr() 226 pub const fn as_ptr(&self) -> *mut T { in as_ptr() 236 pub fn get_mut(&mut self) -> &mut T { in get_mut() 267 pub fn load<Ordering: ordering::AcquireOrRelaxed>(&self, _: Ordering) -> T { in load() 297 pub fn store<Ordering: ordering::ReleaseOrRelaxed>(&self, v: T, _: Ordering) { in store() 329 pub fn xchg<Ordering: ordering::Ordering>(&self, v: T, _: Ordering) -> T { in xchg() 402 mut old: T, in cmpxchg() 403 new: T, in cmpxchg() 405 ) -> Result<T, T> { in cmpxchg() argument 447 fn try_cmpxchg<Ordering: ordering::Ordering>(&self, old: &mut T, new: T, _: Ordering) -> bool { in try_cmpxchg()
|
| H A D | arc.rs | 159 unsafe fn container_of(ptr: *const T) -> NonNull<ArcInner<T>> { in container_of() 211 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() 219 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() 229 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(this: Self) -> Option<Pin<UniqueArc<T>>> { in into_unique_or_drop() 393 unsafe fn borrow<'a>(ptr: *mut c_void) -> ArcBorrow<'a, T> { in borrow() argument 403 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> ArcBorrow<'a, T> { in borrow_mut() argument [all …]
|
| H A D | condvar.rs | 114 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
|
| /linux/rust/kernel/list/ |
| H A D | arc.rs | 173 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 …]
|
| H A D | arc_field.rs | 37 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/drivers/comedi/drivers/tests/ |
| H A D | ni_routes_test.c | 310 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 D | i915_params.c | 44 #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(¶ms->x); in i915_params_free() argument
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_display_params.c | 14 #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 196 #define PRINT(T, x, ...) _param_print(p, driver_name, #x, params->x); in intel_display_params_dump() argument 219 #define DUP(T, x, ...) _param_dup(&dest->x); in intel_display_params_copy() argument 239 #define FREE(T, x, ...) _param_free(¶ms->x); in intel_display_params_free() argument
|
| /linux/rust/kernel/debugfs/ |
| H A D | file_ops.rs | 121 impl<T: Writer + Sync> ReadFile<T> for T { implementation 139 fn read<T: Reader + Sync>(data: &T, buf: *const c_char, count: usize) -> isize { in read() 164 let data = unsafe { &*(seq.private as *const T) }; in write() constant 173 impl<T: Writer + Reader + Sync> ReadWriteFile<T> for T { implementation 223 let data = unsafe { &*((*file).private_data as *const T) }; in write_only_write() constant 231 impl<T: Reader + Sync> WriteFile<T> for T { implementation
|
| H A D | entry.rs | 55 data: &T, in dynamic_file() 56 file_ops: &'static FileOps<T>, in dynamic_file() 106 data: &'a T, in file() 107 file_ops: &FileOps<T>, in file()
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | tree.rs | 36 ranges: &mut KVec<Range<T>>, in from_array() 37 alloc: &mut FromArrayAllocs<T>, in from_array() 142 fn find_best_match(&mut self, size: usize) -> Option<&mut Descriptor<T>> { in find_best_match() 155 alloc: ReserveNewTreeAlloc<T>, in reserve_new() 328 pub(crate) fn reserve_existing(&mut self, offset: usize) -> Result<(usize, usize, Option<T>)> { in reserve_existing() 417 F: FnOnce(Option<TreeDescriptorState<T>>) -> (Option<TreeDescriptorState<T>>, Result<Data>), in try_change_state() 450 desc: Descriptor<T>, in initialize() 452 RBTreeNode<usize, Descriptor<T>>, in initialize()
|
| /linux/rust/kernel/time/ |
| H A D | hrtimer.rs | 180 unsafe fn raw_forward(self_ptr: *mut Self, now: HrTimerInstant<T>, interval: Delta) -> u64 in raw_forward() 204 pub fn forward(self: Pin<&mut Self>, now: HrTimerInstant<T>, interval: Delta) -> u64 in forward() 220 pub fn forward_now(self: Pin<&mut Self>, interval: Delta) -> u64 in forward_now() 231 pub fn expires(&self) -> HrTimerInstant<T> in expires() 332 fn start_scoped<T, F>(self, expires: <Self::TimerMode as HrTimerMode>::Expires, f: F) -> T in start_scoped() 334 F: FnOnce() -> T; in start_scoped() 340 unsafe impl<T> ScopedHrTimerPointer for T implementation 444 unsafe fn raw_get_timer(this: *const Self) -> *const HrTimer<T>; in raw_get_timer() 718 pub fn forward(&mut self, now: HrTimerInstant<T>, interval: Delta) -> u64 { in forward()
|