Lines Matching refs:walk
90 struct blkcipher_walk walk; in __ecb_crypt() local
99 blkcipher_walk_init(&walk, dst, src, nbytes); in __ecb_crypt()
100 err = blkcipher_walk_virt(desc, &walk); in __ecb_crypt()
108 while ((nbytes = walk.nbytes)) { in __ecb_crypt()
115 src64 = (const u64 *)walk.src.virt.addr; in __ecb_crypt()
116 dst64 = (u64 *) walk.dst.virt.addr; in __ecb_crypt()
120 err = blkcipher_walk_done(desc, &walk, nbytes); in __ecb_crypt()
153 struct blkcipher_walk walk; in cbc_encrypt() local
162 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_encrypt()
163 err = blkcipher_walk_virt(desc, &walk); in cbc_encrypt()
168 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
175 src64 = (const u64 *)walk.src.virt.addr; in cbc_encrypt()
176 dst64 = (u64 *) walk.dst.virt.addr; in cbc_encrypt()
178 (u64 *) walk.iv); in cbc_encrypt()
181 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_encrypt()
192 struct blkcipher_walk walk; in cbc_decrypt() local
201 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_decrypt()
202 err = blkcipher_walk_virt(desc, &walk); in cbc_decrypt()
207 while ((nbytes = walk.nbytes)) { in cbc_decrypt()
214 src64 = (const u64 *)walk.src.virt.addr; in cbc_decrypt()
215 dst64 = (u64 *) walk.dst.virt.addr; in cbc_decrypt()
217 (u64 *) walk.iv); in cbc_decrypt()
220 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_decrypt()