Home
last modified time | relevance | path

Searched refs:as_mut_ptr (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/rust/alloc/vec/
H A Dmod.rs940 (me.as_mut_ptr(), me.len(), me.capacity()) in into_raw_parts()
986 let ptr = me.as_mut_ptr(); in into_raw_parts_with_alloc()
1388 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method
1529 let base_ptr = self.as_mut_ptr(); in swap_remove()
1572 let p = self.as_mut_ptr().add(index); in insert()
1862 let ptr = self.vec.as_mut_ptr(); in dedup_by()
1888 let ptr = gap.vec.as_mut_ptr(); in dedup_by()
2460 let ptr = self.as_mut_ptr(); in split_at_spare_mut_with_len()
2971 let begin = me.as_mut_ptr(); in into_iter()
3099 let ptr = self.as_mut_ptr(); in extend_trusted()
[all …]
H A Dextract_if.rs67 let v = slice::from_raw_parts_mut(self.vec.as_mut_ptr(), self.old_len); in next()
106 let ptr = self.vec.as_mut_ptr(); in drop()
H A Ddrain.rs118 let start_ptr = source_vec.as_mut_ptr().add(start); in keep_rest()
191 let dst = source_vec.as_mut_ptr().add(start); in drop()
236 let vec_ptr = vec.as_mut().as_mut_ptr(); in drop()
H A Dinto_iter.rs263 ptr::copy_nonoverlapping(self.ptr, raw_ary.as_mut_ptr() as *mut T, len);
272 ptr::copy_nonoverlapping(self.ptr, raw_ary.as_mut_ptr() as *mut T, N);
/openbmc/linux/rust/alloc/
H A Dalloc.rs230 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), old_size); in grow_impl()
318 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), new_size); in shrink()
333 Ok(ptr) => ptr.as_mut_ptr(), in exchange_malloc()
H A Dslice.rs169 s.as_ptr().copy_to_nonoverlapping(v.as_mut_ptr(), s.len()); in to_vec()
518 (buf.as_mut_ptr() as *mut T).add(buf.len()), in repeat()
539 (buf.as_mut_ptr() as *mut T).add(buf.len()), in repeat()
H A Dboxed.rs388 boxed.as_mut_ptr().write(x); in new_in()
416 boxed.as_mut_ptr().write(x); in try_new_in()
1301 (**self).write_clone_into_raw(boxed.as_mut_ptr()); in clone()
/openbmc/linux/rust/kernel/
H A Dinit.rs1162 let slot = this.as_mut_ptr(); in try_pin_init()
1176 let slot = this.as_mut_ptr(); in try_init()
1192 let slot = this.as_mut_ptr(); in try_pin_init()
1206 let slot = this.as_mut_ptr(); in try_init()
H A Dstr.rs563 let mut f = unsafe { Formatter::from_buffer(buf.as_mut_ptr(), size) }; in try_from_fmt()
/openbmc/linux/rust/kernel/sync/
H A Darc.rs568 match unsafe { init.__init(self.as_mut_ptr()) } { in init_with()
582 match unsafe { init.__pinned_init(self.as_mut_ptr()) } { in pin_init_with()
/openbmc/linux/rust/kernel/init/
H A D__internal.rs176 unsafe { init.__pinned_init(this.value.as_mut_ptr())? }; in init()