/freebsd/usr.sbin/bhyve/ |
H A D | net_backend_netmap.c | 205 int copylen; in netmap_send() local 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() 306 nm_buf += copylen; in netmap_recv() 307 nm_buf_len -= copylen; in netmap_recv() 308 iov_frag_buf += copylen; in netmap_recv() 309 iov_frag_size -= copylen; in netmap_recv() [all …]
|
/freebsd/lib/libpmc/ |
H A D | pmclog.c | 139 bcopy(src, dst, copylen); in pmclog_get_record() 147 src += copylen; in pmclog_get_record() 148 dst += copylen; in pmclog_get_record() 193 bcopy(src, dst, copylen); in pmclog_get_record() 194 src += copylen; in pmclog_get_record() 195 dst += copylen; in pmclog_get_record() 196 avail -= copylen; in pmclog_get_record() 197 ps->ps_svcount += copylen; in pmclog_get_record() 220 copylen = avail; in pmclog_get_record() 227 bcopy(src, dst, copylen); in pmclog_get_record() [all …]
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_subr.c | 422 size_t copylen; in tarfs_read_file() local 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() 457 copylen = tnp->blk[i].l; in tarfs_read_file() 458 if (copylen > resid) in tarfs_read_file() 459 copylen = resid; in tarfs_read_file() [all …]
|
/freebsd/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 515 memcpy(dest, src, copylen); in dtfs_node_write() 516 offset += copylen; in dtfs_node_write() 517 dest += copylen; in dtfs_node_write() [all …]
|
/freebsd/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/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/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/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/sys/compat/freebsd32/ |
H A D | freebsd32_misc.c | 1362 size_t copylen; in freebsd32_cmsg_convert() local 1376 copylen = 0; in freebsd32_cmsg_convert() 1382 copylen = sizeof(tmp32.tv); in freebsd32_cmsg_convert() 1387 copylen = sizeof(tmp32.bt); in freebsd32_cmsg_convert() 1393 copylen = sizeof(tmp32.ts); in freebsd32_cmsg_convert() 1404 if (copylen == 0) in freebsd32_cmsg_convert() 1410 return (copylen); in freebsd32_cmsg_convert() 1421 int len, copylen; in freebsd32_copy_msg_out() local 1449 if (len < copylen) { in freebsd32_copy_msg_out() 1465 copylen = datalen_out; in freebsd32_copy_msg_out() [all …]
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdsubs.c | 1479 int error = 0, len, copylen; in nfsrv_mtofh() local 1489 copylen = len; in nfsrv_mtofh() 1493 copylen = NFSX_MYFH; in nfsrv_mtofh() 1520 copylen = NFSRV_MAXFH; in nfsrv_mtofh() 1529 NFSBCOPY(tl, (caddr_t)fhp->nfsrvfh_data, copylen); in nfsrv_mtofh() 1530 fhp->nfsrvfh_len = copylen; in nfsrv_mtofh()
|
/freebsd/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/contrib/unbound/services/ |
H A D | listen_dnsport.c | 2410 size_t copylen = length; in http2_submit_response_read_callback() local 2425 if(copylen > sldns_buffer_remaining(h2_stream->rbuffer)) in http2_submit_response_read_callback() 2426 copylen = sldns_buffer_remaining(h2_stream->rbuffer); in http2_submit_response_read_callback() 2427 if(copylen > SSIZE_MAX) in http2_submit_response_read_callback() 2428 copylen = SSIZE_MAX; /* will probably never happen */ in http2_submit_response_read_callback() 2430 memcpy(buf, sldns_buffer_current(h2_stream->rbuffer), copylen); in http2_submit_response_read_callback() 2431 sldns_buffer_skip(h2_stream->rbuffer, copylen); in http2_submit_response_read_callback() 2443 return copylen; in http2_submit_response_read_callback()
|
/freebsd/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/sys/kern/ |
H A D | vfs_vnops.c | 3344 size_t copylen, len, savlen; in vn_generic_copy_file_range() local 3489 copylen = len; in vn_generic_copy_file_range() 3565 copylen = MIN(len, endoff - startoff); in vn_generic_copy_file_range() 3572 copylen = len; in vn_generic_copy_file_range() 3591 while (error == 0 && ((copylen > 0 && !eof) || first) && in vn_generic_copy_file_range() 3593 if (copylen < xfer) in vn_generic_copy_file_range() 3594 xfer = copylen; in vn_generic_copy_file_range() 3632 copylen -= xfer; in vn_generic_copy_file_range()
|
/freebsd/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/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/sys/fs/nfsclient/ |
H A D | nfs_clrpcops.c | 6656 uint32_t copylen; in nfscl_dofflayoutio() local 6677 copylen = dp->nfsdi_rsize; in nfscl_dofflayoutio() 6679 copylen = dp->nfsdi_wsize; in nfscl_dofflayoutio() 6680 if (len > copylen && mp != NULL) { in nfscl_dofflayoutio() 6691 copylen &= 0xfffffffc; in nfscl_dofflayoutio() 6692 if (copylen > mp->m_len) in nfscl_dofflayoutio() 6693 copylen = copylen / mp->m_len * in nfscl_dofflayoutio() 6700 if (len > copylen && docommit == 0) in nfscl_dofflayoutio() 6701 xfer = copylen; in nfscl_dofflayoutio()
|
/freebsd/contrib/jemalloc/src/ |
H A D | ctl.c | 1441 size_t copylen = (sizeof(t) <= *oldlenp) \ 1443 memcpy(oldp, (void *)&(v), copylen); \
|