Home
last modified time | relevance | path

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

1234567

/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()
434 pub fn get_mut(&mut self, key: &K) -> Option<&mut V> { in get_mut()
441 pub fn remove_node(&mut self, key: &K) -> Option<RBTreeNode<K, V>> { in remove_node()
[all …]
H A Dsoc.rs33 pub machine: Option<CString>,
39 pub family: Option<CString>,
41 pub revision: Option<CString>,
45 pub serial_number: Option<CString>,
52 pub soc_id: Option<CString>,
63 fn cstring_to_c(mcs: &Option<CString>) -> *const kernel::ffi::c_char { in cstring_to_c()
H A Dtransmute.rs19 /// # fn test() -> Option<()> {
45 fn from_bytes(bytes: &[u8]) -> Option<&Self> in from_bytes()
66 fn from_bytes_prefix(bytes: &[u8]) -> Option<(&Self, &[u8])> in from_bytes_prefix()
88 fn from_bytes_mut(bytes: &mut [u8]) -> Option<&mut Self> in from_bytes_mut()
109 fn from_bytes_mut_prefix(bytes: &mut [u8]) -> Option<(&mut Self, &mut [u8])> in from_bytes_mut_prefix()
129 fn from_bytes_copy(bytes: &[u8]) -> Option<Self> in from_bytes_copy()
148 fn from_bytes_copy_prefix(bytes: &[u8]) -> Option<(Self, &[u8])> in from_bytes_copy_prefix()
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.rs130 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>> { in of_id_table()
134 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>> { in acpi_id_table()
216 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = None;
219 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = None;
227 id_info: Option<&Self::IdInfo>, in probe()
267 pub fn resource_by_index(&self, index: u32) -> Option<&Resource> { in resource_by_index()
283 pub fn resource_by_name(&self, name: &CStr) -> Option<&Resource> { in resource_by_name()
306 pub fn io_request_by_index(&self, index: u32) -> Option<IoRequest<'_>> { in io_request_by_index()
314 pub fn io_request_by_name(&self, name: &CStr) -> Option<IoRequest<'_>> { in io_request_by_name()
H A Ddriver.rs292 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>>; in acpi_id_table()
297 fn acpi_id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in acpi_id_info()
326 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>>; in of_id_table()
331 fn of_id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in of_id_info()
367 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 Di2c.rs199 fn i2c_id_table() -> Option<IdTable<<Self as driver::Adapter>::IdInfo>> { in i2c_id_table()
206 fn i2c_id_info(dev: &I2cClient) -> Option<&'static <Self as driver::Adapter>::IdInfo> { in i2c_id_info()
229 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>> { in of_id_table()
233 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>> { in acpi_id_table()
323 const I2C_ID_TABLE: Option<IdTable<Self::IdInfo>> = None;
326 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = None;
329 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = None;
337 id_info: Option<&Self::IdInfo>, in probe()
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()
/linux/drivers/android/binder/range_alloc/
H A Dmod.rs50 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 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 …]
/linux/rust/kernel/drm/
H A Ddriver.rs34 pub(crate) gem_create_object: Option<
40 pub(crate) prime_handle_to_fd: Option<
49 pub(crate) prime_fd_to_handle: Option<
57 pub(crate) gem_prime_import: Option<
63 pub(crate) gem_prime_import_sg_table: Option<
70 pub(crate) dumb_create: Option<
77 pub(crate) dumb_map_offset: Option<
/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()
/linux/rust/kernel/ptr/
H A Dprojection.rs43 fn get(self, slice: *mut T) -> Option<*mut Self::Output>; in get()
62 fn get(self, slice: *mut [T; N]) -> Option<*mut Self::Output> { in get()
78 fn get(self, slice: *mut [T]) -> Option<*mut T> { in get()
93 fn get(self, slice: *mut [T]) -> Option<*mut [T]> { in get()
110 fn get(self, slice: *mut [T]) -> Option<*mut [T]> { in get()
120 fn get(self, slice: *mut [T]) -> Option<*mut [T]> { in get()
130 fn get(self, slice: *mut [T]) -> Option<*mut [T]> { in get()
/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/rust/macros/
H A Dhelpers.rs
/linux/samples/rust/
H A Drust_driver_i2c.rs39 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = Some(&ACPI_TABLE);
40 const I2C_ID_TABLE: Option<i2c::IdTable<Self::IdInfo>> = Some(&I2C_TABLE);
41 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE);
45 info: Option<&Self::IdInfo>, in probe()
/linux/rust/pin-init/src/
H A Dlib.rs1530 unsafe impl<T: ZeroableOption> Zeroable for Option<T> {} implementation
1615 Option<NonZeroU8>, Option<NonZeroU16>, Option<NonZeroU32>, Option<NonZeroU64>,
1616 Option<NonZeroU128>, Option<NonZeroUsize>,
1617 Option<NonZeroI8>, Option<NonZeroI16>, Option<NonZeroI32>, Option<NonZeroI64>,
1618 Option<NonZeroI128>, Option<NonZeroIsize>,
/linux/drivers/cpufreq/
H A Drcpufreq_dt.rs19 fn find_supply_name_exact(dev: &Device, name: &str) -> Option<CString> { in find_supply_name_exact()
28 fn find_supply_names(dev: &Device, cpu: cpu::CpuId) -> Option<KVec<CString>> { in find_supply_names()
42 _token: Option<opp::ConfigToken>,
150 fn exit(_policy: &mut cpufreq::Policy, _data: Option<Self::PData>) -> Result { in exit()
204 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE);
208 _id_info: Option<&Self::IdInfo>, in probe()
/linux/drivers/android/binder/
H A Dtransaction.rs41 target_node: Option<DArc<Node>>,
42 pub(crate) from_parent: Option<DArc<Transaction>>,
46 allocation: SpinLock<Option<Allocation>>,
54 txn_security_ctx_off: Option<usize>,
66 from_parent: Option<DArc<Transaction>>, in new()
187 pub(crate) fn is_stacked_on(&self, onext: &Option<DArc<Self>>) -> bool { in is_stacked_on()
196 pub(crate) fn clone_next(&self) -> Option<DArc<Self>> { in clone_next()
203 fn find_target_thread(&self) -> Option<Arc<Thread>> { in find_target_thread()
215 pub(crate) fn find_from(&self, thread: &Thread) -> Option<&DArc<Transaction>> { in find_from()

1234567