Lines Matching defs:ctrptr
550 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes)
555 memcpy(ctrptr, iv, AES_BLOCK_SIZE);
558 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE);
559 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE);
560 ctrptr += AES_BLOCK_SIZE;
569 u8 buf[AES_BLOCK_SIZE], *ctrptr;
585 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv;
587 walk.src.virt.addr, n, ctrptr);
588 if (ctrptr == ctrblk)
589 memcpy(walk.iv, ctrptr + n - AES_BLOCK_SIZE,