Lines Matching refs:cc_out
109 struct crypto_buffer_cursor cc_in, cc_out; in swcr_encdec() local
159 crypto_cursor_init(&cc_out, &crp->crp_obuf); in swcr_encdec()
160 crypto_cursor_advance(&cc_out, crp->crp_payload_output_start); in swcr_encdec()
162 cc_out = cc_in; in swcr_encdec()
163 outlen = crypto_cursor_seglen(&cc_out); in swcr_encdec()
164 outblk = crypto_cursor_segbase(&cc_out); in swcr_encdec()
237 crypto_cursor_copyback(&cc_out, blks, blk); in swcr_encdec()
238 outlen = crypto_cursor_seglen(&cc_out); in swcr_encdec()
239 outblk = crypto_cursor_segbase(&cc_out); in swcr_encdec()
241 crypto_cursor_advance(&cc_out, blks); in swcr_encdec()
260 outlen = crypto_cursor_seglen(&cc_out); in swcr_encdec()
269 outblk = crypto_cursor_segbase(&cc_out); in swcr_encdec()
277 crypto_cursor_copyback(&cc_out, resid, blk); in swcr_encdec()
471 struct crypto_buffer_cursor cc_in, cc_out; in swcr_gcm() local
546 crypto_cursor_init(&cc_out, &crp->crp_obuf); in swcr_gcm()
547 crypto_cursor_advance(&cc_out, crp->crp_payload_output_start); in swcr_gcm()
549 cc_out = cc_in; in swcr_gcm()
559 if (crypto_cursor_seglen(&cc_out) < blksz) in swcr_gcm()
562 outblk = crypto_cursor_segbase(&cc_out); in swcr_gcm()
566 crypto_cursor_copyback(&cc_out, blksz, blk); in swcr_gcm()
568 crypto_cursor_advance(&cc_out, blksz); in swcr_gcm()
577 crypto_cursor_copyback(&cc_out, resid, blk); in swcr_gcm()
619 if (crypto_cursor_seglen(&cc_out) < blksz) in swcr_gcm()
622 outblk = crypto_cursor_segbase(&cc_out); in swcr_gcm()
625 crypto_cursor_copyback(&cc_out, blksz, blk); in swcr_gcm()
627 crypto_cursor_advance(&cc_out, blksz); in swcr_gcm()
632 crypto_cursor_copyback(&cc_out, resid, blk); in swcr_gcm()
709 struct crypto_buffer_cursor cc_in, cc_out; in swcr_ccm() local
764 crypto_cursor_init(&cc_out, &crp->crp_obuf); in swcr_ccm()
765 crypto_cursor_advance(&cc_out, crp->crp_payload_output_start); in swcr_ccm()
767 cc_out = cc_in; in swcr_ccm()
777 if (crypto_cursor_seglen(&cc_out) < blksz) in swcr_ccm()
780 outblk = crypto_cursor_segbase(&cc_out); in swcr_ccm()
784 crypto_cursor_copyback(&cc_out, blksz, blk); in swcr_ccm()
786 crypto_cursor_advance(&cc_out, blksz); in swcr_ccm()
805 crypto_cursor_copyback(&cc_out, resid, blk); in swcr_ccm()
843 if (crypto_cursor_seglen(&cc_out) < blksz) in swcr_ccm()
846 outblk = crypto_cursor_segbase(&cc_out); in swcr_ccm()
849 crypto_cursor_copyback(&cc_out, blksz, blk); in swcr_ccm()
851 crypto_cursor_advance(&cc_out, blksz); in swcr_ccm()
856 crypto_cursor_copyback(&cc_out, resid, blk); in swcr_ccm()