| /rust/kernel/alloc/kvec/ |
| A D | errors.rs | 13 write!(f, "Not enough capacity") in fmt() 30 write!(f, "Index out of bounds") in fmt() 51 InsertError::IndexOutOfBounds(_) => write!(f, "Index out of bounds"), in fmt() 52 InsertError::OutOfCapacity(_) => write!(f, "Not enough capacity"), in fmt()
|
| /rust/macros/ |
| A D | vtable.rs | 71 write!( in vtable() 87 write!(const_items, "const {gen_const_name}: bool = true;").unwrap(); in vtable()
|
| A D | module.rs | 54 write!( in emit_base()
|
| /rust/kernel/net/phy/ |
| A D | reg.rs | 48 fn write(&self, dev: &mut Device, val: u16) -> Result; in write() method 117 fn write(&self, dev: &mut Device, val: u16) -> Result { in write() method 207 fn write(&self, dev: &mut Device, val: u16) -> Result { in write() method
|
| /rust/kernel/device/ |
| A D | property.rs | 90 write!(f, "{name}") in display_name() 356 write!(f, "{:?}", self.as_slice()) in fmt() 416 write!(f, "{prefix}")?; in fmt() 418 write!(f, "{}", fwnode.display_name())?; in fmt()
|
| /rust/kernel/alloc/ |
| A D | kvec.rs | 59 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))), 354 unsafe { spare.get_unchecked_mut(0) }.write(v); in push_within_capacity_unchecked() 405 unsafe { ptr::write(p, element) }; in insert_within_capacity() 736 item.write(value.clone()); in extend_with() 740 spare[n - 1].write(value); in extend_with() 768 slot.write(item.clone()); in extend_from_slice()
|
| A D | kbox.rs | 239 pub fn write(mut self, value: T) -> Box<T, A> { in write() function 240 (*self).write(value); in write() 257 Ok(Box::write(b, x)) in new()
|
| /rust/kernel/ |
| A D | str.rs | 76 _ => write!(f, "\\x{b:02x}")?, in fmt() 112 _ => write!(f, "\\x{b:02x}")?, in fmt() 481 write!(f, "\\x{c:02x}")?; in fmt() 513 _ => write!(f, "\\x{c:02x}")?, in fmt()
|
| A D | device_id.rs | 105 .write(i);
|
| A D | driver.rs | 77 unsafe { ptr.write(T::RegType::default()) }; in new()
|
| A D | lib.rs | 168 unsafe { slot.write(m) }; in init()
|
| A D | uaccess.rs | 446 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write() method
|
| A D | miscdevice.rs | 75 unsafe { slot.write(opts.into_raw::<T>()) }; in register()
|
| A D | dma.rs | 471 pub unsafe fn write(&mut self, src: &[T], offset: usize) -> Result { in write() method
|
| A D | rbtree.rs | 1062 let node = KBox::write( in into_node()
|
| /rust/pin-init/src/ |
| A D | lib.rs | 1397 unsafe { slot.write(self) }; in __init() 1407 unsafe { slot.write(self) }; in __pinned_init() 1418 unsafe { slot.write(self?) }; in __init() 1429 unsafe { slot.write(self?) }; in __pinned_init()
|
| A D | macros.rs | 1280 unsafe { ::core::ptr::write(::core::ptr::addr_of_mut!((*$slot).$field), $field) }; 1317 ::core::ptr::write($slot, zeroed); 1324 ::core::ptr::write($slot, $t { 1348 ::core::ptr::write($slot, $t {
|
| /rust/kernel/block/mq/ |
| A D | operations.rs | 190 unsafe { RequestDataWrapper::refcount_ptr(pdu.as_ptr()).write(AtomicU64::new(0)) }; in init_request_callback()
|
| /rust/kernel/list/ |
| A D | impl_list_item_mod.rs | 289 unsafe { ::core::ptr::write(cell_inner, me) };
|
| /rust/kernel/sync/ |
| A D | arc.rs | 362 unsafe { core::ptr::write(refcount, bindings::REFCOUNT_INIT(1)) }; in into_unique_or_drop() 794 pub fn write(mut self, value: T) -> UniqueArc<T> { in write() method 795 self.deref_mut().write(value); in write()
|
| /rust/pin-init/examples/ |
| A D | pthread_mutex.rs | 88 unsafe { slot.write(libc::PTHREAD_MUTEX_INITIALIZER) }; in new()
|
| /rust/kernel/net/ |
| A D | phy.rs | 189 pub fn write<R: reg::Register>(&mut self, reg: R, val: u16) -> Result { in write() method 190 reg.write(self, val) in write()
|
| /rust/pin-init/ |
| A D | README.md | 78 that you need to write `<-` instead of `:` for fields that you want to initialize in-place.
|