Home
last modified time | relevance | path

Searched refs:write (Results 1 – 23 of 23) sorted by relevance

/rust/kernel/alloc/kvec/
A Derrors.rs13 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 Dvtable.rs71 write!( in vtable()
87 write!(const_items, "const {gen_const_name}: bool = true;").unwrap(); in vtable()
A Dmodule.rs54 write!( in emit_base()
/rust/kernel/net/phy/
A Dreg.rs48 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 Dproperty.rs90 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 Dkvec.rs59 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 Dkbox.rs239 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 Dstr.rs76 _ => 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 Ddevice_id.rs105 .write(i);
A Ddriver.rs77 unsafe { ptr.write(T::RegType::default()) }; in new()
A Dlib.rs168 unsafe { slot.write(m) }; in init()
A Duaccess.rs446 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write() method
A Dmiscdevice.rs75 unsafe { slot.write(opts.into_raw::<T>()) }; in register()
A Ddma.rs471 pub unsafe fn write(&mut self, src: &[T], offset: usize) -> Result { in write() method
A Drbtree.rs1062 let node = KBox::write( in into_node()
/rust/pin-init/src/
A Dlib.rs1397 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 Dmacros.rs1280 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 Doperations.rs190 unsafe { RequestDataWrapper::refcount_ptr(pdu.as_ptr()).write(AtomicU64::new(0)) }; in init_request_callback()
/rust/kernel/list/
A Dimpl_list_item_mod.rs289 unsafe { ::core::ptr::write(cell_inner, me) };
/rust/kernel/sync/
A Darc.rs362 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 Dpthread_mutex.rs88 unsafe { slot.write(libc::PTHREAD_MUTEX_INITIALIZER) }; in new()
/rust/kernel/net/
A Dphy.rs189 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 DREADME.md78 that you need to write `<-` instead of `:` for fields that you want to initialize in-place.

Completed in 36 milliseconds