Home
last modified time | relevance | path

Searched refs:aligned_size (Results 1 – 12 of 12) sorted by relevance

/openbsd-src/usr.sbin/nsd/
H A Dregion-allocator.c254 size_t aligned_size; in region_alloc() local
260 aligned_size = REGION_ALIGN_UP(size, ALIGNMENT); in region_alloc()
262 if (aligned_size >= region->large_object_size) { in region_alloc()
278 if (region->recycle_bin && region->recycle_bin[aligned_size]) { in region_alloc()
279 result = (void*)region->recycle_bin[aligned_size]; in region_alloc()
280 region->recycle_bin[aligned_size] = region->recycle_bin[aligned_size]->next; in region_alloc()
281 region->recycle_size -= aligned_size; in region_alloc()
282 region->unused_space += aligned_size - size; in region_alloc()
286 if (region->allocated + aligned_size > region->chunk_size) { in region_alloc()
321 region->allocated += aligned_size; in region_alloc()
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DInterpStack.h33 new (grow(aligned_size<T>())) T(std::forward<Tys>(Args)...); in push()
49 shrink(aligned_size<T>()); in pop()
61 shrink(aligned_size<T>()); in discard()
66 return *reinterpret_cast<T *>(peek(aligned_size<T>())); in peek()
84 template <typename T> constexpr size_t aligned_size() const { in aligned_size() function
/openbsd-src/sys/dev/pci/drm/i915/selftests/
H A Di915_gem_gtt.c263 u64 hole_size, aligned_size; in lowlevel_hole() local
265 aligned_size = max_t(u32, ilog2(min_alignment), size); in lowlevel_hole()
266 hole_size = (hole_end - hole_start) >> aligned_size; in lowlevel_hole()
287 GEM_BUG_ON(count * BIT_ULL(aligned_size) > vm->total); in lowlevel_hole()
288 GEM_BUG_ON(hole_start + count * BIT_ULL(aligned_size) > hole_end); in lowlevel_hole()
311 u64 addr = hole_start + order[n] * BIT_ULL(aligned_size); in lowlevel_hole()
314 GEM_BUG_ON(addr + BIT_ULL(aligned_size) > vm->total); in lowlevel_hole()
357 mock_vma_res->node_size = BIT_ULL(aligned_size); in lowlevel_hole()
370 u64 addr = hole_start + order[n] * BIT_ULL(aligned_size); in lowlevel_hole()
458 u64 aligned_size = round_up(obj->base.size, in fill_hole() local
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/
H A Dasan_poisoning.h39 ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size, in FastPoisonShadow() argument
43 __sanitizer_fill_shadow(aligned_beg, aligned_size, value, in FastPoisonShadow()
48 MEM_TO_SHADOW(aligned_beg + aligned_size - ASAN_SHADOW_GRANULARITY) + 1; in FastPoisonShadow()
H A Dasan_globals.cpp64 uptr aligned_size = RoundUpTo(g.size, ASAN_SHADOW_GRANULARITY); in PoisonRedZones() local
65 FastPoisonShadow(g.beg + aligned_size, g.size_with_redzone - aligned_size, in PoisonRedZones()
67 if (g.size != aligned_size) { in PoisonRedZones()
H A Dasan_poisoning.cpp290 uptr aligned_size = size & ~(ASAN_SHADOW_GRANULARITY - 1); in PoisonAlignedStackMemory() local
291 PoisonShadow(addr, aligned_size, in PoisonAlignedStackMemory()
293 if (size == aligned_size) in PoisonAlignedStackMemory()
295 s8 end_offset = (s8)(size - aligned_size); in PoisonAlignedStackMemory()
296 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory()
/openbsd-src/sys/dev/pci/drm/radeon/
H A Dradeon_fbdev.c66 int aligned_size, size; in radeon_fbdev_create_pinned_object() local
80 aligned_size = ALIGN(size, PAGE_SIZE); in radeon_fbdev_create_pinned_object()
81 ret = radeon_gem_object_create(rdev, aligned_size, 0, in radeon_fbdev_create_pinned_object()
85 pr_err("failed to allocate framebuffer (%d)\n", aligned_size); in radeon_fbdev_create_pinned_object()
/openbsd-src/gnu/usr.bin/gcc/gcc/config/i370/
H A Di370.c1478 int stackframe_size, aligned_size; local
1486 aligned_size = (stackframe_size + 7) >> 3;
1487 aligned_size <<= 3;
1490 current_function_outgoing_args_size, frame_size, aligned_size);
1498 fprintf (f, "\t.long\t%d\n", aligned_size);
/openbsd-src/gnu/llvm/libcxxabi/src/
H A Dcxa_exception.cpp168 constexpr size_t aligned_size = in get_cxa_exception_offset() local
170 constexpr size_t offset = aligned_size - excp_size; in get_cxa_exception_offset()
/openbsd-src/gnu/gcc/libstdc++-v3/include/ext/
H A Dbitmap_allocator.h730 struct aligned_size
741 char __M_unused[aligned_size<sizeof(value_type),
/openbsd-src/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c1648 uint64_t aligned_size; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1715 aligned_size = PAGE_ALIGN(size); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1721 ret = amdgpu_amdkfd_reserve_mem_limit(adev, aligned_size, flags, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1732 ret = amdgpu_gem_object_create(adev, aligned_size, 1, alloc_domain, alloc_flags, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1790 amdgpu_amdkfd_unreserve_mem_limit(adev, aligned_size, flags, xcp_id); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1645 uint64_t aligned_size; amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local
/openbsd-src/gnu/gcc/gcc/
H A Dexpr.c5804 tree aligned_size = TREE_OPERAND (exp, 3); in array_ref_element_size() local
5809 if (aligned_size) in array_ref_element_size()
5813 if (TREE_TYPE (aligned_size) != sizetype) in array_ref_element_size()
5814 aligned_size = fold_convert (sizetype, aligned_size); in array_ref_element_size()
5815 return size_binop (MULT_EXPR, aligned_size, in array_ref_element_size()