Lines Matching defs:sg_pos
105 int sg_pos;
173 if (host->sg_pos == host->sg_len)
176 cnt = sg[host->sg_pos].length - host->block_pos;
179 host->sg_pos++;
180 if (host->sg_pos == host->sg_len) {
189 cnt = sg[host->sg_pos].length;
191 off = sg[host->sg_pos].offset + host->block_pos;
193 pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT);
232 cnt = sg[host->sg_pos].length - host->block_pos;
235 host->sg_pos++;
236 if (host->sg_pos == host->sg_len)
238 cnt = sg[host->sg_pos].length;
240 off = sg[host->sg_pos].offset + host->block_pos;
242 pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT);
268 if (host->sg_pos == host->sg_len)
274 if (host->sg_pos == host->sg_len)
278 dma_len = sg_dma_len(&r_data->sg[host->sg_pos]) - host->block_pos;
281 host->sg_pos++;
282 if (host->sg_pos == host->sg_len)
284 dma_len = sg_dma_len(&r_data->sg[host->sg_pos]);
298 sg = &r_data->sg[host->sg_pos];
634 host->sg_pos = 0;