Lines Matching defs:sg
135 * allocate the sg table for an ABD.
154 #define abd_for_each_sg(abd, sg, n, i) \
155 for_each_sg(ABD_SCATTER(abd).abd_sgl, sg, n, i)
274 struct scatterlist *sg;
326 sg = table.sgl;
331 sg_set_page(sg, page, sg_size, 0);
335 sg = sg_next(sg);
395 struct scatterlist *sg = NULL;
411 abd_for_each_sg(abd, sg, nr_pages, i) {
418 sg_set_page(sg, page, PAGESIZE, 0);
446 struct scatterlist *sg = NULL;
462 abd_for_each_sg(abd, sg, nr_pages, i) {
463 page = sg_page(sg);
467 ASSERT3U(sg->length, <=, PAGE_SIZE << order);
482 struct scatterlist *sg = NULL;
513 abd_for_each_sg(abd_zero_scatter, sg, nr_pages, i) {
514 sg_set_page(sg, abd_zero_page, PAGESIZE, 0);
567 struct scatterlist *sg = NULL;
571 abd_for_each_sg(abd, sg, n, i) {
572 ASSERT3P(sg_page(sg), !=, NULL);
699 struct scatterlist *sg = abd->abd_u.abd_linear.abd_sgl;
703 zfs_kunmap(sg_page(sg));
711 ABD_SCATTER(abd).abd_sgl = sg;
798 struct scatterlist *sg = NULL;
814 abd_for_each_sg(sabd, sg, ABD_SCATTER(sabd).abd_nents, i) {
815 if (new_offset < sg->length)
817 new_offset -= sg->length;
820 ABD_SCATTER(abd).abd_sgl = sg;
1320 struct scatterlist *sg;
1325 sg = aiter.iter_sg;
1331 pg = nth_page(sg_page(sg), sgoff >> PAGE_SHIFT);