/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 | 305 int tocopy; in soishttpconnected() local 307 tocopy = (NCHRS - ccleft) - copied; in soishttpconnected() 308 src = mtod(m, char *) + (m->m_len - tocopy); in soishttpconnected() 310 while (tocopy--) { in soishttpconnected()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read.c | 1329 size_t tocopy; in __archive_read_filter_ahead() local 1475 tocopy = (filter->buffer + filter->buffer_size) in __archive_read_filter_ahead() 1478 if (tocopy + filter->avail > min) in __archive_read_filter_ahead() 1479 tocopy = min - filter->avail; in __archive_read_filter_ahead() 1481 if (tocopy > filter->client_avail) in __archive_read_filter_ahead() 1482 tocopy = filter->client_avail; in __archive_read_filter_ahead() 1485 filter->client_next, tocopy); in __archive_read_filter_ahead() 1487 filter->client_next += tocopy; in __archive_read_filter_ahead() 1488 filter->client_avail -= tocopy; in __archive_read_filter_ahead() 1490 filter->avail += tocopy; in __archive_read_filter_ahead()
|
/freebsd/sys/kern/ |
H A D | kern_umtx.c | 4003 int count, error, i, pos, tocopy; in __umtx_op_nwake_private_native() local 4007 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private_native() 4008 pos += tocopy) { in __umtx_op_nwake_private_native() 4009 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private_native() 4010 error = copyin(upp + pos, uaddrs, tocopy * sizeof(char *)); in __umtx_op_nwake_private_native() 4013 for (i = 0; i < tocopy; ++i) { in __umtx_op_nwake_private_native() 4025 int count, error, i, pos, tocopy; in __umtx_op_nwake_private_compat32() local 4029 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private_compat32() 4030 pos += tocopy) { in __umtx_op_nwake_private_compat32() 4031 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 | 4084 size_t tocopy; in zfs_putpages() local 4173 for (i = 0; len > 0; off += tocopy, len -= tocopy, i++) { in zfs_putpages() 4174 tocopy = len > PAGE_SIZE ? PAGE_SIZE : len; in zfs_putpages() 4176 dmu_write(zfsvfs->z_os, zp->z_id, off, tocopy, va, tx); in zfs_putpages()
|