Searched refs:chunk (Results 51 - 75 of 160) sorted by relevance

1234567

/freebsd-12-stable/crypto/openssl/crypto/bio/
H A Dbss_bio.c160 size_t chunk; local
164 chunk = rest;
167 chunk = peer_b->size - peer_b->offset;
168 assert(peer_b->offset + chunk <= peer_b->size);
170 memcpy(buf, peer_b->buf + peer_b->offset, chunk);
172 peer_b->len -= chunk;
174 peer_b->offset += chunk;
178 buf += chunk;
181 assert(chunk == rest);
184 rest -= chunk;
311 size_t chunk; local
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_descriptions.cpp105 AsanChunkView chunk, uptr addr,
108 if (chunk.AddrIsAtLeft(addr, access_size, &descr->offset)) {
110 } else if (chunk.AddrIsAtRight(addr, access_size, &descr->offset)) {
116 } else if (chunk.AddrIsInside(addr, access_size, &descr->offset)) {
121 descr->chunk_begin = chunk.Beg();
122 descr->chunk_size = chunk.UsedSize();
123 descr->user_requested_alignment = chunk.UserRequestedAlignment();
124 descr->alloc_type = chunk.GetAllocType();
158 AsanChunkView chunk = FindHeapChunkByAddress(addr); local
159 if (!chunk
104 GetAccessToHeapChunkInformation(ChunkAccess *descr, AsanChunkView chunk, uptr addr, uptr access_size) argument
[all...]
H A Dasan_memory_profile.cpp98 static void ChunkCallback(uptr chunk, void *arg) { argument
100 FindHeapChunkByAllocBeg(chunk));
H A Dasan_allocator.cpp53 // The memory chunk allocated from the underlying allocator looks like this:
103 // Every chunk of memory allocated by this allocator can be in one of 3 states:
104 // CHUNK_AVAILABLE: the chunk is in the free list and ready to be allocated.
105 // CHUNK_ALLOCATED: the chunk is allocated and not yet freed.
106 // CHUNK_QUARANTINE: the chunk was freed and put into quarantine zone.
154 // contents of deallocated chunk, confusing GetAsanChunk lookup.
196 // We are about to unmap a chunk of user memory.
298 void RePoisonChunk(uptr chunk) { argument
299 // This could be a user-facing chunk (with redzones), or some internal
300 // housekeeping chunk, lik
1040 GetUserBegin(uptr chunk) argument
1046 LsanMetadata(uptr chunk) argument
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_report.cpp232 HwasanChunkView chunk = FindHeapChunkByAddress(untagged_addr); local
233 if (uptr beg = chunk.Beg()) {
234 uptr size = chunk.ActualSize();
235 Printf("%s[%p,%p) is a %s %s heap chunk; "
239 chunk.FromSmallHeap() ? "small" : "large",
240 chunk.IsAllocated() ? "allocated" : "unallocated",
248 // check the allocator if it has a live chunk there.
267 HwasanChunkView chunk = FindHeapChunkByAddress(mem); local
268 if (chunk.IsAllocated()) {
272 candidate == left ? untagged_addr - chunk
451 HwasanChunkView chunk = FindHeapChunkByAddress(untagged_addr); local
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator.h53 typedef void (*ForEachChunkCallback)(uptr chunk, void *arg);
/freebsd-12-stable/usr.bin/mkimg/
H A Dimage.c60 struct chunk { struct
61 TAILQ_ENTRY(chunk) ch_list;
62 size_t ch_size; /* Size of chunk in bytes. */
75 #define CH_TYPE_FILE 1 /* File-backed chunk. */
76 #define CH_TYPE_MEMORY 2 /* Memory-backed chunk */
79 static TAILQ_HEAD(chunk_head, chunk) image_chunks;
130 * Image chunk handling.
133 static struct chunk *
136 static struct chunk *last = NULL;
137 struct chunk *c
[all...]
/freebsd-12-stable/contrib/subversion/subversion/libsvn_diff/
H A Ddiff_file.c83 /* The current chunk: CHUNK_SIZE bytes except for the last chunk. */
84 int chunk; /* the current chunk number, zero-based */ member in struct:svn_diff__file_baton_t::file_info
85 char *buffer; /* a buffer containing the current chunk */
86 char *curp; /* current position in the current chunk */
87 char *endp; /* next memory address after the current chunk */
133 #define chunk_to_offset(chunk) ((chunk) << CHUNK_SHIFT)
138 /* Read a chunk fro
363 contains_eol(apr_uintptr_t chunk) argument
440 apr_uintptr_t chunk = *(const apr_uintptr_t *)(file[0].curp + delta); local
656 apr_uintptr_t chunk; local
[all...]
H A Dbinary_diff.c182 char chunk[GIT_BASE85_CHUNKSIZE]; local
186 rd = sizeof(chunk);
191 SVN_ERR(svn_stream_read_full(compressed_data, chunk, &rd));
199 next = (void*)chunk;
/freebsd-12-stable/crypto/openssl/crypto/asn1/
H A Da_d2i_fp.c187 size_t chunk = want > chunk_max ? chunk_max : want; local
189 if (!BUF_MEM_grow_clean(b, len + chunk)) {
193 want -= chunk;
194 while (chunk > 0) {
195 i = BIO_read(in, &(b->data[len]), chunk);
206 chunk -= i;
/freebsd-12-stable/contrib/gcc/
H A Dggc-zone.c110 a bitmap which marks the start position of each chunk (whether
112 lists and contain a pointer to the next free chunk. Chunks in
135 initialized if the chunk is in the "other" sized free list. Large
383 /* The most recent free chunk is saved here, instead of in the linked
974 struct alloc_chunk *chunk = (struct alloc_chunk *) ptr; local
982 VALGRIND_DISCARD (VALGRIND_MAKE_WRITABLE (chunk, sizeof (struct alloc_chunk)));
983 chunk->size = size;
984 chunk->next_free = zone->free_chunks[bin];
990 VALGRIND_DISCARD (VALGRIND_MAKE_WRITABLE (chunk, sizeof (struct alloc_chunk *)));
991 chunk
1012 struct alloc_chunk *chunk, **pp; local
2023 struct alloc_chunk *chunk = zone->free_chunks[i]; local
[all...]
H A Dpretty-print.c215 unsigned int curarg = 0, chunk = 0, argno; local
220 /* Allocate a new chunk structure. */
277 /* Handled in phase 2. Terminate the plain chunk here. */
279 gcc_assert (chunk < PP_NL_ARGMAX * 2);
280 args[chunk++] = XOBFINISH (&buffer->chunk_obstack, const char *);
303 formatters[argno] = &args[chunk];
358 gcc_assert (chunk < PP_NL_ARGMAX * 2);
359 args[chunk++] = XOBFINISH (&buffer->chunk_obstack, const char *);
363 gcc_assert (chunk < PP_NL_ARGMAX * 2);
364 args[chunk
557 unsigned int chunk; local
[all...]
/freebsd-12-stable/contrib/ntp/ntpd/
H A Dntp_monitor.c34 * Memory is usually allocated by grabbing a big chunk of new memory and
178 mon_entry *chunk; local
186 chunk = eallocarray(entries, sizeof(*chunk));
188 for (chunk += entries; entries; entries--)
189 mon_free_entry(--chunk);
/freebsd-12-stable/sys/netinet/
H A Dsctp_auth.h103 #define sctp_auth_is_required_chunk(chunk, list) ((list == NULL) ? (0) : (list->chunks[chunk] != 0))
114 extern int sctp_auth_add_chunk(uint8_t chunk, sctp_auth_chklist_t *list);
115 extern int sctp_auth_delete_chunk(uint8_t chunk, sctp_auth_chklist_t *list);
215 struct sctp_tcb *stcb, uint8_t chunk);
/freebsd-12-stable/crypto/openssl/crypto/whrlpool/
H A Dwp_dgst.c68 * Well, largest suitable chunk size actually is
72 size_t chunk = ((size_t)1) << (sizeof(size_t) * 8 - 4); local
75 while (bytes >= chunk) {
76 WHIRLPOOL_BitUpdate(c, inp, chunk * 8);
77 bytes -= chunk;
78 inp += chunk;
/freebsd-12-stable/crypto/openssl/crypto/kdf/
H A Dtls1_prf.c180 int chunk; local
187 chunk = EVP_MD_size(md);
188 if (!ossl_assert(chunk > 0))
215 if (olen > (size_t)chunk && !EVP_MD_CTX_copy_ex(ctx_tmp, ctx))
220 if (olen > (size_t)chunk) {
/freebsd-12-stable/contrib/subversion/subversion/libsvn_fs_base/util/
H A Dfs_skels.c196 svn_skel_t *chunk = skel->children->next;
199 while (chunk)
201 if (! is_valid_rep_delta_chunk_skel(chunk))
203 chunk = chunk->next;
546 rep_delta_chunk_t *chunk;
549 /* Alloc the chunk array. */
551 sizeof(chunk));
562 /* Allocate a chunk and its window */
563 chunk
194 svn_skel_t *chunk = skel->children->next; local
543 rep_delta_chunk_t *chunk; local
1124 rep_delta_chunk_t *chunk = APR_ARRAY_IDX(chunks, i - 1, local
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_common.h101 void AddLeakedChunk(uptr chunk, u32 stack_trace_id, uptr leaked_size,
186 // and store a pointer to the end of allocated chunk. The actual cookie layout
223 // If p points into a chunk that has been allocated to the user, returns its
226 // Returns address of user-visible chunk contained in this allocator chunk.
227 uptr GetUserBegin(uptr chunk);
240 // Wrapper for chunk metadata operations.
243 // Constructor accepts address of user-visible chunk.
244 explicit LsanMetadata(uptr chunk);
/freebsd-12-stable/sys/dev/sfxge/common/
H A Dsiena_nvram.c98 size_t chunk; local
102 chunk = MIN(size, SIENA_NVRAM_CHUNK);
104 if ((rc = efx_mcdi_nvram_read(enp, partn, offset, data, chunk,
109 size -= chunk;
110 data += chunk;
111 offset += chunk;
151 size_t chunk; local
155 chunk = MIN(size, SIENA_NVRAM_CHUNK);
158 data, chunk)) != 0) {
162 size -= chunk;
[all...]
/freebsd-12-stable/crypto/openssl/include/crypto/
H A Devp.h220 size_t chunk = EVP_MAXCHUNK;\
221 if (cbits == 1) chunk >>= 3;\
222 if (inl < chunk) chunk = inl;\
223 while (inl && inl >= chunk)\
229 ? chunk*8 : chunk), \
233 inl -= chunk;\
234 in += chunk;\
235 out += chunk;\
[all...]
/freebsd-12-stable/contrib/gdb/gdb/
H A Ddve3900-rom.c756 int i, chunk; local
763 for (i = chunk = 0, seq = 0; i < buflen; i += chunk, seq++)
766 chunk = buflen - i;
767 if (chunk > MAXPSIZE)
768 chunk = MAXPSIZE;
771 write_long_le (len, chunk);
775 debug_write (&buf[i], chunk);
/freebsd-12-stable/crypto/openssl/crypto/
H A Dmem_sec.c524 char *chunk = NULL; local
530 chunk = sh.arena + ((bit & ((ONE << list) - 1)) * (sh.arena_size >> list));
532 return chunk;
539 char *chunk; local
587 chunk = sh.freelist[list];
588 OPENSSL_assert(sh_testbit(chunk, list, sh.bittable));
589 sh_setbit(chunk, list, sh.bitmalloc);
590 sh_remove_from_list(chunk);
592 OPENSSL_assert(WITHIN_ARENA(chunk));
595 memset(chunk,
[all...]
/freebsd-12-stable/sbin/nvmecontrol/
H A Dfirmware.c165 void *chunk; local
175 if ((chunk = aligned_alloc(PAGE_SIZE, max_xfer_size)) == NULL)
180 memcpy(chunk, payload + off, size);
186 pt.buf = chunk;
199 free(chunk);
/freebsd-12-stable/sys/dev/usb/wlan/
H A Dif_uath.c1326 struct uath_chunk *chunk; local
1337 chunk = (struct uath_chunk *)data->buf;
1338 desc = (struct uath_tx_desc *)(chunk + 1);
1340 /* one chunk only */
1341 chunk->seqnum = 0;
1342 chunk->flags = UATH_CFLAGS_FINAL;
1343 chunk->length = htobe16(sizeof (struct uath_tx_desc));
1523 struct uath_chunk *chunk; local
1533 chunk = (struct uath_chunk *)data->buf;
1534 desc = (struct uath_tx_desc *)(chunk
2478 struct uath_chunk *chunk; local
[all...]
/freebsd-12-stable/sys/contrib/octeon-sdk/
H A Dcvmx-dma-engine.c387 /* Each internal chunk can contain a maximum of 8191 bytes */
388 int chunk = size; local
389 if (chunk > 8191)
390 chunk = 8191;
392 buffers[segments].internal.size = chunk;
394 address += chunk;
395 size -= chunk;

Completed in 693 milliseconds

1234567