Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_stat.c85 int i, tocopy; in vmm_stat_copy() local
101 tocopy = min(vst_num_elems - index, count); in vmm_stat_copy()
112 memcpy(buf, stats + index, tocopy * sizeof (stats[0])); in vmm_stat_copy()
113 *num_stats = tocopy; in vmm_stat_copy()
/illumos-gate/usr/src/boot/common/linenoise/
H A Dlinenoise.c834 int tocopy = history_len; in linenoiseHistorySetMaxLen() local
840 if (len < tocopy) { in linenoiseHistorySetMaxLen()
843 for (j = 0; j < tocopy-len; j++) free(history[j]); in linenoiseHistorySetMaxLen()
844 tocopy = len; in linenoiseHistorySetMaxLen()
847 memcpy(new,history+(history_len-tocopy), sizeof(char*)*tocopy); in linenoiseHistorySetMaxLen()
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_transceiver.c2405 const size_t tocopy = MIN(hdrlen - hdrcopied, mp_len); in i40e_lso_chain() local
2406 i40e_tx_copy_fragment(tcb, mp, 0, tocopy); in i40e_lso_chain()
2407 hdrcopied += tocopy; in i40e_lso_chain()
2408 cpoff += tocopy; in i40e_lso_chain()
2409 if (tocopy == mp_len) { in i40e_lso_chain()
2458 size_t tocopy; in i40e_lso_chain() local
2492 tocopy = MIN(I40E_TCB_LEFT(tcb), mp_len - cpoff); in i40e_lso_chain()
2493 i40e_tx_copy_fragment(tcb, mp, cpoff, tocopy); in i40e_lso_chain()
2494 cpoff += tocopy; in i40e_lso_chain()
2495 segsz += tocopy; in i40e_lso_chain()
/illumos-gate/usr/src/uts/common/io/
H A Dcryptmod.c3444 int tocopy; in decrypt_rcmd_mblks() local
3454 tocopy = sizeof (uint32_t) - in decrypt_rcmd_mblks()
3456 if (tocopy > msglen) in decrypt_rcmd_mblks()
3457 tocopy = msglen; in decrypt_rcmd_mblks()
3459 ASSERT(mp->b_rptr + tocopy <= DB_LIM(mp)); in decrypt_rcmd_mblks()
3462 tmi->rcmd_state.cd_len), tocopy); in decrypt_rcmd_mblks()
3464 tmi->rcmd_state.cd_len += tocopy; in decrypt_rcmd_mblks()
3485 msglen -= tocopy; in decrypt_rcmd_mblks()
3486 mp->b_rptr += tocopy; in decrypt_rcmd_mblks()
3581 size_t tocopy; in decrypt_rcmd_mblks() local
[all …]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dspppcomp.c461 int tocopy, copied; in spppcomp_outpkt() local
467 tocopy = copied = MIN(len, sizeof (indata)); in spppcomp_outpkt()
473 if (DB_REF(mp) == 1 && MBLKL(mp) >= tocopy && in spppcomp_outpkt()
481 while (tocopy > 0) { in spppcomp_outpkt()
483 if (tocopy > thislen) { in spppcomp_outpkt()
486 tocopy -= thislen; in spppcomp_outpkt()
489 bcopy(fmb->b_rptr, dp, tocopy); in spppcomp_outpkt()
/illumos-gate/usr/src/lib/sasl_plugins/digestmd5/
H A Ddigestmd5.c1819 unsigned int tocopy; local
1830 tocopy=*inputlen;
1832 tocopy=4;
1834 if (tocopy>text->needsize)
1835 tocopy=text->needsize;
1837 memcpy(text->sizebuf+4-text->needsize, *input, tocopy);
1838 text->needsize-=tocopy;
1840 *input+=tocopy;
1841 *inputlen-=tocopy;
2174 unsigned int tocopy; local
[all …]
/illumos-gate/usr/src/lib/sasl_plugins/gssapi/
H A Dgssapi.c484 int tocopy = myMIN(text->needsize, *inputlen); local
486 memcpy(text->sizebuf + 4 - text->needsize, *input, tocopy);
487 text->needsize -= tocopy;
488 *input += tocopy;
489 *inputlen -= tocopy;