Searched refs:size (Results 101 - 125 of 8800) sorted by relevance

1234567891011>>

/freebsd-current/sys/netlink/
H A Dktest_netlink_message_writer.h33 bool nlmsg_get_buf_wrapper(struct nl_writer *nw, u_int size, bool waitok);
38 nlmsg_get_buf_wrapper(struct nl_writer *nw, u_int size, bool waitok) argument
40 return (nlmsg_get_buf(nw, size, waitok));
/freebsd-current/sys/contrib/ncsw/etc/
H A Dmemcpy.c39 void * MemCpy8(void* pDst, void* pSrc, uint32_t size) argument
43 for(i = 0; i < size; ++i)
49 void * MemSet8(void* pDst, int c, uint32_t size) argument
53 for(i = 0; i < size; ++i)
59 void * MemCpy32(void* pDst,void* pSrc, uint32_t size) argument
76 while((PTR_TO_UINT(p_Src8) & 3) && size) /* (pSrc mod 4) > 0 and size > 0 */
79 size--;
83 while((PTR_TO_UINT(p_Dst8) & 3) && size) /* (pDst mod 4) > 0 and size >
133 IO2IOCpy32(void* pDst,void* pSrc, uint32_t size) argument
212 Mem2IOCpy32(void* pDst,void* pSrc, uint32_t size) argument
290 IO2MemCpy32(void* pDst,void* pSrc, uint32_t size) argument
369 MemCpy64(void* pDst,void* pSrc, uint32_t size) argument
443 MemSet32(void* pDst, uint8_t val, uint32_t size) argument
479 IOMemSet32(void* pDst, uint8_t val, uint32_t size) argument
520 MemSet64(void* pDst, uint8_t val, uint32_t size) argument
558 MemDisp(uint8_t *p, int size) argument
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dslab.h44 #define kmalloc(size, flags) lkpi_kmalloc(size, flags)
45 #define kvmalloc(size, flags) kmalloc(size, flags)
46 #define kvzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO)
47 #define kvcalloc(n, size, flags) kvmalloc_array(n, size, (flags) | __GFP_ZERO)
48 #define kzalloc(size, flags) kmalloc(size, (flag
110 __kmalloc(size_t size, gfp_t flags) argument
117 kmalloc_node(size_t size, gfp_t flags, int node) argument
124 kcalloc(size_t n, size_t size, gfp_t flags) argument
131 kcalloc_node(size_t n, size_t size, gfp_t flags, int node) argument
139 __vmalloc(size_t size, gfp_t flags, int other) argument
145 __vmalloc_node(size_t size, gfp_t flags, int node) argument
152 vmalloc_32(size_t size) argument
158 kmalloc_array(size_t n, size_t size, gfp_t flags) argument
164 kmalloc_array_node(size_t n, size_t size, gfp_t flags, int node) argument
171 kvmalloc_array(size_t n, size_t size, gfp_t flags) argument
177 krealloc(void *ptr, size_t size, gfp_t flags) argument
183 krealloc_array(void *ptr, size_t n, size_t size, gfp_t flags) argument
[all...]
H A Dio-mapping.h43 unsigned long size; member in struct:io_mapping
48 struct io_mapping *io_mapping_create_wc(resource_size_t base, unsigned long size);
52 unsigned long size)
56 mapping->size = size;
58 mapping->mem = ioremap_wc(base, size);
61 mapping->mem = ioremap_nocache(base, size);
108 unsigned long size)
116 unsigned long size);
120 unsigned long addr, unsigned long pfn, unsigned long size)
51 io_mapping_init_wc(struct io_mapping *mapping, resource_size_t base, unsigned long size) argument
107 io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset, unsigned long size) argument
119 io_mapping_map_user(struct io_mapping *iomap, struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size) argument
[all...]
/freebsd-current/crypto/openssh/
H A Dxmalloc.c34 xmalloc(size_t size) argument
38 if (size == 0)
39 fatal("xmalloc: zero size");
40 ptr = malloc(size);
42 fatal("xmalloc: out of memory (allocating %zu bytes)", size);
47 xcalloc(size_t nmemb, size_t size) argument
51 if (size == 0 || nmemb == 0)
52 fatal("xcalloc: zero size");
53 if (SIZE_MAX / nmemb < size)
54 fatal("xcalloc: nmemb * size > SIZE_MA
63 xreallocarray(void *ptr, size_t nmemb, size_t size) argument
75 xrecallocarray(void *ptr, size_t onmemb, size_t nmemb, size_t size) argument
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/arc/
H A Darcstats_runtime_tuning.ksh22 # Set tunables to their recorded actual size and then to their original
39 for size in $((MAXSIZE/4)) $((MAXSIZE/3)) $((MAXSIZE/2)) $MAXSIZE; do
40 log_must set_tunable64 ARC_MAX "$size"
41 log_must test "$(get_max_arc_size)" == "$size"
42 log_must set_tunable64 ARC_MIN "$size"
43 log_must test "$(get_min_arc_size)" == "$size"
/freebsd-current/contrib/jemalloc/src/
H A Dpages.c23 /* 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) { argument
58 assert(ALIGNMENT_CEILING(size, os_page) == size);
59 assert(size != 0);
71 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0),
81 ret = mmap(addr, size, prot, mmap_flags, -1, 0);
91 os_pages_unmap(ret, size);
101 os_pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, argument
130 os_pages_unmap(void *addr, size_t size) argument
157 pages_map_slow(size_t size, size_t alignment, bool *commit) argument
181 pages_map(void *addr, size_t size, size_t alignment, bool *commit) argument
243 pages_unmap(void *addr, size_t size) argument
251 pages_commit_impl(void *addr, size_t size, bool commit) argument
284 pages_commit(void *addr, size_t size) argument
289 pages_decommit(void *addr, size_t size) argument
294 pages_purge_lazy(void *addr, size_t size) argument
329 pages_purge_forced(void *addr, size_t size) argument
349 pages_huge_impl(void *addr, size_t size, bool aligned) argument
362 pages_huge(void *addr, size_t size) argument
367 pages_huge_unaligned(void *addr, size_t size) argument
372 pages_nohuge_impl(void *addr, size_t size, bool aligned) argument
386 pages_nohuge(void *addr, size_t size) argument
391 pages_nohuge_unaligned(void *addr, size_t size) argument
396 pages_dontdump(void *addr, size_t size) argument
407 pages_dodump(void *addr, size_t size) argument
544 pages_set_thp_state(void *ptr, size_t size) argument
[all...]
/freebsd-current/sbin/hastd/
H A Debuf.h39 struct ebuf *ebuf_alloc(size_t size);
42 int ebuf_add_head(struct ebuf *eb, const void *data, size_t size);
43 int ebuf_add_tail(struct ebuf *eb, const void *data, size_t size);
45 void ebuf_del_head(struct ebuf *eb, size_t size);
46 void ebuf_del_tail(struct ebuf *eb, size_t size);
/freebsd-current/contrib/jemalloc/include/jemalloc/internal/
H A Dpages.h4 /* Page size. LG_PAGE is determined by the configure script. */
17 /* Huge page size. LG_HUGEPAGE is determined by the configure script. */
75 void *pages_map(void *addr, size_t size, size_t alignment, bool *commit);
76 void pages_unmap(void *addr, size_t size);
77 bool pages_commit(void *addr, size_t size);
78 bool pages_decommit(void *addr, size_t size);
79 bool pages_purge_lazy(void *addr, size_t size);
80 bool pages_purge_forced(void *addr, size_t size);
81 bool pages_huge(void *addr, size_t size);
82 bool pages_nohuge(void *addr, size_t size);
[all...]
/freebsd-current/lib/libkiconv/
H A Dkiconv_sysctl.c41 size_t size; local
43 if (sysctlbyname("kern.iconv.drvlist", NULL, &size, NULL, 0) == -1)
45 if (size > 0) {
48 drivers = malloc(size);
51 if (sysctlbyname("kern.iconv.drvlist", drivers, &size, NULL, 0) == -1) {
68 size_t i, size; local
71 if (sysctlbyname("kern.iconv.cslist", NULL, &size, NULL, 0) == -1)
73 if (size > 0) {
74 csi = malloc(size);
77 if (sysctlbyname("kern.iconv.cslist", csi, &size, NUL
[all...]
/freebsd-current/sys/ddb/
H A Ddb_access.c53 db_get_value(db_addr_t addr, int size, bool is_signed) argument
59 if (db_read_bytes(addr, size, data) != 0) {
67 for (i = 0; i < size; i++)
69 for (i = size - 1; i >= 0; i--)
75 if (size < 4) {
76 if (is_signed && (value & db_extend[size]) != 0)
77 value |= db_extend[size];
83 db_put_value(db_addr_t addr, int size, db_expr_t value) argument
89 for (i = size - 1; i >= 0; i--)
91 for (i = 0; i < size;
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DSymbolOccurrences.cpp20 assert(Locations.size() == NamePieces.size() &&
23 if (Locations.size() == 1) {
25 Locations[0], Locations[0].getLocWithOffset(NamePieces[0].size()));
28 MultipleRanges = std::make_unique<SourceRange[]>(Locations.size());
29 NumRanges = Locations.size();
33 Loc.value().getLocWithOffset(NamePieces[Loc.index()].size()));
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/common/
H A Dzstd_common.c56 void* ZSTD_malloc(size_t size, ZSTD_customMem customMem) argument
59 return customMem.customAlloc(customMem.opaque, size);
60 return malloc(size);
63 void* ZSTD_calloc(size_t size, ZSTD_customMem customMem) argument
68 void* const ptr = customMem.customAlloc(customMem.opaque, size);
69 memset(ptr, 0, size);
72 return calloc(1, size);
/freebsd-current/sys/contrib/zstd/lib/common/
H A Dzstd_common.c56 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem) argument
59 return customMem.customAlloc(customMem.opaque, size);
60 return ZSTD_malloc(size);
63 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem) argument
68 void* const ptr = customMem.customAlloc(customMem.opaque, size);
69 ZSTD_memset(ptr, 0, size);
72 return ZSTD_calloc(1, size);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator.cpp49 static void *RawInternalAlloc(uptr size, InternalAllocatorCache *cache, argument
54 return internal_allocator()->Allocate(&internal_allocator_cache, size,
57 return internal_allocator()->Allocate(cache, size, alignment);
60 static void *RawInternalRealloc(void *ptr, uptr size, argument
66 size, alignment);
68 return internal_allocator()->Reallocate(cache, ptr, size, alignment);
86 void *InternalAlloc(uptr size, InternalAllocatorCache *cache, uptr alignment) { argument
87 void *p = RawInternalAlloc(size, cache, alignment);
89 ReportInternalAllocatorOutOfMemory(size);
93 void *InternalRealloc(void *addr, uptr size, InternalAllocatorCach argument
100 InternalReallocArray(void *addr, uptr count, uptr size, InternalAllocatorCache *cache) argument
112 InternalCalloc(uptr count, uptr size, InternalAllocatorCache *cache) argument
149 Allocate(uptr size) argument
[all...]
H A Dsanitizer_vector.h74 void Resize(uptr size) { argument
75 if (size == 0) {
80 if (size <= old_size) {
81 end_ = begin_ + size;
84 EnsureSize(size);
85 if (old_size < size) {
87 sizeof(begin_[old_size]) * (size - old_size));
96 void EnsureSize(uptr size) { argument
97 if (size <= Size())
99 if (size <
[all...]
/freebsd-current/contrib/llvm-project/libcxx/src/
H A Dnew.cpp29 static void* operator_new_impl(std::size_t size) { argument
30 if (size == 0)
31 size = 1;
33 while ((p = std::malloc(size)) == nullptr) {
45 _LIBCPP_MAKE_OVERRIDABLE_FUNCTION_DETECTABLE _LIBCPP_WEAK void* operator new(std::size_t size) _THROW_BAD_ALLOC {
46 void* p = operator_new_impl(size);
52 _LIBCPP_WEAK void* operator new(size_t size, const std::nothrow_t&) noexcept {
65 return operator_new_impl(size);
69 p = ::operator new(size);
76 _LIBCPP_MAKE_OVERRIDABLE_FUNCTION_DETECTABLE _LIBCPP_WEAK void* operator new[](size_t size) _THROW_BAD_ALLO
118 operator_new_aligned_impl(std::size_t size, std::align_val_t alignment) argument
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dswap2.sh60 size=$((usermem/10*11))
62 size=$((usermem/10*8))
65 /tmp/swap2 $((size / 4096)) &
90 static unsigned long size, original;
97 size = size / INCARNATIONS;
98 original = size;
99 if (size == 0)
106 if (size > (unsigned long)rlp.rlim_cur)
107 size
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp32 void OnMap(uptr p, uptr size) const { dfsan_set_label(0, (void *)p, size); }
33 void OnMapSecondary(uptr p, uptr size, uptr user_begin, argument
35 OnMap(p, size);
37 void OnUnmap(uptr p, uptr size) const { dfsan_set_label(0, (void *)p, size); }
88 static void *DFsanAllocate(uptr size, uptr alignment, bool zeroise) { argument
89 if (size > max_malloc_size) {
92 size);
96 ReportAllocationSizeTooBig(size, max_malloc_siz
136 uptr size = meta->requested_size; local
171 DFsanCalloc(uptr nmemb, uptr size) argument
209 dfsan_malloc(uptr size) argument
213 dfsan_calloc(uptr nmemb, uptr size) argument
217 dfsan_realloc(void *ptr, uptr size) argument
227 dfsan_reallocarray(void *ptr, uptr nmemb, uptr size) argument
238 dfsan_valloc(uptr size) argument
243 dfsan_pvalloc(uptr size) argument
257 dfsan_aligned_alloc(uptr alignment, uptr size) argument
268 dfsan_memalign(uptr alignment, uptr size) argument
279 dfsan_posix_memalign(void **memptr, uptr alignment, uptr size) argument
315 __sanitizer_get_estimated_allocated_size(uptr size) argument
[all...]
/freebsd-current/contrib/arm-optimized-routines/string/bench/
H A Dmemset.c46 typedef struct { uint16_t size; uint16_t freq; } freq_data_t; member in struct:__anon114
100 int i, j, freq, size, n; local
103 for (j = 0, size = memset_len_freq[i].size; j < freq; j++)
104 len_arr[n++] = size;
108 for (j = 0, size = memset_align_freq[i].align; j < freq; j++)
109 align_arr[n++] = size - 1;
117 /* Create a random set of memsets with the given size and alignment
145 for (int size = MIN_SIZE; size <
[all...]
/freebsd-current/tools/test/stress2/testcases/rw/
H A Drw.c42 static unsigned long size; variable
57 size = bl / op->incarnations / 1024;
62 size = size / 100 * pct + 1;
64 if (size > MAXSIZE)
65 size = MAXSIZE; /* arbitrary limit size pr. incarnation */
68 while (size > 0) {
70 reserve_bl = size * 1024 * op->incarnations +
75 size
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_new_delete.cpp35 void *res = memprof_memalign(0, size, &stack, type); \
37 ReportOutOfMemory(size, &stack); \
41 void *res = memprof_memalign((uptr)align, size, &stack, type); \
43 ReportOutOfMemory(size, &stack); \
47 void *operator new(size_t size) { argument
51 void *operator new[](size_t size) { argument
55 void *operator new(size_t size, std::nothrow_t const &) { argument
59 void *operator new[](size_t size, std::nothrow_t const &) { argument
63 void *operator new(size_t size, std::align_val_t align) { argument
67 void *operator new[](size_t size, st argument
71 operator new(size_t size, std::align_val_t align, std::nothrow_t const &) argument
76 operator new[](size_t size, std::align_val_t align, std::nothrow_t const &) argument
[all...]
/freebsd-current/tools/test/stress2/testcases/dirrename/
H A Ddirrename.c40 static unsigned long size; variable
54 size = in / op->incarnations;
56 if (size > 1000)
57 size = 1000; /* arbitrary limit number of files pr. dir */
60 while (size > 0) {
61 reserve_in = 2 * size * op->incarnations + 2 * op->incarnations;
62 reserve_bl = 30 * size * op->incarnations;
65 size = size / 2;
67 if (size
[all...]
/freebsd-current/tools/test/stress2/testcases/rename/
H A Drename.c39 static unsigned long size; variable
53 size = in / op->incarnations;
55 if (size > 1000)
56 size = 1000; /* arbitrary limit number of files pr. dir */
59 while (size > 0) {
60 reserve_in = 2 * size * op->incarnations + 2 * op->incarnations;
61 reserve_bl = 30 * size * op->incarnations;
64 size = size / 2;
66 if (size
[all...]
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/
H A Dscrypt_platform.c41 alloc_region(escrypt_region_t *region, size_t size) argument
45 if ((base = (uint8_t *) mmap(NULL, size, PROT_READ | PROT_WRITE,
52 if ((errno = posix_memalign((void **) &base, 64, size)) != 0) {
58 if (size + 63 < size) {
60 } else if ((base = (uint8_t *) malloc(size + 63)) != NULL) {
67 region->size = base ? size : 0;
76 region->size = 0;
84 if (munmap(region->base, region->size)) {
[all...]

Completed in 238 milliseconds

1234567891011>>