awalk 385 drivers/crypto/axis/artpec6_crypto.c static void artpec6_crypto_walk_init(struct artpec6_crypto_walk *awalk, awalk 388 drivers/crypto/axis/artpec6_crypto.c awalk->sg = sg; awalk 389 drivers/crypto/axis/artpec6_crypto.c awalk->offset = 0; awalk 392 drivers/crypto/axis/artpec6_crypto.c static size_t artpec6_crypto_walk_advance(struct artpec6_crypto_walk *awalk, awalk 395 drivers/crypto/axis/artpec6_crypto.c while (nbytes && awalk->sg) { awalk 398 drivers/crypto/axis/artpec6_crypto.c WARN_ON(awalk->offset > awalk->sg->length); awalk 400 drivers/crypto/axis/artpec6_crypto.c piece = min(nbytes, (size_t)awalk->sg->length - awalk->offset); awalk 402 drivers/crypto/axis/artpec6_crypto.c awalk->offset += piece; awalk 403 drivers/crypto/axis/artpec6_crypto.c if (awalk->offset == awalk->sg->length) { awalk 404 drivers/crypto/axis/artpec6_crypto.c awalk->sg = sg_next(awalk->sg); awalk 405 drivers/crypto/axis/artpec6_crypto.c awalk->offset = 0; awalk 414 drivers/crypto/axis/artpec6_crypto.c artpec6_crypto_walk_chunklen(const struct artpec6_crypto_walk *awalk) awalk 416 drivers/crypto/axis/artpec6_crypto.c WARN_ON(awalk->sg->length == awalk->offset); awalk 418 drivers/crypto/axis/artpec6_crypto.c return awalk->sg->length - awalk->offset; awalk 422 drivers/crypto/axis/artpec6_crypto.c artpec6_crypto_walk_chunk_phys(const struct artpec6_crypto_walk *awalk) awalk 424 drivers/crypto/axis/artpec6_crypto.c return sg_phys(awalk->sg) + awalk->offset;