/kernel/linux/linux-6.6/rust/alloc/ |
H A D | raw_vec.rs | 185 Ok(layout) => layout, in allocate_in() 189 Ok(_) => {} in allocate_in() 197 Ok(ptr) => ptr, in allocate_in() 215 return Ok(Self::new_in(alloc)); in try_allocate_in() 229 Ok(Self { in try_allocate_in() 343 Ok(()) in try_reserve() 381 if self.needs_to_grow(len, additional) { self.grow_exact(len, additional) } else { Ok(()) } in try_reserve_exact() 445 Ok(()) in grow_amortized() 464 Ok(()) in grow_exact() 471 let (ptr, layout) = if let Some(mem) = self.current_memory() { mem } else { return Ok(()) }; in shrink() [all...] |
H A D | alloc.rs | 180 0 => Ok(NonNull::slice_from_raw_parts(layout.dangling(), 0)), in alloc_impl() 185 Ok(NonNull::slice_from_raw_parts(ptr, size)) in alloc_impl() 220 Ok(NonNull::slice_from_raw_parts(ptr, new_size)) in grow_impl() 232 Ok(new_ptr) in grow_impl() 298 Ok(NonNull::slice_from_raw_parts(new_layout.dangling(), 0)) in shrink() 308 Ok(NonNull::slice_from_raw_parts(ptr, new_size)) in shrink() 320 Ok(new_ptr) in shrink() 333 Ok(ptr) => ptr.as_mut_ptr(), in exchange_malloc()
|
H A D | boxed.rs | 302 /// # Ok::<(), std::alloc::AllocError>(()) 328 /// # Ok::<(), std::alloc::AllocError>(()) 352 /// # Ok::<(), std::alloc::AllocError>(()) 406 /// # Ok::<(), std::alloc::AllocError>(()) 417 Ok(boxed.assume_init()) in try_new_in() 453 Ok(m) => m, in new_uninit_in() 478 /// # Ok::<(), std::alloc::AllocError>(()) 492 unsafe { Ok(Box::from_raw_in(ptr.as_ptr(), alloc)) } in try_new_uninit_in() 527 Ok(m) => m, in new_zeroed_in() 550 /// # Ok [all...] |
/kernel/linux/linux-6.6/rust/kernel/ |
H A D | init.rs | 115 //! - when the closure returns `Ok(())`, then it has completed the initialization successfully, so 155 //! // - when the closure returns `Ok(())`, then it has successfully initialized and 175 //! Ok(()) 277 Ok(res) => res, 339 /// # Ok::<_, AllocError>(()) 758 /// - returns `Ok(())` if it initialized every field of `slot`, 815 /// Ok(()) 830 // - returns `Ok(())` on successful initialization, 868 /// - returns `Ok(())` if it initialized every field of `slot`, 917 /// Ok(()) [all...] |
H A D | str.rs | 130 Ok(unsafe { Self::from_bytes_with_nul_unchecked(bytes) }) 175 /// assert_eq!(cstr.to_str(), Ok("foo")); 236 Ok(()) 350 Ok(v) => v, 480 Ok(()) in write_str() 518 Ok(()) in write_str() 582 Ok(Self { buf }) 607 Ok(CString { buf })
|
H A D | error.rs | 242 /// `Ok(())` otherwise. 247 Ok(()) in to_result() 297 Ok(ptr) 319 /// Ok(0) 331 Ok(v) => v,
|
H A D | types.rs | 140 /// return Ok(()); 143 /// Ok(()) 146 /// # assert_eq!(example3(false), Ok(())); 147 /// # assert_eq!(example3(true), Ok(())); 245 Ok(()) in ffi_init()
|
/kernel/linux/linux-6.6/rust/kernel/sync/ |
H A D | arc.rs | 76 /// # Ok::<(), Error>(()) 102 /// # Ok::<(), Error>(()) 126 /// # Ok::<(), Error>(()) 177 Ok(unsafe { Self::from_inner(Box::leak(inner).into()) }) in try_new() 355 /// # Ok::<(), Error>(()) 376 /// # Ok::<(), Error>(()) 465 /// Ok(x.into()) 486 /// Ok(x.write(Example { a: 10, b: 20 }).into()) 508 /// Ok(pinned.into()) 520 Ok(Sel in try_new() [all...] |
/kernel/linux/linux-5.10/drivers/block/paride/ |
H A D | pd.c | 360 enum action {Fail = 0, Ok = 1, Hold, Wait}; enumerator 450 case Ok: case Fail: { in run_fsm() 453 err = res == Ok ? 0 : BLK_STS_IOERR; in run_fsm() 608 return Ok; in do_pd_read_drq() 624 return Ok; in do_pd_write_done() 650 return Ok; in pd_door_lock() 659 return Ok; in pd_door_unlock() 670 return Ok; in pd_eject() 688 return Ok; in pd_media_check() 750 return Ok; in pd_identify() [all...] |
/kernel/linux/linux-6.6/rust/alloc/vec/ |
H A D | into_iter.rs | 233 NonZeroUsize::new(n - step_size).map_or(Ok(()), Err) in advance_by() 256 return Ok(unsafe { raw_ary.transpose().assume_init() }); 274 Ok(raw_ary.transpose().assume_init()) 330 NonZeroUsize::new(n - step_size).map_or(Ok(()), Err) in advance_back_by()
|
H A D | mod.rs | 788 Ok(Vec { buf: RawVec::try_with_capacity_in(capacity, alloc)?, len: 0 }) in try_with_capacity_in() 886 /// Ok(mem) => mem.cast::<u32>().as_ptr(), 1064 /// `Ok(())`. Does nothing if capacity is already sufficient. This method 1088 /// Ok(output) 1101 /// than or equal to `self.len() + additional` if it returns `Ok(())`. 1131 /// Ok(output) 1976 Ok(()) in try_push() 2006 /// Ok(vec) 2008 /// assert_eq!(from_iter_fallible(0..100), Ok(Vec::from_iter(0..100))); 2021 Ok(()) in push_within_capacity() [all...] |
H A D | spec_extend.rs | 75 Ok(()) in try_spec_extend()
|
/kernel/linux/linux-6.6/rust/kernel/sync/arc/ |
H A D | std_vendor.rs | 22 Ok(Arc::from_inner(ptr)) in downcast()
|
/kernel/linux/linux-6.6/samples/rust/ |
H A D | rust_print.rs | 39 Ok(()) in arc_print() 72 Ok(RustPrint)
|
/kernel/linux/linux-6.6/rust/kernel/init/ |
H A D | __internal.rs | 180 Ok(unsafe { Pin::new_unchecked(this.value.assume_init_mut()) }) in init()
|
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | exported-sql-viewer.py | 3578 self.ok_button = QPushButton("Ok", self) 3580 self.ok_button.released.connect(self.Ok) 3599 def Ok(self): member in ReportDialogBase
|
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | exported-sql-viewer.py | 3579 self.ok_button = QPushButton("Ok", self) 3581 self.ok_button.released.connect(self.Ok) 3600 def Ok(self): member in ReportDialogBase
|