Home
last modified time | relevance | path

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

12

/rust/kernel/drm/
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<
/rust/kernel/
A Drbtree.rs291 ) -> Result<Option<RBTreeNode<K, V>>> { in try_create_and_insert()
381 pub fn get(&self, key: &K) -> Option<&V> { in get()
415 pub fn remove(&mut self, key: &K) -> Option<V> { in remove()
815 pub fn move_prev(self) -> Option<Self> { in move_prev()
820 pub fn move_next(self) -> Option<Self> { in move_next()
824 fn mv(self, direction: Direction) -> Option<Self> { in mv()
834 pub fn peek_prev(&self) -> Option<(&K, &V)> { in peek_prev()
839 pub fn peek_next(&self) -> Option<(&K, &V)> { in peek_next()
959 fn next(&mut self) -> Option<Self::Item> { in next()
994 fn next(&mut self) -> Option<Self::Item> { in next()
[all …]
A Dplatform.rs102 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>> { in of_id_table()
106 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>> { in acpi_id_table()
183 const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = None;
186 const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = None;
192 fn probe(dev: &Device<device::Core>, id_info: Option<&Self::IdInfo>) in probe()
232 pub fn resource_by_index(&self, index: u32) -> Option<&Resource> { in resource_by_index()
248 pub fn resource_by_name(&self, name: &CStr) -> Option<&Resource> { in resource_by_name()
271 pub fn io_request_by_index(&self, index: u32) -> Option<IoRequest<'_>> { in io_request_by_index()
279 pub fn io_request_by_name(&self, name: &CStr) -> Option<IoRequest<'_>> { in io_request_by_name()
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()
A Ddriver.rs145 fn acpi_id_table() -> Option<acpi::IdTable<Self::IdInfo>>; in acpi_id_table()
150 fn acpi_id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in acpi_id_info()
179 fn of_id_table() -> Option<of::IdTable<Self::IdInfo>>; in of_id_table()
184 fn of_id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in of_id_info()
220 fn id_info(dev: &device::Device) -> Option<&'static Self::IdInfo> { in id_info()
A Dmm.rs140 pub fn mmget_not_zero(&self) -> Option<ARef<MmWithUser>> { in mmget_not_zero()
175 pub fn lock_vma_under_rcu(&self, vma_addr: usize) -> Option<VmaReadGuard<'_>> { in lock_vma_under_rcu()
213 pub fn mmap_read_trylock(&self) -> Option<MmapReadGuard<'_>> { in mmap_read_trylock()
243 pub fn vma_lookup(&self, vma_addr: usize) -> Option<&virt::VmaRef> { in vma_lookup()
A Drevocable.rs99 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access()
118 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
140 pub fn try_access_with<R, F: FnOnce(&T) -> R>(&self, f: F) -> Option<R> { in try_access_with()
A Dbits.rs21 pub fn [<checked_bit_ $ty>](n: u32) -> Option<$ty> {
59 pub fn [<genmask_checked_ $ty>](range: RangeInclusive<u32>) -> Option<$ty> {
A Dtask.rs248 pub fn get_pid_ns(&self) -> Option<ARef<PidNamespace>> { in get_pid_ns()
264 pub fn tgid_nr_ns(&self, pidns: Option<&PidNamespace>) -> Pid { in tgid_nr_ns()
290 pub fn mm(&self) -> Option<&MmWithUser> { in mm()
323 pub fn active_pid_ns(&self) -> Option<&PidNamespace> { in active_pid_ns()
A Dcpu.rs65 pub fn from_i32(id: i32) -> Option<Self> { in from_i32()
91 pub fn from_u32(id: u32) -> Option<Self> { in from_u32()
A Dlist.rs433 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back()
445 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front()
462 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove()
659 fn next(&mut self) -> Option<ArcBorrow<'a, T>> { in next()
856 pub fn peek_next(&mut self) -> Option<CursorPeek<'_, 'a, T, true, ID>> { in peek_next()
871 pub fn peek_prev(&mut self) -> Option<CursorPeek<'_, 'a, T, false, ID>> { in peek_prev()
965 pub fn remove_next(&mut self) -> Option<ListArc<T, ID>> { in remove_next()
970 pub fn remove_prev(&mut self) -> Option<ListArc<T, ID>> { in remove_prev()
1063 fn next(&mut self) -> Option<ListArc<T, ID>> { in next()
1071 fn next_back(&mut self) -> Option<ListArc<T, ID>> { in next_back()
A Dopp.rs361 clk_names: Option<KVec<CString>>,
362 prop_name: Option<CString>,
363 regulator_names: Option<KVec<CString>>,
364 supported_hw: Option<KVec<u32>>,
367 required_dev: Option<(ARef<Device>, u32)>,
607 cpus: Option<CpumaskVar>,
847 available: Option<bool>, in opp_from_freq()
848 index: Option<u32>, in opp_from_freq()
1099 pub fn freq(&self, index: Option<u32>) -> Hertz { in freq()
A Ddevres.rs252 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access()
257 pub fn try_access_with<R, F: FnOnce(&T) -> R>(&self, f: F) -> Option<R> { in try_access_with()
262 pub fn try_access_with_guard<'a>(&'a self, guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
A Dclk.rs138 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get()
306 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get()
A Dfaux.rs27 pub fn new(name: &CStr, parent: Option<&device::Device>) -> Result<Self> { in new()
A Derror.rs122 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { in try_from_errno()
162 pub fn name(&self) -> Option<&'static CStr> { in name()
179 pub fn name(&self) -> Option<&'static CStr> { in name()
A Dtypes.rs75 unsafe fn try_from_foreign(ptr: *mut c_void) -> Option<Self> { in try_from_foreign()
220 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>);
/rust/macros/
A Dhelpers.rs5 pub(crate) fn try_ident(it: &mut token_stream::IntoIter) -> Option<String> { in try_ident()
13 pub(crate) fn try_literal(it: &mut token_stream::IntoIter) -> Option<String> { in try_literal()
21 pub(crate) fn try_string(it: &mut token_stream::IntoIter) -> Option<String> { in try_string()
74 pub(crate) fn function_name(input: TokenStream) -> Option<Ident> { in function_name()
A Dmodule.rs97 authors: Option<Vec<String>>,
98 description: Option<String>,
99 alias: Option<Vec<String>>,
100 firmware: Option<Vec<String>>,
/rust/kernel/alloc/
A Dallocator.rs86 ptr: Option<NonNull<u8>>, in call()
133 ptr: Option<NonNull<u8>>, in realloc()
150 ptr: Option<NonNull<u8>>, in realloc()
174 ptr: Option<NonNull<u8>>, in realloc()
/rust/pin-init/src/
A Dlib.rs1547 unsafe impl<T: ZeroableOption> Zeroable for Option<T> {} implementation
1632 Option<NonZeroU8>, Option<NonZeroU16>, Option<NonZeroU32>, Option<NonZeroU64>,
1633 Option<NonZeroU128>, Option<NonZeroUsize>,
1634 Option<NonZeroI8>, Option<NonZeroI16>, Option<NonZeroI32>, Option<NonZeroI64>,
1635 Option<NonZeroI128>, Option<NonZeroIsize>,
/rust/kernel/io/
A Dresource.rs104 ) -> Option<Region> { in request_region()
141 pub fn name(&self) -> Option<&CStr> { in name()
/rust/kernel/sync/lock/
A Dmutex.rs127 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock()
A Dspinlock.rs126 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock()
/rust/kernel/sync/
A Dlock.rs72 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock()
180 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock()

Completed in 41 milliseconds

12