Searched refs:miter (Results 1 – 3 of 3) sorted by relevance
/lib/ |
D | scatterlist.c | 800 void sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl, in sg_miter_start() argument 803 memset(miter, 0, sizeof(struct sg_mapping_iter)); in sg_miter_start() 805 __sg_page_iter_start(&miter->piter, sgl, nents, 0); in sg_miter_start() 807 miter->__flags = flags; in sg_miter_start() 811 static bool sg_miter_get_next_page(struct sg_mapping_iter *miter) in sg_miter_get_next_page() argument 813 if (!miter->__remaining) { in sg_miter_get_next_page() 816 if (!__sg_page_iter_next(&miter->piter)) in sg_miter_get_next_page() 819 sg = miter->piter.sg; in sg_miter_get_next_page() 821 miter->__offset = miter->piter.sg_pgoffset ? 0 : sg->offset; in sg_miter_get_next_page() 822 miter->piter.sg_pgoffset += miter->__offset >> PAGE_SHIFT; in sg_miter_get_next_page() [all …]
|
/lib/crypto/mpi/ |
D | mpicoder.c | 366 struct sg_mapping_iter miter; in mpi_write_to_sgl() local 380 sg_miter_start(&miter, sgl, nents, SG_MITER_ATOMIC | SG_MITER_TO_SG); in mpi_write_to_sgl() 381 sg_miter_next(&miter); in mpi_write_to_sgl() 382 buf_len = miter.length; in mpi_write_to_sgl() 383 p2 = miter.addr; in mpi_write_to_sgl() 393 sg_miter_next(&miter); in mpi_write_to_sgl() 394 buf_len = miter.length; in mpi_write_to_sgl() 395 p2 = miter.addr; in mpi_write_to_sgl() 412 sg_miter_next(&miter); in mpi_write_to_sgl() 413 buf_len = miter.length; in mpi_write_to_sgl() [all …]
|
/lib/crypto/ |
D | chacha20poly1305.c | 218 struct sg_mapping_iter miter; in chacha20poly1305_crypt_sg_inplace() local 256 sg_miter_start(&miter, src, sg_nents(src), flags); in chacha20poly1305_crypt_sg_inplace() 258 for (sl = src_len; sl > 0 && sg_miter_next(&miter); sl -= miter.length) { in chacha20poly1305_crypt_sg_inplace() 259 u8 *addr = miter.addr; in chacha20poly1305_crypt_sg_inplace() 260 size_t length = min_t(size_t, sl, miter.length); in chacha20poly1305_crypt_sg_inplace() 293 poly1305_update(&poly1305_state, miter.addr, in chacha20poly1305_crypt_sg_inplace() 294 min_t(size_t, sl, miter.length)); in chacha20poly1305_crypt_sg_inplace() 307 miter.addr + miter.length + sl); in chacha20poly1305_crypt_sg_inplace() 312 miter.addr + miter.length + sl, in chacha20poly1305_crypt_sg_inplace() 317 sg_miter_stop(&miter); in chacha20poly1305_crypt_sg_inplace()
|