/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_packet_decoder.c | 215 static inline int pkt_to_user(struct pt_packet *upkt, size_t size, in pkt_to_user() argument 225 if (sizeof(*pkt) < size) { in pkt_to_user() 226 memset(upkt + sizeof(*pkt), 0, size - sizeof(*pkt)); in pkt_to_user() 228 size = sizeof(*pkt); in pkt_to_user() 231 memcpy(upkt, pkt, size); in pkt_to_user() 241 int errcode, size; in pt_pkt_next() local 258 size = dfun->packet(decoder, ppkt); in pt_pkt_next() 259 if (size < 0) in pt_pkt_next() 260 return size; in pt_pkt_next() 266 decoder->pos += size; in pt_pkt_next() [all …]
|
/freebsd/sys/contrib/openzfs/man/man1/ |
H A D | zarcstat.1 | 37 ARC target size 144 .It Sy size 145 ARC size 148 .Sy size 178 L2ARC prefetch allocated size per second 180 L2ARC prefetch allocated size percentage 182 L2ARC MFU allocated size per second 184 L2ARC MFU allocated size percentage 186 L2ARC MRU allocated size per second 188 L2ARC MRU allocated size percentage [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan_abi/ |
H A D | asan_abi_shim.cpp | 45 void *__asan_memcpy(void *dst, const void *src, uptr size) { in __asan_memcpy() argument 46 return __asan_abi_memcpy(dst, src, size); in __asan_memcpy() 87 void __asan_report_load_n(uptr addr, uptr size) { in __asan_report_load_n() argument 88 __asan_abi_report_load_n((void *)addr, size, true); in __asan_report_load_n() 105 void __asan_report_store_n(uptr addr, uptr size) { in __asan_report_store_n() argument 106 __asan_abi_report_store_n((void *)addr, size, true); in __asan_report_store_n() 125 void __asan_report_exp_load_n(uptr addr, uptr size, u32 exp) { in __asan_report_exp_load_n() argument 126 __asan_abi_report_exp_load_n((void *)addr, size, exp, true); in __asan_report_exp_load_n() 143 void __asan_report_exp_store_n(uptr addr, uptr size, u32 exp) { in __asan_report_exp_store_n() argument 144 __asan_abi_report_exp_store_n((void *)addr, size, exp, true); in __asan_report_exp_store_n() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerMutate.cpp | 24 PrintASCII(W.data(), W.size(), PrintAfter); in PrintASCII() 70 size_t MutationDispatcher::Mutate_Custom(uint8_t *Data, size_t Size, in Mutate_Custom() argument 73 EF->__msan_unpoison(Data, Size); in Mutate_Custom() 76 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, in Mutate_Custom() 80 size_t MutationDispatcher::Mutate_CustomCrossOver(uint8_t *Data, size_t Size, in Mutate_CustomCrossOver() argument 82 if (Size == 0) in Mutate_CustomCrossOver() 92 EF->__msan_unpoison(Data, Size); in Mutate_CustomCrossOver() 93 EF->__msan_unpoison(Other.data(), Other.size()); in Mutate_CustomCrossOver() 94 EF->__msan_unpoison(U.data(), U.size()); in Mutate_CustomCrossOver() 99 Data, Size, Other.data(), Other.size(), U.data(), U.size(), in Mutate_CustomCrossOver() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/aspeed/ |
H A D | aspeed-bmc-facebook-cmm.dts | 334 #size-cells = <0>; 341 #size-cells = <0>; 347 #size-cells = <0>; 353 #size-cells = <0>; 358 #size-cells = <0>; 363 #size-cells = <0>; 368 #size-cells = <0>; 373 #size-cells = <0>; 378 #size-cells = <0>; 383 #size [all...] |
H A D | aspeed-bmc-facebook-fuji.dts | 219 data-size = <16>; 239 #size-cells = <0>; 245 #size-cells = <0>; 252 #size-cells = <0>; 259 #size-cells = <0>; 265 #size-cells = <0>; 271 #size-cells = <0>; 277 #size-cells = <0>; 283 #size-cells = <0>; 289 #size [all...] |
H A D | aspeed-bmc-facebook-minipack.dts | 249 #size-cells = <1>; 299 #size-cells = <1>; 350 #size-cells = <0>; 356 #size-cells = <0>; 362 #size-cells = <0>; 368 #size-cells = <0>; 374 #size-cells = <0>; 380 #size-cells = <0>; 386 #size-cells = <0>; 392 #size [all...] |
/freebsd/sys/contrib/ncsw/etc/ |
H A D | memcpy.c | 39 void * MemCpy8(void* pDst, void* pSrc, uint32_t size) in MemCpy8() argument 43 for(i = 0; i < size; ++i) in MemCpy8() 49 void * MemSet8(void* pDst, int c, uint32_t size) in MemSet8() argument 53 for(i = 0; i < size; ++i) in MemSet8() 59 void * MemCpy32(void* pDst,void* pSrc, uint32_t size) in MemCpy32() argument 76 while((PTR_TO_UINT(p_Src8) & 3) && size) /* (pSrc mod 4) > 0 and size > 0 */ in MemCpy32() 79 size--; in MemCpy32() 83 while((PTR_TO_UINT(p_Dst8) & 3) && size) /* (pDst mod 4) > 0 and size > 0 */ in MemCpy32() 86 size--; in MemCpy32() 99 while (size >> 2) /* size >= 4 */ in MemCpy32() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/broadcom/ |
H A D | bcm2712.dtsi | 8 #size-cells = <2>; 45 #size-cells = <0>; 47 /* Source for L1 d/i cache-line-size, cache-sets, cache-size 49 * Source for L2 cache-line-size and cache-sets: 51 * and for cache-size: 59 d-cache-size = <0x10000>; 60 d-cache-line-size = <64>; 61 d-cache-sets = <256>; // 64KiB(size)/64(line-size)=1024ways/4-way set 62 i-cache-size = <0x10000>; 63 i-cache-line-size = <64>; [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/amazon/ |
H A D | alpine-v3.dtsi | 17 #size-cells = <2>; 21 #size-cells = <0>; 28 d-cache-size = <0x8000>; 29 d-cache-line-size = <64>; 31 i-cache-size = <0xc000>; 32 i-cache-line-size = <64>; 42 d-cache-size = <0x8000>; 43 d-cache-line-size = <64>; 45 i-cache-size = <0xc000>; 46 i-cache-line-size = <64>; [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors_memintrinsics.inc | 44 #define COMMON_INTERCEPTOR_MEMSET_IMPL(ctx, dst, v, size) \ 47 return internal_memset(dst, v, size); \ 48 COMMON_INTERCEPTOR_ENTER(ctx, memset, dst, v, size); \ 50 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, size); \ 51 return REAL(memset)(dst, v, size); \ 56 #define COMMON_INTERCEPTOR_MEMMOVE_IMPL(ctx, dst, src, size) \ 59 return internal_memmove(dst, src, size); \ 60 COMMON_INTERCEPTOR_ENTER(ctx, memmove, dst, src, size); \ 62 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, size); \ 63 COMMON_INTERCEPTOR_READ_RANGE(ctx, src, size); \ [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | slab.h | 50 #define kvzalloc(size, flags) kvmalloc(size, (flags) | __GFP_ZERO) argument 51 #define kvcalloc(n, size, flags) kvmalloc_array(n, size, (flags) | __GFP_ZERO) argument 52 #define kzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) argument 53 #define kzalloc_node(size, flags, node) kmalloc_node(size, (flags) | __GFP_ZERO, node) argument 56 #define vzalloc(size) __vmalloc(size, GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO, 0) argument 59 #define vmalloc_node(size, node) __vmalloc_node(size, GFP_KERNEL, node) argument 60 #define vmalloc_user(size) __vmalloc(size, GFP_KERNEL | __GFP_ZERO, 0) argument 61 #define vmalloc(size) __vmalloc(size, GFP_KERNEL, 0) argument 97 size_t size, size_t align, unsigned flags, linux_kmem_ctor_t *ctor); 129 kmalloc(size_t size, gfp_t flags) in kmalloc() argument [all …]
|
H A D | bitmap.h | 34 bitmap_zero(unsigned long *addr, const unsigned int size) in bitmap_zero() argument 36 memset(addr, 0, BITS_TO_LONGS(size) * sizeof(long)); in bitmap_zero() 40 bitmap_fill(unsigned long *addr, const unsigned int size) in bitmap_fill() argument 42 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_fill() 44 memset(addr, 0xff, BIT_WORD(size) * sizeof(long)); in bitmap_fill() 47 addr[BIT_WORD(size)] = BITMAP_LAST_WORD_MASK(tail); in bitmap_fill() 51 bitmap_full(unsigned long *addr, const unsigned int size) in bitmap_full() argument 53 const unsigned int end = BIT_WORD(size); in bitmap_full() 54 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_full() 72 bitmap_empty(unsigned long *addr, const unsigned int size) in bitmap_empty() argument [all …]
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | sc.h | 7 * Size class computations: 12 * Ignore the first few size classes for a moment. We can then split all the 13 * remaining size classes into groups. The size classes in a group are spaced 15 * power of two is called the base of the group, and the size classes in it 17 * SC_NGROUP size classes in each group, equally spaced in the range, so that 19 * We call that value (base / SC_NGROUP) the delta of the group. Each size class 20 * is delta larger than the one before it (including the initial size class in a 21 * group, which is delta larger than base, the largest size class in the 27 * The size classe [all...] |
H A D | sz.h | 10 * sz module: Size computations. 15 * s, sz: Size 16 * u: Usable size 20 * interpret function names. E.g. sz_psz2ind converts page size to page size 21 * index; sz_sa2u converts a (size, alignment) allocation request to the usable 22 * size that would result from such an allocation. 25 /* Page size index type. */ 28 /* Size class index type. */ 43 * size classe 121 sz_size2index_compute(size_t size) sz_size2index_compute() argument 155 sz_size2index_lookup(size_t size) sz_size2index_lookup() argument 164 sz_size2index(size_t size) sz_size2index() argument 211 sz_s2u_compute(size_t size) sz_s2u_compute() argument 239 sz_s2u_lookup(size_t size) sz_s2u_lookup() argument 251 sz_s2u(size_t size) sz_s2u() argument 263 sz_sa2u(size_t size,size_t alignment) sz_sa2u() argument [all...] |
/freebsd/sys/dev/ice/ |
H A D | ice_bitops.h | 38 /* Define the size of the bitmap chunk */ 118 * is less than the size of the bitmap. 131 * Clears the bit nr in bitmap. Assumes that nr is less than the size of the 144 * Sets the bit nr in bitmap. Assumes that nr is less than the size of the 157 * Check and clear the bit nr in bitmap. Assumes that nr is less than the size 172 * Check and set the bit nr in bitmap. Assumes that nr is less than the size of 184 * @size: Size of the bitmaps in bits 189 * size. 191 static inline void ice_zero_bitmap(ice_bitmap_t *bmp, u16 size) in ice_zero_bitmap() argument 193 ice_memset(bmp, 0, BITS_TO_CHUNKS(size) * sizeof(ice_bitmap_t), in ice_zero_bitmap() [all …]
|
/freebsd/contrib/jemalloc/src/ |
H A D | jemalloc_cpp.cpp | 27 void *operator new(std::size_t size); 28 void *operator new[](std::size_t size); 29 void *operator new(std::size_t size, const std::nothrow_t &) noexcept; 30 void *operator new[](std::size_t size, const std::nothrow_t &) noexcept; 38 void operator delete(void *ptr, std::size_t size) noexcept; 39 void operator delete[](void *ptr, std::size_t size) noexcept; 44 void *operator new(std::size_t size, std::align_val_t); 45 void *operator new(std::size_t size, std::align_val_t, const std::nothrow_t &) noexcept; 46 void *operator new[](std::size_t size, std::align_val_t); 47 void *operator new[](std::size_t size, std::align_val_t, const std::nothrow_t &) noexcept; [all …]
|
H A D | pages.c | 30 /* Actual operating system page size, detected during bootstrap, <= PAGE. */ 67 size_t size = PAGE; in os_pages_map() 69 void * addr = mmap(NULL, size, PROT_READ|PROT_WRITE, in os_pages_map() 80 memset(addr, 'A', size); in os_pages_map() 81 if (madvise(addr, size, MADV_DONTNEED) == 0) { in os_pages_map() 82 works = memchr(addr, 'A', size) == NULL; in os_pages_map() 91 if (munmap(addr, size) != 0) { in os_pages_map() 109 static void os_pages_unmap(void *addr, size_t size); in os_pages_trim() 114 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) { in os_pages_trim() 116 assert(ALIGNMENT_CEILING(size, os_pag in os_pages_trim() 56 os_pages_map(void * addr,size_t size,size_t alignment,bool * commit) os_pages_map() argument 101 os_pages_trim(void * addr,size_t alloc_size,size_t leadsize,size_t size,bool * commit) os_pages_trim() argument 130 os_pages_unmap(void * addr,size_t size) os_pages_unmap() argument 157 pages_map_slow(size_t size,size_t alignment,bool * commit) pages_map_slow() argument 181 pages_map(void * addr,size_t size,size_t alignment,bool * commit) pages_map() argument 243 pages_unmap(void * addr,size_t size) pages_unmap() argument 251 pages_commit_impl(void * addr,size_t size,bool commit) pages_commit_impl() argument 284 pages_commit(void * addr,size_t size) pages_commit() argument 289 pages_decommit(void * addr,size_t size) pages_decommit() argument 294 pages_purge_lazy(void * addr,size_t size) pages_purge_lazy() argument 329 pages_purge_forced(void * addr,size_t size) pages_purge_forced() argument 349 pages_huge_impl(void * addr,size_t size,bool aligned) pages_huge_impl() argument 362 pages_huge(void * addr,size_t size) pages_huge() argument 367 pages_huge_unaligned(void * addr,size_t size) pages_huge_unaligned() argument 372 pages_nohuge_impl(void * addr,size_t size,bool aligned) pages_nohuge_impl() argument 386 pages_nohuge(void * addr,size_t size) pages_nohuge() argument 391 pages_nohuge_unaligned(void * addr,size_t size) pages_nohuge_unaligned() argument 396 pages_dontdump(void * addr,size_t size) pages_dontdump() argument 407 pages_dodump(void * addr,size_t size) pages_dodump() argument 537 pages_set_thp_state(void * ptr,size_t size) pages_set_thp_state() argument [all...] |
/freebsd/sys/contrib/device-tree/src/arm/broadcom/ |
H A D | bcm2836.dtsi | 40 #size-cells = <0>; 43 /* Source for d/i-cache-line-size and d/i-cache-sets 47 * Source for d/i-cache-size 56 d-cache-size = <0x8000>; 57 d-cache-line-size = <64>; 58 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 59 i-cache-size = <0x8000>; 60 i-cache-line-size = <32>; 61 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set 70 d-cache-size = <0x8000>; [all …]
|
H A D | bcm2837.dtsi | 39 #size-cells = <0>; 42 /* Source for d/i-cache-line-size and d/i-cache-sets 46 * Source for d/i-cache-size 55 d-cache-size = <0x8000>; 56 d-cache-line-size = <64>; 57 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 58 i-cache-size = <0x8000>; 59 i-cache-line-size = <64>; 60 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set 70 d-cache-size = <0x8000>; [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/amd/ |
H A D | amd-seattle-cpus.dtsi | 6 #size-cells = <0x0>; 49 i-cache-size = <0xC000>; 50 i-cache-line-size = <64>; 52 d-cache-size = <0x8000>; 53 d-cache-line-size = <64>; 65 i-cache-size = <0xC000>; 66 i-cache-line-size = <64>; 68 d-cache-size = <0x8000>; 69 d-cache-line-size = <64>; 80 i-cache-size = <0xC000>; [all …]
|
/freebsd/sys/kern/ |
H A D | kern_malloc.c | 38 * allocator. A set of fixed-size buckets are used for smaller allocations, 130 * When realloc() is called, if the new size is sufficiently smaller than 131 * the old size, realloc() will allocate a new, smaller block to avoid 136 #define REALLOC_FRACTION 1 /* new block if <= half the size */ 196 "Size of kernel memory"); 200 "Maximum allocation size that malloc(9) would use UMA as backend"); 204 "Minimum size of kernel memory"); 208 "Maximum size of kernel memory"); 212 "Scale factor for kernel memory size"); 217 sysctl_kmem_map_size, "LU", "Current kmem allocation size"); [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/db/ |
H A D | h_lfsr.c | 83 key.size = (len & 0xff) + 1; in main() 85 memset(kb, c, key.size); in main() 86 val.size = (next(&len) & 0xff) + 1; in main() 90 key.size, val.size, c); in main() 94 key.size, val.size, c); in main() 97 key.size, val.size, c); in main() 105 key.size = (len & 0xff) + 1; in main() 107 memset(kb, c, key.size); in main() 112 key.size, val.size, c); in main() 116 key.size, val.size, c); in main() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_allocator.cpp | 32 void OnMap(uptr p, uptr size) const { dfsan_set_label(0, (void *)p, size); } in OnMap() 33 void OnMapSecondary(uptr p, uptr size, uptr user_begin, in OnMapSecondary() 35 OnMap(p, size); in OnMapSecondary() 37 void OnUnmap(uptr p, uptr size) const { dfsan_set_label(0, (void *)p, size); } in OnUnmap() 91 static void *DFsanAllocate(uptr size, uptr alignment, bool zeroise) { in DFsanAllocate() argument 92 if (size > max_malloc_size) { in DFsanAllocate() 95 size); in DFsanAllocate() 99 ReportAllocationSizeTooBig(size, max_malloc_size, &stack); in DFsanAllocate() 111 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate() 115 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_allocation_functions.cpp | 26 static void OnAllocate(const void *ptr, uptr size) { in OnAllocate() 30 __lsan_register_root_region(ptr, size); in OnAllocate() 33 static void OnFree(const void *ptr, uptr size) { in OnFree() 35 __lsan_unregister_root_region(ptr, size); in OnFree() 43 int __sanitizer_posix_memalign(void **memptr, uptr alignment, uptr size) { in __sanitizer_posix_memalign() argument 46 int res = hwasan_posix_memalign(memptr, alignment, size, &stack); in __sanitizer_posix_memalign() 51 void *__sanitizer_memalign(uptr alignment, uptr size) { in __sanitizer_memalign() argument 53 return hwasan_memalign(alignment, size, &stack); in __sanitizer_memalign() 57 void *__sanitizer_aligned_alloc(uptr alignment, uptr size) { in __sanitizer_aligned_alloc() argument 59 return hwasan_aligned_alloc(alignment, size, &stack); in __sanitizer_aligned_alloc() [all …]
|