/bootable/libbootloader/gbl/third_party/libzbi/src/ |
D | zbi_format.rs | 39 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_zbi_kernel_t() localVariable 51 unsafe { ::std::ptr::addr_of!((*ptr).entry) as usize - ptr as usize }, in bindgen_test_layout_zbi_kernel_t() 56 unsafe { ::std::ptr::addr_of!((*ptr).reserve_memory_size) as usize - ptr as usize }, in bindgen_test_layout_zbi_kernel_t() 126 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_zbi_header_t() localVariable 138 unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, in bindgen_test_layout_zbi_header_t() 143 unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, in bindgen_test_layout_zbi_header_t() 148 unsafe { ::std::ptr::addr_of!((*ptr).extra) as usize - ptr as usize }, in bindgen_test_layout_zbi_header_t() 153 unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, in bindgen_test_layout_zbi_header_t() 158 unsafe { ::std::ptr::addr_of!((*ptr).reserved0) as usize - ptr as usize }, in bindgen_test_layout_zbi_header_t() 163 unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, in bindgen_test_layout_zbi_header_t() [all …]
|
/bootable/recovery/tests/unit/ |
D | asn1_decoder_test.cpp | 57 std::unique_ptr<asn1_context> ptr(ctx.asn1_constructed_get()); in TEST() local 58 ASSERT_NE(nullptr, ptr); in TEST() 59 ASSERT_EQ(5, ptr->asn1_constructed_type()); in TEST() 62 ASSERT_FALSE(ptr->asn1_oid_get(&oid, &length)); in TEST() 68 std::unique_ptr<asn1_context> ptr(ctx.asn1_constructed_get()); in TEST() local 69 ASSERT_NE(nullptr, ptr); in TEST() 70 ASSERT_EQ(5, ptr->asn1_constructed_type()); in TEST() 73 ASSERT_TRUE(ptr->asn1_oid_get(&oid, &length)); in TEST() 104 std::unique_ptr<asn1_context> ptr(ctx.asn1_sequence_get()); in TEST() local 105 ASSERT_NE(nullptr, ptr); in TEST() [all …]
|
/bootable/libbootloader/gbl/libavb/src/ |
D | lib.rs | 27 ptr::{null_mut, NonNull}, 48 let ptr = in avb_malloc_() localVariable 50 ptr.as_ptr().copy_from(size.to_le_bytes().as_ptr(), size_of::<usize>()); in avb_malloc_() 51 let ptr = ptr.as_ptr().add(size_of::<usize>()); in avb_malloc_() localVariable 52 Some(ptr) in avb_malloc_() 59 pub extern "C" fn avb_free(ptr: *mut core::ffi::c_void) { in avb_free() 60 assert_ne!(ptr, null_mut()); in avb_free() 61 let mut ptr = ptr as *mut u8; in avb_free() localVariable 69 ptr = ptr.sub(size_of::<usize>()); in avb_free() 70 ptr.copy_to(size_bytes.as_mut_ptr(), size_of::<usize>()) in avb_free() [all …]
|
/bootable/libbootloader/gbl/libc/src/ |
D | lib.rs | 20 use core::ptr::null_mut; 25 ptr: *const core::ffi::c_void, in memchr() 29 assert!(!ptr.is_null()); in memchr() 30 let start = ptr as *const u8; in memchr() 46 ptr: *const core::ffi::c_char, in strrchr() 49 assert!(!ptr.is_null()); in strrchr() 51 let bytes = unsafe { core::ffi::CStr::from_ptr(ptr).to_bytes_with_nul() }; in strrchr()
|
/bootable/libbootloader/gbl/libefi/src/ |
D | allocation.rs | 19 use core::ptr::null_mut; 100 fn deallocate(&self, ptr: *mut u8) { in deallocate() 103 entry.system_table().boot_services().free_pool(ptr as *mut _).unwrap(); in deallocate() 124 unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) { in dealloc() 125 self.deallocate(ptr); in dealloc() 137 pub fn efi_free(ptr: *mut u8) { in efi_free() 139 unsafe { EFI_GLOBAL_ALLOCATOR.deallocate(ptr) } in efi_free()
|
D | protocol.rs | 15 use core::ptr::null_mut;
|
D | lib.rs | 56 use core::ptr::null_mut;
|
/bootable/libbootloader/gbl/libstorage/src/ |
D | non_blocking.rs | 142 let ptr = out as *mut [u8]; in read_blocks() localVariable 146 unsafe { (*self).read_blocks(blk_offset, ptr)? }; in read_blocks() 148 match self.check_status(ptr) { in read_blocks() 162 let ptr = data as *mut [u8]; in write_blocks() localVariable 166 unsafe { (*self).write_blocks(blk_offset, ptr)? }; in write_blocks() 168 match self.check_status(ptr) { in write_blocks() 280 let ptr = &mut b[io_offset..][..io_size] as *mut [u8]; in set_pending() localVariable 281 self.0 = IoBufferState::Pending(*b as _, ptr, PhantomData); in set_pending() 282 ptr in set_pending() 300 IoBufferState::Pending(buffer, ptr, _) => { in update() [all …]
|
D | testlib.rs | 175 if std::ptr::eq(*buffer as *const [u8], buf as _) => in check_status()
|
/bootable/libbootloader/gbl/efi/arch/riscv64/ |
D | deps.cpp | 61 void* memset(void* ptr, int value, size_t num) { in memset() argument 62 uint8_t* start = static_cast<uint8_t*>(ptr); in memset() 66 return ptr; in memset()
|
/bootable/libbootloader/gbl/libfdt/src/ |
D | lib.rs | 140 pub unsafe fn from_raw(ptr: *const u8) -> Result<(&'static FdtHeader, &'static [u8])> { in from_raw() 144 map_result(libfdt_c_def::fdt_check_header(ptr as *const _))?; in from_raw() 145 let header_bytes = from_raw_parts(ptr, size_of::<FdtHeader>()); in from_raw() 147 Ok((header, from_raw_parts(ptr, header.totalsize()))) in from_raw() 176 let ptr = unsafe { in get_property() localVariable 185 match unsafe { ptr.as_ref() } { in get_property() 269 let mut out_ptr: *mut u8 = core::ptr::null_mut(); in set_property_placeholder()
|
/bootable/libbootloader/gbl/libefi/src/protocol/ |
D | block_io.rs | 92 let ptr = self.interface()?.media; in media() localVariable 94 Ok(*unsafe { ptr.as_ref() }.ok_or_else(|| EFI_STATUS_INVALID_PARAMETER)?) in media()
|
D | simple_network.rs | 21 use core::ptr::null_mut;
|
D | device_path.rs | 125 use core::ptr::null_mut;
|
/bootable/libbootloader/gbl/efi/src/ |
D | net.rs | 87 tx_frames: vec![core::ptr::null_mut(); extra_tx_frames + 1], in new() 184 let mut ptr: *mut core::ffi::c_void = core::ptr::null_mut(); localVariable 187 match self.protocol.get_status(Some(&mut interrupt_status), Some(&mut ptr)) { 188 Ok(()) if self.tx_frames.contains(&(ptr as *mut _)) => Some(ptr as *mut _),
|
/bootable/libbootloader/gbl/libc/include/ |
D | string.h | 23 void *memchr(const void *ptr, int ch, size_t count);
|
/bootable/recovery/minui/ |
D | events.cpp | 179 ev.data.ptr = &ev_fdinfo[g_ev_count]; in ev_init() 216 ev.data.ptr = static_cast<void*>(&ev_fdinfo[g_ev_count]); in ev_add_fd() 248 FdInfo* fdi = static_cast<FdInfo*>(g_polled_events[n].data.ptr); in ev_dispatch()
|
/bootable/recovery/recovery_ui/ |
D | screen_ui.cpp | 1070 for (const char* ptr = str.c_str(); *ptr != '\0'; ++ptr) { in PrintV() local 1071 if (*ptr == '\n' || text_col_ >= text_cols_) { in PrintV() 1076 if (*ptr != '\n') text_[text_row_][text_col_++] = *ptr; in PrintV()
|