/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 | arcstat.1 | 36 ARC target size 143 .It Sy size 144 ARC size 147 .Sy size 177 L2ARC prefetch allocated size per second 179 L2ARC prefetch allocated size percentage 181 L2ARC MFU allocated size per second 183 L2ARC MFU allocated size percentage 185 L2ARC MRU allocated size per second 187 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 | 44 #define kmalloc(size, flags) lkpi_kmalloc(size, flags) argument 45 #define kvmalloc(size, flags) kmalloc(size, flags) argument 46 #define kvzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) argument 47 #define kvcalloc(n, size, flags) kvmalloc_array(n, size, (flags) | __GFP_ZERO) argument 48 #define kzalloc(size, flags) kmalloc(size, (flag argument 49 kzalloc_node(size,flags,node) global() argument 51 vzalloc(size) global() argument 54 vmalloc_node(size,node) global() argument 55 vmalloc_user(size) global() argument 56 vmalloc(size) global() argument 112 __kmalloc(size_t size,gfp_t flags) __kmalloc() argument 119 kmalloc_node(size_t size,gfp_t flags,int node) kmalloc_node() argument 126 kcalloc(size_t n,size_t size,gfp_t flags) kcalloc() argument 133 kcalloc_node(size_t n,size_t size,gfp_t flags,int node) kcalloc_node() argument 141 __vmalloc(size_t size,gfp_t flags,int other) __vmalloc() argument 147 __vmalloc_node(size_t size,gfp_t flags,int node) __vmalloc_node() argument 154 vmalloc_32(size_t size) vmalloc_32() argument 160 kmalloc_array(size_t n,size_t size,gfp_t flags) kmalloc_array() argument 166 kmalloc_array_node(size_t n,size_t size,gfp_t flags,int node) kmalloc_array_node() argument 173 kvmalloc_array(size_t n,size_t size,gfp_t flags) kvmalloc_array() argument 179 krealloc(void * ptr,size_t size,gfp_t flags) krealloc() argument 185 krealloc_array(void * ptr,size_t n,size_t size,gfp_t flags) krealloc_array() argument 241 kmalloc_size_roundup(size_t size) kmalloc_size_roundup() 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 classes in a group with a given lg_base and lg_delta (which, recall, 40 * Note that the last size class in the group is the next power of two (after [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. 37 * size classes. In order to reduce cache footprint, the table is compressed, 121 sz_size2index_compute(size_t size) { in sz_size2index_compute() argument 122 if (unlikely(size > SC_LARGE_MAXCLASS)) { in sz_size2index_compute() 126 if (size == 0) { in sz_size2index_compute() [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 212 ice_and_bitmap(ice_bitmap_t * dst,const ice_bitmap_t * bmp1,const ice_bitmap_t * bmp2,u16 size) ice_and_bitmap() argument 249 ice_or_bitmap(ice_bitmap_t * dst,const ice_bitmap_t * bmp1,const ice_bitmap_t * bmp2,u16 size) ice_or_bitmap() argument 280 ice_xor_bitmap(ice_bitmap_t * dst,const ice_bitmap_t * bmp1,const ice_bitmap_t * bmp2,u16 size) ice_xor_bitmap() argument 311 ice_andnot_bitmap(ice_bitmap_t * dst,const ice_bitmap_t * bmp1,const ice_bitmap_t * bmp2,u16 size) ice_andnot_bitmap() argument 339 ice_find_next_bit(const ice_bitmap_t * bitmap,u16 size,u16 offset) ice_find_next_bit() argument 381 ice_find_first_bit(const ice_bitmap_t * bitmap,u16 size) ice_find_first_bit() argument 399 ice_is_any_bit_set(ice_bitmap_t * bitmap,u16 size) ice_is_any_bit_set() argument 414 ice_cp_bitmap(ice_bitmap_t * dst,ice_bitmap_t * src,u16 size) ice_cp_bitmap() argument 449 ice_bitmap_hweight(ice_bitmap_t * bm,u16 size) ice_bitmap_hweight() argument 471 ice_cmp_bitmap(ice_bitmap_t * bmp1,ice_bitmap_t * bmp2,u16 size) ice_cmp_bitmap() argument 499 ice_bitmap_from_array32(ice_bitmap_t * dst,u32 * src,u16 size) ice_bitmap_from_array32() 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/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/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/jemalloc/src/ |
H A D | pages.c | 23 /* Actual operating system page size, detected during bootstrap, <= PAGE. */ 51 static void os_pages_unmap(void *addr, size_t size); 56 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) { in os_pages_map() argument 58 assert(ALIGNMENT_CEILING(size, os_page) == size); in os_pages_map() 59 assert(size != 0); in os_pages_map() 71 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0), in os_pages_map() 81 ret = mmap(addr, size, prot, mmap_flags, -1, 0); in os_pages_map() 91 os_pages_unmap(ret, size); in os_pages_map() 101 os_pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, in os_pages_trim() argument 105 assert(alloc_size >= leadsize + size); in os_pages_trim() [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 …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
H A D | simple_packed_serialization.h | 58 bool write(const char *Data, size_t Size) { in write() argument 59 if (Size > Remaining) in write() 61 memcpy(Buffer, Data, Size); in write() 62 Buffer += Size; in write() 63 Remaining -= Size; in write() 78 bool read(char *Data, size_t Size) { in read() argument 79 if (Size > Remaining) in read() 81 memcpy(Data, Buffer, Size); in read() 82 Buffer += Size; in read() 83 Remaining -= Size; in read() 88 skip(size_t Size) skip() argument 112 static size_t size() { return 0; } size() function 123 static size_t size(const ArgT &Arg, const ArgTs &...Args) { size() function 157 static size_t size(const SPSTagT &Value) { return sizeof(SPSTagT); } size() function 219 static size_t size(const SPSEmpty &EP) { return 0; } size() function 270 reserve(std::string & S,uint64_t Size) reserve() argument 292 reserve(std::vector<T> & V,uint64_t Size) reserve() argument 318 reserve(std::unordered_map<K,V> & M,uint64_t Size) reserve() argument 334 static size_t size(const SequenceT &S) { size() function 335 size_t Size = SPSArgList<uint64_t>::size(static_cast<uint64_t>(S.size())); size() local 352 uint64_t Size; deserialize() local 370 static size_t size(const span<const char> &S) { size() function 380 uint64_t Size; deserialize() local 392 static size_t size(const std::pair<T1, T2> &P) { size() function 412 static size_t size(const std::optional<T> &Value) { size() function 413 size_t Size = SPSArgList<bool>::size(!!Value); size() local 446 static size_t size(const std::string_view &S) { size() function 459 uint64_t Size; deserialize() local 540 static size_t size(const detail::SPSSerializableError &BSE) { size() function 541 size_t Size = SPSArgList<bool>::size(BSE.HasError); size() local 575 static size_t size(const detail::SPSSerializableExpected<T> &BSE) { size() function 576 size_t Size = SPSArgList<bool>::size(BSE.HasValue); size() local 612 static size_t size(const detail::SPSSerializableError &BSE) { size() function 631 static size_t size(const T &Value) { size() function [all...] |