Lines Matching refs:sg_pos
107 int sg_pos; member
175 if (host->sg_pos == host->sg_len) in tifm_sd_transfer_data()
178 cnt = sg[host->sg_pos].length - host->block_pos; in tifm_sd_transfer_data()
181 host->sg_pos++; in tifm_sd_transfer_data()
182 if (host->sg_pos == host->sg_len) { in tifm_sd_transfer_data()
191 cnt = sg[host->sg_pos].length; in tifm_sd_transfer_data()
193 off = sg[host->sg_pos].offset + host->block_pos; in tifm_sd_transfer_data()
195 pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT); in tifm_sd_transfer_data()
234 cnt = sg[host->sg_pos].length - host->block_pos; in tifm_sd_bounce_block()
237 host->sg_pos++; in tifm_sd_bounce_block()
238 if (host->sg_pos == host->sg_len) in tifm_sd_bounce_block()
240 cnt = sg[host->sg_pos].length; in tifm_sd_bounce_block()
242 off = sg[host->sg_pos].offset + host->block_pos; in tifm_sd_bounce_block()
244 pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT); in tifm_sd_bounce_block()
271 if (host->sg_pos == host->sg_len) in tifm_sd_set_dma_data()
279 if (host->sg_pos == host->sg_len) in tifm_sd_set_dma_data()
283 dma_len = sg_dma_len(&r_data->sg[host->sg_pos]) - host->block_pos; in tifm_sd_set_dma_data()
286 host->sg_pos++; in tifm_sd_set_dma_data()
287 if (host->sg_pos == host->sg_len) in tifm_sd_set_dma_data()
289 dma_len = sg_dma_len(&r_data->sg[host->sg_pos]); in tifm_sd_set_dma_data()
303 sg = &r_data->sg[host->sg_pos]; in tifm_sd_set_dma_data()
643 host->sg_pos = 0; in tifm_sd_request()