Home
last modified time | relevance | path

Searched refs:size (Results 126 – 150 of 11100) sorted by relevance

12345678910>>...444

/freebsd/sys/sys/
H A Dmalloc.h228 #define malloc(size, type, flags) ({ \ argument
230 size_t _size = (size); \
243 void *malloc_domainset(size_t size, struct malloc_type *type,
270 void *malloc_domainset_aligned(size_t size, size_t align,
282 WOULD_OVERFLOW(size_t nmemb, size_t size) in WOULD_OVERFLOW() argument
285 return ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && in WOULD_OVERFLOW()
286 nmemb > 0 && __SIZE_T_MAX / nmemb < size); in WOULD_OVERFLOW()
309 #define kmem_zalloc(size, flags) ({ \ argument
310 void *p = Malloc((size), __FILE__, __LINE__); \
313 (size_t)size, __FILE__, __LINE__); \
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_ring_buffer.h35 uptr size() const { in size() function
58 CHECK_LT(Idx, size());
61 IdxNext -= size();
100 CHECK(IsPowerOfTwo(size)); in Init()
103 CHECK_EQ(size % 4096, 0); in Init()
104 CHECK_EQ(size % sizeof(T), 0); in Init()
106 CHECK_EQ(st % (size * 2), 0); in Init()
117 Init(storage, size); in CompactRingBuffer()
124 Init(storage, size); in CompactRingBuffer()
150 CHECK_LT(Idx, size());
[all …]
H A Dsanitizer_win.cpp148 if (!size || !addr) in UnmapOrDie()
161 SanitizerToolName, size, size, addr, GetLastError()); in UnmapOrDie()
185 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
264 SanitizerToolName, size, size, fixed_addr, GetLastError()); in MmapFixedNoReserve()
323 return MmapOrDie(size, mem_type); in MmapNoReserveOrDie()
327 base_ = fixed_addr ? MmapFixedNoAccess(fixed_addr, size) : MmapNoAccess(size); in Init()
328 size_ = size; in Init()
342 SanitizerToolName, size, size, fixed_addr, GetLastError()); in MmapFixedNoAccess()
346 void *MmapNoAccess(uptr size) { in MmapNoAccess() argument
351 SanitizerToolName, size, size, GetLastError()); in MmapNoAccess()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_malloc_mac.cpp27 #define COMMON_MALLOC_MEMALIGN(alignment, size) \ argument
29 void *p = lsan_memalign(alignment, size, stack)
30 #define COMMON_MALLOC_MALLOC(size) \ argument
32 void *p = lsan_malloc(size, stack)
33 #define COMMON_MALLOC_REALLOC(ptr, size) \ argument
35 void *p = lsan_realloc(ptr, size, stack)
36 #define COMMON_MALLOC_CALLOC(count, size) \ argument
38 void *p = lsan_calloc(count, size, stack)
42 #define COMMON_MALLOC_VALLOC(size) \ argument
44 void *p = lsan_valloc(size, stack)
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/ti/
H A Dk3-am62a7.dtsi17 #size-cells = <0>;
44 i-cache-size = <0x8000>;
45 i-cache-line-size = <64>;
47 d-cache-size = <0x8000>;
48 d-cache-line-size = <64>;
58 i-cache-size = <0x8000>;
61 d-cache-size = <0x8000>;
72 i-cache-size = <0x8000>;
75 d-cache-size = <0x8000>;
100 cache-size = <0x80000>;
[all …]
H A Dk3-am62p5.dtsi16 #size-cells = <0>;
43 i-cache-size = <0x8000>;
44 i-cache-line-size = <64>;
46 d-cache-size = <0x8000>;
47 d-cache-line-size = <64>;
58 i-cache-size = <0x8000>;
61 d-cache-size = <0x8000>;
73 i-cache-size = <0x8000>;
76 d-cache-size = <0x8000>;
103 cache-size = <0x80000>;
[all …]
/freebsd/contrib/libcxxrt/
H A Dmemory.cc91 void *noexcept_new(size_t size) in noexcept_new() argument
96 return New(size); in noexcept_new()
104 return New(size); in noexcept_new()
111 void* operator new(size_t size) BADALLOC in operator new() argument
113 if (0 == size) in operator new()
115 size = 1; in operator new()
117 void * mem = malloc(size); in operator new()
133 mem = malloc(size); in operator new()
143 return noexcept_new<(::operator new)>(size); in operator new()
155 void * operator new[](size_t size) BADALLOC in operator new[]() argument
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dcudbg_common.c34 int get_scratch_buff(struct cudbg_buffer *pdbg_buff, u32 size, in get_scratch_buff() argument
40 scratch_offset = pdbg_buff->size - size; in get_scratch_buff()
42 if (pdbg_buff->offset > (int)scratch_offset || pdbg_buff->size < size) { in get_scratch_buff()
48 pscratch_buff->size = size; in get_scratch_buff()
49 pdbg_buff->size -= size; in get_scratch_buff()
59 pdbg_buff->size += pscratch_buff->size; in release_scratch_buff()
63 memset(pscratch_buff->data, 0, pscratch_buff->size); in release_scratch_buff()
66 pscratch_buff->size = 0; in release_scratch_buff()
/freebsd/contrib/ofed/libirdma/
H A Dirdma_defs.h332 (_ring).size = (_size); \
340 u32 size; \
341 size = (_ring).size; \
351 u32 size; \
352 size = (_ring).size; \
362 u32 size; \
363 size = (_ring).size; \
373 u32 size; \
374 size = (_ring).size; \
395 (_ring).tail = (_pos) % (_ring).size
[all …]
/freebsd/sys/kern/
H A Dsubr_asan.c221 for (i = 0; i < size; i++) { in kasan_shadow_Nbyte_markvalid()
231 if (__predict_false(size == 0)) in kasan_shadow_Nbyte_fill()
242 size = size >> KASAN_SHADOW_SCALE_SHIFT; in kasan_shadow_Nbyte_fill()
281 n = size / KASAN_SHADOW_SCALE; in kasan_mark()
391 for (i = 0; i < size; i++) { in kasan_shadow_Nbyte_isvalid()
416 switch (size) { in kasan_shadow_check()
905 bus_size_t size) in kasan_bus_space_unmap() argument
919 bus_size_t size) in kasan_bus_space_free() argument
1182 size = roundup(size, KASAN_SHADOW_SCALE); in __asan_poison_stack_memory()
1207 kasan_mark(addr, size, roundup(size, KASAN_ALLOCA_SCALE_SIZE), in __asan_alloca_poison()
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/arm/
H A Dfvp-base-revc.dts25 #size-cells = <2>;
43 #size-cells = <0>;
50 i-cache-size = <0x8000>;
51 i-cache-line-size = <64>;
53 d-cache-size = <0x8000>;
54 d-cache-line-size = <64>;
63 i-cache-size = <0x8000>;
66 d-cache-size = <0x8000>;
176 #size-cells = <2>;
192 #size-cells = <2>;
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_new_delete.cpp47 void *operator new(size_t size) { in operator new() argument
51 void *operator new[](size_t size) { in operator new[]() argument
55 void *operator new(size_t size, std::nothrow_t const &) { in operator new() argument
59 void *operator new[](size_t size, std::nothrow_t const &) { in operator new[]() argument
63 void *operator new(size_t size, std::align_val_t align) { in operator new() argument
71 void *operator new(size_t size, std::align_val_t align, in operator new() argument
76 void *operator new[](size_t size, std::align_val_t align, in operator new[]() argument
87 memprof_delete(ptr, size, 0, &stack, type);
112 void operator delete(void *ptr, size_t size)NOEXCEPT { in operator delete() argument
116 void operator delete[](void *ptr, size_t size) NOEXCEPT { in operator delete[]() argument
[all …]
/freebsd/contrib/ofed/librdmacm/examples/
H A Dcommon.c81 if (size >= (1 << 30)) { in size_str()
84 } else if (size >= (1 << 20)) { in size_str()
87 } else if (size >= (1 << 10)) { in size_str()
95 if (size / base < 10) in size_str()
116 int size_to_count(int size) in size_to_count() argument
118 if (size >= (1 << 20)) in size_to_count()
120 else if (size >= (1 << 16)) in size_to_count()
122 else if (size >= (1 << 10)) in size_to_count()
128 void format_buf(void *buf, int size) in format_buf() argument
134 for (i = 0; i < size; i++) in format_buf()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_new_delete.cpp31 void *res = dfsan_malloc(size); \
34 ReportOutOfMemory(size, &stack); \
38 void *res = dfsan_memalign((uptr)align, size); \
41 ReportOutOfMemory(size, &stack); \
50 void *operator new(size_t size, std::nothrow_t const &) { in operator new() argument
54 void *operator new[](size_t size, std::nothrow_t const &) { in operator new[]() argument
58 void *operator new(size_t size, std::align_val_t align) { in operator new() argument
66 void *operator new(size_t size, std::align_val_t align, in operator new() argument
71 void *operator new[](size_t size, std::align_val_t align, in operator new[]() argument
95 void operator delete[](void *ptr, size_t size) NOEXCEPT { in operator delete[]() argument
[all …]
H A Ddfsan.h32 dfsan_label dfsan_read_label(const void *addr, uptr size);
35 void dfsan_clear_arg_tls(uptr offset, uptr size);
51 uptr size);
98 void *dfsan_malloc(uptr size);
99 void *dfsan_calloc(uptr nmemb, uptr size);
100 void *dfsan_realloc(void *ptr, uptr size);
101 void *dfsan_reallocarray(void *ptr, uptr nmemb, uptr size);
102 void *dfsan_valloc(uptr size);
103 void *dfsan_pvalloc(uptr size);
104 void *dfsan_aligned_alloc(uptr alignment, uptr size);
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_new_delete.cpp35 void *res = msan_malloc(size, &stack); \
38 ReportOutOfMemory(size, &stack); \
43 void *res = msan_memalign((uptr)align, size, &stack); \
46 ReportOutOfMemory(size, &stack); \
51 void *operator new(size_t size) { OPERATOR_NEW_BODY(false /*nothrow*/); } in operator new() argument
53 void *operator new[](size_t size) { OPERATOR_NEW_BODY(false /*nothrow*/); } in operator new[]() argument
55 void *operator new(size_t size, std::nothrow_t const&) { in operator new() argument
59 void *operator new[](size_t size, std::nothrow_t const&) { in operator new[]() argument
63 void *operator new(size_t size, std::align_val_t align) in operator new() argument
66 void *operator new[](size_t size, std::align_val_t align) in operator new[]() argument
[all …]
/freebsd/contrib/xz/src/liblzma/check/
H A Dcrc32_fast.c40 if (size > 8) { in crc32_generic()
45 --size; in crc32_generic()
53 size &= (size_t)(7); in crc32_generic()
79 while (size-- != 0) in crc32_generic()
115 const uint8_t *buf, size_t size, uint32_t crc);
156 return crc32_func(buf, size, crc); in crc32_dispatch()
184 if (size <= 16) in lzma_crc32()
185 return crc32_generic(buf, size, crc); in lzma_crc32()
196 return crc32_func(buf, size, crc); in lzma_crc32()
199 return crc32_arch_optimized(buf, size, crc); in lzma_crc32()
[all …]
/freebsd/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_rw.c203 assert(*size > 0); in _dwarf_write_lsb_alloc()
206 *size *= 2; in _dwarf_write_lsb_alloc()
259 assert(*size > 0); in _dwarf_write_msb_alloc()
262 *size *= 2; in _dwarf_write_msb_alloc()
327 assert(*size > 0); in _dwarf_write_sleb128_alloc()
331 *size *= 2; in _dwarf_write_sleb128_alloc()
390 assert(*size > 0); in _dwarf_write_uleb128_alloc()
394 *size *= 2; in _dwarf_write_uleb128_alloc()
488 *size *= 2; in _dwarf_write_string_alloc()
532 *size *= 2; in _dwarf_write_block_alloc()
[all …]
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/i386/
H A Ddt_isadep.c89 int size; in dt_pid_has_jump_table() local
110 if (size <= 0) { in dt_pid_has_jump_table()
141 int size; in dt_pid_create_return_probe() local
189 if (size <= 0) in dt_pid_create_return_probe()
195 size = 2; in dt_pid_create_return_probe()
200 size = 3; in dt_pid_create_return_probe()
206 size = 4; in dt_pid_create_return_probe()
213 size = 5; in dt_pid_create_return_probe()
222 if (size <= 0) in dt_pid_create_return_probe()
298 int size; in dt_pid_create_offset_probe() local
[all …]
/freebsd/sys/contrib/device-tree/src/arm/aspeed/
H A Daspeed-bmc-ibm-everest.dts180 #size-cells = <1>;
334 #size-cells = <0>;
402 #size-cells = <0>;
424 #size-cells = <0>;
430 #size-cells = <0>;
466 #size-cells = <0>;
545 #size-cells = <0>;
569 #size-cells = <0>;
726 #size-cells = <0>;
879 #size-cells = <0>;
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_mach_vm.cpp23 mach_vm_size_t size, int flags) { in intersects_with_shadow() argument
26 return !IsAppMem(address) || !IsAppMem(address + size - 1); in intersects_with_shadow()
31 SCOPED_TSAN_INTERCEPTOR(mach_vm_allocate, target, address, size, flags); in TSAN_INTERCEPTOR()
33 return REAL(mach_vm_allocate)(target, address, size, flags); in TSAN_INTERCEPTOR()
34 if (address && intersects_with_shadow(*address, size, flags)) in TSAN_INTERCEPTOR()
38 MemoryRangeImitateWriteOrResetRange(thr, pc, *address, size); in TSAN_INTERCEPTOR()
43 mach_vm_address_t address, mach_vm_size_t size) { in TSAN_INTERCEPTOR() argument
44 SCOPED_TSAN_INTERCEPTOR(mach_vm_deallocate, target, address, size); in TSAN_INTERCEPTOR()
46 return REAL(mach_vm_deallocate)(target, address, size); in TSAN_INTERCEPTOR()
47 kern_return_t kr = REAL(mach_vm_deallocate)(target, address, size); in TSAN_INTERCEPTOR()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kInstrAtomics.td9 foreach size = [8, 16, 32] in {
10 def : Pat<(!cast<SDPatternOperator>("atomic_load_"#size) MxCP_ARI:$ptr),
11 (!cast<MxInst>("MOV"#size#"dj") !cast<MxMemOp>("MxARI"#size):$ptr)>;
13 …def : Pat<(!cast<SDPatternOperator>("atomic_store_"#size) !cast<MxRegOp>("MxDRD"#size):$val, MxCP_…
14 (!cast<MxInst>("MOV"#size#"jd") !cast<MxMemOp>("MxARI"#size):$ptr,
15 !cast<MxRegOp>("MxDRD"#size):$val)>;
37 foreach size = [8, 16, 32] in {
38 def : Pat<(!cast<SDPatternOperator>("atomic_cmp_swap_"#size) MxCP_ARI:$ptr,
41 (!cast<MxInst>("CAS"#size) !cast<MxRegOp>("MxDRD"#size):$cmp,
42 !cast<MxRegOp>("MxDRD"#size):$new,
[all …]
/freebsd/contrib/unbound/util/
H A Dalloc.c378 if(size == 0) size = 1; in unbound_stat_malloc()
384 memcpy(res, &size, sizeof(size)); in unbound_stat_malloc()
401 s = (nmemb*size==0)?(size_t)1:nmemb*size; in unbound_stat_calloc()
442 if(size==0) { in unbound_stat_realloc()
458 if(cursz > size) { in unbound_stat_realloc()
465 memcpy(res, &size, sizeof(size)); in unbound_stat_realloc()
592 if(!size) { in unbound_stat_realloc_lite()
618 if(orig < size) in unbound_stat_realloc_lite()
646 size_t *size) in unbound_lite_pkt2wire() argument
654 *size = ms; in unbound_lite_pkt2wire()
[all …]
/freebsd/usr.sbin/lpr/lpd/
H A Drecvjob.c136 register int size; in readjob() local
173 size = 0; in readjob()
176 size = size * 10 + (*cp++ - '0'); in readjob()
214 size = 0; in readjob()
216 size = size * 10 + (*cp++ - '0'); in readjob()
262 if (i + amt > size) in readfile()
263 amt = size - i; in readfile()
274 if (i + amt > size) in readfile()
275 amt = size - i; in readfile()
314 chksize(int size) in chksize() argument
[all …]
/freebsd/contrib/lua/src/
H A Dlmem.c100 int size = *psize; in luaM_growaux_() local
103 if (size >= limit / 2) { /* cannot double it? */ in luaM_growaux_()
109 size *= 2; in luaM_growaux_()
110 if (size < MINSIZEARRAY) in luaM_growaux_()
111 size = MINSIZEARRAY; /* minimum size */ in luaM_growaux_()
113 lua_assert(nelems + 1 <= size && size <= limit); in luaM_growaux_()
135 *size = final_n; in luaM_shrinkvector_()
202 if (size == 0) in luaM_malloc_()
206 void *newblock = firsttry(g, NULL, tag, size); in luaM_malloc_()
208 newblock = tryagain(L, NULL, tag, size); in luaM_malloc_()
[all …]

12345678910>>...444