Home
last modified time | relevance | path

Searched refs:awalk (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/crypto/axis/
Dartpec6_crypto.c389 static void artpec6_crypto_walk_init(struct artpec6_crypto_walk *awalk, in artpec6_crypto_walk_init() argument
392 awalk->sg = sg; in artpec6_crypto_walk_init()
393 awalk->offset = 0; in artpec6_crypto_walk_init()
396 static size_t artpec6_crypto_walk_advance(struct artpec6_crypto_walk *awalk, in artpec6_crypto_walk_advance() argument
399 while (nbytes && awalk->sg) { in artpec6_crypto_walk_advance()
402 WARN_ON(awalk->offset > awalk->sg->length); in artpec6_crypto_walk_advance()
404 piece = min(nbytes, (size_t)awalk->sg->length - awalk->offset); in artpec6_crypto_walk_advance()
406 awalk->offset += piece; in artpec6_crypto_walk_advance()
407 if (awalk->offset == awalk->sg->length) { in artpec6_crypto_walk_advance()
408 awalk->sg = sg_next(awalk->sg); in artpec6_crypto_walk_advance()
[all …]