Lines Matching refs:nbytes

33 void scatterwalk_skip(struct scatter_walk *walk, unsigned int nbytes)  in scatterwalk_skip()  argument
37 nbytes += walk->offset - sg->offset; in scatterwalk_skip()
39 while (nbytes > sg->length) { in scatterwalk_skip()
40 nbytes -= sg->length; in scatterwalk_skip()
44 walk->offset = sg->offset + nbytes; in scatterwalk_skip()
49 unsigned int nbytes) in memcpy_from_scatterwalk() argument
54 to_copy = scatterwalk_next(walk, nbytes); in memcpy_from_scatterwalk()
58 nbytes -= to_copy; in memcpy_from_scatterwalk()
59 } while (nbytes); in memcpy_from_scatterwalk()
64 unsigned int nbytes) in memcpy_to_scatterwalk() argument
69 to_copy = scatterwalk_next(walk, nbytes); in memcpy_to_scatterwalk()
73 nbytes -= to_copy; in memcpy_to_scatterwalk()
74 } while (nbytes); in memcpy_to_scatterwalk()
79 unsigned int start, unsigned int nbytes) in memcpy_from_sglist() argument
83 if (unlikely(nbytes == 0)) /* in case sg == NULL */ in memcpy_from_sglist()
87 memcpy_from_scatterwalk(buf, &walk, nbytes); in memcpy_from_sglist()
92 const void *buf, unsigned int nbytes) in memcpy_to_sglist() argument
96 if (unlikely(nbytes == 0)) /* in case sg == NULL */ in memcpy_to_sglist()
100 memcpy_to_scatterwalk(&walk, buf, nbytes); in memcpy_to_sglist()
105 unsigned int nbytes) in memcpy_sglist() argument
109 if (unlikely(nbytes == 0)) /* in case sg == NULL */ in memcpy_sglist()
112 walk.total = nbytes; in memcpy_sglist()
121 walk.nbytes); in memcpy_sglist()
123 } while (walk.nbytes); in memcpy_sglist()
174 walk->nbytes = bsize; in skcipher_next_slow()
185 memcpy(tmp, walk->in.addr, walk->nbytes); in skcipher_next_copy()
234 walk->nbytes = n; in skcipher_walk_next()
313 unsigned int n = walk->nbytes; /* num bytes processed this step */ in skcipher_walk_done()
356 walk->nbytes = 0; in skcipher_walk_done()