| /freebsd/lib/libc/stdio/ |
| H A D | open_memstream.c | 92 ssize_t tocopy; in memstream_write() local 97 tocopy = ms->len - ms->offset; in memstream_write() 98 if (len < tocopy) in memstream_write() 99 tocopy = len; in memstream_write() 100 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write() 101 ms->offset += tocopy; in memstream_write() 104 fprintf(stderr, "MS: write(%p, %d) = %zd\n", ms, len, tocopy); in memstream_write() 106 return (tocopy); in memstream_write()
|
| /freebsd/sys/dev/vmm/ |
| H A D | vmm_stat.c | 82 int i, tocopy; in vmm_stat_copy() local 95 tocopy = min(vst_num_elems - index, count); in vmm_stat_copy() 106 memcpy(buf, stats + index, tocopy * sizeof(stats[0])); in vmm_stat_copy() 107 *num_stats = tocopy; in vmm_stat_copy()
|
| /freebsd/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() 216 memmove(rr, tocopy, *dname_len); 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() 234 memmove(rr, tocopy, *dname_len); in rrinternal_get_owner() [all …]
|
| /freebsd/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/sys/netinet/ |
| H A D | accf_http.c | 304 int tocopy; in soishttpconnected() local 306 tocopy = (NCHRS - ccleft) - copied; in soishttpconnected() 307 src = mtod(m, char *) + (m->m_len - tocopy); in soishttpconnected() 309 while (tocopy--) { in soishttpconnected()
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read.c | 1324 size_t tocopy; in __archive_read_filter_ahead() local 1470 tocopy = (filter->buffer + filter->buffer_size) in __archive_read_filter_ahead() 1473 if (tocopy + filter->avail > min) in __archive_read_filter_ahead() 1474 tocopy = min - filter->avail; in __archive_read_filter_ahead() 1476 if (tocopy > filter->client_avail) in __archive_read_filter_ahead() 1477 tocopy = filter->client_avail; in __archive_read_filter_ahead() 1480 filter->client_next, tocopy); in __archive_read_filter_ahead() 1482 filter->client_next += tocopy; in __archive_read_filter_ahead() 1483 filter->client_avail -= tocopy; in __archive_read_filter_ahead() 1485 filter->avail += tocopy; in __archive_read_filter_ahead()
|
| /freebsd/sys/kern/ |
| H A D | kern_umtx.c | 4006 int count, error, i, pos, tocopy; in __umtx_op_nwake_private_native() local 4010 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private_native() 4011 pos += tocopy) { in __umtx_op_nwake_private_native() 4012 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private_native() 4013 error = copyin(upp + pos, uaddrs, tocopy * sizeof(char *)); in __umtx_op_nwake_private_native() 4016 for (i = 0; i < tocopy; ++i) { in __umtx_op_nwake_private_native() 4028 int count, error, i, pos, tocopy; in __umtx_op_nwake_private_compat32() local 4032 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private_compat32() 4033 pos += tocopy) { in __umtx_op_nwake_private_compat32() 4034 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private_compat32() [all …]
|
| /freebsd/sys/dev/qat_c2xxx/ |
| H A D | qat.c | 1413 int buflen, osegs, tocopy; in qat_crypto_load_obuf_cb() local 1433 tocopy = crp->crp_aad == NULL ? in qat_crypto_load_obuf_cb() 1439 for (; osegs < ibufs->num_buffers && tocopy > 0; osegs++) { in qat_crypto_load_obuf_cb() 1444 buflen = imin(ibuf->data_len_in_bytes, tocopy); in qat_crypto_load_obuf_cb() 1446 tocopy -= buflen; in qat_crypto_load_obuf_cb()
|
| /freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zfs_vnops_os.c | 4388 size_t tocopy; in zfs_putpages() local 4479 for (i = 0; wlen > 0; woff += tocopy, wlen -= tocopy, i++) { in zfs_putpages() 4480 tocopy = MIN(PAGE_SIZE, wlen); in zfs_putpages() 4482 dmu_write(zfsvfs->z_os, zp->z_id, woff, tocopy, va, tx, in zfs_putpages()
|