Lines Matching refs:sg_pos
105 int sg_pos; member
173 if (host->sg_pos == host->sg_len) in tifm_sd_transfer_data()
176 cnt = sg[host->sg_pos].length - host->block_pos; in tifm_sd_transfer_data()
179 host->sg_pos++; in tifm_sd_transfer_data()
180 if (host->sg_pos == host->sg_len) { in tifm_sd_transfer_data()
189 cnt = sg[host->sg_pos].length; in tifm_sd_transfer_data()
191 off = sg[host->sg_pos].offset + host->block_pos; in tifm_sd_transfer_data()
193 pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT); in tifm_sd_transfer_data()
232 cnt = sg[host->sg_pos].length - host->block_pos; in tifm_sd_bounce_block()
235 host->sg_pos++; in tifm_sd_bounce_block()
236 if (host->sg_pos == host->sg_len) in tifm_sd_bounce_block()
238 cnt = sg[host->sg_pos].length; in tifm_sd_bounce_block()
240 off = sg[host->sg_pos].offset + host->block_pos; in tifm_sd_bounce_block()
242 pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT); in tifm_sd_bounce_block()
269 if (host->sg_pos == host->sg_len) in tifm_sd_set_dma_data()
277 if (host->sg_pos == host->sg_len) in tifm_sd_set_dma_data()
281 dma_len = sg_dma_len(&r_data->sg[host->sg_pos]) - host->block_pos; in tifm_sd_set_dma_data()
284 host->sg_pos++; in tifm_sd_set_dma_data()
285 if (host->sg_pos == host->sg_len) in tifm_sd_set_dma_data()
287 dma_len = sg_dma_len(&r_data->sg[host->sg_pos]); in tifm_sd_set_dma_data()
301 sg = &r_data->sg[host->sg_pos]; in tifm_sd_set_dma_data()
642 host->sg_pos = 0; in tifm_sd_request()