Lines Matching refs:__iter
88 #define __for_each_sgt_daddr(__dp, __iter, __sgt, __step) \ argument
89 for ((__iter) = __sgt_iter((__sgt)->sgl, true); \
90 ((__dp) = (__iter).dma + (__iter).curr), (__iter).sgp; \
91 (((__iter).curr += (__step)) >= (__iter).max) ? \
92 (__iter) = __sgt_iter(__sg_next((__iter).sgp), true), 0 : 0)
100 #define for_each_sgt_page(__pp, __iter, __sgt) \ argument
101 for ((__iter) = __sgt_iter((__sgt)->sgl, false); \
102 ((__pp) = (__iter).pfn == 0 ? NULL : \
103 pfn_to_page((__iter).pfn + ((__iter).curr >> PAGE_SHIFT))); \
104 (((__iter).curr += PAGE_SIZE) >= (__iter).max) ? \
105 (__iter) = __sgt_iter(__sg_next((__iter).sgp), false), 0 : 0)