/freebsd/sys/arm/arm/ |
H A D | busdma_machdep.c | 80 bus_size_t alignment; member 170 #define dmat_alignment(dmat) ((dmat)->alignment) 279 return (!vm_addr_align_ok(addr, dmat->alignment)); in alignment_bounce() 322 dmat->alignment <= PAGE_SIZE, in might_bounce() 325 __func__, dmat->alignment)); in might_bounce() 375 KASSERT(alignment != 0 && powerof2(alignment), in bus_dma_tag_create() 394 newtag->alignment = alignment; in bus_dma_tag_create() 416 newtag->alignment = MAX(parent->alignment, newtag->alignment); in bus_dma_tag_create() 483 t->alignment = dmat->alignment; in bus_dma_template_clone() 722 dmat->alignment <= PAGE_SIZE && in bus_dmamem_alloc() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_allocator_report.h | 27 void NORETURN ReportInvalidAllocationAlignment(uptr alignment, 29 void NORETURN ReportInvalidAlignedAllocAlignment(uptr size, uptr alignment, 31 void NORETURN ReportInvalidPosixMemalignAlignment(uptr alignment,
|
H A D | sanitizer_allocator_secondary.h | 85 void *Allocate(AllocatorStats *stat, const uptr size, uptr alignment) { in Allocate() argument 86 CHECK(IsPowerOfTwo(alignment)); in Allocate() 88 if (alignment > page_size_) in Allocate() 89 map_size += alignment; in Allocate() 94 SanitizerToolName, map_size, alignment); in Allocate() 104 if (res & (alignment - 1)) // Align. in Allocate() 105 res += alignment - (res & (alignment - 1)); in Allocate() 107 CHECK(IsAligned(res, alignment)); in Allocate()
|
/freebsd/contrib/cortex-strings/scripts/ |
H A D | bench.py | 58 def run(cache, variant, function, bytes, loops, alignment, run_id, quiet=False): argument 60 key = ':'.join('%s' % x for x in (variant, function, bytes, loops, alignment, run_id)) 101 for alignment in ALIGNMENTS[function]: 114 took = run(cache, variant, function, mid, loops, alignment, 0, 128 run(cache, variant, function, b, loops, alignment,
|
H A D | libplot.py | 41 for alignment in alignments: 42 if alignment[0] != alignment[1]:
|
H A D | plot-align.py | 28 for alignment in alignments: 29 … in records if x.variant==variant and x.src_alignment==alignment[0] and x.dst_alignment==alignment…
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | RecordLayout.cpp | 31 CharUnits alignment, in ASTRecordLayout() argument 37 : Size(size), DataSize(datasize), Alignment(alignment), in ASTRecordLayout() 46 const ASTContext &Ctx, CharUnits size, CharUnits alignment, in ASTRecordLayout() argument 56 : Size(size), DataSize(datasize), Alignment(alignment), in ASTRecordLayout()
|
/freebsd/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/ |
H A D | itdinit.c | 130 iniMem->tdCachedMem[0].alignment = sizeof (void *); /* 4 bytes */ in itdssGetResource() 147 iniMem->tdCachedMem[i].alignment = 0; in itdssGetResource() 170 initiatorResource->initiatorOption.dynamicDmaMem.alignment = 0; in itdssGetResource() 176 initiatorResource->initiatorOption.dynamicCachedMem.alignment = 0; in itdssGetResource() 197 initiatorResource->initiatorOption.dynamicDmaMem.alignment = sizeof(void *); in itdssGetResource() 214 initiatorResource->initiatorOption.dynamicCachedMem.alignment = sizeof(void *); in itdssGetResource()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_allocator.h | 84 void *memprof_memalign(uptr alignment, uptr size, BufferedStackTrace *stack, 87 void memprof_delete(void *ptr, uptr size, uptr alignment, 98 void *memprof_aligned_alloc(uptr alignment, uptr size, 100 int memprof_posix_memalign(void **memptr, uptr alignment, uptr size,
|
/freebsd/lib/geom/part/ |
H A D | geom_part.c | 327 off_t lba, new_lba, alignment, offset; in gpart_autofill_resize() local 356 alignment = 1; in gpart_autofill_resize() 361 if (alignment == 0) in gpart_autofill_resize() 366 alignment = lba; in gpart_autofill_resize() 412 alignment) - start - offset; in gpart_autofill_resize() 451 off_t lba, len, alignment, offset; in gpart_autofill() local 494 alignment = 1; in gpart_autofill() 499 if (alignment == 0) in gpart_autofill() 530 alignment = len; in gpart_autofill() 535 if (size > alignment) in gpart_autofill() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_malloc_linux.cpp | 141 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR() argument 143 return asan_posix_memalign(memptr, alignment, size, &stack); in INTERCEPTOR() 171 void *(*memalign)(uptr alignment, uptr bytes); 181 void *(*memalign)(uptr alignment, uptr bytes); 182 int (*posix_memalign)(void **memptr, uptr alignment, uptr size);
|
/freebsd/contrib/jemalloc/src/ |
H A D | large.c | 21 large_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, in large_palloc() argument 30 ausize = sz_sa2u(usize, alignment); in large_palloc() 48 arena, usize, alignment, &is_zeroed)) == NULL) { in large_palloc() 266 size_t alignment, bool zero) { in large_ralloc_move_helper() argument 267 if (alignment <= CACHELINE) { in large_ralloc_move_helper() 270 return large_palloc(tsdn, arena, usize, alignment, zero); in large_ralloc_move_helper() 275 size_t alignment, bool zero, tcache_t *tcache, in large_ralloc() argument 299 void *ret = large_ralloc_move_helper(tsdn, arena, usize, alignment, in large_ralloc()
|
H A D | extent_dss.c | 111 size_t alignment, bool *zero, bool *commit) { in extent_alloc_dss() argument 116 assert(alignment == ALIGNMENT_CEILING(alignment, PAGE)); in extent_alloc_dss() 152 (uintptr_t)gap_addr_page, alignment); in extent_alloc_dss()
|
/freebsd/sys/dev/isci/scil/ |
H A D | sci_base_memory_descriptor_list.c | 147 U32 alignment, in sci_base_mde_is_valid() argument 156 ((physical_address & (alignment - 1)) != 0) in sci_base_mde_is_valid() 157 || (mde->constant_memory_alignment != alignment) in sci_base_mde_is_valid()
|
/freebsd/sys/dev/firewire/ |
H A D | fwdma.c | 69 fwdma_malloc(struct firewire_comm *fc, int alignment, bus_size_t size, in fwdma_malloc() argument 77 /*alignment*/ alignment, in fwdma_malloc() 145 fwdma_malloc_multiseg(struct firewire_comm *fc, int alignment, in fwdma_malloc_multiseg() argument 169 /*alignment*/ alignment, in fwdma_malloc_multiseg()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | IntrinsicsBPF.td | 46 llvm_i8_ty, // alignment 56 ImmArg <ArgIndex<4>>, // alignment 66 llvm_i8_ty, // alignment 76 ImmArg <ArgIndex<5>>, // alignment
|
/freebsd/sys/arm64/arm64/ |
H A D | busdma_bounce.c | 123 #define dmat_alignment(dmat) ((dmat)->common.alignment) 280 newtag->alloc_alignment = newtag->common.alignment; in bounce_bus_dma_tag_create() 296 newtag->common.alignment > 1) in bounce_bus_dma_tag_create() 427 if (dmat->common.alignment > 1) in bounce_bus_dmamap_create() 688 dmat->common.boundary, dmat->common.alignment); in _bus_dmamap_count_pages() 707 dmat->common.alignment); in _bus_dmamap_count_pages() 757 KASSERT(dmat->common.alignment <= PAGE_SIZE, in bounce_bus_dmamap_load_phys() 759 "than PAGE_SIZE: %lu", dmat->common.alignment)); in bounce_bus_dmamap_load_phys() 814 dmat->common.alignment <= PAGE_SIZE, in bounce_bus_dmamap_load_buffer() 865 KASSERT(dmat->common.alignment <= PAGE_SIZE, in bounce_bus_dmamap_load_buffer() [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | busdma_bounce.c | 113 #define dmat_alignment(dmat) ((dmat)->common.alignment) 130 bounce_bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment, in bounce_bus_dma_tag_create() argument 162 newtag->common.alignment > 1) in bounce_bus_dma_tag_create() 288 if (dmat->common.alignment > 1) in bounce_bus_dmamap_create() 429 (dmat->common.alignment <= dmat->common.maxsize) && in bounce_bus_dmamem_alloc() 435 dmat->common.alignment <= PAGE_SIZE && in bounce_bus_dmamem_alloc() 443 0ul, dmat->common.lowaddr, dmat->common.alignment != 0 ? in bounce_bus_dmamem_alloc() 444 dmat->common.alignment : 1ul, dmat->common.boundary, attr); in bounce_bus_dmamem_alloc() 526 dmat->common.boundary, dmat->common.alignment); in _bus_dmamap_count_pages() 545 dmat->common.alignment); in _bus_dmamap_count_pages() [all …]
|
/freebsd/sys/dev/nvme/ |
H A D | nvme_ns.c | 51 uint32_t alignment); 56 uint32_t alignment, 60 uint32_t alignment); 364 nvme_construct_child_bios(struct bio *bp, uint32_t alignment, int *num_bios) in nvme_construct_child_bios() argument 376 alignment); in nvme_construct_child_bios() 395 alignment - (cur_offset & (alignment - 1))); in nvme_construct_child_bios() 421 uint32_t alignment) in nvme_ns_split_bio() argument 427 child_bios = nvme_construct_child_bios(bp, alignment, &num_bios); in nvme_ns_split_bio()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
H A D | lsan_interceptors.cpp | 108 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR() argument 111 return lsan_posix_memalign(memptr, alignment, size, stack); in INTERCEPTOR() 122 INTERCEPTOR(void*, memalign, uptr alignment, uptr size) { in INTERCEPTOR() argument 125 return lsan_memalign(alignment, size, stack); in INTERCEPTOR() 133 INTERCEPTOR(void *, __libc_memalign, uptr alignment, uptr size) { in INTERCEPTOR() argument 136 void *res = lsan_memalign(alignment, size, stack); in INTERCEPTOR() 146 INTERCEPTOR(void*, aligned_alloc, uptr alignment, uptr size) { in INTERCEPTOR() argument 149 return lsan_aligned_alloc(alignment, size, stack); in INTERCEPTOR()
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | PreprocessingRecord.h | 43 unsigned alignment = 8) noexcept; 112 unsigned alignment = 8) noexcept { 113 return ::operator new(bytes, PR, alignment); 119 unsigned alignment) noexcept { in delete() argument 120 return ::operator delete(ptr, PR, alignment); in delete() 572 unsigned alignment) noexcept { in new() argument 573 return PR.Allocate(bytes, alignment); in new()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan.h | 104 void *dfsan_aligned_alloc(uptr alignment, uptr size); 105 void *dfsan_memalign(uptr alignment, uptr size); 106 int dfsan_posix_memalign(void **memptr, uptr alignment, uptr size);
|
/freebsd/sys/riscv/include/ |
H A D | bus_dma_impl.h | 34 bus_size_t alignment; member 48 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr, 78 bus_size_t alignment,
|
/freebsd/sys/x86/include/ |
H A D | busdma_impl.h | 36 bus_size_t alignment; member 51 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr, 86 bus_size_t alignment,
|
/freebsd/sys/arm64/include/ |
H A D | bus_dma_impl.h | 34 bus_size_t alignment; member 49 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr, 84 bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr,
|