| /freebsd-src/usr.sbin/bhyve/ |
| H A D | net_backend_netmap.c | 205 int copylen; in netmap_send() local 207 copylen = iov_frag_size < nm_buf_size ? iov_frag_size : nm_buf_size; in netmap_send() 208 memcpy(nm_buf, iov_frag_buf, copylen); in netmap_send() 210 iov_frag_buf += copylen; in netmap_send() 211 iov_frag_size -= copylen; in netmap_send() 212 nm_buf += copylen; in netmap_send() 213 nm_buf_size -= copylen; in netmap_send() 214 nm_buf_len += copylen; in netmap_send() 302 int copylen = nm_buf_len < iov_frag_size ? in netmap_recv() local 305 memcpy(iov_frag_buf, nm_buf, copylen); in netmap_recv() [all …]
|
| /freebsd-src/lib/libpmc/ |
| H A D | pmclog.c | 106 int avail, copylen, recordsize, used; in pmclog_get_record() local 138 copylen = avail < HEADERSIZE ? avail : HEADERSIZE; in pmclog_get_record() 139 bcopy(src, dst, copylen); in pmclog_get_record() 140 ps->ps_svcount = used = copylen; in pmclog_get_record() 142 if (copylen < HEADERSIZE) { in pmclog_get_record() 147 src += copylen; in pmclog_get_record() 148 dst += copylen; in pmclog_get_record() 157 bcopy(src, dst, recordsize - copylen); in pmclog_get_record() 163 bcopy(src, dst, avail - copylen); in pmclog_get_record() 192 used = copylen = HEADERSIZE - ps->ps_svcount; in pmclog_get_record() [all …]
|
| /freebsd-src/sys/fs/tarfs/ |
| H A D | tarfs_subr.c | 422 size_t copylen; in tarfs_read_file() local 436 copylen = tnp->blk[i].o - uiop->uio_offset; in tarfs_read_file() 437 if (copylen > resid) in tarfs_read_file() 438 copylen = resid; in tarfs_read_file() 439 if (copylen > ZERO_REGION_SIZE) in tarfs_read_file() 440 copylen = ZERO_REGION_SIZE; in tarfs_read_file() 443 auio.uio_resid = copylen; in tarfs_read_file() 445 copylen, &auio); in tarfs_read_file() 449 tnp->name, copylen - auio.uio_resid); in tarfs_read_file() 450 uiop->uio_offset += copylen - auio.uio_resid; in tarfs_read_file() [all …]
|
| /freebsd-src/contrib/netbsd-tests/fs/puffs/h_dtfs/ |
| H A D | dtfs_vnops.c | 460 size_t copylen; in dtfs_node_read() local 472 copylen = MIN(xfer, BLOCKLEFT(offset, DTFS_BLOCKSIZE)); in dtfs_node_read() 475 memcpy(dest, src, copylen); in dtfs_node_read() 476 offset += copylen; in dtfs_node_read() 477 dest += copylen; in dtfs_node_read() 478 xfer -= copylen; in dtfs_node_read() 497 size_t copylen; in dtfs_node_write() local 511 copylen = MIN(*resid, BLOCKLEFT(offset, DTFS_BLOCKSIZE)); in dtfs_node_write() 515 memcpy(dest, src, copylen); in dtfs_node_write() 516 offset += copylen; in dtfs_node_write() [all …]
|
| /freebsd-src/usr.bin/mail/ |
| H A D | fio.c | 416 int copylen; in getfold() local 421 copylen = strlcpy(name, folder, namelen); in getfold() 423 copylen = snprintf(name, namelen, "%s/%s", in getfold() 425 return (copylen < 0 || copylen >= namelen ? (-1) : (0)); in getfold()
|
| /freebsd-src/crypto/openssl/crypto/asn1/ |
| H A D | bio_asn1.c | 51 int copylen; member 195 ctx->copylen = inl; in asn1_bio_write() 217 if (inl > ctx->copylen) in asn1_bio_write() 218 wrmax = ctx->copylen; in asn1_bio_write() 225 ctx->copylen -= ret; in asn1_bio_write() 229 if (ctx->copylen == 0) in asn1_bio_write()
|
| /freebsd-src/libexec/phttpget/ |
| H A D | phttpget.c | 252 copybytes(int sd, int fd, off_t copylen, char * resbuf, int * resbuflen, in copybytes() argument 257 while (copylen) { in copybytes() 260 if (copylen < len) in copybytes() 261 len = copylen; in copybytes() 268 copylen -= len; in copybytes()
|
| /freebsd-src/sys/cam/ctl/ |
| H A D | ctl_ha.c | 673 size_t copylen, off; in ctl_ha_msg_send2() local 699 copylen = min(M_TRAILINGSPACE(mb), len - off); in ctl_ha_msg_send2() 700 memcpy(mtodo(mb, mb->m_len), (const char *)addr + off, copylen); in ctl_ha_msg_send2() 701 mb->m_len += copylen; in ctl_ha_msg_send2() 702 off += copylen; in ctl_ha_msg_send2() 710 copylen = min(M_TRAILINGSPACE(mb), len2 - off); in ctl_ha_msg_send2() 711 memcpy(mtodo(mb, mb->m_len), (const char *)addr2 + off, copylen); in ctl_ha_msg_send2() 712 mb->m_len += copylen; in ctl_ha_msg_send2() 713 off += copylen; in ctl_ha_msg_send2()
|
| /freebsd-src/sys/compat/freebsd32/ |
| H A D | freebsd32_misc.c | 1364 size_t copylen; in freebsd32_cmsg_convert() 1378 copylen = 0; in freebsd32_cmsg_convert() 1384 copylen = sizeof(tmp32.tv); in freebsd32_cmsg_convert() 1389 copylen = sizeof(tmp32.bt); in freebsd32_cmsg_convert() 1395 copylen = sizeof(tmp32.ts); in freebsd32_cmsg_convert() 1406 if (copylen == 0) in freebsd32_cmsg_convert() 1409 KASSERT((datalen >= copylen), ("corrupted cmsghdr")); in freebsd32_cmsg_convert() 1411 bcopy(&tmp32, data, copylen); in freebsd32_cmsg_convert() 1412 return (copylen); 1423 int len, copylen; in freebsd32_copy_msg_out() 1362 size_t copylen; freebsd32_cmsg_convert() local 1421 int len, copylen; freebsd32_copy_msg_out() local [all...] |
| /freebsd-src/sys/fs/nfsserver/ |
| H A D | nfs_nfsdsubs.c | 1476 int error = 0, len, copylen; in nfsrv_mtofh() local 1486 copylen = len; in nfsrv_mtofh() 1490 copylen = NFSX_MYFH; in nfsrv_mtofh() 1517 copylen = NFSRV_MAXFH; in nfsrv_mtofh() 1526 NFSBCOPY(tl, (caddr_t)fhp->nfsrvfh_data, copylen); in nfsrv_mtofh() 1527 fhp->nfsrvfh_len = copylen; in nfsrv_mtofh()
|
| /freebsd-src/sys/dev/iscsi/ |
| H A D | icl_soft.c | 1226 size_t copylen, off = 0; in icl_soft_conn_pdu_append_data() local 1249 copylen = min(M_TRAILINGSPACE(mb), len - off); in icl_soft_conn_pdu_append_data() 1250 memcpy(mtod(mb, char *), (const char *)addr + off, copylen); in icl_soft_conn_pdu_append_data() 1251 mb->m_len = copylen; in icl_soft_conn_pdu_append_data() 1252 off += copylen; in icl_soft_conn_pdu_append_data()
|
| /freebsd-src/contrib/unbound/services/ |
| H A D | listen_dnsport.c | 2522 size_t copylen = length; in http2_submit_dns_response() 2537 if(copylen > sldns_buffer_remaining(h2_stream->rbuffer)) in http2_submit_dns_response() 2538 copylen = sldns_buffer_remaining(h2_stream->rbuffer); in http2_submit_dns_response() 2539 if(copylen > SSIZE_MAX) in http2_submit_dns_response() 2540 copylen = SSIZE_MAX; /* will probably never happen */ in http2_submit_dns_response() 2542 memcpy(buf, sldns_buffer_current(h2_stream->rbuffer), copylen); in http2_submit_dns_response() 2543 sldns_buffer_skip(h2_stream->rbuffer, copylen); in http2_submit_dns_response() 2555 return copylen; in http2_submit_dns_response() 2421 size_t copylen = length; http2_submit_response_read_callback() local
|
| /freebsd-src/contrib/unbound/sldns/ |
| H A D | str2wire.c | 493 size_t copylen; in rrinternal_parse_rdf() local 495 copylen = origin_len; in rrinternal_parse_rdf() 498 copylen = dname_len; in rrinternal_parse_rdf() 501 copylen = 1; in rrinternal_parse_rdf() 504 if((*rr_cur_len) + copylen > rr_len) in rrinternal_parse_rdf() 508 memmove(rr+*rr_cur_len, tocopy, copylen); in rrinternal_parse_rdf() 509 (*rr_cur_len) += copylen; in rrinternal_parse_rdf()
|
| /freebsd-src/sys/kern/ |
| H A D | vfs_vnops.c | 3347 size_t copylen, len, savlen; in vn_generic_copy_file_range() local 3492 copylen = len; in vn_generic_copy_file_range() 3568 copylen = MIN(len, endoff - startoff); in vn_generic_copy_file_range() 3575 copylen = len; in vn_generic_copy_file_range() 3594 while (error == 0 && ((copylen > 0 && !eof) || first) && in vn_generic_copy_file_range() 3596 if (copylen < xfer) in vn_generic_copy_file_range() 3597 xfer = copylen; in vn_generic_copy_file_range() 3635 copylen -= xfer; in vn_generic_copy_file_range()
|
| /freebsd-src/contrib/ntp/sntp/libevent/ |
| H A D | buffer.c | 1230 size_t copylen = chain->off - pos_in_chain; in evbuffer_copyout_from() local 1233 copylen); in evbuffer_copyout_from() 1234 data += copylen; in evbuffer_copyout_from() 1235 datlen -= copylen; in evbuffer_copyout_from()
|
| /freebsd-src/contrib/libevent/ |
| H A D | buffer.c | 1230 size_t copylen = chain->off - pos_in_chain; in evbuffer_copyout_from() local 1233 copylen); in evbuffer_copyout_from() 1234 data += copylen; in evbuffer_copyout_from() 1235 datlen -= copylen; in evbuffer_copyout_from()
|
| /freebsd-src/sys/fs/nfsclient/ |
| H A D | nfs_clrpcops.c | 6788 uint32_t copylen; in nfscl_dofflayoutio() 6809 copylen = dp->nfsdi_rsize; in nfscl_dofflayoutio() 6811 copylen = dp->nfsdi_wsize; in nfscl_dofflayoutio() 6812 if (len > copylen && mp != NULL) { in nfscl_dofflayoutio() 6823 copylen &= 0xfffffffc; in nfscl_dofflayoutio() 6824 if (copylen > mp->m_len) in nfscl_dofflayoutio() 6825 copylen = copylen / mp->m_len * in nfscl_dofflayoutio() 6832 if (len > copylen && docommit == 0) in nfscl_dofflayoutio() 6833 xfer = copylen; in nfscl_dofflayoutio() 6698 uint32_t copylen; nfscl_dofflayoutio() local [all...] |
| /freebsd-src/contrib/jemalloc/src/ |
| H A D | ctl.c | 1441 size_t copylen = (sizeof(t) <= *oldlenp) \ 1443 memcpy(oldp, (void *)&(v), copylen); \
|