Searched refs:size (Results 251 - 275 of 8805) sorted by relevance

<<11121314151617181920>>

/freebsd-current/tools/test/stress2/testcases/link/
H A Dlink.c41 static unsigned long size; variable
57 size = in / op->incarnations;
62 size = size / 100 * pct + 1;
64 if (size > 32000 && op->hog == 0)
65 size = 32000; /* arbitrary limit number of files pr. dir */
69 reserve_bl = 26 * size * op->incarnations;
71 size = reserve_in = reserve_bl = 0;
74 printf("link(size=%lu, incarnations=%d). Free(%jdk, %jd), reserve(%jdk, %jd)\n",
75 size, o
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted_size.ksh22 # Verify that send size estimates of redacted sends work correctly
26 # size estimate is the same as the size of the actual send.
28 # -nv and without, and verify the size estimate is the same as
29 # the size of the actual send.
37 typeset size=$(mktemp $tmpdir/size.XXXX)
38 typeset size2=$(mktemp $tmpdir/size.XXXX)
46 log_must eval "zfs send -nvP --redact book $sendfs@snap | awk '/^size/ {print \$2}' >$size"
[all...]
/freebsd-current/sys/dev/liquidio/
H A Dlio_network.h160 lio_recv_buffer_alloc(uint32_t size) argument
164 mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, size);
166 mb->m_pkthdr.len = mb->m_len = size;
179 lio_get_order(unsigned long size) argument
183 size = (size - 1) >> PAGE_SHIFT;
185 while (size) {
187 size >>= 1;
194 lio_dma_alloc(size_t size, vm_paddr_t *dma_handle) argument
199 align = PAGE_SIZE << lio_get_order(size);
211 lio_dma_free(size_t size, void *cpu_addr) argument
218 lio_map_ring(device_t dev, void *buf, uint32_t size) argument
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.h41 void OnMap(uptr p, uptr size) const;
42 void OnMapSecondary(uptr p, uptr size, uptr user_begin, argument
44 OnMap(p, size);
46 void OnUnmap(uptr p, uptr size) const;
84 void *memprof_memalign(uptr alignment, uptr size, BufferedStackTrace *stack,
87 void memprof_delete(void *ptr, uptr size, uptr alignment,
90 void *memprof_malloc(uptr size, BufferedStackTrace *stack);
91 void *memprof_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack);
92 void *memprof_realloc(void *p, uptr size, BufferedStackTrace *stack);
93 void *memprof_reallocarray(void *p, uptr nmemb, uptr size,
[all...]
/freebsd-current/contrib/processor-trace/libipt/src/
H A Dpt_block_cache.c38 uint64_t size; local
43 size = sizeof(*bcache) + (nentries * sizeof(struct pt_bcache_entry));
44 if (SIZE_MAX < size)
47 bcache = malloc((size_t) size);
51 memset(bcache, 0, (size_t) size);
/freebsd-current/contrib/sendmail/libsm/
H A Dfwrite.c30 ** size -- number of bytes to be written
39 sm_io_write(fp, timeout, buf, size)
43 size_t size;
57 uio.uio_resid = iov.iov_len = size;
63 return size;
66 return size - uio.uio_resid;
/freebsd-current/contrib/unbound/util/
H A Dregional.h69 /** total large size */
71 /** initial chunk size */
92 * @param size: length of first block.
95 struct regional* regional_create_custom(size_t size);
100 * @param size: length of first block.
103 struct regional* regional_create_nochunk(size_t size);
120 * Allocate size bytes of memory inside regional. The memory is
123 * @param size: number of bytes.
126 void *regional_alloc(struct regional *r, size_t size);
129 * Allocate size byte
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/features/large_dnode/
H A Dlarge_dnode_001_pos.ksh62 size=${dnsizes[$i]}
63 if [[ $size == "512" ]] ; then
64 size="legacy"
66 file=/$TEST_FS/file.$size
67 log_must zfs set dnsize=$size $TEST_FS
78 log_fail "dnode size is $dnsize (expected ${dnsizes[$i]})"
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmap/
H A Dmmap_mixed.ksh55 size=$((bs * blocks))
62 --rw=randwrite --size=$size --bs=$bs --direct=0 --numjobs=1 \
68 --rw=randread --size=$size --bs=$bs --direct=0 --numjobs=1 \
74 --rw=randwrite --size=$size --bs=$bs --numjobs=1 \
80 --rw=randread --size=$size --bs=$bs --numjobs=1 \
/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_straddch.c50 openpam_straddch(char **str, size_t *size, size_t *len, int ch) argument
63 *size = tmpsize;
65 } else if (ch != 0 && *len + 1 >= *size) {
67 tmpsize = *size * 2;
72 *size = tmpsize;
92 * The =size and =len argument point to variables used to hold the size
101 * make room for the additional character, =str and =size are updated
109 * Otherwise, it leaves the variables pointed to by =str, =size and =len
/freebsd-current/tools/test/stress2/tools/
H A Dswap.c45 static unsigned long size, original; variable
77 size_t mibsize, size; local
89 size = sizeof xsw;
90 if (sysctl(mib, mibsize + 1, &xsw, &size, NULL, 0) == -1)
112 size = size / INCARNATIONS;
113 original = size;
114 if (size == 0)
121 if (size > (unsigned long)rlp.rlim_cur)
122 size
[all...]
/freebsd-current/contrib/lua/src/
H A Dlmem.c29 ** ('osize' is the old size, 'nsize' is the new size)
35 ** - frealloc(ud, NULL, x, s) creates a new block of size 's'
39 ** size 'x' to size 'y'. Returns NULL if it cannot reallocate the
40 ** block to the new size.
90 ** Minimum size for arrays during parsing, to avoid overhead of
91 ** reallocating to size 1, then 2, and then 4. All these arrays
100 int size = *psize; local
101 if (nelems + 1 <= size) /* doe
128 luaM_shrinkvector_(lua_State *L, void *block, int *size, int final_n, int size_elem) argument
201 luaM_malloc_(lua_State *L, size_t size, int tag) argument
[all...]
/freebsd-current/contrib/elftoolchain/libelftc/
H A Dlibelftc_vstr.c56 assert(v->size > 0);
58 for (i = 0; i < v->size; ++i)
75 for (i = 0; i < v->size; ++i)
96 for (i = 0; i < v->size; ++i)
118 if (v == NULL || v->size == 0)
128 for (i = 0; i < v->size; ++i) {
162 for (i = 0; i < v->size; ++i)
184 v->size = 0;
208 if (v->size == 0)
211 --v->size;
[all...]
/freebsd-current/sbin/hastd/
H A Debuf.c63 static int ebuf_head_extend(struct ebuf *eb, size_t size);
64 static int ebuf_tail_extend(struct ebuf *eb, size_t size);
67 ebuf_alloc(size_t size) argument
77 size += page_size;
78 eb->eb_start = malloc(size);
85 eb->eb_end = eb->eb_start + size;
110 ebuf_add_head(struct ebuf *eb, const void *data, size_t size) argument
115 if (size > (size_t)(eb->eb_used - eb->eb_start)) {
120 if (ebuf_head_extend(eb, size) == -1)
123 PJDLOG_ASSERT(size <
137 ebuf_add_tail(struct ebuf *eb, const void *data, size_t size) argument
164 ebuf_del_head(struct ebuf *eb, size_t size) argument
175 ebuf_del_tail(struct ebuf *eb, size_t size) argument
214 ebuf_head_extend(struct ebuf *eb, size_t size) argument
243 ebuf_tail_extend(struct ebuf *eb, size_t size) argument
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_malloc_linux.cpp35 static void OnAllocate(const void *ptr, uptr size) { argument
39 __lsan_register_root_region(ptr, size);
42 static void OnFree(const void *ptr, uptr size) { argument
44 __lsan_unregister_root_region(ptr, size);
65 INTERCEPTOR(void*, malloc, uptr size) { argument
67 return DlsymAlloc::Allocate(size);
69 return asan_malloc(size, &stack);
72 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { argument
74 return DlsymAlloc::Callocate(nmemb, size);
76 return asan_calloc(nmemb, size,
79 INTERCEPTOR(void*, realloc, void *ptr, uptr size) argument
87 INTERCEPTOR(void*, reallocarray, void *ptr, uptr nmemb, uptr size) argument
95 INTERCEPTOR(void*, memalign, uptr boundary, uptr size) argument
100 INTERCEPTOR(void*, __libc_memalign, uptr boundary, uptr size) argument
109 INTERCEPTOR(void*, aligned_alloc, uptr boundary, uptr size) argument
141 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) argument
146 INTERCEPTOR(void*, valloc, uptr size) argument
152 INTERCEPTOR(void*, pvalloc, uptr size) argument
[all...]
/freebsd-current/contrib/mandoc/
H A Dmandoc_aux.c50 mandoc_calloc(size_t num, size_t size) argument
54 ptr = calloc(num, size);
61 mandoc_malloc(size_t size) argument
65 ptr = malloc(size);
72 mandoc_realloc(void *ptr, size_t size) argument
74 ptr = realloc(ptr, size);
81 mandoc_reallocarray(void *ptr, size_t num, size_t size) argument
83 ptr = reallocarray(ptr, num, size);
90 mandoc_recallocarray(void *ptr, size_t oldnum, size_t num, size_t size) argument
92 ptr = recallocarray(ptr, oldnum, num, size);
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libc/stdlib/
H A Dt_posix_memalign.c53 static const size_t size[] = { local
63 for (i = 0; i < __arraycount(size); i++) {
68 align[i], size[i]);
69 ret = posix_memalign(&p, align[i], size[i]);
92 static const size_t size[] = { local
102 for (i = 0; i < __arraycount(size); i++) {
104 align[i], size[i]);
105 p = aligned_alloc(align[i], size[i]);
108 size[i] % align[i] != 0) {
130 * Behavior is undefined if size i
[all...]
/freebsd-current/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_util.c41 int vchiu_queue_init(VCHIU_QUEUE_T *queue, int size) argument
43 WARN_ON(!is_pow2(size));
45 queue->size = size;
53 queue->storage = kzalloc(size * sizeof(VCHIQ_HEADER_T *), GFP_KERNEL);
74 return queue->write == queue->read + queue->size;
82 while (queue->write == queue->read + queue->size) {
94 queue->storage[queue->write & (queue->size - 1)] = header;
123 return queue->storage[queue->read & (queue->size - 1)];
142 header = queue->storage[queue->read & (queue->size
[all...]
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Target/
H A DProcessStructReader.h33 size_t size; member in struct:lldb_private::ProcessStructReader::FieldImpl
62 auto size = field_type.GetByteSize(nullptr);
64 if (!size || *size > 8)
68 static_cast<size_t>(*size)}});
87 auto size = iter->second.size;
88 if (sizeof(RetType) < size)
91 if (offset + size > m_data.GetByteSize())
93 return (RetType)(m_data.GetMaxU64(&offset, size));
[all...]
/freebsd-current/contrib/expat/fuzz/
H A Dxml_parse_fuzzer.c59 ParseOneInput(XML_Parser p, const uint8_t *data, size_t size) { argument
62 XML_SetHashSalt(p, (unsigned long)siphash24(data, size, key));
68 XML_Parse(p, (const XML_Char *)data, size, 0);
69 if (XML_Parse(p, (const XML_Char *)data, size, 1) == XML_STATUS_ERROR) {
73 if (size % 2) {
79 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { argument
82 ParseOneInput(parentParser, data, size);
87 ParseOneInput(namespaceParser, data, size);
93 ParseOneInput(externalEntityParser, data, size);
99 ParseOneInput(externalDtdParser, data, size);
[all...]
/freebsd-current/crypto/heimdal/lib/asn1/
H A Dder_get.c40 * returned and `size' where the number of used bytes is stored.
46 unsigned *ret, size_t *size)
59 if(size) *size = oldlen;
65 uint64_t *ret, size_t *size)
78 if(size) *size = oldlen;
84 int *ret, size_t *size)
98 if(size) *size
45 der_get_unsigned(const unsigned char *p, size_t len, unsigned *ret, size_t *size) argument
64 der_get_unsigned64(const unsigned char *p, size_t len, uint64_t *ret, size_t *size) argument
83 der_get_integer(const unsigned char *p, size_t len, int *ret, size_t *size) argument
103 der_get_integer64(const unsigned char *p, size_t len, int64_t *ret, size_t *size) argument
123 der_get_length(const unsigned char *p, size_t len, size_t *val, size_t *size) argument
157 der_get_boolean(const unsigned char *p, size_t len, int *data, size_t *size) argument
170 der_get_general_string(const unsigned char *p, size_t len, heim_general_string *str, size_t *size) argument
202 der_get_utf8string(const unsigned char *p, size_t len, heim_utf8_string *str, size_t *size) argument
209 der_get_printable_string(const unsigned char *p, size_t len, heim_printable_string *str, size_t *size) argument
223 der_get_ia5_string(const unsigned char *p, size_t len, heim_ia5_string *str, size_t *size) argument
230 der_get_bmp_string(const unsigned char *p, size_t len, heim_bmp_string *data, size_t *size) argument
261 der_get_universal_string(const unsigned char *p, size_t len, heim_universal_string *data, size_t *size) argument
291 der_get_visible_string(const unsigned char *p, size_t len, heim_visible_string *str, size_t *size) argument
298 der_get_octet_string(const unsigned char *p, size_t len, heim_octet_string *data, size_t *size) argument
311 der_get_octet_string_ber(const unsigned char *p, size_t len, heim_octet_string *data, size_t *size) argument
380 der_get_heim_integer(const unsigned char *p, size_t len, heim_integer *data, size_t *size) argument
466 der_get_time(const unsigned char *p, size_t len, time_t *data, size_t *size) argument
487 der_get_generalized_time(const unsigned char *p, size_t len, time_t *data, size_t *size) argument
494 der_get_utctime(const unsigned char *p, size_t len, time_t *data, size_t *size) argument
501 der_get_oid(const unsigned char *p, size_t len, heim_oid *data, size_t *size) argument
549 der_get_tag(const unsigned char *p, size_t len, Der_class *class, Der_type *type, unsigned int *tag, size_t *size) argument
581 der_match_tag(const unsigned char *p, size_t len, Der_class class, Der_type type, unsigned int tag, size_t *size) argument
595 der_match_tag2(const unsigned char *p, size_t len, Der_class class, Der_type *type, unsigned int tag, size_t *size) argument
617 der_match_tag_and_length(const unsigned char *p, size_t len, Der_class class, Der_type *type, unsigned int tag, size_t *length_ret, size_t *size) argument
662 der_get_bit_string(const unsigned char *p, size_t len, heim_bit_string *data, size_t *size) argument
[all...]
H A Dder_put.c42 * the number of characters written in `size' (if non-NULL).
47 der_put_unsigned (unsigned char *p, size_t len, const unsigned *v, size_t *size) argument
66 *size = base - p;
73 *size = 1;
79 der_put_unsigned64 (unsigned char *p, size_t len, const uint64_t *v, size_t *size) argument
98 *size = base - p;
105 *size = 1;
111 der_put_integer (unsigned char *p, size_t len, const int *v, size_t *size) argument
146 *size = base - p;
151 der_put_integer64 (unsigned char *p, size_t len, const int64_t *v, size_t *size) argument
192 der_put_length(unsigned char *p, size_t len, size_t val, size_t *size) argument
219 der_put_boolean(unsigned char *p, size_t len, const int *data, size_t *size) argument
232 der_put_general_string(unsigned char *p, size_t len, const heim_general_string *str, size_t *size) argument
246 der_put_utf8string(unsigned char *p, size_t len, const heim_utf8_string *str, size_t *size) argument
253 der_put_printable_string(unsigned char *p, size_t len, const heim_printable_string *str, size_t *size) argument
260 der_put_ia5_string(unsigned char *p, size_t len, const heim_ia5_string *str, size_t *size) argument
267 der_put_bmp_string(unsigned char *p, size_t len, const heim_bmp_string *data, size_t *size) argument
284 der_put_universal_string(unsigned char *p, size_t len, const heim_universal_string *data, size_t *size) argument
303 der_put_visible_string(unsigned char *p, size_t len, const heim_visible_string *str, size_t *size) argument
310 der_put_octet_string(unsigned char *p, size_t len, const heim_octet_string *data, size_t *size) argument
322 der_put_heim_integer(unsigned char *p, size_t len, const heim_integer *data, size_t *size) argument
374 der_put_generalized_time(unsigned char *p, size_t len, const time_t *data, size_t *size) argument
394 der_put_utctime(unsigned char *p, size_t len, const time_t *data, size_t *size) argument
414 der_put_oid(unsigned char *p, size_t len, const heim_oid *data, size_t *size) argument
444 der_put_tag(unsigned char *p, size_t len, Der_class class, Der_type type, unsigned int tag, size_t *size) argument
475 der_put_length_and_tag(unsigned char *p, size_t len, size_t len_val, Der_class class, Der_type type, unsigned int tag, size_t *size) argument
523 der_put_bit_string(unsigned char *p, size_t len, const heim_bit_string *data, size_t *size) argument
[all...]
/freebsd-current/sys/dev/drm2/
H A Ddrm_mm.h53 unsigned long size; member in struct:drm_mm_node
104 unsigned long size,
110 unsigned long size,
117 unsigned long size,
120 return drm_mm_get_block_generic(parent, size, alignment, 0, 0);
123 unsigned long size,
126 return drm_mm_get_block_generic(parent, size, alignment, 0, 1);
130 unsigned long size,
135 return drm_mm_get_block_range_generic(parent, size, alignment, 0,
140 unsigned long size,
116 drm_mm_get_block(struct drm_mm_node *parent, unsigned long size, unsigned alignment) argument
122 drm_mm_get_block_atomic(struct drm_mm_node *parent, unsigned long size, unsigned alignment) argument
128 drm_mm_get_block_range( struct drm_mm_node *parent, unsigned long size, unsigned alignment, unsigned long start, unsigned long end) argument
138 drm_mm_get_color_block_range( struct drm_mm_node *parent, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument
149 drm_mm_get_block_atomic_range( struct drm_mm_node *parent, unsigned long size, unsigned alignment, unsigned long start, unsigned long end) argument
198 drm_mm_search_free(const struct drm_mm *mm, unsigned long size, unsigned alignment, bool best_match) argument
205 drm_mm_search_free_in_range( const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long start, unsigned long end, bool best_match) argument
216 drm_mm_search_free_color(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, bool best_match) argument
224 drm_mm_search_free_in_range_color( const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, bool best_match) argument
[all...]
/freebsd-current/usr.sbin/bluetooth/hccontrol/
H A Dutil.c124 hci_hmode2str(int mode, char *buffer, int size) argument
132 if (buffer != NULL && size > 0) {
135 memset(buffer, 0, size);
136 size--;
140 if (len >= size)
143 strncat(buffer, t[n], size - len);
2432 hci_commands2str(uint8_t *commands, char *buffer, int size) argument
2896 if (buffer != NULL && size > 0) {
2899 memset(buffer, 0, size);
2900 size
2927 hci_features2str(uint8_t *features, char *buffer, int size) argument
3041 hci_le_features2str(uint8_t *features, char *buffer, int size) argument
3326 hci_le_chanmap2str(uint8_t *map, char *buffer, int size) argument
[all...]
/freebsd-current/contrib/ofed/opensm/complib/
H A Dcl_vector.c51 * Define the maximum size for array pages in an cl_vector_t.
52 * This size is in objects, not bytes.
60 * copy operator used when size of the user object doesn't fit one of the
75 IN const size_t size)
77 memcpy(p_dest, p_src, size);
97 IN const void *const p_src, IN const size_t size)
99 CL_ASSERT(size == sizeof(uint8_t));
100 UNUSED_PARAM(size);
122 IN const void *const p_src, IN const size_t size)
124 CL_ASSERT(size
73 cl_vector_copy_general(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument
96 cl_vector_copy8(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument
121 cl_vector_copy16(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument
146 cl_vector_copy32(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument
171 cl_vector_copy64(OUT void *const p_dest, IN const void *const p_src, IN const size_t size) argument
400 cl_vector_set_size(IN cl_vector_t * const p_vector, IN const size_t size) argument
[all...]

Completed in 221 milliseconds

<<11121314151617181920>>