Lines Matching refs:out_sg
17 struct scatterlist *out_sg; member
80 struct scatterlist *in_sg, *out_sg; in sg_split_phys() local
85 out_sg = split->out_sg; in sg_split_phys()
86 for (j = 0; j < split->nents; j++, out_sg++) { in sg_split_phys()
87 *out_sg = *in_sg; in sg_split_phys()
89 out_sg->offset += split->skip_sg0; in sg_split_phys()
90 out_sg->length -= split->skip_sg0; in sg_split_phys()
92 out_sg->offset = 0; in sg_split_phys()
94 sg_dma_address(out_sg) = 0; in sg_split_phys()
95 sg_dma_len(out_sg) = 0; in sg_split_phys()
98 out_sg[-1].length = split->length_last_sg; in sg_split_phys()
99 sg_mark_end(out_sg - 1); in sg_split_phys()
106 struct scatterlist *in_sg, *out_sg; in sg_split_mapped() local
111 out_sg = split->out_sg; in sg_split_mapped()
112 for (j = 0; j < split->nents; j++, out_sg++) { in sg_split_mapped()
113 sg_dma_address(out_sg) = sg_dma_address(in_sg); in sg_split_mapped()
114 sg_dma_len(out_sg) = sg_dma_len(in_sg); in sg_split_mapped()
116 sg_dma_address(out_sg) += split->skip_sg0; in sg_split_mapped()
117 sg_dma_len(out_sg) -= split->skip_sg0; in sg_split_mapped()
121 sg_dma_len(--out_sg) = split->length_last_sg; in sg_split_mapped()
168 splitters[i].out_sg = kmalloc_array(splitters[i].nents, in sg_split()
171 if (!splitters[i].out_sg) in sg_split()
188 out[i] = splitters[i].out_sg; in sg_split()
198 kfree(splitters[i].out_sg); in sg_split()