Home
last modified time | relevance | path

Searched refs:Ok (Results 1 – 25 of 40) sorted by relevance

12

/linux/rust/kernel/
H A Duaccess.rs63 /// Ok(())
99 /// Ok(buf)
183 Ok(()) in skip()
227 let Ok(len_ulong) = c_ulong::try_from(len) else { in read_raw()
239 Ok(()) in read_raw()
262 let Ok(len_ulong) = c_ulong::try_from(len) else { in read()
285 Ok(unsafe { out.assume_init() }) in read()
302 Ok(()) in read_all()
338 let Ok(len_ulong) = c_ulong::try_from(len) else { in write_slice()
349 Ok(()) in write_slice()
230 let Ok(len_ulong) = c_ulong::try_from(len) else { read_raw() localVariable
265 let Ok(len_ulong) = c_ulong::try_from(len) else { read() localVariable
341 let Ok(len_ulong) = c_ulong::try_from(len) else { write_slice() localVariable
365 let Ok(len_ulong) = c_ulong::try_from(len) else { write() localVariable
[all...]
H A Dpage.rs62 /// # Ok(()) }
72 /// # Ok(()) } in alloc_page()
81 Ok(Self { page })
183 Ok(())
204 Ok(())
224 Ok(())
H A Dstr.rs61 Ok(()) in fmt()
219 Ok(unsafe { Self::from_bytes_with_nul_unchecked(bytes) }) in from_bytes_with_nul()
277 /// assert_eq!(cstr.to_str(), Ok("foo"));
357 Ok(s) in to_ascii_lowercase()
374 Ok(s) in to_ascii_uppercase()
403 Ok(()) in fmt()
517 Ok(v) => v,
746 Ok(())
784 Ok(())
848 Ok(Sel
[all...]
H A Dinit.rs115 //! - when the closure returns `Ok(())`, then it has completed the initialization successfully, so
156 //! // - when the closure returns `Ok(())`, then it has successfully initialized and
176 //! Ok(())
278 Ok(res) => res,
340 /// # Ok::<_, AllocError>(())
824 /// - returns `Ok(())` if it initialized every field of `slot`,
882 /// Ok(())
897 // - returns `Ok(())` on successful initialization,
932 /// - returns `Ok(())` if it initialized every field of `slot`,
981 /// Ok(())
[all...]
H A Derror.rs261 /// `Ok(())` otherwise.
266 Ok(())
311 Ok(ptr)
333 /// Ok(0)
343 Ok(v) => v,
H A Dfirmware.rs71 Ok(Firmware(unsafe { NonNull::new_unchecked(fw) })) in request_internal()
H A Dworkqueue.rs220 Ok(()) in try_spawn()
561 Ok(()) in __enqueue()
H A Drbtree.rs93 /// # Ok::<(), Error>(())
111 /// Ok(())
164 /// # Ok::<(), Error>(())
286 Ok(self.insert(RBTreeNode::new(key, value, flags)?)) in try_create_and_insert()
545 /// # Ok::<(), Error>(())
565 /// # Ok::<(), Error>(())
576 /// # Ok::<(), Error>(())
608 /// # Ok::<(), Error>(())
635 /// # Ok::<(), Error>(())
674 /// # Ok
[all...]
/linux/rust/kernel/alloc/
H A Dvec_ext.rs
H A Dbox_ext.rs
/linux/rust/kernel/net/
H A Dphy.rs202 Ok(ret as u16) in read_paged()
324 Ok(0) in soft_reset_callback()
339 Ok(0) in probe_callback()
355 Ok(0) in get_features_callback()
369 Ok(0) in suspend_callback()
383 Ok(0) in resume_callback()
399 Ok(0) in config_aneg_callback()
415 Ok(0) in read_status_callback()
447 Ok(ret.into()) in read_mmd_callback()
466 Ok(0) in write_mmd_callback()
[all …]
/linux/rust/kernel/block/mq/
H A Dgen_disk.rs52 Ok(()) in validate_block_size()
66 Ok(self) in logical_block_size()
81 Ok(self) in physical_block_size()
166 Ok(GenDisk { in build()
H A Draw_writer.rs24 Ok(Self { buffer, pos: 0 }) in new()
53 Ok(()) in write_str()
H A Drequest.rs95 /// If the operation is successful, [`Ok`] is returned with a pointer to the in try_set_end()
114 Ok(request_ptr) in end_ok()
130 Ok(())
209 // return `Some`, `old` will always be `Ok`. in atomic_relaxed_op_unless()
H A Doperations.rs151 from_result(|| Ok(0)) in init_hctx_callback()
191 Ok(0) in init_request_callback()
/linux/rust/kernel/net/phy/
H A Dreg.rs114 Ok(ret as u16) in read()
133 Ok(ret as u16) in read_status()
204 Ok(ret as u16) in read()
222 Ok(ret as u16) in read_status()
/linux/rust/kernel/sync/
H A Darc.rs76 /// # Ok::<(), Error>(())
102 /// # Ok::<(), Error>(())
126 /// # Ok::<(), Error>(())
207 Ok(unsafe { Self::from_inner(KBox::leak(inner).into()) }) in new()
287 /// # Ok::<(), Error>(())
301 /// # Ok::<(), Error>(())
451 /// # Ok::<(), Error>(())
472 /// # Ok::<(), Error>(())
579 /// Ok(x.into())
600 /// Ok(
[all...]
/linux/rust/kernel/list/
H A Darc.rs173 Ok(Self::from(UniqueArc::new(contents, flags)?)) in new()
186 Ok(Self::from(UniqueArc::try_pin_init(init, flags)?)) in pin_init()
197 Ok(Self::from(UniqueArc::try_init(init, flags)?)) in init()
283 Ok(unsafe { Self::transmute_from_arc(arc) }) in try_from_arc()
314 Ok(list_arc) => Some(list_arc), in try_from_arc_or_drop()
/linux/drivers/block/
H A Drnull.rs53 Ok(Self { _disk: disk }) in init()
70 Ok(()) in queue_rq()
/linux/samples/rust/
H A Drust_print_main.rs40 Ok(()) in arc_print()
75 Ok(RustPrint) in init()
H A Drust_minimal.rs29 Ok(RustMinimal { numbers }) in init()
/linux/drivers/net/phy/
H A Dax88796b_rust.rs53 return Ok(0); in read_status()
78 Ok(0) in read_status()
H A Dqt2025.rs97 Ok(()) in probe()
/linux/rust/kernel/sync/arc/
H A Dstd_vendor.rs24 Ok(Arc::from_inner(ptr)) in downcast()
/linux/rust/kernel/init/
H A D__internal.rs185 Ok(unsafe { Pin::new_unchecked(this.value.assume_init_mut()) })

12