Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 22 of 22) sorted by relevance

/openbsd-src/gnu/llvm/libcxx/benchmarks/
H A Dallocation.bench.cpp66 const size_t alloc_size = st.range(0); in BM_AllocateAndDeallocate() local
68 void* p = AllocWrapper::Allocate(alloc_size); in BM_AllocateAndDeallocate()
70 AllocWrapper::Deallocate(p, alloc_size); in BM_AllocateAndDeallocate()
77 const size_t alloc_size = st.range(0); in BM_AllocateOnly() local
81 PointerList* p = (PointerList*)AllocWrapper::Allocate(alloc_size); in BM_AllocateOnly()
91 AllocWrapper::Deallocate(Tmp, alloc_size); in BM_AllocateOnly()
97 const size_t alloc_size = st.range(0); in BM_DeallocateOnly() local
102 p = AllocWrapper::Allocate(alloc_size); in BM_DeallocateOnly()
108 AllocWrapper::Deallocate(*Data, alloc_size); in BM_DeallocateOnly()
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/tests/
H A Dasan_oob_test.cpp90 for (size_t alloc_size = 1; alloc_size <= 8; alloc_size++) { in TEST() local
92 void *p = malloc(alloc_size); in TEST()
96 if (offset + access_size <= alloc_size) { in TEST()
99 int outside_bytes = offset > alloc_size ? (offset - alloc_size) : 0; in TEST()
/openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/
H A Dhwasan_fuchsia.cpp71 uptr alloc_size = UINT64_C(1) << kShadowBaseAlignment; in InitThreads() local
73 MmapAlignedOrDieOnFatalError(alloc_size, alloc_size, __func__)); in InitThreads()
75 InitThreadList(thread_start, alloc_size); in InitThreads()
/openbsd-src/gnu/lib/libiberty/src/
H A Dxmemdup.c34 xmemdup (const PTR input, size_t copy_size, size_t alloc_size) in xmemdup() argument
36 PTR output = xcalloc (1, alloc_size); in xmemdup()
H A Dfunctions.texi1479 …pefn Replacement void* xmemdup (void *@var{input}, size_t @var{copy_size}, size_t @var{alloc_size})
1481 Duplicates a region of memory without fail. First, @var{alloc_size} bytes
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dggc-page.c276 size_t alloc_size; member
741 size_t alloc_size, head_slop, tail_slop; local
745 alloc_size = GGC_QUIRE_SIZE * G.pagesize;
747 alloc_size = entry_size + G.pagesize - 1;
748 allocation = xmalloc (alloc_size);
753 tail_slop = ((size_t) allocation + alloc_size) & (G.pagesize - 1);
755 tail_slop = alloc_size - entry_size - head_slop;
756 enda = allocation + alloc_size - tail_slop;
781 group->alloc_size = alloc_size;
784 G.bytes_mapped += alloc_size;
[all …]
/openbsd-src/sys/dev/pci/drm/i915/gt/uc/
H A Dintel_guc_ads.c521 u32 total_size = 0, alloc_size, real_size; in guc_prep_golden_context() local
556 alloc_size = PAGE_ALIGN(real_size); in guc_prep_golden_context()
557 total_size += alloc_size; in guc_prep_golden_context()
578 addr_ggtt += alloc_size; in guc_prep_golden_context()
611 u32 addr_ggtt, total_size = 0, alloc_size, real_size; in guc_init_golden_context() local
632 alloc_size = PAGE_ALIGN(real_size); in guc_init_golden_context()
633 total_size += alloc_size; in guc_init_golden_context()
648 addr_ggtt += alloc_size; in guc_init_golden_context()
652 offset += alloc_size; in guc_init_golden_context()
/openbsd-src/gnu/gcc/gcc/
H A Dggc-zone.c2147 size_t alloc_size; member
2203 size_t alloc_size, total_size; in ggc_pch_total_size() local
2214 alloc_size = CEIL (d->d.total, BYTES_PER_ALLOC_BIT * 8); in ggc_pch_total_size()
2215 alloc_size = ROUND_UP (alloc_size, MAX_ALIGNMENT); in ggc_pch_total_size()
2216 d->alloc_size = alloc_size; in ggc_pch_total_size()
2218 return d->d.total + alloc_size; in ggc_pch_total_size()
2237 d->alloc_bits = xcalloc (1, d->alloc_size); in ggc_pch_this_base()
2301 if (fwrite (d->alloc_bits, d->alloc_size, 1, f) != 1) in ggc_pch_finish()
2319 size_t alloc_size; in ggc_pch_read() local
2327 alloc_size = CEIL (d.total, BYTES_PER_ALLOC_BIT * 8); in ggc_pch_read()
[all …]
H A Dggc-page.c315 size_t alloc_size; member
808 size_t alloc_size, head_slop, tail_slop; in alloc_page() local
812 alloc_size = GGC_QUIRE_SIZE * G.pagesize; in alloc_page()
814 alloc_size = entry_size + G.pagesize - 1; in alloc_page()
815 allocation = xmalloc (alloc_size); in alloc_page()
820 tail_slop = ((size_t) allocation + alloc_size) & (G.pagesize - 1); in alloc_page()
822 tail_slop = alloc_size - entry_size - head_slop; in alloc_page()
823 enda = allocation + alloc_size - tail_slop; in alloc_page()
847 group->alloc_size = alloc_size; in alloc_page()
850 G.bytes_mapped += alloc_size; in alloc_page()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_ib.c137 uint32_t status = 0, alloc_size; in amdgpu_ib_schedule() local
184 alloc_size = ring->funcs->emit_frame_size + num_ibs * in amdgpu_ib_schedule()
187 r = amdgpu_ring_alloc(ring, alloc_size); in amdgpu_ib_schedule()
H A Damdgpu_kms.c727 unsigned int n, alloc_size; in amdgpu_info_ioctl()
767 alloc_size = info->read_mmr_reg.count * sizeof(*regs); in amdgpu_info_ioctl()
783 n = copy_to_user(out, regs, min(size, alloc_size)); in amdgpu_info_ioctl()
725 unsigned int n, alloc_size; amdgpu_info_ioctl() local
/openbsd-src/gnu/usr.bin/texinfo/info/
H A Dfilesys.c339 int alloc_size; in remember_info_filename() local
342 alloc_size = names_and_files_slots * sizeof (FILENAME_LIST *); in remember_info_filename()
345 (FILENAME_LIST **) xrealloc (names_and_files, alloc_size); in remember_info_filename()
/openbsd-src/gnu/llvm/libcxxabi/src/
H A Dfallback_malloc.cpp123 size_t alloc_size(size_t len) { in alloc_size() function
133 const size_t nelems = alloc_size(len); in fallback_malloc()
/openbsd-src/gnu/llvm/lldb/source/Expression/
H A DIRMemoryMap.cpp91 size_t alloc_size = back->second.m_size; in FindSpace() local
92 ret = llvm::alignTo(addr + alloc_size, 4096); in FindSpace()
158 size_t alloc_size = back->second.m_size; in FindSpace() local
159 ret = llvm::alignTo(addr + alloc_size, 4096); in FindSpace()
/openbsd-src/sys/dev/pci/drm/
H A Ddrm_edid.c2085 size_t *alloc_size) in edid_filter_invalid_blocks() argument
2115 *alloc_size = edid_size_by_blocks(valid_blocks); in edid_filter_invalid_blocks()
2118 new = krealloc(edid, *alloc_size, GFP_KERNEL); in edid_filter_invalid_blocks()
2122 new = kmalloc(*alloc_size, GFP_KERNEL); in edid_filter_invalid_blocks()
2378 size_t alloc_size = EDID_LENGTH; in _drm_do_get_edid() local
2382 alloc_size = override->size; in _drm_do_get_edid()
2383 edid = kmemdup(override->edid, alloc_size, GFP_KERNEL); in _drm_do_get_edid()
2390 edid = kmalloc(alloc_size, GFP_KERNEL); in _drm_do_get_edid()
2418 alloc_size = edid_size(edid); in _drm_do_get_edid()
2420 new = krealloc(edid, alloc_size, GFP_KERNEL); in _drm_do_get_edid()
[all …]
/openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptRuntime.cpp2526 const uint32_t alloc_size = *alloc->size.get(); in LoadAllocation() local
2527 if (alloc_size != size) { in LoadAllocation()
2530 (uint64_t)size, alloc_size); in LoadAllocation()
2533 size = alloc_size < size ? alloc_size : size; in LoadAllocation()
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Delf32-xtensa.c1555 static bfd_size_type alloc_size = 0; in vsprint_msg() local
1567 if (len > alloc_size) in vsprint_msg()
1570 alloc_size = len; in vsprint_msg()
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Delf32-xtensa.c1797 static bfd_size_type alloc_size = 0; in vsprint_msg() local
1809 if (len > alloc_size) in vsprint_msg()
1812 alloc_size = len; in vsprint_msg()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DAttrDocs.td671 The ``alloc_size`` attribute can be placed on functions that return pointers in
673 returned pointer. ``alloc_size`` takes one or two arguments.
675 - ``alloc_size(N)`` implies that argument number N equals the number of
677 - ``alloc_size(N, M)`` implies that the product of argument number N and
683 An example of how to use ``alloc_size``
687 void *my_malloc(int a) __attribute__((alloc_size(1)));
688 void *my_calloc(int a, int b) __attribute__((alloc_size(1, 2)));
700 this is unimportant, because LLVM has support for the ``alloc_size``
H A DAttr.td1393 let Spellings = [GCC<"alloc_size">];
/openbsd-src/gnu/llvm/compiler-rt/lib/msan/tests/
H A Dmsan_test.cpp4634 size_t alloc_size = __sanitizer_get_estimated_allocated_size(sizes[i]); in TEST() local
4635 EXPECT_EQ(alloc_size, sizes[i]); in TEST()
/openbsd-src/gnu/llvm/clang/docs/
H A DLanguageExtensions.rst3675 void* my_aligned_allocator(size_t alloc_size, size_t alignment) {
3679 global_alloc_buffer = result + alloc_size;