/openbmc/qemu/rust/qemu-api/src/ |
H A D | vmstate.rs | 18 name: c_str!("unused").as_ptr(), 59 .as_ptr() as *const ::std::os::raw::c_char, 136 .as_ptr() as *const ::std::os::raw::c_char, 184 .as_ptr() as *const ::std::os::raw::c_char, 209 .as_ptr() as *const ::std::os::raw::c_char, 234 .as_ptr() as *const ::std::os::raw::c_char, 326 _FIELDS.as_ptr() 358 _SUBSECTIONS.0.as_ptr()
|
H A D | device_class.rs | 22 $crate::bindings::device_class_set_props(dc.as_mut(), $props.as_ptr()); 33 name: ::std::ffi::CStr::as_ptr($name), 44 name: ::std::ffi::CStr::as_ptr($name),
|
H A D | definitions.rs | 72 name: <$t as $crate::definitions::ObjectImpl>::TYPE_NAME.as_ptr(), 74 pname.as_ptr()
|
/openbmc/linux/rust/alloc/vec/ |
H A D | drain.rs | 114 let unyielded_ptr = this.iter.as_slice().as_ptr(); in keep_rest() 130 let src = source_vec.as_ptr().add(tail); in keep_rest() 190 let src = source_vec.as_ptr().add(tail); in drop() 229 let drop_ptr = iter.as_slice().as_ptr(); in drop()
|
H A D | into_iter.rs | 128 self.ptr = self.buf.as_ptr(); in forget_allocation_drop_remaining() 129 self.end = self.buf.as_ptr(); in forget_allocation_drop_remaining() 158 let buf = this.buf.as_ptr(); in into_vecdeque() 410 let _ = RawVec::from_raw_parts_in(self.0.buf.as_ptr(), self.0.cap, alloc); in drop()
|
H A D | mod.rs | 1355 pub fn as_ptr(&self) -> *const T { in as_ptr() method 1528 let value = ptr::read(self.as_ptr().add(index)); in swap_remove() 1729 self.v.as_ptr().add(self.processed_len), in retain_mut() 2047 Some(ptr::read(self.as_ptr().add(self.len()))) in pop() 2150 let range_slice = slice::from_raw_parts(self.as_ptr().add(start), end - start); in drain() 2274 ptr::copy_nonoverlapping(self.as_ptr().add(at), other.as_mut_ptr(), other.len()); in split_off() 2836 unsafe { ptr::copy_nonoverlapping(source.as_ptr(), spare.as_mut_ptr() as _, count) }; in spec_extend_from_within() 2855 unsafe { slice::from_raw_parts(self.as_ptr(), self.len) } in deref() 3556 let array = unsafe { ptr::read(vec.as_ptr() as *const [T; N]) };
|
/openbmc/linux/rust/alloc/ |
H A D | alloc.rs | 215 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in grow_impl() 230 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), old_size); in grow_impl() 256 unsafe { dealloc(ptr.as_ptr(), layout) } in deallocate() 306 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in shrink() 318 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), new_size); in shrink()
|
H A D | raw_vec.rs | 205 ptr: unsafe { Unique::new_unchecked(ptr.cast().as_ptr()) }, in allocate_in() 230 ptr: unsafe { Unique::new_unchecked(ptr.cast().as_ptr()) }, in try_allocate_in() 256 self.ptr.as_ptr() in ptr() 411 self.ptr = unsafe { Unique::new_unchecked(ptr.cast().as_ptr()) }; in set_ptr_and_cap()
|
H A D | boxed.rs | 492 unsafe { Ok(Box::from_raw_in(ptr.as_ptr(), alloc)) } in try_new_uninit_in() 566 unsafe { Ok(Box::from_raw_in(ptr.as_ptr(), alloc)) } in try_new_zeroed_in() 699 unsafe { Ok(RawVec::from_raw_parts_in(ptr.as_ptr(), len, Global).into_box(len)) } in try_new_uninit_slice() 733 unsafe { Ok(RawVec::from_raw_parts_in(ptr.as_ptr(), len, Global).into_box(len)) } in try_new_zeroed_slice() 1109 (leaked.as_ptr(), alloc) in into_raw_with_allocator() 1182 unsafe { &mut *mem::ManuallyDrop::new(b).0.as_ptr() } in leak() 1237 let layout = Layout::for_value_raw(ptr.as_ptr()); in drop() 1273 Unique::new_unchecked(bytes.as_ptr() as *mut str) in default() 1505 ptr::copy_nonoverlapping(slice.as_ptr(), buf.ptr(), len); in from_slice()
|
H A D | slice.rs | 169 s.as_ptr().copy_to_nonoverlapping(v.as_mut_ptr(), s.len()); in to_vec() 517 buf.as_ptr(), in repeat() 538 buf.as_ptr(), in repeat()
|
/openbmc/qemu/rust/qemu-api/tests/ |
H A D | tests.rs | 19 name: c_str!("name").as_ptr(), in test_device_decl_macros() 77 object_unref(object_new(DummyState::TYPE_NAME.as_ptr()) as *mut _); in test_device_decl_macros()
|
/openbmc/linux/rust/kernel/ |
H A D | print.rs | 112 format_string.as_ptr() as _, 113 module_name.as_ptr(), 133 format_strings::CONT.as_ptr() as _, in call_printk_cont()
|
H A D | kunit.rs | 21 b"\x013%pA\0".as_ptr() as _, in err() 37 b"\x016%pA\0".as_ptr() as _, in info()
|
H A D | str.rs | 149 self.0.as_ptr() as _ in as_char_ptr() 472 s.as_bytes().as_ptr(), in write_str() 575 let ptr = unsafe { bindings::memchr(buf.as_ptr().cast(), 0, (f.bytes_written() - 1) as _) }; in try_from_fmt()
|
H A D | sync.rs | 34 pub(crate) fn as_ptr(&self) -> *mut bindings::lock_class_key { in as_ptr() method
|
H A D | task.rs | 159 unsafe { bindings::put_task_struct(obj.cast().as_ptr()) } in dec_ref()
|
H A D | types.rs | 77 core::ptr::NonNull::dangling().as_ptr() in into_foreign()
|
/openbmc/linux/rust/kernel/sync/ |
H A D | arc.rs | 232 core::ptr::eq(this.ptr.as_ptr(), other.ptr.as_ptr()) in ptr_eq() 240 ManuallyDrop::new(self).ptr.as_ptr() as _ in into_foreign() 305 unsafe { drop(Box::from_raw(self.ptr.as_ptr())) }; in drop()
|
H A D | condvar.rs | 101 bindings::__init_waitqueue_head(slot, name.as_char_ptr(), key.as_ptr()) in new()
|
H A D | lock.rs | 110 B::init(slot, name.as_char_ptr(), key.as_ptr()) in new()
|
/openbmc/qemu/rust/hw/char/pl011/src/ |
H A D | device_class.rs | 25 name: c_str!("pl011/clock").as_ptr(), 49 name: c_str!("pl011").as_ptr(),
|
H A D | device.rs | 172 CLK_NAME.as_ptr(), in init() 603 qdev_prop_set_chr(dev, c_str!("chardev").as_ptr(), chr); in pl011_create()
|
/openbmc/openbmc/poky/meta/recipes-devtools/rust/files/ |
H A D | hardcodepaths.patch | 45 llvm::LLVMSetDataLayout(llmod, data_layout.as_ptr());
|
H A D | rv32-rustix-libc-backend.patch | 32 fn as_ptr(&mut self) -> *mut c::c_void {
|
H A D | rv32-cargo-rustix-0.38.28-fix.patch | 58 fn as_ptr(&mut self) -> *mut c::c_void {
|