/fuchsia/zircon/system/dev/usb/xhci/ |
H A D | xhci-transfer-common.c | 12 uint32_t* ptr = (uint32_t *)trb; local 15 zxlogf(LSPEW, "trb[%03d] %p: %08X %08X %08X %08X\n", index, (void *)paddr, ptr[0], ptr[1], ptr[2], ptr[3]); 63 XHCI_WRITE64(&trb->ptr, paddr);
|
H A D | xhci-util.h | 30 zx_status_t xhci_send_command(xhci_t* xhci, uint32_t command, uint64_t ptr, uint32_t control_bits);
|
/fuchsia/zircon/third_party/lib/acpica/source/include/acpica/ |
H A D | acmacros.h | 53 #define ACPI_CAST8(ptr) ACPI_CAST_PTR (UINT8, (ptr)) 54 #define ACPI_CAST16(ptr) ACPI_CAST_PTR (UINT16, (ptr)) 55 #define ACPI_CAST32(ptr) ACPI_CAST_PTR (UINT32, (ptr)) 56 #define ACPI_CAST64(ptr) ACPI_CAST_PTR (UINT64, (ptr)) 57 #define ACPI_GET8(ptr) (*ACPI_CAST8 (ptr)) [all...] |
/fuchsia/zircon/third_party/ulib/musl/src/passwd/ |
H A D | getgr_a.c | 47 char* ptr; local 129 for (ptr = mem[0][0], i = 0; ptr != mem[0][0] + grlist_len; ptr++) 130 if (!*ptr) 131 mem[0][++i] = ptr + 1;
|
/fuchsia/zircon/kernel/lib/heap/cmpctmalloc/ |
H A D | cmpctmalloc.c | 380 static void free_to_os(void* ptr, size_t size) { argument 381 DEBUG_ASSERT(IS_PAGE_ALIGNED(ptr)); 383 heap_page_free(ptr, size >> PAGE_SIZE_SHIFT); 465 static void check_free_fill(void* ptr, size_t size) { argument 470 uint8_t byte = ((uint8_t*)ptr)[i]; 474 hexdump8(ptr, size); 748 void* ptr[16]; local 750 ptr[0] = cmpct_alloc(8); 751 ptr[1] = cmpct_alloc(32); 752 ptr[ 1080 void* ptr = NULL; local 1090 "0x%zx bytes @%p", size, ptr); local 1092 "0x%zx bytes @%p", size, ptr); local [all...] |
/fuchsia/zircon/system/dev/audio/gauss-tdm/ |
H A D | tas57xx.cpp | 22 auto ptr = fbl::unique_ptr<Tas57xx>(new (&ac) Tas57xx()); local 27 memcpy(&ptr->i2c_, i2c, sizeof(*i2c)); 29 return ptr;
|
/fuchsia/zircon/kernel/lib/crypto/include/lib/crypto/entropy/ |
H A D | jitterentropy_collector.h | 37 static zx_status_t GetInstance(Collector** ptr);
|
/fuchsia/zircon/kernel/vm/ |
H A D | vmm.cpp | 132 void* ptr = (void*)0x99; local 134 zx_status_t err = test_aspace->Alloc("alloc test", argv[2].u, &ptr, align, 0, 0); 135 printf("VmAspace::Alloc returns %d, ptr %p\n", err, ptr); 141 void* ptr = (void*)0x99; local 143 zx_status_t err = test_aspace->AllocPhysical("physical test", argv[3].u, &ptr, align, argv[2].u, 146 printf("VmAspace::AllocPhysical returns %d, ptr %p\n", err, ptr); 152 void* ptr = (void*)0x99; local 154 zx_status_t err = test_aspace->AllocContiguous("contig test", argv[2].u, &ptr, alig [all...] |
H A D | vm_aspace.cpp | 284 size_t size, void** ptr, uint8_t align_pow2, uint vmm_flags, 289 "ptr %p align %hhu vmm_flags %#x arch_mmu_flags %#x\n", 290 this, name, vmo.get(), offset, size, ptr ? *ptr : 0, align_pow2, vmm_flags, arch_mmu_flags); 309 if (!ptr) { 312 vmar_offset = reinterpret_cast<vaddr_t>(*ptr); 350 if (ptr) { 351 *ptr = (void*)r->base(); 396 void* ptr = reinterpret_cast<void*>(vaddr); local 397 return MapObjectInternal(fbl::move(vmo), name, 0, size, &ptr, 283 MapObjectInternal(fbl::RefPtr<VmObject> vmo, const char* name, uint64_t offset, size_t size, void** ptr, uint8_t align_pow2, uint vmm_flags, uint arch_mmu_flags) argument 401 AllocPhysical(const char* name, size_t size, void** ptr, uint8_t align_pow2, paddr_t paddr, uint vmm_flags, uint arch_mmu_flags) argument 440 AllocContiguous(const char* name, size_t size, void** ptr, uint8_t align_pow2, uint vmm_flags, uint arch_mmu_flags) argument 468 Alloc(const char* name, size_t size, void** ptr, uint8_t align_pow2, uint vmm_flags, uint arch_mmu_flags) argument [all...] |
/fuchsia/zircon/system/ulib/fbl/include/fbl/ |
H A D | unique_free_ptr.h | 91 static inline bool operator==(decltype(nullptr), const unique_free_ptr<T>& ptr) { 92 return (ptr.get() == nullptr); 96 static inline bool operator!=(decltype(nullptr), const unique_free_ptr<T>& ptr) { 97 return (ptr.get() != nullptr);
|
H A D | unique_ptr.h | 119 static void recycle(T* ptr) { argument 121 if (ptr) { 123 ::fbl::internal::recycler<T>::recycle(ptr); 125 delete ptr; 201 static inline bool operator==(decltype(nullptr), const unique_ptr<T>& ptr) { 202 return (ptr.get() == nullptr); 206 static inline bool operator!=(decltype(nullptr), const unique_ptr<T>& ptr) { 207 return (ptr.get() != nullptr);
|
/fuchsia/zircon/system/utest/fbl/ |
H A D | unique_free_ptr_tests.cpp | 22 fbl::unique_free_ptr<int> ptr(static_cast<int*>(malloc(sizeof(int)))); 24 fbl::unique_free_ptr<int> ptr2 = fbl::move(ptr); 25 EXPECT_NULL(ptr, "expected ptr to be null"); 37 fbl::unique_free_ptr<int> ptr(nullptr);
|
/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/internal/ |
H A D | arena_externs.h | 28 size_t arena_slab_regind(extent_t *slab, szind_t binind, const void *ptr); 46 void arena_alloc_junk_small(void *ptr, const arena_bin_info_t *bin_info, 52 void arena_dalloc_junk_small(void *ptr, const arena_bin_info_t *bin_info); 58 void arena_prof_promote(tsdn_t *tsdn, extent_t *extent, const void *ptr, 60 void arena_dalloc_promoted(tsdn_t *tsdn, extent_t *extent, void *ptr, 63 extent_t *extent, void *ptr); 65 void *ptr); 66 bool arena_ralloc_no_move(tsdn_t *tsdn, extent_t *extent, void *ptr, 68 void *arena_ralloc(tsdn_t *tsdn, arena_t *arena, extent_t *extent, void *ptr,
|
H A D | tcache_inlines.h | 15 void tcache_dalloc_small(tsd_t *tsd, tcache_t *tcache, void *ptr, 17 void tcache_dalloc_large(tsd_t *tsd, tcache_t *tcache, void *ptr, 240 tcache_dalloc_small(tsd_t *tsd, tcache_t *tcache, void *ptr, szind_t binind, 246 assert(tcache_salloc(tsd_tsdn(tsd), ptr) <= SMALL_MAXCLASS); 249 arena_dalloc_junk_small(ptr, &arena_bin_info[binind]); 259 *(tbin->avail - tbin->ncached) = ptr; 265 tcache_dalloc_large(tsd_t *tsd, tcache_t *tcache, void *ptr, size_t size, 272 assert(tcache_salloc(tsd_tsdn(tsd), ptr) > SMALL_MAXCLASS); 273 assert(tcache_salloc(tsd_tsdn(tsd), ptr) <= tcache_maxclass); 278 large_dalloc_junk(ptr, siz [all...] |
H A D | large_externs.h | 19 void large_dalloc_junk(void *ptr, size_t usize); 20 void large_dalloc_maybe_junk(void *ptr, size_t usize);
|
/fuchsia/zircon/third_party/ulib/uboringssl/include/openssl/ |
H A D | ex_data.h | 171 // This callback may be called with a NULL value for |ptr| if |parent| has no 174 typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
|
/fuchsia/zircon/system/ulib/gfx/ |
H A D | gfx.c | 121 memcpy(dst->ptr + dsty * dst->stride * dst->pixelsize, 122 src->ptr + srcy * src->stride * src->pixelsize, 163 uint16_t* dest = &((uint16_t*)surface->ptr)[x + y * surface->stride]; 170 uint32_t* dest = &((uint32_t*)surface->ptr)[x + y * surface->stride]; 176 uint8_t* dest = &((uint8_t*)surface->ptr)[x + y * surface->stride]; 184 TYPE* dest = &((TYPE*)surface->ptr)[x + y * surface->stride]; \ 220 const uint8_t* src = &((const uint8_t*)surface->ptr)[x + y * surface->stride]; 221 uint8_t* dest = &((uint8_t*)surface->ptr)[x2 + y2 * surface->stride]; 254 uint8_t* dest = &((uint8_t*)surface->ptr)[x + y * surface->stride]; 271 const uint16_t* src = &((const uint16_t*)surface->ptr)[ 616 gfx_create_surface(void* ptr, unsigned width, unsigned height, unsigned stride, unsigned format, uint32_t flags) argument 628 gfx_init_surface(gfx_surface* surface, void* ptr, unsigned width, unsigned height, unsigned stride, unsigned format, uint32_t flags) argument [all...] |
/fuchsia/zircon/third_party/ulib/jemalloc/src/ |
H A D | jemalloc.c | 313 a0idalloc(extent_t *extent, void *ptr, bool is_internal) argument 315 idalloctm(TSDN_NULL, extent, ptr, false, is_internal, true); 325 a0dalloc(void *ptr) argument 327 a0idalloc(iealloc(NULL, ptr), ptr, true); local 360 bootstrap_free(void *ptr) argument 362 if (unlikely(ptr == NULL)) 365 a0idalloc(iealloc(NULL, ptr), ptr, false); 1918 ifree(tsd_t *tsd, void *ptr, tcache_ argument 1938 idalloctm(tsd_tsdn(tsd), extent, ptr, tcache, false, false); local 1940 idalloctm(tsd_tsdn(tsd), extent, ptr, tcache, false, true); local 1944 isfree(tsd_t *tsd, extent_t *extent, void *ptr, size_t usize, tcache_t *tcache, bool slow_path) argument 1958 isdalloct(tsd_tsdn(tsd), extent, ptr, usize, tcache, false); local 1960 isdalloct(tsd_tsdn(tsd), extent, ptr, usize, tcache, true); local 1966 je_realloc(void *ptr, size_t size) argument 2036 je_free(void *ptr) argument 2295 je_rallocx(void *ptr, size_t size, int flags) argument 2370 ixallocx_helper(tsdn_t *tsdn, extent_t *extent, void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, bool zero) argument 2383 ixallocx_prof_sample(tsdn_t *tsdn, extent_t *extent, void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, bool zero, prof_tctx_t *tctx) argument 2398 ixallocx_prof(tsd_t *tsd, extent_t *extent, void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, bool zero) argument 2448 je_xallocx(void *ptr, size_t size, size_t extra, int flags) argument 2524 je_dallocx(void *ptr, int flags) argument 2566 je_sdallocx(void *ptr, size_t size, int flags) argument 2683 je_malloc_usable_size(JEMALLOC_USABLE_SIZE_CONST void *ptr) argument [all...] |
/fuchsia/zircon/system/core/virtcon/ |
H A D | vc-gfx.cpp | 158 uintptr_t ptr; local 173 ptr = vc_gfx_mem + stride * font->height * ZX_PIXEL_FORMAT_BYTES(format); 174 if ((vc_gfx = gfx_create_surface((void*) ptr, width, height - font->height, 189 void* ptr; local 192 ptr = reinterpret_cast<void*>(vc_hw_gfx_mem + offset); 193 memcpy(ptr, data_ptr, size); 195 ptr = reinterpret_cast<void*>(vc_gfx_mem + offset); 197 zx_cache_flush(ptr, size, ZX_CACHE_FLUSH_DATA);
|
/fuchsia/zircon/system/ulib/fdio/ |
H A D | vmofile.c | 28 zx_off_t ptr; member in struct:vmofile 37 if (len > (vf->end - vf->ptr)) { 38 len = vf->end - vf->ptr; 40 at = vf->ptr; 41 vf->ptr += len; 89 at = (vf->ptr - vf->off) + offset; 101 vf->ptr = vf->off + at; 202 vf->ptr = off;
|
/fuchsia/zircon/system/ulib/inspector/ |
H A D | utils-impl.h | 42 extern zx_status_t read_mem(zx_handle_t h, zx_vaddr_t vaddr, void* ptr, size_t len); 44 extern zx_status_t fetch_string(zx_handle_t h, zx_vaddr_t vaddr, char* ptr, size_t max);
|
/fuchsia/zircon/system/ulib/zx/include/lib/zx/ |
H A D | vmar.h | 33 size_t len, zx_vm_option_t options, uintptr_t* ptr) const { 34 return zx_vmar_map(get(), options, vmar_offset, vmo_handle.get(), vmo_offset, len, ptr);
|
/fuchsia/zircon/third_party/ulib/jemalloc/test/integration/ |
H A D | sdallocx.c | 8 void *ptr = mallocx(64, 0); local 9 sdallocx(ptr, 64, 0);
|
/fuchsia/zircon/kernel/arch/arm64/ |
H A D | boot-mmu.cpp | 49 pte_t* ptr = reinterpret_cast<pte_t*>(boot_alloc_page_phys()); local 54 volatile pte_t* vptr = ptr; 58 return ptr; 213 void* ptr = paddr_to_physmap(pa); 214 memset(ptr, 0, MMU_KERNEL_PAGE_TABLE_ENTRIES * sizeof(pte_t));
|
/fuchsia/zircon/kernel/syscalls/ |
H A D | zircon.cpp | 193 user_in_ptr<const void> ptr, size_t len) { 194 LTRACEF("log handle %x, opt %x, ptr 0x%p, len %zu\n", log_handle, options, ptr.get(), len); 210 if (ptr.reinterpret<const char>().copy_array_from_user(buf, len) != ZX_OK) 217 user_out_ptr<void> ptr, size_t len) { 218 LTRACEF("log handle %x, opt %x, ptr 0x%p, len %zu\n", log_handle, options, ptr.get(), len); 235 if (ptr.copy_array_to_user(buf, actual) != ZX_OK) 241 zx_status_t sys_log_write(zx_handle_t log_handle, uint32_t len, user_in_ptr<const void> ptr, uint32_t options) { argument 242 return sys_debuglog_write(log_handle, options, ptr, le 192 sys_debuglog_write(zx_handle_t log_handle, uint32_t options, user_in_ptr<const void> ptr, size_t len) argument 216 sys_debuglog_read(zx_handle_t log_handle, uint32_t options, user_out_ptr<void> ptr, size_t len) argument 245 sys_log_read(zx_handle_t log_handle, uint32_t len, user_out_ptr<void> ptr, uint32_t options) argument [all...] |