Home
last modified time | relevance | path

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

/openbmc/linux/drivers/crypto/axis/
H A Dartpec6_crypto.c386 static void artpec6_crypto_walk_init(struct artpec6_crypto_walk *awalk, in artpec6_crypto_walk_init() argument
389 awalk->sg = sg; in artpec6_crypto_walk_init()
390 awalk->offset = 0; in artpec6_crypto_walk_init()
393 static size_t artpec6_crypto_walk_advance(struct artpec6_crypto_walk *awalk, in artpec6_crypto_walk_advance() argument
396 while (nbytes && awalk->sg) { in artpec6_crypto_walk_advance()
399 WARN_ON(awalk->offset > awalk->sg->length); in artpec6_crypto_walk_advance()
401 piece = min(nbytes, (size_t)awalk->sg->length - awalk->offset); in artpec6_crypto_walk_advance()
403 awalk->offset += piece; in artpec6_crypto_walk_advance()
404 if (awalk->offset == awalk->sg->length) { in artpec6_crypto_walk_advance()
405 awalk->sg = sg_next(awalk->sg); in artpec6_crypto_walk_advance()
[all …]