/freebsd/tools/test/stress2/tools/ |
H A D | swap.c | 77 size_t mibsize, size; in swap() local 89 size = sizeof xsw; in swap() 112 size = size / INCARNATIONS; in setup() 113 original = size; in setup() 114 if (size == 0) in setup() 122 size = rlp.rlim_cur; in setup() 129 if (size == 0) in setup() 143 c = malloc(size); in test() 146 c = malloc(size); in test() 148 if (size != original) in test() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_allocator.cpp | 191 thread_stats.mmaped += size; in OnMap() 201 thread_stats.munmaped += size; in OnUnmap() 355 if (size == 0) { in Allocate() 362 size = 1; in Allocate() 409 CHECK(size); in Allocate() 422 thread_stats.malloced += size; in Allocate() 435 RunMallocHooks(res, size); in Allocate() 623 if (size == 0) { in memprof_realloc() 629 size = 1; in memprof_realloc() 648 size = size ? RoundUpTo(size, PageSize) : PageSize; in memprof_pvalloc() [all …]
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_tlv.h | 75 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_opcode() 82 u32 size, u8 val) in __set_cmdq_base_opcode() argument 84 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_opcode() 92 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_cookie() 99 u32 size, __le16 val) in __set_cmdq_base_cookie() argument 101 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_cookie() 109 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_resp_addr() 116 u32 size, __le64 val) in __set_cmdq_base_resp_addr() argument 133 u32 size, u8 val) in __set_cmdq_base_resp_size() argument 150 u32 size, u8 val) in __set_cmdq_base_cmd_size() argument [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/marvell/ |
H A D | armada-ap807-quad.dtsi | 16 #size-cells = <0>; 25 i-cache-size = <0xc000>; 26 i-cache-line-size = <64>; 28 d-cache-size = <0x8000>; 29 d-cache-line-size = <64>; 40 i-cache-size = <0xc000>; 43 d-cache-size = <0x8000>; 55 i-cache-size = <0xc000>; 81 cache-size = <0x80000>; 82 cache-line-size = <64>; [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
H A D | randombytes_sysrandom.c | 82 arc4random_buf(buf, size); in randombytes_sysrandom_buf() 112 assert(size > (size_t) 0U); in safe_read() 113 assert(size <= SSIZE_MAX); in safe_read() 123 size -= (size_t) readnb; in safe_read() 125 } while (size > (ssize_t) 0); in safe_read() 213 assert(size <= 256U); in _randombytes_linux_getrandom() 232 if (size < chunk_size) { in randombytes_linux_getrandom() 233 chunk_size = size; in randombytes_linux_getrandom() 239 size -= chunk_size; in randombytes_linux_getrandom() 241 } while (size > (size_t) 0U); in randombytes_linux_getrandom() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_rtl.cpp | 105 static void OnLowLevelAllocate(uptr ptr, uptr size) { in OnLowLevelAllocate() argument 106 PoisonShadow(ptr, size, kAsanInternalHeapMagic); in OnLowLevelAllocate() 198 void __asan_loadN(uptr addr, uptr size) { 199 if ((addr = __asan_region_is_poisoned(addr, size))) { 207 void __asan_exp_loadN(uptr addr, uptr size, u32 exp) { in __asan_exp_loadN() argument 208 if ((addr = __asan_region_is_poisoned(addr, size))) { in __asan_exp_loadN() 216 void __asan_loadN_noabort(uptr addr, uptr size) { in __asan_loadN_noabort() argument 217 if ((addr = __asan_region_is_poisoned(addr, size))) { in __asan_loadN_noabort() 225 void __asan_storeN(uptr addr, uptr size) { in __asan_storeN() argument 226 if ((addr = __asan_region_is_poisoned(addr, size))) { in __asan_storeN() [all …]
|
H A D | asan_new_delete.cpp | 65 void *res = asan_memalign(0, size, &stack, type); \ 67 ReportOutOfMemory(size, &stack); \ 85 void *operator new(size_t size) in operator new() argument 88 void *operator new[](size_t size) in operator new[]() argument 91 void *operator new(size_t size, std::nothrow_t const&) in operator new() argument 94 void *operator new[](size_t size, std::nothrow_t const&) in operator new[]() argument 97 void *operator new(size_t size, std::align_val_t align) in operator new() argument 110 INTERCEPTOR(void *, _Znwm, size_t size) { in INTERCEPTOR() argument 113 INTERCEPTOR(void *, _Znam, size_t size) { in INTERCEPTOR() argument 130 asan_delete(ptr, size, 0, &stack, type); [all …]
|
H A D | asan_interface_internal.h | 92 void __asan_set_shadow_00(uptr addr, uptr size); 94 void __asan_set_shadow_01(uptr addr, uptr size); 96 void __asan_set_shadow_02(uptr addr, uptr size); 98 void __asan_set_shadow_03(uptr addr, uptr size); 100 void __asan_set_shadow_04(uptr addr, uptr size); 102 void __asan_set_shadow_05(uptr addr, uptr size); 104 void __asan_set_shadow_06(uptr addr, uptr size); 106 void __asan_set_shadow_07(uptr addr, uptr size); 108 void __asan_set_shadow_f1(uptr addr, uptr size); 110 void __asan_set_shadow_f2(uptr addr, uptr size); [all …]
|
H A D | asan_poisoning.cpp | 42 FastPoisonShadow(addr, size, value); in PoisonShadow() 68 uptr end = ptr + size; in AsanPoisonOrUnpoisonIntraObjectRedzone() 75 CHECK(size); in AsanPoisonOrUnpoisonIntraObjectRedzone() 76 CHECK_LE(size, 4096); in AsanPoisonOrUnpoisonIntraObjectRedzone() 106 uptr end_addr = beg_addr + size; in __asan_poison_memory_region() 146 uptr end_addr = beg_addr + size; in __asan_unpoison_memory_region() 174 if (!size) in __asan_region_is_poisoned() 176 uptr end = beg + size; in __asan_region_is_poisoned() 285 if (size == 0) return; in PoisonAlignedStackMemory() 289 if (size == aligned_size) in PoisonAlignedStackMemory() [all …]
|
/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_query_decoder.c | 990 int size; in pt_qry_decode_unknown() local 996 if (size < 0) in pt_qry_decode_unknown() 1138 return size; in pt_qry_decode_ip() 1742 int size; in pt_qry_header_pip() local 3041 int size; in pt_qry_header_mode() local 3350 int size; in pt_qry_header_vmcs() local 3476 int size; in pt_qry_header_mnt() local 3501 int size; in pt_qry_decode_exstop() local 3537 int size; in pt_qry_decode_mwait() local 3562 int size; in pt_qry_decode_pwre() local [all …]
|
/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
H A D | xattr_compat.h | 89 return (__ ## fn(inode, name, buffer, size)); \ 101 const char *name, void *buffer, size_t size) \ 128 size_t size, int flags) \ 130 return (__ ## fn(inode, name, buffer, size)); \ 147 const void *buffer, size_t size, int flags) \ 162 const void *buffer, size_t size, int flags) \ 176 size_t size, int flags) \ 193 buffer, size, flags)); \ 204 size_t size, int flags, int unused_handler_flags) \ 207 buffer, size, flags)); \ [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_flag_parser.h | 28 virtual bool Format(char *buffer, uptr size) { in Format() argument 29 if (size > 0) in Format() 39 internal_snprintf(buffer, size, "%s", str_to_use); in FormatString() 40 return num_symbols_should_write < size; in FormatString() 51 bool Format(char *buffer, uptr size) final; 79 return FormatString(buffer, size, *t_ ? "true" : "false"); in Format() 101 return num_symbols_should_write < size; in Format() 112 return FormatString(buffer, size, *t_); in Format() 127 return num_symbols_should_write < size; in Format() 142 return num_symbols_should_write < size; in Format() [all …]
|
/freebsd/crypto/openssh/ |
H A D | xmalloc.c | 34 xmalloc(size_t size) in xmalloc() argument 38 if (size == 0) in xmalloc() 40 ptr = malloc(size); in xmalloc() 47 xcalloc(size_t nmemb, size_t size) in xcalloc() argument 51 if (size == 0 || nmemb == 0) in xcalloc() 53 if (SIZE_MAX / nmemb < size) in xcalloc() 55 ptr = calloc(nmemb, size); in xcalloc() 58 size * nmemb); in xcalloc() 67 new_ptr = reallocarray(ptr, nmemb, size); in xreallocarray() 70 nmemb, size); in xreallocarray() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl_access.cpp | 21 DCHECK(size == 1 || size == 2 || size == 4 || size == 8); in TryTraceMemoryAccess() 27 u64 size_log = size == 1 ? 0 : size == 2 ? 1 : size == 4 ? 2 : 3; in TryTraceMemoryAccess() 70 ev->size_lo = size; in TryTraceMemoryAccessRange() 493 DCHECK_LE(size, 8); in UnalignedMemoryAccess() 548 if (size == 0) in MemoryRangeSet() 600 size = RoundUp(size, kShadowCell); in MemoryRangeFreed() 604 size = Min<uptr>(size, 1024); in MemoryRangeFreed() 615 for (; size; size -= kShadowCell, shadow_mem += kShadowCnt) { in MemoryRangeFreed() 622 for (; size; size -= kShadowCell, shadow_mem += kShadowCnt) { in MemoryRangeFreed() 635 size = RoundUp(size, kShadowCell); in MemoryRangeImitateWrite() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | abd.c | 198 abd->abd_size = size; in abd_alloc() 221 abd->abd_size = size; in abd_alloc_linear() 799 if (size == 0) in abd_iterate_func() 807 while (size > 0) { in abd_iterate_func() 822 size -= len; in abd_iterate_func() 837 if (size == 0) in abd_iterate_page_func() 845 while (size > 0) { in abd_iterate_page_func() 863 size -= len; in abd_iterate_page_func() 974 if (size == 0) in abd_iterate_func2() 986 while (size > 0) { in abd_iterate_func2() [all …]
|
/freebsd/lib/libufs/ |
H A D | block.c | 59 BUF_MALLOC(&p2, data, size); in bread() 73 if ((size_t)cnt != size) { in bread() 78 memcpy(data, p2, size); in bread() 82 fail: memset(data, 0, size); in bread() 103 BUF_MALLOC(&p2, data, size); in bwrite() 109 memcpy(p2, data, size); in bwrite() 117 if ((size_t)cnt != size) { in bwrite() 132 ioarg[1] = size; in berase_helper() 152 while (size > 0) { in berase_helper() 153 pwrite_size = size; in berase_helper() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/ti/ |
H A D | k3-am654.dtsi | 13 #size-cells = <0>; 41 i-cache-size = <0x8000>; 42 i-cache-line-size = <64>; 44 d-cache-size = <0x8000>; 45 d-cache-line-size = <64>; 55 i-cache-size = <0x8000>; 58 d-cache-size = <0x8000>; 97 cache-size = <0x80000>; 98 cache-line-size = <64>; 107 cache-size = <0x80000>; [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_interceptors.cpp | 43 DTLS_on_libc_memalign(ptr, size); in INTERCEPTOR() 54 return __dfsan::dfsan_calloc(nmemb, size); in INTERCEPTOR() 59 return DlsymAlloc::Realloc(ptr, size); in INTERCEPTOR() 60 return __dfsan::dfsan_realloc(ptr, size); in INTERCEPTOR() 63 INTERCEPTOR(void *, malloc, SIZE_T size) { in INTERCEPTOR() argument 65 return DlsymAlloc::Allocate(size); in INTERCEPTOR() 66 return __dfsan::dfsan_malloc(size); in INTERCEPTOR() 97 INTERCEPTOR(void *, valloc, SIZE_T size) { return __dfsan::dfsan_valloc(size); } in INTERCEPTOR() argument 99 INTERCEPTOR(void *, pvalloc, SIZE_T size) { in INTERCEPTOR() argument 100 return __dfsan::dfsan_pvalloc(size); in INTERCEPTOR() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | MultiplexExternalSemaSource.cpp | 50 for(size_t i = 0; i < Sources.size(); ++i) in GetExternalDecl() 57 for (size_t i = 0; i < Sources.size(); ++i) in CompleteRedeclChain() 63 for(size_t i = 0; i < Sources.size(); ++i) { in GetExternalSelector() 73 for(size_t i = 0; i < Sources.size(); ++i) in GetNumExternalSelectors() 79 for(size_t i = 0; i < Sources.size(); ++i) in GetExternalDeclStmt() 87 for(size_t i = 0; i < Sources.size(); ++i) in GetExternalCXXBaseSpecifiers() 119 for(size_t i = 0; i < Sources.size(); ++i) in completeVisibleDeclsMap() 126 for(size_t i = 0; i < Sources.size(); ++i) in FindExternalLexicalDecls() 134 for(size_t i = 0; i < Sources.size(); ++i) in FindFileRegionDecls() 139 for(size_t i = 0; i < Sources.size(); ++i) in CompleteType() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_poisoning.cpp | 28 for (uptr i = 0; i < size; ++i) in GetOriginIfPoisoned() 37 uptr src_s_end = src_s + size; in SetOriginIfPoisoned() 59 uptr end = (d + size) & ~3UL; in CopyOrigin() 64 if (end < d + size) { in CopyOrigin() 104 uptr end = (d + size) & ~3UL; in ReverseCopyOrigin() 107 if (end < d + size) { in ReverseCopyOrigin() 175 MoveOrigin(dst, src, size, stack); in MoveShadowAndOrigin() 189 MoveOrigin(dst, src, size, stack); in CopyShadowAndOrigin() 193 REAL(memcpy)(dst, src, size); in CopyMemory() 249 SetShadow(dst, size, (u8)-1); in PoisonMemory() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/safestack/ |
H A D | safestack.cpp | 92 SFS_CHECK(size + guard >= size); in unsafe_stack_alloc() 103 void *stack_ptr = (char *)start + size; in unsafe_stack_setup() 108 unsafe_stack_size = size; in unsafe_stack_setup() 147 size_t size; member 212 size_t size = 0; in INTERCEPTOR() local 227 SFS_CHECK(size); in INTERCEPTOR() 228 size = RoundUpTo(size, kStackAlign); in INTERCEPTOR() 238 tinfo->unsafe_stack_size = size; in INTERCEPTOR() 267 size_t size = kDefaultUnsafeStackSize; in __safestack_init() local 272 size = limit.rlim_cur; in __safestack_init() [all …]
|
/freebsd/tools/test/stress2/testcases/dirnprename/ |
H A D | dirnprename.c | 41 static unsigned long size; variable 57 size = in / op->incarnations; in setup() 59 if (size > 1000) in setup() 63 while (size > 0) { in setup() 68 size = size / 2; in setup() 70 if (size == 0) in setup() 77 putval(size); in setup() 79 size = getval(); in setup() 81 if (size == 0) in setup() 127 for (i = 0; i < (int)size; i++) { in test_rename() [all …]
|
/freebsd/contrib/xz/src/liblzma/check/ |
H A D | crc64_fast.c | 45 if (size > 4) { in crc64_generic() 48 --size; in crc64_generic() 52 size &= (size_t)(3); in crc64_generic() 72 while (size-- != 0) in crc64_generic() 94 const uint8_t *buf, size_t size, uint64_t crc); 127 return crc64_func(buf, size, crc); in crc64_dispatch() 139 if (size <= 16) in lzma_crc64() 140 return crc64_generic(buf, size, crc); in lzma_crc64() 142 return crc64_func(buf, size, crc); in lzma_crc64() 151 return crc64_arch_optimized(buf, size, crc); in lzma_crc64() [all …]
|
/freebsd/usr.sbin/fstyp/ |
H A D | fstyp.h | 48 void rtrim(char *label, size_t size); 50 int fstyp_apfs(FILE *fp, char *label, size_t size); 51 int fstyp_befs(FILE *fp, char *label, size_t size); 52 int fstyp_cd9660(FILE *fp, char *label, size_t size); 53 int fstyp_exfat(FILE *fp, char *label, size_t size); 54 int fstyp_ext2fs(FILE *fp, char *label, size_t size); 55 int fstyp_geli(FILE *fp, char *label, size_t size); 58 int fstyp_hfsp(FILE *fp, char *label, size_t size); 60 int fstyp_ntfs(FILE *fp, char *label, size_t size); 61 int fstyp_ufs(FILE *fp, char *label, size_t size); [all …]
|
/freebsd/contrib/jemalloc/src/ |
H A D | base.c | 38 assert(size == HUGEPAGE_CEILING(size)); in base_map() 56 size_t size) { in base_unmap() argument 91 !extent_hooks->decommit(extent_hooks, addr, size, 0, size, in base_unmap() 97 size, ind)) { in base_unmap() 101 !extent_hooks->purge_lazy(extent_hooks, addr, size, 0, size, in base_unmap() 114 pages_nohuge(addr, size); in base_unmap() 120 size_t size) { in base_extent_init() argument 185 assert(size == ALIGNMENT_CEILING(size, alignment)); in base_extent_bump_alloc_helper() 192 *gap_size + size), extent_bsize_get(extent) - *gap_size - size, in base_extent_bump_alloc_helper() 211 base->allocated += size; in base_extent_bump_alloc_post() [all …]
|