Lines Matching refs:nbytes
109 if (!w->nbytes) in crypt()
113 avail = w->nbytes; in crypt()
135 if (!w->nbytes) in crypt()
138 avail = w->nbytes; in crypt()
148 struct scatterlist *src, unsigned int nbytes) in encrypt() argument
153 blkcipher_walk_init(&w, dst, src, nbytes); in encrypt()
159 struct scatterlist *src, unsigned int nbytes) in decrypt() argument
164 blkcipher_walk_init(&w, dst, src, nbytes); in decrypt()
170 struct scatterlist *ssrc, unsigned int nbytes, in xts_crypt() argument
183 blkcipher_walk_init(&walk, sdst, ssrc, nbytes); in xts_crypt()
186 nbytes = walk.nbytes; in xts_crypt()
187 if (!nbytes) in xts_crypt()
190 nblocks = min(nbytes / bsize, max_blks); in xts_crypt()
221 nbytes -= nblocks * bsize; in xts_crypt()
222 nblocks = min(nbytes / bsize, max_blks); in xts_crypt()
227 err = blkcipher_walk_done(desc, &walk, nbytes); in xts_crypt()
228 nbytes = walk.nbytes; in xts_crypt()
229 if (!nbytes) in xts_crypt()
232 nblocks = min(nbytes / bsize, max_blks); in xts_crypt()