Lines Matching defs:nbytes
69 unsigned int nbytes;
227 unsigned int nbytes, n;
234 while ((nbytes = walk.nbytes) != 0) {
236 n = nbytes & ~(AES_BLOCK_SIZE - 1);
239 ret = skcipher_walk_done(&walk, nbytes - n);
323 unsigned int nbytes, n;
338 while ((nbytes = walk.nbytes) != 0) {
340 n = nbytes & ~(AES_BLOCK_SIZE - 1);
344 ret = skcipher_walk_done(&walk, nbytes - n);
423 unsigned int offset, nbytes, n;
464 while ((nbytes = walk.nbytes) != 0) {
466 n = nbytes & ~(AES_BLOCK_SIZE - 1);
469 ret = skcipher_walk_done(&walk, nbytes - n);
550 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
556 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(AES_BLOCK_SIZE - 1);
571 unsigned int n, nbytes;
580 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) {
583 if (nbytes >= 2*AES_BLOCK_SIZE && locked)
584 n = __ctrblk_init(ctrblk, walk.iv, nbytes);
592 ret = skcipher_walk_done(&walk, nbytes - n);
597 * final block may be < AES_BLOCK_SIZE, copy only nbytes
599 if (nbytes) {
601 memcpy(buf, walk.src.virt.addr, nbytes);
604 memcpy(walk.dst.virt.addr, buf, nbytes);
699 unsigned int nbytes)
701 gw->walk_bytes_remain -= nbytes;
703 scatterwalk_advance(&gw->walk, nbytes);
714 gw->nbytes = gw->buf_bytes;
720 gw->nbytes = 0;
726 gw->nbytes = 0;
732 gw->nbytes = gw->walk_bytes;
743 gw->nbytes = gw->buf_bytes;
748 gw->nbytes = 0;
754 return gw->nbytes;
761 gw->nbytes = 0;
767 gw->nbytes = 0;
773 gw->nbytes = gw->walk_bytes;
781 gw->nbytes = sizeof(gw->buf);
784 return gw->nbytes;