Lines Matching refs:walk
96 struct blkcipher_walk *walk) in p8_aes_ctr_final() argument
98 u8 *ctrblk = walk->iv; in p8_aes_ctr_final()
100 u8 *src = walk->src.virt.addr; in p8_aes_ctr_final()
101 u8 *dst = walk->dst.virt.addr; in p8_aes_ctr_final()
102 unsigned int nbytes = walk->nbytes; in p8_aes_ctr_final()
123 struct blkcipher_walk walk; in p8_aes_ctr_crypt() local
136 blkcipher_walk_init(&walk, dst, src, nbytes); in p8_aes_ctr_crypt()
137 ret = blkcipher_walk_virt_block(desc, &walk, AES_BLOCK_SIZE); in p8_aes_ctr_crypt()
138 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in p8_aes_ctr_crypt()
142 aes_p8_ctr32_encrypt_blocks(walk.src.virt.addr, in p8_aes_ctr_crypt()
143 walk.dst.virt.addr, in p8_aes_ctr_crypt()
148 walk.iv); in p8_aes_ctr_crypt()
157 crypto_inc(walk.iv, AES_BLOCK_SIZE); in p8_aes_ctr_crypt()
160 ret = blkcipher_walk_done(desc, &walk, nbytes); in p8_aes_ctr_crypt()
162 if (walk.nbytes) { in p8_aes_ctr_crypt()
163 p8_aes_ctr_final(ctx, &walk); in p8_aes_ctr_crypt()
164 ret = blkcipher_walk_done(desc, &walk, 0); in p8_aes_ctr_crypt()