Lines Matching defs:ctrptr
628 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
633 memcpy(ctrptr, iv, AES_BLOCK_SIZE);
636 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE);
637 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE);
638 ctrptr += AES_BLOCK_SIZE;
647 u8 buf[AES_BLOCK_SIZE], *ctrptr;
669 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv;
671 walk.src.virt.addr, n, ctrptr);
673 if (ctrptr == ctrblk)
674 memcpy(walk.iv, ctrptr + k - AES_BLOCK_SIZE,