Searched refs:piter (Results 1 – 1 of 1) sorted by relevance
397 void __sg_page_iter_start(struct sg_page_iter *piter, in __sg_page_iter_start() argument401 piter->__pg_advance = 0; in __sg_page_iter_start()402 piter->__nents = nents; in __sg_page_iter_start()404 piter->sg = sglist; in __sg_page_iter_start()405 piter->sg_pgoffset = pgoffset; in __sg_page_iter_start()414 bool __sg_page_iter_next(struct sg_page_iter *piter) in __sg_page_iter_next() argument416 if (!piter->__nents || !piter->sg) in __sg_page_iter_next()419 piter->sg_pgoffset += piter->__pg_advance; in __sg_page_iter_next()420 piter->__pg_advance = 1; in __sg_page_iter_next()422 while (piter->sg_pgoffset >= sg_page_count(piter->sg)) { in __sg_page_iter_next()[all …]