Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 15 of 15) sorted by relevance

/rust/alloc/
Draw_vec.rs54 ptr: Unique<T>, field
196 let ptr = match result { in allocate_in() localVariable
224 let ptr = result.map_err(|_| AllocError { layout, non_exhaustive: () })?; in try_allocate_in() localVariable
255 pub fn ptr(&self) -> *mut T { in ptr() method
443 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_amortized() localVariable
462 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_exact() localVariable
474 let ptr = unsafe { in shrink() localVariable
Dalloc.rs188 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in alloc_impl() localVariable
220 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in grow_impl() localVariable
311 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in shrink() localVariable
Dboxed.rs487 let ptr = alloc.allocate(layout)?.cast(); in try_new_uninit_in() localVariable
557 let ptr = alloc.allocate_zeroed(layout)?.cast(); in try_new_zeroed_in() localVariable
687 let ptr = Global.allocate(layout)?; in try_new_uninit_slice() localVariable
719 let ptr = Global.allocate_zeroed(layout)?; in try_new_zeroed_slice() localVariable
1238 let ptr: Unique<[T]> = Unique::<[T; 0]>::dangling(); in default() localVariable
1249 let ptr: Unique<str> = unsafe { in default() localVariable
1895 let ptr: *const T = &**self; in fmt() localVariable
/rust/kernel/sync/arc/
Dstd_vendor.rs20 let ptr = self.ptr.cast::<ArcInner<T>>(); in downcast() localVariable
/rust/kernel/
Dtask.rs105 let ptr = unsafe { bindings::get_current() }; in current() localVariable
120 let ptr = unsafe { *ptr::addr_of!((*self.0.get()).group_leader) }; in group_leader() localVariable
Derror.rs144 let ptr = unsafe { bindings::errname(-self.0) }; in name() localVariable
Dinit.rs1039 let ptr = unsafe { slot.add(i) }; localVariable
1083 let ptr = unsafe { slot.add(i) }; localVariable
Dtypes.rs311 ptr: NonNull<T>, field
Dstr.rs575 let ptr = unsafe { bindings::memchr(buf.as_ptr().cast(), 0, (f.bytes_written() - 1) as _) }; in try_from_fmt() localVariable
/rust/
Dhelpers.c105 bool rust_helper_IS_ERR(__force const void *ptr) in rust_helper_IS_ERR()
111 long rust_helper_PTR_ERR(__force const void *ptr) in rust_helper_PTR_ERR()
/rust/alloc/vec/
Ddrain_filter.rs102 let ptr = this.vec.as_mut_ptr(); in keep_rest() localVariable
179 let ptr = self.drain.vec.as_mut_ptr(); in drop() localVariable
Dmod.rs985 let ptr = me.as_mut_ptr(); in into_raw_parts_with_alloc() localVariable
1631 let ptr = self.as_mut_ptr().add(index); in remove() localVariable
1861 let ptr = self.vec.as_mut_ptr(); in dedup_by() localVariable
1887 let ptr = gap.vec.as_mut_ptr(); in dedup_by() localVariable
2459 let ptr = self.as_mut_ptr(); in split_at_spare_mut_with_len() localVariable
2710 let mut ptr = self.as_mut_ptr().add(self.len()); in extend_with() localVariable
2739 let mut ptr = self.as_mut_ptr().add(self.len()); in try_extend_with() localVariable
3114 let ptr = self.as_mut_ptr(); in extend_trusted() localVariable
3147 let ptr = self.as_mut_ptr(); in try_extend_trusted() localVariable
Dinto_iter.rs45 pub(super) ptr: *const T, field
/rust/kernel/init/
D__internal.rs188 ptr: *mut T, field
/rust/kernel/sync/
Darc.rs129 ptr: NonNull<ArcInner<T>>, field