Lines Matching full:todo

456 	size_t remain, todo;  in crypto_cursor_copyback()  local
476 todo = MIN(remain, size); in crypto_cursor_copyback()
477 m_copyback(cc->cc_mbuf, cc->cc_offset, todo, src); in crypto_cursor_copyback()
478 src += todo; in crypto_cursor_copyback()
479 if (todo < remain) { in crypto_cursor_copyback()
480 cc->cc_offset += todo; in crypto_cursor_copyback()
483 size -= todo; in crypto_cursor_copyback()
500 todo = MIN(remain, size); in crypto_cursor_copyback()
501 memcpy(dst, src, todo); in crypto_cursor_copyback()
502 src += todo; in crypto_cursor_copyback()
503 cc->cc_buf_len -= todo; in crypto_cursor_copyback()
504 if (todo < remain) { in crypto_cursor_copyback()
505 cc->cc_offset += todo; in crypto_cursor_copyback()
508 size -= todo; in crypto_cursor_copyback()
519 todo = MIN(remain, size); in crypto_cursor_copyback()
520 memcpy(dst, src, todo); in crypto_cursor_copyback()
521 src += todo; in crypto_cursor_copyback()
522 cc->cc_buf_len -= todo; in crypto_cursor_copyback()
523 if (todo < remain) { in crypto_cursor_copyback()
524 cc->cc_offset += todo; in crypto_cursor_copyback()
527 size -= todo; in crypto_cursor_copyback()
545 size_t remain, todo; in crypto_cursor_copydata() local
565 todo = MIN(remain, size); in crypto_cursor_copydata()
566 m_copydata(cc->cc_mbuf, cc->cc_offset, todo, dst); in crypto_cursor_copydata()
567 dst += todo; in crypto_cursor_copydata()
568 if (todo < remain) { in crypto_cursor_copydata()
569 cc->cc_offset += todo; in crypto_cursor_copydata()
572 size -= todo; in crypto_cursor_copydata()
589 todo = MIN(remain, size); in crypto_cursor_copydata()
590 memcpy(dst, src, todo); in crypto_cursor_copydata()
591 dst += todo; in crypto_cursor_copydata()
592 cc->cc_buf_len -= todo; in crypto_cursor_copydata()
593 if (todo < remain) { in crypto_cursor_copydata()
594 cc->cc_offset += todo; in crypto_cursor_copydata()
597 size -= todo; in crypto_cursor_copydata()
609 todo = MIN(remain, size); in crypto_cursor_copydata()
610 memcpy(dst, src, todo); in crypto_cursor_copydata()
611 dst += todo; in crypto_cursor_copydata()
612 cc->cc_buf_len -= todo; in crypto_cursor_copydata()
613 if (todo < remain) { in crypto_cursor_copydata()
614 cc->cc_offset += todo; in crypto_cursor_copydata()
617 size -= todo; in crypto_cursor_copydata()