| /linux/rust/zerocopy/src/ |
| H A D | deprecated.rs | 26 pub fn new(bytes: B) -> Option<Ref<B, T>> { in new() 40 pub fn new_from_prefix(bytes: B) -> Option<(Ref<B, T>, B)> { in new_from_prefix() 54 pub fn new_from_suffix(bytes: B) -> Option<(B, Ref<B, T>)> { in new_from_suffix() 71 pub fn new_unaligned(bytes: B) -> Option<Ref<B, T>> { in new_unaligned() 88 pub fn new_unaligned_from_prefix(bytes: B) -> Option<(Ref<B, T>, B)> { in new_unaligned_from_prefix() 105 pub fn new_unaligned_from_suffix(bytes: B) -> Option<(B, Ref<B, T>)> { in new_unaligned_from_suffix() 118 pub fn new_slice(bytes: B) -> Option<Ref<B, [T]>> { in new_slice() 134 pub fn new_slice_unaligned(bytes: B) -> Option<Ref<B, [T]>> { in new_slice_unaligned() 174 pub fn new_slice_from_prefix(bytes: B, count: usize) -> Option<(Ref<B, [T]>, B)> { in new_slice_from_prefix() 182 pub fn new_slice_from_suffix(bytes: B, count: usize) -> Option<(B, Ref<B, [T]>)> { in new_slice_from_suffix() [all …]
|
| H A D | impls.rs | 282 unsafe_impl!(Option<NonZeroU8>: TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 283 unsafe_impl!(Option<NonZeroI8>: TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); 284 assert_unaligned!(Option<NonZeroU8>, Option<NonZeroI8>); 285 unsafe_impl!(Option<NonZeroU16>: TryFromBytes, FromZeros, FromBytes, IntoBytes); 286 unsafe_impl!(Option<NonZeroI16>: TryFromBytes, FromZeros, FromBytes, IntoBytes); 287 unsafe_impl!(Option<NonZeroU32>: TryFromBytes, FromZeros, FromBytes, IntoBytes); 288 unsafe_impl!(Option<NonZeroI32>: TryFromBytes, FromZeros, FromBytes, IntoBytes); 289 unsafe_impl!(Option<NonZeroU64>: TryFromBytes, FromZeros, FromBytes, IntoBytes); 290 unsafe_impl!(Option<NonZeroI64>: TryFromBytes, FromZeros, FromBytes, IntoBytes); 291 unsafe_impl!(Option<NonZeroU128>: TryFromBytes, FromZeros, FromBytes, IntoBytes); [all …]
|
| H A D | byteorder.rs | 242 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { 275 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { 289 fn partial_cmp(&self, other: &$native) -> Option<Ordering> { 1069 fn checked_add(self, rhs: Self) -> Option<Self>; in checked_add() 1072 fn checked_div(self, rhs: Self) -> Option<Self>; in checked_div() 1075 fn checked_mul(self, rhs: Self) -> Option<Self>; in checked_mul() 1078 fn checked_rem(self, rhs: Self) -> Option<Self>; in checked_rem() 1081 fn checked_sub(self, rhs: Self) -> Option<Self>; in checked_sub() 1084 fn checked_shl(self, rhs: Self) -> Option<Self>; in checked_shl() 1087 fn checked_shr(self, rhs: Self) -> Option<Self>; in checked_shr() [all …]
|
| /linux/Documentation/input/devices/ |
| H A D | appletouch.rst | 42 Option "SendCoreEvents" "true" 43 Option "Device" "/dev/input/mice" 44 Option "Protocol" "auto-dev" 45 Option "LeftEdge" "0" 46 Option "RightEdge" "850" 47 Option "TopEdge" "0" 48 Option "BottomEdge" "645" 49 Option "MinSpeed" "0.4" 50 Option "MaxSpeed" "1" 51 Option "AccelFactor" "0.02" [all …]
|
| /linux/rust/kernel/ |
| H A D | rbtree.rs | 246 pub fn cursor_front_mut(&mut self) -> Option<CursorMut<'_, K, V>> { in cursor_front_mut() 261 pub fn cursor_front(&self) -> Option<Cursor<'_, K, V>> { in cursor_front() 276 pub fn cursor_back_mut(&mut self) -> Option<CursorMut<'_, K, V>> { in cursor_back_mut() 291 pub fn cursor_back(&self) -> Option<Cursor<'_, K, V>> { in cursor_back() 321 ) -> Result<Option<RBTreeNode<K, V>>> { in try_create_and_insert() 331 pub fn insert(&mut self, node: RBTreeNode<K, V>) -> Option<RBTreeNode<K, V>> { in insert() 403 pub fn find_mut(&mut self, key: &K) -> Option<OccupiedEntry<'_, K, V>> { in find_mut() 411 pub fn get(&self, key: &K) -> Option<&V> { in get() 434 pub fn get_mut(&mut self, key: &K) -> Option<&mut V> { 441 pub fn remove_node(&mut self, key: &K) -> Option<RBTreeNod in remove_node() [all...] |
| H A D | xarray.rs | 24 /// This is similar to a [`crate::alloc::kvec::Vec<Option<T>>`], but more efficient when there are 128 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock() 188 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load() 199 pub fn get(&self, index: usize) -> Option<T::Borrowed<'_>> { 207 pub fn get_mut(&mut self, index: usize) -> Option<T::BorrowedMut<'_>> { 215 pub fn remove(&mut self, index: usize) -> Option<T> { in remove() 239 ) -> Result<Option<T>, StoreError<T>> { in store()
|
| H A D | platform.rs | 133 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>> { in of_id_table() 137 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>> { in acpi_id_table() 221 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = None; 224 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = None; 232 id_info: Option<&'bound Self::IdInfo>, in probe() 272 pub fn resource_by_index(&self, index: u32) -> Option<&Resource> { in resource_by_index() 288 pub fn resource_by_name(&self, name: &CStr) -> Option<&Resource> { in resource_by_name() 312 pub fn io_request_by_index(&self, index: u32) -> Option<IoRequest<'_>> { in io_request_by_index() 320 pub fn io_request_by_name(&self, name: &CStr) -> Option<IoRequest<'_>> { in io_request_by_name()
|
| H A D | driver.rs | 24 //! const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = None; 27 //! const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = None; 305 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>>; in acpi_id_info() 308 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>>; in acpi_id_info() 319 unsafe fn id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in acpi_id_info()
|
| H A D | ptr.rs | 75 pub const fn new_checked(align: usize) -> Option<Self> { in new_checked() 198 fn align_up(self, alignment: Alignment) -> Option<Self>; in align_up() 217 fn align_up(self, alignment: Alignment) -> Option<Self> { 290 pub const fn const_align_up(value: usize, align: Alignment) -> Option<usize> {
|
| H A D | list.rs | 569 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back() 581 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front() 601 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove() 798 fn next(&mut self) -> Option<ArcBorrow<'a, T>> { in next() 995 pub fn peek_next(&mut self) -> Option<CursorPeek<'_, 'a, T, true, ID>> { in peek_next() 1010 pub fn peek_prev(&mut self) -> Option<CursorPeek<'_, 'a, T, false, ID>> { in peek_prev() 1104 pub fn remove_next(&mut self) -> Option<ListArc<T, ID>> { in remove_next() 1109 pub fn remove_prev(&mut self) -> Option<ListArc<T, ID>> { in remove_prev() 1202 fn next(&mut self) -> Option<ListArc<T, ID>> { in next() 1210 fn next_back(&mut self) -> Option<ListArc<T, ID>> { in next_back()
|
| H A D | mm.rs | 141 pub fn mmget_not_zero(&self) -> Option<ARef<MmWithUser>> { in mmget_not_zero() 176 pub fn lock_vma_under_rcu(&self, vma_addr: usize) -> Option<VmaReadGuard<'_>> { in lock_vma_under_rcu() 214 pub fn mmap_read_trylock(&self) -> Option<MmapReadGuard<'_>> { in mmap_read_trylock() 244 pub fn vma_lookup(&self, vma_addr: usize) -> Option<&virt::VmaRef> { in vma_lookup()
|
| H A D | i2c.rs | 190 fn i2c_id_table() -> Option<IdTable<<Self as driver::Adapter>::IdInfo>> { in i2c_id_table() 197 fn i2c_id_info(dev: &I2cClient) -> Option<&'static <Self as driver::Adapter>::IdInfo> { in i2c_id_info() 221 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>> { in of_id_table() 225 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>> { in acpi_id_table() 319 const I2C_ID_TABLE: Option<IdTable<Self::IdInfo>> = None; 322 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = None; 325 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = None; 333 id_info: Option<&'bound Self::IdInfo>, in probe()
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | mod.rs | 50 fn allocate<T>(self, data: Option<T>) -> Allocation<T> { in allocate() 60 data: Option<T>, 64 fn deallocate(self) -> (Reservation, Option<T>) { in deallocate() 72 fn take(&mut self) -> Option<T> { in take() 245 pub(crate) fn reservation_commit(&mut self, offset: usize, data: &mut Option<T>) -> Result { in reservation_commit() 256 pub(crate) fn reserve_existing(&mut self, offset: usize) -> Result<(usize, usize, Option<T>)> { in reserve_existing() 267 pub(crate) fn take_for_each<F: Fn(usize, usize, usize, Option<T>)>(&mut self, callback: F) { in take_for_each() 283 pub(crate) empty_array_alloc: Option<EmptyArrayAlloc<T>>, 284 pub(crate) new_tree_alloc: Option<FromArrayAllocs<T>>, 285 pub(crate) tree_alloc: Option<ReserveNewTreeAlloc<T>>, [all …]
|
| /linux/rust/syn/ |
| H A D | punctuated.rs | 51 last: Option<Box<T>>, 78 pub fn first(&self) -> Option<&T> { in first() 83 pub fn first_mut(&mut self) -> Option<&mut T> { in first_mut() 88 pub fn last(&self) -> Option<&T> { in last() 93 pub fn last_mut(&mut self) -> Option<&mut T> { in last_mut() 98 pub fn get(&self, index: usize) -> Option<&T> { in get() 109 pub fn get_mut(&mut self, index: usize) -> Option<&mut T> { in get_mut() 208 pub fn pop(&mut self) -> Option<Pair<T, P>> { in pop() 218 pub fn pop_punct(&mut self) -> Option<P> { in pop_punct() 570 fn next(&mut self) -> Option<Self::Item> { in next() [all …]
|
| H A D | item.rs | 143 pub rename: Option<(Token![as], Ident)>, 164 pub unsafety: Option<Token![unsafe]>, 177 pub defaultness: Option<Token![default]>, 178 pub unsafety: Option<Token![unsafe]>, 182 pub trait_: Option<(Option<Token![!]>, Path, Token![for])>, 196 pub ident: Option<Ident>, 198 pub semi_token: Option<Token![;]>, 208 pub unsafety: Option<Token![unsafe]>, 211 pub content: Option<(token::Brace, Vec<Item>)>, 212 pub semi: Option<Token![;]>, [all …]
|
| H A D | buffer.rs | 191 pub fn ident(mut self) -> Option<(Ident, Cursor<'a>)> { in ident() 201 pub fn punct(mut self) -> Option<(Punct, Cursor<'a>)> { in punct() 213 pub fn literal(mut self) -> Option<(Literal, Cursor<'a>)> { in literal() 223 pub fn lifetime(mut self) -> Option<(Lifetime, Cursor<'a>)> { in lifetime() 241 pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, DelimSpan, Cursor<'a>)> { in group() 264 pub fn any_group(self) -> Option<(Cursor<'a>, Delimiter, DelimSpan, Cursor<'a>)> { in any_group() 277 pub(crate) fn any_group_token(self) -> Option<(Group, Cursor<'a>)> { in any_group_token() 306 pub fn token_tree(self) -> Option<(TokenTree, Cursor<'a>)> { in token_tree() 352 pub(crate) fn skip(mut self) -> Option<Cursor<'a>> { in skip() 401 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp()
|
| H A D | generics.rs | 29 pub lt_token: Option<Token![<]>, 31 pub gt_token: Option<Token![>]>, 32 pub where_clause: Option<WhereClause>, 64 pub colon_token: Option<Token![:]>, 75 pub colon_token: Option<Token![:]>, 77 pub eq_token: Option<Token![=]>, 78 pub default: Option<Type>, 91 pub eq_token: Option<Token![=]>, 92 pub default: Option<Expr>, 178 pub fn split_for_impl(&self) -> (ImplGenerics, TypeGenerics, Option<&WhereClause>) { in split_for_impl() [all …]
|
| H A D | pat.rs | 114 pub by_ref: Option<Token![ref]>, 115 pub mutability: Option<Token![mut]>, 117 pub subpat: Option<(Token![@], Box<Pat>)>, 126 pub leading_vert: Option<Token![|]>, 147 pub mutability: Option<Token![mut]>, 176 pub qself: Option<QSelf>, 180 pub rest: Option<PatRest>, 199 pub qself: Option<QSelf>, 235 pub colon_token: Option<Token![:]>, 382 let leading_vert: Option<Token![|]> = input.parse()?; in parse_multi_with_leading_vert() [all …]
|
| /linux/rust/zerocopy-derive/ |
| H A D | util.rs | 32 pub(crate) on_error_span: Option<proc_macro2::Span>, 157 fn variants(&self) -> Vec<(Option<&Variant>, Vec<(&Visibility, TokenStream, &Type)>)>; in variants() 159 fn tag(&self) -> Option<Ident>; in tag() 171 fn variants(&self) -> Vec<(Option<&Variant>, Vec<(&Visibility, TokenStream, &Type)>)> { in variants() 179 fn tag(&self) -> Option<Ident> { in tag() 193 fn variants(&self) -> Vec<(Option<&Variant>, Vec<(&Visibility, TokenStream, &Type)>)> { in variants() 197 fn tag(&self) -> Option<Ident> { in tag() 207 fn variants(&self) -> Vec<(Option<&Variant>, Vec<(&Visibility, TokenStream, &Type)>)> { in variants() 211 fn tag(&self) -> Option<Ident> { in tag() 221 fn variants(&self) -> Vec<(Option<&Variant>, Vec<(&Visibility, TokenStream, &Type)>)> { in variants() [all …]
|
| /linux/rust/quote/ |
| H A D | ident_fragment.rs | 22 fn span(&self) -> Option<Span> { in span() 28 fn span(&self) -> Option<Span> { in span() 38 fn span(&self) -> Option<Span> { in span() 48 fn span(&self) -> Option<Span> { in span() 66 fn span(&self) -> Option<Span> { in span()
|
| H A D | format.rs | 116 $crate::__private::Option::None, 123 $crate::__private::Option::None, 146 $crate::__private::Option::Some::<$crate::__private::Span>($span),
|
| /linux/rust/proc-macro2/probe/ |
| H A D | proc_macro_span.rs | 39 pub fn local_file(this: &Span) -> Option<PathBuf> { in local_file() 43 pub fn join(this: &Span, other: Span) -> Option<Span> { in join() 47 pub fn subspan<R: RangeBounds<usize>>(this: &Literal, range: R) -> Option<Span> { in subspan() 53 const _: Option<&str> = option_env!("RUSTC_BOOTSTRAP");
|
| /linux/rust/kernel/ptr/ |
| H A D | projection.rs | 43 fn get(self, slice: *mut T) -> Option<*mut Self::Output>; in get() 68 fn get(self, slice: *mut [T; N]) -> Option<*mut Self::Output> { 89 fn get(self, slice: *mut [T]) -> Option<*mut T> { 114 fn get(self, slice: *mut [T]) -> Option<*mut [T]> { 143 fn get(self, slice: *mut [T]) -> Option<*mut [T]> { 158 fn get(self, slice: *mut [T]) -> Option<*mut [T]> { 173 fn get(self, slice: *mut [T]) -> Option<*mut [T]> { in proj()
|
| /linux/samples/rust/ |
| H A D | rust_driver_i2c.rs | 37 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = Some(&ACPI_TABLE); 38 const I2C_ID_TABLE: Option<i2c::IdTable<Self::IdInfo>> = Some(&I2C_TABLE); 39 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE); 43 info: Option<&'bound Self::IdInfo>,
|
| /linux/rust/macros/ |
| H A D | helpers.rs | |