Lines Matching refs:walk
70 struct blkcipher_walk walk; in chacha20_simd() local
78 blkcipher_walk_init(&walk, dst, src, nbytes); in chacha20_simd()
79 err = blkcipher_walk_virt_block(desc, &walk, CHACHA20_BLOCK_SIZE); in chacha20_simd()
82 crypto_chacha20_init(state, crypto_blkcipher_ctx(desc->tfm), walk.iv); in chacha20_simd()
86 while (walk.nbytes >= CHACHA20_BLOCK_SIZE) { in chacha20_simd()
87 chacha20_dosimd(state, walk.dst.virt.addr, walk.src.virt.addr, in chacha20_simd()
88 rounddown(walk.nbytes, CHACHA20_BLOCK_SIZE)); in chacha20_simd()
89 err = blkcipher_walk_done(desc, &walk, in chacha20_simd()
90 walk.nbytes % CHACHA20_BLOCK_SIZE); in chacha20_simd()
93 if (walk.nbytes) { in chacha20_simd()
94 chacha20_dosimd(state, walk.dst.virt.addr, walk.src.virt.addr, in chacha20_simd()
95 walk.nbytes); in chacha20_simd()
96 err = blkcipher_walk_done(desc, &walk, 0); in chacha20_simd()