Lines Matching refs:sg
993 struct scatterlist *sg;
1007 sg = sglist;
1009 while (offset && offset >= sg_dma_len(sg)) {
1010 offset -= sg_dma_len(sg);
1011 sg = sg_next(sg);
1013 if (bpl <= sg_dma_len(sg) - offset) {
1017 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset);
1024 (sg_dma_len(sg) - offset));
1025 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset);
1027 todo -= (sg_dma_len(sg) - offset);
1029 sg = sg_next(sg);
1030 while (todo > sg_dma_len(sg)) {
1032 sg_dma_len(sg));
1033 *(rp++) = cpu_to_le32(sg_dma_address(sg));
1035 todo -= sg_dma_len(sg);
1036 sg = sg_next(sg);
1039 *(rp++) = cpu_to_le32(sg_dma_address(sg));
1104 struct scatterlist *sg;
1112 sg = sglist;
1114 while (offset && offset >= sg_dma_len(sg)) {
1115 offset -= sg_dma_len(sg);
1116 sg = sg_next(sg);
1124 if (bpl <= sg_dma_len(sg) - offset) {
1128 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset);
1135 (sg_dma_len(sg) - offset));
1136 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset);
1138 todo -= (sg_dma_len(sg) - offset);
1140 sg = sg_next(sg);
1141 while (todo > sg_dma_len(sg)) {
1143 sg_dma_len(sg));
1144 *(rp++) = cpu_to_le32(sg_dma_address(sg));
1146 todo -= sg_dma_len(sg);
1147 sg = sg_next(sg);
1150 *(rp++) = cpu_to_le32(sg_dma_address(sg));