| /rust/helpers/ |
| A D | io.c | 43 void rust_helper_writeb(u8 value, void __iomem *addr) in rust_helper_writeb() argument 45 writeb(value, addr); in rust_helper_writeb() 48 void rust_helper_writew(u16 value, void __iomem *addr) in rust_helper_writew() argument 50 writew(value, addr); in rust_helper_writew() 53 void rust_helper_writel(u32 value, void __iomem *addr) in rust_helper_writel() argument 55 writel(value, addr); in rust_helper_writel() 61 writeq(value, addr); in rust_helper_writeq() 89 writeb_relaxed(value, addr); in rust_helper_writeb_relaxed() 94 writew_relaxed(value, addr); in rust_helper_writew_relaxed() 99 writel_relaxed(value, addr); in rust_helper_writel_relaxed() [all …]
|
| /rust/macros/ |
| A D | paste.rs | 14 let mut value = lit.to_string(); in concat_helper() variables 15 if value.starts_with('"') && value.ends_with('"') { in concat_helper() 16 value.remove(0); in concat_helper() 17 value.pop(); in concat_helper() 19 segments.push((value, lit.span())); in concat_helper() 22 let mut value = ident.to_string(); in concat_helper() variables 23 if value.starts_with("r#") { in concat_helper() 24 value.replace_range(0..2, ""); in concat_helper() 43 "lower" => value = value.to_lowercase(), in concat_helper() 44 "upper" => value = value.to_uppercase(), in concat_helper() [all …]
|
| /rust/kernel/list/ |
| A D | arc_field.rs | 18 value: UnsafeCell<T>, field 28 pub fn new(value: T) -> Self { in new() 30 value: UnsafeCell::new(value), in new() 38 self.value.get_mut() in get_mut() 50 unsafe { &*self.value.get() } in assert_ref() 63 unsafe { &mut *self.value.get() } in assert_mut()
|
| /rust/pin-init/src/ |
| A D | __internal.rs | 141 value: MaybeUninit<T>, field 151 unsafe { self.value.assume_init_drop() }; in drop() 164 value: MaybeUninit::uninit(), in uninit() 179 unsafe { this.value.assume_init_drop() }; in init() 182 unsafe { init.__pinned_init(this.value.as_mut_ptr())? }; in init() 186 Ok(unsafe { Pin::new_unchecked(this.value.assume_init_mut()) }) in init() 202 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse() 207 let value = value.unwrap(); in stack_init_reuse() 209 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse() 214 let value = value.unwrap(); in stack_init_reuse()
|
| /rust/kernel/ |
| A D | types.rs | 325 value: UnsafeCell<MaybeUninit<T>>, field 334 pub const fn new(value: T) -> Self { in new() 336 value: UnsafeCell::new(MaybeUninit::new(value)), in new() 344 value: UnsafeCell::new(MaybeUninit::uninit()), in uninit() 352 value: UnsafeCell::new(MaybeUninit::zeroed()), in zeroed() 396 UnsafeCell::get(&self.value).cast::<T>() in get()
|
| A D | xarray.rs | 171 pub value: T, field 175 fn from(value: StoreError<T>) -> Self { in from() 176 value.error in from() 230 value: T, in store() 237 let new = value.into_foreign(); in store() 255 let value = unsafe { T::from_foreign(new) }; in store() 257 value, in store()
|
| A D | rbtree.rs | 289 value: V, in try_create_and_insert() 292 Ok(self.insert(RBTreeNode::new(key, value, flags)?)) in try_create_and_insert() 918 let v = unsafe { addr_of_mut!((*this).value) }; in to_key_value_raw() 1061 pub fn into_node(self, key: K, value: V) -> RBTreeNode<K, V> { in into_node() 1066 value, in into_node() 1086 Ok(RBTreeNodeReservation::new(flags)?.into_node(key, value)) in new() 1093 (node.key, node.value) in to_key_value() 1181 unsafe { &mut (*node).value } in insert() 1188 self.raw.insert(reservation.into_node(self.key, value)) in insert() 1248 node.value in remove() [all …]
|
| A D | io.rs | 152 pub fn $name(&self, value: $type_name, offset: usize) { 156 unsafe { bindings::$c_fn(value, addr as *mut c_void) } 164 pub fn $try_name(&self, value: $type_name, offset: usize) -> Result { 168 unsafe { bindings::$c_fn(value, addr as *mut c_void) }
|
| A D | bug.rs | 110 pub const fn bugflag_taint(value: u32) -> u32 { in bugflag_taint() 111 value << 8 in bugflag_taint()
|
| A D | dma.rs | 36 to_result(unsafe { bindings::dma_set_mask(self.as_ref().as_raw(), mask.value()) }) in dma_set_mask() 53 to_result(unsafe { bindings::dma_set_coherent_mask(self.as_ref().as_raw(), mask.value()) }) in dma_set_coherent_mask() 73 bindings::dma_set_mask_and_coherent(self.as_ref().as_raw(), mask.value()) in dma_set_mask_and_coherent() 153 pub const fn value(&self) -> u64 { in value() method
|
| A D | uaccess.rs | 446 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write() 460 core::ptr::from_ref(value).cast::<c_void>(), in write()
|
| /rust/kernel/sync/lock/ |
| A D | global.rs | 120 value: UnsafeCell<T>, field 147 value: UnsafeCell::new(val), in new() 159 unsafe { &*self.value.get() } in as_ref() 167 unsafe { &mut *self.value.get() } in as_mut() 175 self.value.get_mut() in get_mut() 257 unsafe(uninit) static $name:ident: $kind:ident<$valuety:ty> = $value:expr; 282 let init: $valuety = $value;
|
| /rust/kernel/alloc/ |
| A D | layout.rs | 104 fn from(value: ArrayLayout<T>) -> Self { in from() 105 let res = Layout::array::<T>(value.len); in from()
|
| A D | kvec.rs | 453 let value = { in remove() 475 Ok(value) in remove() 726 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with() 736 item.write(value.clone()); in extend_with() 740 spare[n - 1].write(value); in extend_with() 781 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> { in from_elem() 784 v.extend_with(n, value, flags)?; in from_elem() 806 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> { in resize() 808 Some(n) => self.extend_with(n, value, flags), in resize() 1323 fn add(value: &mut [bool]) { in test_kvec_retain() [all …]
|
| A D | kbox.rs | 239 pub fn write(mut self, value: T) -> Box<T, A> { in write() 240 (*self).write(value); in write() 333 let value = unsafe { core::ptr::read(&*b) }; in into_inner() 335 value in into_inner()
|
| /rust/kernel/io/ |
| A D | resource.rs | 226 const fn new(value: u32) -> Self { in new() 227 crate::build_assert!(value as u64 <= c_ulong::MAX as u64); in new() 228 Flags(value as c_ulong) in new()
|
| /rust/kernel/sync/ |
| A D | arc.rs | 231 let value = ArcInner { in new() 237 let inner = KBox::new(value, flags)?; in new() 766 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new() 769 inner: Arc::new(value, flags)?, in new() 794 pub fn write(mut self, value: T) -> UniqueArc<T> { in write() 795 self.deref_mut().write(value); in write()
|