Lines Matching refs:cc_in

109 	struct crypto_buffer_cursor cc_in, cc_out;  in swcr_encdec()  local
154 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_encdec()
155 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_encdec()
156 inlen = crypto_cursor_seglen(&cc_in); in swcr_encdec()
157 inblk = crypto_cursor_segbase(&cc_in); in swcr_encdec()
162 cc_out = cc_in; in swcr_encdec()
182 crypto_cursor_copydata(&cc_in, blks, blk); in swcr_encdec()
228 inlen = crypto_cursor_seglen(&cc_in); in swcr_encdec()
229 inblk = crypto_cursor_segbase(&cc_in); in swcr_encdec()
231 crypto_cursor_advance(&cc_in, blks); in swcr_encdec()
259 inlen = crypto_cursor_seglen(&cc_in); in swcr_encdec()
262 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_encdec()
265 inblk = crypto_cursor_segbase(&cc_in); in swcr_encdec()
471 struct crypto_buffer_cursor cc_in, cc_out; in swcr_gcm() local
517 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm()
518 crypto_cursor_advance(&cc_in, crp->crp_aad_start); in swcr_gcm()
521 len = crypto_cursor_seglen(&cc_in); in swcr_gcm()
523 inblk = crypto_cursor_segbase(&cc_in); in swcr_gcm()
525 crypto_cursor_advance(&cc_in, len); in swcr_gcm()
528 crypto_cursor_copydata(&cc_in, len, blk); in swcr_gcm()
535 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_gcm()
543 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm()
544 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_gcm()
549 cc_out = cc_in; in swcr_gcm()
551 if (crypto_cursor_seglen(&cc_in) < blksz) { in swcr_gcm()
552 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_gcm()
555 inblk = crypto_cursor_segbase(&cc_in); in swcr_gcm()
556 crypto_cursor_advance(&cc_in, blksz); in swcr_gcm()
574 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_gcm()
608 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_gcm()
609 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_gcm()
612 if (crypto_cursor_seglen(&cc_in) < blksz) { in swcr_gcm()
613 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_gcm()
616 inblk = crypto_cursor_segbase(&cc_in); in swcr_gcm()
617 crypto_cursor_advance(&cc_in, blksz); in swcr_gcm()
630 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_gcm()
709 struct crypto_buffer_cursor cc_in, cc_out; in swcr_ccm() local
761 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_ccm()
762 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_ccm()
767 cc_out = cc_in; in swcr_ccm()
769 if (crypto_cursor_seglen(&cc_in) < blksz) { in swcr_ccm()
770 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_ccm()
773 inblk = crypto_cursor_segbase(&cc_in); in swcr_ccm()
774 crypto_cursor_advance(&cc_in, blksz); in swcr_ccm()
801 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_ccm()
832 crypto_cursor_init(&cc_in, &crp->crp_buf); in swcr_ccm()
833 crypto_cursor_advance(&cc_in, crp->crp_payload_start); in swcr_ccm()
836 if (crypto_cursor_seglen(&cc_in) < blksz) { in swcr_ccm()
837 crypto_cursor_copydata(&cc_in, blksz, blk); in swcr_ccm()
840 inblk = crypto_cursor_segbase(&cc_in); in swcr_ccm()
841 crypto_cursor_advance(&cc_in, blksz); in swcr_ccm()
854 crypto_cursor_copydata(&cc_in, resid, blk); in swcr_ccm()