Lines Matching refs:walk
798 struct artpec6_crypto_walk *walk, size_t size) in setup_bounce_buffer_in() argument
808 bbuf->sg = walk->sg; in setup_bounce_buffer_in()
809 bbuf->offset = walk->offset; in setup_bounce_buffer_in()
817 pr_debug("BOUNCE %zu offset %zu\n", size, walk->offset); in setup_bounce_buffer_in()
824 struct artpec6_crypto_walk *walk, in artpec6_crypto_setup_sg_descrs_in() argument
831 while (walk->sg && count) { in artpec6_crypto_setup_sg_descrs_in()
832 chunk = min(count, artpec6_crypto_walk_chunklen(walk)); in artpec6_crypto_setup_sg_descrs_in()
833 addr = artpec6_crypto_walk_chunk_phys(walk); in artpec6_crypto_setup_sg_descrs_in()
846 ret = setup_bounce_buffer_in(common, walk, chunk); in artpec6_crypto_setup_sg_descrs_in()
849 ret = setup_bounce_buffer_in(common, walk, chunk); in artpec6_crypto_setup_sg_descrs_in()
858 sg_page(walk->sg), in artpec6_crypto_setup_sg_descrs_in()
859 walk->sg->offset + in artpec6_crypto_setup_sg_descrs_in()
860 walk->offset, in artpec6_crypto_setup_sg_descrs_in()
876 artpec6_crypto_walk_advance(walk, chunk); in artpec6_crypto_setup_sg_descrs_in()
887 struct artpec6_crypto_walk *walk, in artpec6_crypto_setup_sg_descrs_out() argument
894 while (walk->sg && count) { in artpec6_crypto_setup_sg_descrs_out()
895 chunk = min(count, artpec6_crypto_walk_chunklen(walk)); in artpec6_crypto_setup_sg_descrs_out()
896 addr = artpec6_crypto_walk_chunk_phys(walk); in artpec6_crypto_setup_sg_descrs_out()
905 sg_pcopy_to_buffer(walk->sg, 1, buf, chunk, in artpec6_crypto_setup_sg_descrs_out()
906 walk->offset); in artpec6_crypto_setup_sg_descrs_out()
915 sg_page(walk->sg), in artpec6_crypto_setup_sg_descrs_out()
916 walk->sg->offset + in artpec6_crypto_setup_sg_descrs_out()
917 walk->offset, in artpec6_crypto_setup_sg_descrs_out()
933 artpec6_crypto_walk_advance(walk, chunk); in artpec6_crypto_setup_sg_descrs_out()
1403 struct artpec6_crypto_walk walk; in artpec6_crypto_prepare_hash() local
1427 artpec6_crypto_walk_init(&walk, areq->src); in artpec6_crypto_prepare_hash()
1429 error = artpec6_crypto_setup_sg_descrs_out(common, &walk, in artpec6_crypto_prepare_hash()
1435 if (walk.sg) { in artpec6_crypto_prepare_hash()
1663 struct artpec6_crypto_walk walk; in artpec6_crypto_prepare_crypto() local
1784 artpec6_crypto_walk_init(&walk, areq->src); in artpec6_crypto_prepare_crypto()
1785 ret = artpec6_crypto_setup_sg_descrs_out(common, &walk, areq->cryptlen); in artpec6_crypto_prepare_crypto()
1790 artpec6_crypto_walk_init(&walk, areq->dst); in artpec6_crypto_prepare_crypto()
1791 ret = artpec6_crypto_setup_sg_descrs_in(common, &walk, areq->cryptlen); in artpec6_crypto_prepare_crypto()
1925 struct artpec6_crypto_walk walk; in artpec6_crypto_prepare_aead() local
1927 artpec6_crypto_walk_init(&walk, areq->src); in artpec6_crypto_prepare_aead()
1931 ret = artpec6_crypto_setup_sg_descrs_out(common, &walk, count); in artpec6_crypto_prepare_aead()
1948 ret = artpec6_crypto_setup_sg_descrs_out(common, &walk, count); in artpec6_crypto_prepare_aead()
1967 struct artpec6_crypto_walk walk; in artpec6_crypto_prepare_aead() local
1973 artpec6_crypto_walk_init(&walk, areq->dst); in artpec6_crypto_prepare_aead()
1976 count = artpec6_crypto_walk_advance(&walk, areq->assoclen); in artpec6_crypto_prepare_aead()
1981 ret = artpec6_crypto_setup_sg_descrs_in(common, &walk, count); in artpec6_crypto_prepare_aead()
2013 ret = artpec6_crypto_setup_sg_descrs_in(common, &walk, in artpec6_crypto_prepare_aead()