Lines Matching refs:walk
184 struct skcipher_walk walk; in ppc_ecb_crypt() local
188 err = skcipher_walk_virt(&walk, req, false); in ppc_ecb_crypt()
190 while ((nbytes = walk.nbytes) != 0) { in ppc_ecb_crypt()
196 ppc_encrypt_ecb(walk.dst.virt.addr, walk.src.virt.addr, in ppc_ecb_crypt()
199 ppc_decrypt_ecb(walk.dst.virt.addr, walk.src.virt.addr, in ppc_ecb_crypt()
203 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in ppc_ecb_crypt()
223 struct skcipher_walk walk; in ppc_cbc_crypt() local
227 err = skcipher_walk_virt(&walk, req, false); in ppc_cbc_crypt()
229 while ((nbytes = walk.nbytes) != 0) { in ppc_cbc_crypt()
235 ppc_encrypt_cbc(walk.dst.virt.addr, walk.src.virt.addr, in ppc_cbc_crypt()
237 walk.iv); in ppc_cbc_crypt()
239 ppc_decrypt_cbc(walk.dst.virt.addr, walk.src.virt.addr, in ppc_cbc_crypt()
241 walk.iv); in ppc_cbc_crypt()
244 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in ppc_cbc_crypt()
264 struct skcipher_walk walk; in ppc_ctr_crypt() local
268 err = skcipher_walk_virt(&walk, req, false); in ppc_ctr_crypt()
270 while ((nbytes = walk.nbytes) != 0) { in ppc_ctr_crypt()
272 if (nbytes < walk.total) in ppc_ctr_crypt()
276 ppc_crypt_ctr(walk.dst.virt.addr, walk.src.virt.addr, in ppc_ctr_crypt()
277 ctx->key_enc, ctx->rounds, nbytes, walk.iv); in ppc_ctr_crypt()
280 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in ppc_ctr_crypt()
290 struct skcipher_walk walk; in ppc_xts_crypt() local
295 err = skcipher_walk_virt(&walk, req, false); in ppc_xts_crypt()
298 while ((nbytes = walk.nbytes) != 0) { in ppc_xts_crypt()
304 ppc_encrypt_xts(walk.dst.virt.addr, walk.src.virt.addr, in ppc_xts_crypt()
306 walk.iv, twk); in ppc_xts_crypt()
308 ppc_decrypt_xts(walk.dst.virt.addr, walk.src.virt.addr, in ppc_xts_crypt()
310 walk.iv, twk); in ppc_xts_crypt()
314 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in ppc_xts_crypt()