| /freebsd-13.1/lib/libc/stdio/ |
| H A D | open_memstream.c | 95 ssize_t tocopy; in memstream_write() local 100 tocopy = ms->len - ms->offset; in memstream_write() 101 if (len < tocopy) in memstream_write() 102 tocopy = len; in memstream_write() 103 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write() 104 ms->offset += tocopy; in memstream_write() 107 fprintf(stderr, "MS: write(%p, %d) = %zd\n", ms, len, tocopy); in memstream_write() 109 return (tocopy); in memstream_write()
|
| /freebsd-13.1/contrib/unbound/sldns/ |
| H A D | sbuffer.c | 153 size_t tocopy = sldns_buffer_limit(from); in sldns_buffer_copy() local 155 if(tocopy > sldns_buffer_capacity(result)) in sldns_buffer_copy() 156 tocopy = sldns_buffer_capacity(result); in sldns_buffer_copy() 158 sldns_buffer_write(result, sldns_buffer_begin(from), tocopy); in sldns_buffer_copy()
|
| H A D | str2wire.c | 201 uint8_t* tocopy; in rrinternal_get_owner() local 204 tocopy = origin; in rrinternal_get_owner() 207 tocopy = prev; in rrinternal_get_owner() 211 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner() 220 uint8_t* tocopy; in rrinternal_get_owner() local 223 tocopy = prev; in rrinternal_get_owner() 226 tocopy = origin; in rrinternal_get_owner() 229 tocopy = (uint8_t*)"\0"; in rrinternal_get_owner() 486 uint8_t* tocopy; in rrinternal_parse_rdf() local 490 tocopy = origin; in rrinternal_parse_rdf() [all …]
|
| /freebsd-13.1/contrib/ldns/ |
| H A D | buffer.c | 170 size_t tocopy = ldns_buffer_limit(from); in ldns_buffer_copy() local 172 if(tocopy > ldns_buffer_capacity(result)) in ldns_buffer_copy() 173 tocopy = ldns_buffer_capacity(result); in ldns_buffer_copy() 175 ldns_buffer_write(result, ldns_buffer_begin(from), tocopy); in ldns_buffer_copy()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | accf_http.c | 307 int tocopy; in soishttpconnected() local 309 tocopy = (NCHRS - ccleft) - copied; in soishttpconnected() 310 src = mtod(m, char *) + (m->m_len - tocopy); in soishttpconnected() 312 while (tocopy--) { in soishttpconnected()
|
| H A D | sctp_bsd_addr.c | 489 int tocopy, this_copy; in sctp_copy_out_packet_log() local 493 tocopy = length; in sctp_copy_out_packet_log()
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_read.c | 1330 size_t tocopy; in __archive_read_filter_ahead() local 1476 tocopy = (filter->buffer + filter->buffer_size) in __archive_read_filter_ahead() 1479 if (tocopy + filter->avail > min) in __archive_read_filter_ahead() 1480 tocopy = min - filter->avail; in __archive_read_filter_ahead() 1482 if (tocopy > filter->client_avail) in __archive_read_filter_ahead() 1483 tocopy = filter->client_avail; in __archive_read_filter_ahead() 1486 filter->client_next, tocopy); in __archive_read_filter_ahead() 1488 filter->client_next += tocopy; in __archive_read_filter_ahead() 1489 filter->client_avail -= tocopy; in __archive_read_filter_ahead() 1491 filter->avail += tocopy; in __archive_read_filter_ahead()
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_umtx.c | 3952 int count, error, i, pos, tocopy; in __umtx_op_nwake_private_native() local 3956 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private_native() 3957 pos += tocopy) { in __umtx_op_nwake_private_native() 3958 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private_native() 3959 error = copyin(upp + pos, uaddrs, tocopy * sizeof(char *)); in __umtx_op_nwake_private_native() 3962 for (i = 0; i < tocopy; ++i) { in __umtx_op_nwake_private_native() 3974 int count, error, i, pos, tocopy; in __umtx_op_nwake_private_compat32() local 3978 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private_compat32() 3979 pos += tocopy) { in __umtx_op_nwake_private_compat32() 3980 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private_compat32() [all …]
|
| /freebsd-13.1/sys/dev/qat/ |
| H A D | qat.c | 1438 int buflen, osegs, tocopy; in qat_crypto_load_obuf_cb() local 1458 tocopy = crp->crp_aad == NULL ? in qat_crypto_load_obuf_cb() 1464 for (; osegs < ibufs->num_buffers && tocopy > 0; osegs++) { in qat_crypto_load_obuf_cb() 1469 buflen = imin(ibuf->data_len_in_bytes, tocopy); in qat_crypto_load_obuf_cb() 1471 tocopy -= buflen; in qat_crypto_load_obuf_cb()
|
| /freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zfs_vnops_os.c | 4176 size_t tocopy; in zfs_putpages() local 4262 for (i = 0; len > 0; off += tocopy, len -= tocopy, i++) { in zfs_putpages() 4263 tocopy = len > PAGE_SIZE ? PAGE_SIZE : len; in zfs_putpages() 4265 dmu_write(zfsvfs->z_os, zp->z_id, off, tocopy, va, tx); in zfs_putpages()
|