Searched refs:piter (Results 1 – 1 of 1) sorted by relevance
436 void __sg_page_iter_start(struct sg_page_iter *piter, in __sg_page_iter_start() argument440 piter->__pg_advance = 0; in __sg_page_iter_start()441 piter->__nents = nents; in __sg_page_iter_start()443 piter->sg = sglist; in __sg_page_iter_start()444 piter->sg_pgoffset = pgoffset; in __sg_page_iter_start()453 bool __sg_page_iter_next(struct sg_page_iter *piter) in __sg_page_iter_next() argument455 if (!piter->__nents || !piter->sg) in __sg_page_iter_next()458 piter->sg_pgoffset += piter->__pg_advance; in __sg_page_iter_next()459 piter->__pg_advance = 1; in __sg_page_iter_next()461 while (piter->sg_pgoffset >= sg_page_count(piter->sg)) { in __sg_page_iter_next()[all …]