Searched refs:alloc_size (Results 1 - 18 of 18) sorted by relevance

/openbsd-current/gnu/lib/libiberty/src/
H A Dxmemdup.c7 @deftypefn Replacement void* xmemdup (void *@var{input}, size_t @var{copy_size}, size_t @var{alloc_size})
9 Duplicates a region of memory without fail. First, @var{alloc_size} bytes
34 xmemdup (const PTR input, size_t copy_size, size_t alloc_size) argument
36 PTR output = xcalloc (1, alloc_size);
/openbsd-current/gnu/llvm/libcxx/benchmarks/
H A Dallocation.bench.cpp66 const size_t alloc_size = st.range(0); local
68 void* p = AllocWrapper::Allocate(alloc_size);
70 AllocWrapper::Deallocate(p, alloc_size);
77 const size_t alloc_size = st.range(0); local
81 PointerList* p = (PointerList*)AllocWrapper::Allocate(alloc_size);
91 AllocWrapper::Deallocate(Tmp, alloc_size);
97 const size_t alloc_size = st.range(0); local
102 p = AllocWrapper::Allocate(alloc_size);
108 AllocWrapper::Deallocate(*Data, alloc_size);
/openbsd-current/gnu/llvm/compiler-rt/lib/asan/tests/
H A Dasan_oob_test.cpp90 for (size_t alloc_size = 1; alloc_size <= 8; alloc_size++) {
92 void *p = malloc(alloc_size);
93 // allocated: [p, p + alloc_size)
96 if (offset + access_size <= alloc_size) {
99 int outside_bytes = offset > alloc_size ? (offset - alloc_size) : 0;
/openbsd-current/gnu/llvm/compiler-rt/lib/hwasan/
H A Dhwasan_fuchsia.cpp71 uptr alloc_size = UINT64_C(1) << kShadowBaseAlignment; local
73 MmapAlignedOrDieOnFatalError(alloc_size, alloc_size, __func__));
75 InitThreadList(thread_start, alloc_size);
/openbsd-current/gnu/usr.bin/gcc/gcc/
H A Dggc-page.c278 size_t alloc_size;
745 size_t alloc_size, head_slop, tail_slop;
749 alloc_size = GGC_QUIRE_SIZE * G.pagesize;
751 alloc_size = entry_size + G.pagesize - 1;
752 allocation = xmalloc (alloc_size);
757 tail_slop = ((size_t) allocation + alloc_size) & (G.pagesize - 1);
759 tail_slop = alloc_size - entry_size - head_slop;
760 enda = allocation + alloc_size - tail_slop;
785 group->alloc_size = alloc_size;
276 size_t alloc_size; member in struct:page_group
741 size_t alloc_size, head_slop, tail_slop; local
[all...]
/openbsd-current/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_ib.c137 uint32_t status = 0, alloc_size; local
184 alloc_size = ring->funcs->emit_frame_size + num_ibs *
187 r = amdgpu_ring_alloc(ring, alloc_size);
H A Damdgpu_kms.c725 unsigned int n, alloc_size; local
752 alloc_size = info->read_mmr_reg.count * sizeof(*regs);
767 n = copy_to_user(out, regs, min(size, alloc_size));
/openbsd-current/sys/dev/pci/drm/i915/gt/uc/
H A Dintel_guc_ads.c521 u32 total_size = 0, alloc_size, real_size; local
556 alloc_size = PAGE_ALIGN(real_size);
557 total_size += alloc_size;
578 addr_ggtt += alloc_size;
611 u32 addr_ggtt, total_size = 0, alloc_size, real_size; local
632 alloc_size = PAGE_ALIGN(real_size);
633 total_size += alloc_size;
648 addr_ggtt += alloc_size;
652 offset += alloc_size;
/openbsd-current/gnu/llvm/libcxxabi/src/
H A Dfallback_malloc.cpp123 size_t alloc_size(size_t len) { function in namespace:__anon271
133 const size_t nelems = alloc_size(len);
/openbsd-current/gnu/gcc/gcc/
H A Dggc-zone.c2147 size_t alloc_size; member in struct:ggc_pch_data
2203 size_t alloc_size, total_size; local
2214 alloc_size = CEIL (d->d.total, BYTES_PER_ALLOC_BIT * 8);
2215 alloc_size = ROUND_UP (alloc_size, MAX_ALIGNMENT);
2216 d->alloc_size = alloc_size;
2218 return d->d.total + alloc_size;
2237 d->alloc_bits = xcalloc (1, d->alloc_size);
2301 if (fwrite (d->alloc_bits, d->alloc_size,
2319 size_t alloc_size; local
[all...]
H A Dggc-page.c317 size_t alloc_size;
811 size_t alloc_size, head_slop, tail_slop;
815 alloc_size = GGC_QUIRE_SIZE * G.pagesize;
817 alloc_size = entry_size + G.pagesize - 1;
818 allocation = xmalloc (alloc_size);
823 tail_slop = ((size_t) allocation + alloc_size) & (G.pagesize - 1);
825 tail_slop = alloc_size - entry_size - head_slop;
826 enda = allocation + alloc_size - tail_slop;
850 group->alloc_size = alloc_size;
315 size_t alloc_size; member in struct:page_group
808 size_t alloc_size, head_slop, tail_slop; local
[all...]
/openbsd-current/gnu/usr.bin/texinfo/info/
H A Dfilesys.c339 int alloc_size; local
342 alloc_size = names_and_files_slots * sizeof (FILENAME_LIST *);
345 (FILENAME_LIST **) xrealloc (names_and_files, alloc_size);
/openbsd-current/gnu/llvm/lldb/source/Expression/
H A DIRMemoryMap.cpp91 size_t alloc_size = back->second.m_size; local
92 ret = llvm::alignTo(addr + alloc_size, 4096);
158 size_t alloc_size = back->second.m_size; local
159 ret = llvm::alignTo(addr + alloc_size, 4096);
/openbsd-current/sys/dev/pci/drm/
H A Ddrm_edid.c2085 size_t *alloc_size)
2115 *alloc_size = edid_size_by_blocks(valid_blocks);
2118 new = krealloc(edid, *alloc_size, GFP_KERNEL);
2122 new = kmalloc(*alloc_size, GFP_KERNEL);
2378 size_t alloc_size = EDID_LENGTH; local
2382 alloc_size = override->size;
2383 edid = kmemdup(override->edid, alloc_size, GFP_KERNEL);
2390 edid = kmalloc(alloc_size, GFP_KERNEL);
2418 alloc_size = edid_size(edid);
2420 new = krealloc(edid, alloc_size, GFP_KERNE
2084 edid_filter_invalid_blocks(struct edid *edid, size_t *alloc_size) argument
[all...]
/openbsd-current/gnu/llvm/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptRuntime.cpp2526 const uint32_t alloc_size = *alloc->size.get(); local
2527 if (alloc_size != size) {
2530 (uint64_t)size, alloc_size);
2533 size = alloc_size < size ? alloc_size : size;
/openbsd-current/gnu/usr.bin/binutils/bfd/
H A Delf32-xtensa.c1561 static bfd_size_type alloc_size = 0;
1573 if (len > alloc_size)
1576 alloc_size = len;
1555 static bfd_size_type alloc_size = 0; local
/openbsd-current/gnu/usr.bin/binutils-2.17/bfd/
H A Delf32-xtensa.c1803 static bfd_size_type alloc_size = 0;
1815 if (len > alloc_size)
1818 alloc_size = len;
1797 static bfd_size_type alloc_size = 0; local
/openbsd-current/gnu/llvm/compiler-rt/lib/msan/tests/
H A Dmsan_test.cpp4634 size_t alloc_size = __sanitizer_get_estimated_allocated_size(sizes[i]); local
4635 EXPECT_EQ(alloc_size, sizes[i]);

Completed in 420 milliseconds