Home
last modified time | relevance | path

Searched refs:Option (Results 1 – 25 of 135) sorted by relevance

123456

/linux/Documentation/input/devices/
H A Dappletouch.rst42 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 Drbtree.rs246 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()
431 pub fn get_mut(&mut self, key: &K) -> Option<&mut V> { in get_mut()
438 pub fn remove_node(&mut self, key: &K) -> Option<RBTreeNode<K, V>> { in remove_node()
[all …]
H A Dxarray.rs122 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock()
181 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load()
192 pub fn get(&self, index: usize) -> Option<T::Borrowed<'_>> { in get()
200 pub fn get_mut(&mut self, index: usize) -> Option<T::BorrowedMut<'_>> { in get_mut()
208 pub fn remove(&mut self, index: usize) -> Option<T> { in remove()
232 ) -> Result<Option<T>, StoreError<T>> { in store()
H A Dplatform.rs104 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>> { in of_id_table()
108 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>> { in acpi_id_table()
185 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = None;
188 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = None;
196 id_info: Option<&Self::IdInfo>, in probe()
236 pub fn resource_by_index(&self, index: u32) -> Option<&Resource> { in resource_by_index()
252 pub fn resource_by_name(&self, name: &CStr) -> Option<&Resource> { in resource_by_name()
275 pub fn io_request_by_index(&self, index: u32) -> Option<IoRequest<'_>> { in io_request_by_index()
283 pub fn io_request_by_name(&self, name: &CStr) -> Option<IoRequest<'_>> { in io_request_by_name()
H A Ddriver.rs230 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>>; in acpi_id_table()
235 fn acpi_id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in acpi_id_info()
264 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>>; in of_id_table()
269 fn of_id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in of_id_info()
305 fn id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in id_info()
H A Dlist.rs553 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()
585 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove()
782 fn next(&mut self) -> Option<ArcBorrow<'a, T>> { in next()
979 pub fn peek_next(&mut self) -> Option<CursorPeek<'_, 'a, T, true, ID>> { in peek_next()
994 pub fn peek_prev(&mut self) -> Option<CursorPeek<'_, 'a, T, false, ID>> { in peek_prev()
1088 pub fn remove_next(&mut self) -> Option<ListArc<T, ID>> { in remove_next()
1093 pub fn remove_prev(&mut self) -> Option<ListArc<T, ID>> { in remove_prev()
1186 fn next(&mut self) -> Option<ListArc<T, ID>> { in next()
1194 fn next_back(&mut self) -> Option<ListArc<T, ID>> { in next_back()
H A Dmm.rs141 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 Di2c.rs190 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()
220 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>> { in of_id_table()
224 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>> { in acpi_id_table()
314 const I2C_ID_TABLE: Option<IdTable<Self::IdInfo>> = None;
317 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = None;
320 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = None;
328 id_info: Option<&Self::IdInfo>, in probe()
H A Dptr.rs69 pub const fn new_checked(align: usize) -> Option<Self> { in new_checked()
193 fn align_up(self, alignment: Alignment) -> Option<Self>; in align_up()
212 fn align_up(self, alignment: Alignment) -> Option<Self> {
/linux/rust/syn/
H A Dpunctuated.rs51 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 Ditem.rs143 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 Dbuffer.rs191 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 Dgenerics.rs29 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 Dpat.rs114 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 …]
H A Dpath.rs17 pub leading_colon: Option<Token![::]>,
84 pub fn get_ident(&self) -> Option<&Ident> { in get_ident()
203 pub colon2_token: Option<Token![::]>,
216 pub generics: Option<AngleBracketedGenericArguments>,
228 pub generics: Option<AngleBracketedGenericArguments>,
239 pub generics: Option<AngleBracketedGenericArguments>,
280 pub as_token: Option<Token![as]>,
340 if let Some(eq_token) = input.parse::<Option<Token![=]>>()? { in parse()
366 if let Some(colon_token) = input.parse::<Option<Token![:]>>()? { in parse()
462 colon2_token: Option<Token![::]>, in do_parse()
[all …]
/linux/rust/quote/
H A Dident_fragment.rs22 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 Dformat.rs116 $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 Dproc_macro_span.rs39 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/samples/rust/
H A Drust_driver_i2c.rs40 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = Some(&ACPI_TABLE);
41 const I2C_ID_TABLE: Option<i2c::IdTable<Self::IdInfo>> = Some(&I2C_TABLE);
42 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE);
46 info: Option<&Self::IdInfo>, in probe()
H A Drust_i2c_client.rs110 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE);
111 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = Some(&ACPI_TABLE);
115 _info: Option<&Self::IdInfo>, in probe()
/linux/rust/macros/
H A Dhelpers.rs5 pub(crate) fn try_ident(it: &mut token_stream::IntoIter) -> Option<String> { in try_ident()
13 pub(crate) fn try_sign(it: &mut token_stream::IntoIter) -> Option<char> { in try_sign()
24 pub(crate) fn try_literal(it: &mut token_stream::IntoIter) -> Option<String> { in try_literal()
32 pub(crate) fn try_string(it: &mut token_stream::IntoIter) -> Option<String> { in try_string()
85 pub(crate) fn function_name(input: TokenStream) -> Option<Ident> { in function_name()
H A Dmodule.rs204 authors: Option<Vec<String>>,
205 description: Option<String>,
206 alias: Option<Vec<String>>,
207 firmware: Option<Vec<String>>,
208 imports_ns: Option<Vec<String>>,
209 params: Option<Vec<Parameter>>,
/linux/rust/pin-init/src/
H A Dlib.rs1636 unsafe impl<T: ZeroableOption> Zeroable for Option<T> {} implementation
1721 Option<NonZeroU8>, Option<NonZeroU16>, Option<NonZeroU32>, Option<NonZeroU64>,
1722 Option<NonZeroU128>, Option<NonZeroUsize>,
1723 Option<NonZeroI8>, Option<NonZeroI16>, Option<NonZeroI32>, Option<NonZeroI64>,
1724 Option<NonZeroI128>, Option<NonZeroIsize>,
/linux/drivers/cpufreq/
H A Drcpufreq_dt.rs20 fn find_supply_name_exact(dev: &Device, name: &str) -> Option<CString> { in find_supply_name_exact()
29 fn find_supply_names(dev: &Device, cpu: cpu::CpuId) -> Option<KVec<CString>> { in find_supply_names()
43 _token: Option<opp::ConfigToken>,
151 fn exit(_policy: &mut cpufreq::Policy, _data: Option<Self::PData>) -> Result { in exit()
205 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE);
209 _id_info: Option<&Self::IdInfo>, in probe()
/linux/drivers/android/binder/
H A Dtransaction.rs30 target_node: Option<DArc<Node>>,
31 pub(crate) from_parent: Option<DArc<Transaction>>,
35 allocation: SpinLock<Option<Allocation>>,
43 txn_security_ctx_off: Option<usize>,
55 from_parent: Option<DArc<Transaction>>, in new()
176 pub(crate) fn is_stacked_on(&self, onext: &Option<DArc<Self>>) -> bool { in is_stacked_on()
185 pub(crate) fn clone_next(&self) -> Option<DArc<Self>> { in clone_next()
192 fn find_target_thread(&self) -> Option<Arc<Thread>> { in find_target_thread()
204 pub(crate) fn find_from(&self, thread: &Thread) -> Option<&DArc<Transaction>> { in find_from()

123456