Home
last modified time | relevance | path

Searched refs:Some (Results 1 – 25 of 944) sorted by relevance

12345678910>>...38

/linux-6.15/rust/macros/
H A Dmodule.rs13 while let Some(val) = try_string(&mut it) { in expect_string_array()
17 Some(TokenTree::Punct(punct)) => assert_eq!(punct.as_char(), ','), in expect_string_array()
123 Some(TokenTree::Ident(ident)) => ident.to_string(), in parse()
124 Some(_) => panic!("Expected Ident or end"), in parse()
137 "author" => info.author = Some(expect_string(it)), in parse()
141 "alias" => info.alias = Some(expect_string_array(it)), in parse()
180 if let Some(author) = info.author { in module()
183 if let Some(authors) = info.authors { in module()
188 if let Some(description) = info.description { in module()
192 if let Some(aliases) = info.alias { in module()
[all …]
H A Dhelpers.rs6 if let Some(TokenTree::Ident(ident)) = it.next() { in try_ident()
7 Some(ident.to_string()) in try_ident()
14 if let Some(TokenTree::Literal(literal)) = it.next() { in try_literal()
15 Some(literal.to_string()) in try_literal()
28 Some(content.to_string()) in try_string()
76 while let Some(token) = input.next() { in function_name()
79 if let Some(TokenTree::Ident(i)) = input.next() { in function_name()
80 return Some(i); in function_name()
H A Dkunit.rs28 "mod" => Some(true), in kunit_tests()
37 Some(TokenTree::Group(group)) if group.delimiter() == Delimiter::Brace => group, in kunit_tests()
44 while let Some(token) = body_it.next() { in kunit_tests()
47 Some(TokenTree::Ident(ident)) if ident.to_string() == "fn" => { in kunit_tests()
49 Some(TokenTree::Ident(ident)) => ident.to_string(), in kunit_tests()
133 while let Some(token) = body_it.next() { in kunit_tests()
136 Some(TokenTree::Group(group)) if group.to_string() == "[test]" => (), in kunit_tests()
137 Some(next) => { in kunit_tests()
H A Dvtable.rs15 "trait" => Some(true), in vtable()
16 "impl" => Some(false), in vtable()
25 Some(TokenTree::Group(group)) if group.delimiter() == Delimiter::Brace => group, in vtable()
32 while let Some(token) = body_it.next() { in vtable()
36 Some(TokenTree::Ident(ident)) => ident.to_string(), in vtable()
44 Some(TokenTree::Ident(ident)) => ident.to_string(), in vtable()
H A Dpaste.rs12 Some(TokenTree::Literal(lit)) => { in concat_helper()
21 Some(TokenTree::Ident(ident)) => { in concat_helper()
28 Some(TokenTree::Punct(p)) if p.as_char() == ':' => { in concat_helper()
29 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat_helper() localVariable
41 span = Some(sp); in concat_helper()
49 Some(TokenTree::Group(group)) if group.delimiter() == Delimiter::None => { in concat_helper()
/linux-6.15/rust/kernel/block/mq/
H A Doperations.rs218 queue_rq: Some(Self::queue_rq_callback),
220 commit_rqs: Some(Self::commit_rqs_callback),
227 Some(Self::poll_callback)
231 complete: Some(Self::complete_callback),
232 init_hctx: Some(Self::init_hctx_callback),
233 exit_hctx: Some(Self::exit_hctx_callback),
234 init_request: Some(Self::init_request_callback),
235 exit_request: Some(Self::exit_request_callback),
/linux-6.15/Documentation/ABI/testing/
H A Dsysfs-class-regulator6 Some regulator directories will contain a field called
32 Some regulator directories will contain a field called
96 Some regulator directories will contain a field called
111 Some regulator directories will contain a field called
126 Some regulator directories will contain a field called
151 Some regulator directories will contain a field called
166 Some regulator directories will contain a field called
181 Some regulator directories will contain a field called
196 Some regulator directories will contain a field called
234 Some regulator directories will contain a field called
[all …]
/linux-6.15/rust/kernel/net/
H A Dphy.rs512 Some(Adapter::<T>::soft_reset_callback) in create_phy_driver()
517 Some(Adapter::<T>::probe_callback) in create_phy_driver()
522 Some(Adapter::<T>::get_features_callback) in create_phy_driver()
527 Some(Adapter::<T>::match_phy_device_callback) in create_phy_driver()
532 Some(Adapter::<T>::suspend_callback) in create_phy_driver()
537 Some(Adapter::<T>::resume_callback) in create_phy_driver()
542 Some(Adapter::<T>::config_aneg_callback) in create_phy_driver()
547 Some(Adapter::<T>::read_status_callback) in create_phy_driver()
552 Some(Adapter::<T>::read_mmd_callback) in create_phy_driver()
557 Some(Adapter::<T>::write_mmd_callback) in create_phy_driver()
[all …]
/linux-6.15/rust/kernel/
H A Dmiscdevice.rs292 open: Some(Self::open),
293 release: Some(Self::release),
295 Some(Self::ioctl)
301 Some(Self::compat_ioctl)
303 Some(bindings::compat_ptr_ioctl)
308 Some(Self::show_fdinfo)
H A Derror.rs27 Some(err) => err,
106 if let Some(error) = Self::try_from_errno(errno) { in from_errno()
127 Some(unsafe { Error::from_errno_unchecked(errno) }) in try_from_errno()
168 Some(unsafe { CStr::from_char_ptr(ptr) }) in name()
188 Some(name) => f in fmt()
H A Drbtree.rs297 RawEntry::Occupied(entry) => Some(entry.replace(node)), in insert()
369 RawEntry::Occupied(entry) => Some(entry), in find_mut()
388 Ordering::Equal => return Some(unsafe { &(*this).value }), in get()
445 Some(best) => { in cursor_lower_bound()
773 (_, Some(next)) => next, in remove_current()
774 (Some(prev), None) => prev, in remove_current()
783 Some(Self { in remove_current()
802 if let Some(neighbor) = self.get_neighbor_raw(direction) { in remove_neighbor()
812 return Some(RBTreeNode { node }); in remove_neighbor()
1030 Some(unsafe { (addr_of_mut!((*cur).key), addr_of_mut!((*cur).value)) }) in next()
H A Dplatform.rs37 Some(table) => table.as_ptr(), in register()
44 (*pdrv.get()).probe = Some(Self::probe_callback); in register()
45 (*pdrv.get()).remove = Some(Self::remove_callback); in register()
H A Dlist.rs332 Some(unsafe { self.remove_internal(last) }) in pop_back()
342 Some(unsafe { self.remove_internal(self.first) }) in pop_front()
383 Some(unsafe { self.remove_internal_inner(item, next, prev) }) in remove()
527 while let Some(item) = self.pop_front() { in drop()
577 Some(unsafe { ArcBorrow::from_raw(item) }) in next()
758 Some(CursorPeek { in peek_next()
775 Some(CursorPeek { in peek_prev()
H A Drevocable.rs102 Some(RevocableGuard::new(self.data.get(), guard)) in try_access()
120 Some(unsafe { &*self.data.get() }) in try_access_with_guard()
H A Dtypes.rs67 unsafe { Some(Self::from_foreign(ptr)) } in try_from_foreign()
209 Self(Some((data, cleanup_func))) in new_with_data()
246 if let Some((data, cleanup)) = self.0.take() { in drop()
H A Ddevres.rs119 unsafe { bindings::devm_add_action(dev.as_raw(), Some(inner.callback), data as _) }; in new()
145 Some(this.callback), in remove_action()
/linux-6.15/samples/rust/
H A Drust_driver_platform.rs22 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE);
30 if let Some(info) = info { in probe()
/linux-6.15/rust/pin-init/internal/src/
H A Dpinned_drop.rs33 pinned_drop_idx = Some(i); in pinned_drop()
42 if let Some(TokenTree::Group(last)) = toks.pop() { in pinned_drop()
H A Dhelpers.rs63 while let Some(tt) = toks.next() { in parse_generics()
105 let Some(name) = toks.next() else { in parse_generics() localVariable
/linux-6.15/Documentation/translations/zh_CN/rust/
H A Dcoding-guidelines.rst108 /// Returns the contained [`Some`] value, consuming the `self` value,
120 /// let x = Some("air");
125 Some(val) => val,
/linux-6.15/Documentation/userspace-api/media/rc/
H A Dlirc-get-timeout.rst40 Some devices have internal timers that can be used to detect when
48 Some devices have a fixed timeout, in that case
/linux-6.15/drivers/pps/
H A DKconfig13 Some antennae's PPS signals are connected with the CD (Carrier
17 Some antennae's PPS signals are connected with some special host
/linux-6.15/Documentation/driver-api/firmware/
H A Dbuilt-in-fw.rst25 * Some firmware may be optional
28 * Some firmware files may be really large in size. The remote-proc subsystem
/linux-6.15/arch/loongarch/
H A DKconfig.debug14 finds. Some of the addresses it reports may be incorrect.
26 Some of the addresses it reports may be incorrect (but better than the
/linux-6.15/Documentation/userspace-api/media/v4l/
H A Dselection-api-intro.rst7 Some video capture devices can sample a subsection of a picture and
9 can insert the image into larger one. Some video output devices can crop

12345678910>>...38