Home
last modified time | relevance | path

Searched refs:tocopy (Results 1 – 11 of 11) sorted by relevance

/freebsd/lib/libc/stdio/
H A Dopen_memstream.c92 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/arm64/vmm/
H A Dvmm_stat.c81 int i, tocopy; in vmm_stat_copy() local
94 tocopy = min(vst_num_elems - index, count); in vmm_stat_copy()
105 memcpy(buf, stats + index, tocopy * sizeof(stats[0])); in vmm_stat_copy()
106 *num_stats = tocopy; in vmm_stat_copy()
/freebsd/sys/amd64/vmm/
H A Dvmm_stat.c85 int i, tocopy; in vmm_stat_copy() local
98 tocopy = min(vst_num_elems - index, count); in vmm_stat_copy()
109 memcpy(buf, stats + index, tocopy * sizeof(stats[0])); in vmm_stat_copy()
110 *num_stats = tocopy; in vmm_stat_copy()
/freebsd/contrib/unbound/sldns/
H A Dsbuffer.c153 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 Dstr2wire.c201 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()
492 uint8_t* tocopy; in rrinternal_parse_rdf() local
496 tocopy = origin; in rrinternal_parse_rdf()
[all …]
/freebsd/contrib/ldns/
H A Dbuffer.c170 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 Daccf_http.c305 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 Darchive_read.c1329 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 Dkern_umtx.c3998 int count, error, i, pos, tocopy; in __umtx_op_nwake_private_native() local
4002 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private_native()
4003 pos += tocopy) { in __umtx_op_nwake_private_native()
4004 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private_native()
4005 error = copyin(upp + pos, uaddrs, tocopy * sizeof(char *)); in __umtx_op_nwake_private_native()
4008 for (i = 0; i < tocopy; ++i) { in __umtx_op_nwake_private_native()
4020 int count, error, i, pos, tocopy; in __umtx_op_nwake_private_compat32() local
4024 for (count = uap->val, pos = 0; count > 0; count -= tocopy, in __umtx_op_nwake_private_compat32()
4025 pos += tocopy) { in __umtx_op_nwake_private_compat32()
4026 tocopy = MIN(count, BATCH_SIZE); in __umtx_op_nwake_private_compat32()
[all …]
/freebsd/sys/dev/qat_c2xxx/
H A Dqat.c1413 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 Dzfs_vnops_os.c4150 size_t tocopy; in zfs_putpages() local
4239 for (i = 0; len > 0; off += tocopy, len -= tocopy, i++) { in zfs_putpages()
4240 tocopy = len > PAGE_SIZE ? PAGE_SIZE : len; in zfs_putpages()
4242 dmu_write(zfsvfs->z_os, zp->z_id, off, tocopy, va, tx); in zfs_putpages()