Lines Matching refs:sg
46 struct scatterlist *sg; in tw68_risc_field() local
62 sg = sglist; in tw68_risc_field()
65 while (offset && offset >= sg_dma_len(sg)) { in tw68_risc_field()
66 offset -= sg_dma_len(sg); in tw68_risc_field()
67 sg = sg_next(sg); in tw68_risc_field()
69 if (bpl <= sg_dma_len(sg) - offset) { in tw68_risc_field()
73 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field()
84 done = (sg_dma_len(sg) - offset); in tw68_risc_field()
88 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field()
90 sg = sg_next(sg); in tw68_risc_field()
92 while (todo > sg_dma_len(sg)) { in tw68_risc_field()
95 sg_dma_len(sg)); in tw68_risc_field()
96 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in tw68_risc_field()
97 todo -= sg_dma_len(sg); in tw68_risc_field()
98 sg = sg_next(sg); in tw68_risc_field()
99 done += sg_dma_len(sg); in tw68_risc_field()
106 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in tw68_risc_field()