Lines Matching defs:nbytes
68 unsigned int nbytes;
226 unsigned int nbytes, n;
233 while ((nbytes = walk.nbytes) != 0) {
235 n = nbytes & ~(AES_BLOCK_SIZE - 1);
238 ret = skcipher_walk_done(&walk, nbytes - n);
322 unsigned int nbytes, n;
337 while ((nbytes = walk.nbytes) != 0) {
339 n = nbytes & ~(AES_BLOCK_SIZE - 1);
343 ret = skcipher_walk_done(&walk, nbytes - n);
426 unsigned int offset, nbytes, n;
467 while ((nbytes = walk.nbytes) != 0) {
469 n = nbytes & ~(AES_BLOCK_SIZE - 1);
472 ret = skcipher_walk_done(&walk, nbytes - n);
553 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
559 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(AES_BLOCK_SIZE - 1);
574 unsigned int n, nbytes;
583 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) {
586 if (nbytes >= 2*AES_BLOCK_SIZE && locked)
587 n = __ctrblk_init(ctrblk, walk.iv, nbytes);
595 ret = skcipher_walk_done(&walk, nbytes - n);
600 * final block may be < AES_BLOCK_SIZE, copy only nbytes
602 if (nbytes) {
604 memcpy(buf, walk.src.virt.addr, nbytes);
607 memcpy(walk.dst.virt.addr, buf, nbytes);
702 unsigned int nbytes)
704 gw->walk_bytes_remain -= nbytes;
706 scatterwalk_advance(&gw->walk, nbytes);
717 gw->nbytes = gw->buf_bytes;
723 gw->nbytes = 0;
729 gw->nbytes = 0;
735 gw->nbytes = gw->walk_bytes;
746 gw->nbytes = gw->buf_bytes;
751 gw->nbytes = 0;
757 return gw->nbytes;
764 gw->nbytes = 0;
770 gw->nbytes = 0;
776 gw->nbytes = gw->walk_bytes;
784 gw->nbytes = sizeof(gw->buf);
787 return gw->nbytes;