Lines Matching defs:ctrptr
611 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
616 memcpy(ctrptr, iv, AES_BLOCK_SIZE);
619 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE);
620 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE);
621 ctrptr += AES_BLOCK_SIZE;
630 u8 buf[AES_BLOCK_SIZE], *ctrptr;
652 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv;
654 walk.src.virt.addr, n, ctrptr);
656 if (ctrptr == ctrblk)
657 memcpy(walk.iv, ctrptr + k - AES_BLOCK_SIZE,