Searched refs:miter (Results 1 – 2 of 2) sorted by relevance
/lib/ |
D | scatterlist.c | 674 void sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl, in sg_miter_start() argument 677 memset(miter, 0, sizeof(struct sg_mapping_iter)); in sg_miter_start() 679 __sg_page_iter_start(&miter->piter, sgl, nents, 0); in sg_miter_start() 681 miter->__flags = flags; in sg_miter_start() 685 static bool sg_miter_get_next_page(struct sg_mapping_iter *miter) in sg_miter_get_next_page() argument 687 if (!miter->__remaining) { in sg_miter_get_next_page() 690 if (!__sg_page_iter_next(&miter->piter)) in sg_miter_get_next_page() 693 sg = miter->piter.sg; in sg_miter_get_next_page() 695 miter->__offset = miter->piter.sg_pgoffset ? 0 : sg->offset; in sg_miter_get_next_page() 696 miter->piter.sg_pgoffset += miter->__offset >> PAGE_SHIFT; in sg_miter_get_next_page() [all …]
|
/lib/mpi/ |
D | mpicoder.c | 259 struct sg_mapping_iter miter; in mpi_write_to_sgl() local 273 sg_miter_start(&miter, sgl, nents, SG_MITER_ATOMIC | SG_MITER_TO_SG); in mpi_write_to_sgl() 274 sg_miter_next(&miter); in mpi_write_to_sgl() 275 buf_len = miter.length; in mpi_write_to_sgl() 276 p2 = miter.addr; in mpi_write_to_sgl() 286 sg_miter_next(&miter); in mpi_write_to_sgl() 287 buf_len = miter.length; in mpi_write_to_sgl() 288 p2 = miter.addr; in mpi_write_to_sgl() 305 sg_miter_next(&miter); in mpi_write_to_sgl() 306 buf_len = miter.length; in mpi_write_to_sgl() [all …]
|