Lines Matching refs:startsg

395 sba_dump_sg( struct ioc *ioc, struct scatterlist *startsg, int nents)  in sba_dump_sg()  argument
399 startsg->dma_address, startsg->dma_length, in sba_dump_sg()
400 sba_sg_address(startsg)); in sba_dump_sg()
401 startsg = sg_next(startsg); in sba_dump_sg()
406 sba_check_sg( struct ioc *ioc, struct scatterlist *startsg, int nents) in sba_check_sg() argument
408 struct scatterlist *the_sg = startsg; in sba_check_sg()
413 sba_dump_sg(NULL, startsg, nents); in sba_check_sg()
1228 struct scatterlist *startsg, in sba_fill_pdir() argument
1231 struct scatterlist *dma_sg = startsg; /* pointer to current DMA */ in sba_fill_pdir()
1237 int cnt = startsg->dma_length; in sba_fill_pdir()
1238 startsg->dma_length = 0; in sba_fill_pdir()
1243 nents, startsg->dma_address, cnt, in sba_fill_pdir()
1244 sba_sg_address(startsg)); in sba_fill_pdir()
1247 nents, startsg->dma_address, cnt, in sba_fill_pdir()
1248 sba_sg_address(startsg)); in sba_fill_pdir()
1253 if (startsg->dma_address & PIDE_FLAG) { in sba_fill_pdir()
1254 u32 pide = startsg->dma_address & ~PIDE_FLAG; in sba_fill_pdir()
1256 startsg->dma_address = 0; in sba_fill_pdir()
1268 unsigned long vaddr = (unsigned long) sba_sg_address(startsg); in sba_fill_pdir()
1285 startsg = sg_next(startsg); in sba_fill_pdir()
1323 struct scatterlist *startsg, in sba_coalesce_chunks() argument
1336 unsigned long vaddr = (unsigned long) sba_sg_address(startsg); in sba_coalesce_chunks()
1341 dma_sg = vcontig_sg = startsg; in sba_coalesce_chunks()
1342 dma_len = vcontig_len = vcontig_end = startsg->length; in sba_coalesce_chunks()
1347 startsg->dma_address = startsg->dma_length = 0; in sba_coalesce_chunks()
1356 startsg = sg_next(startsg); in sba_coalesce_chunks()
1359 startsg->dma_address = startsg->dma_length = 0; in sba_coalesce_chunks()
1362 ASSERT(startsg->length <= DMA_CHUNK_SIZE); in sba_coalesce_chunks()
1369 if (((dma_len + dma_offset + startsg->length + ~iovp_mask) & iovp_mask) in sba_coalesce_chunks()
1373 if (dma_len + startsg->length > max_seg_size) in sba_coalesce_chunks()
1381 vaddr = (unsigned long) sba_sg_address(startsg); in sba_coalesce_chunks()
1384 vcontig_len += startsg->length; in sba_coalesce_chunks()
1385 vcontig_end += startsg->length; in sba_coalesce_chunks()
1386 dma_len += startsg->length; in sba_coalesce_chunks()
1407 vcontig_sg = startsg; in sba_coalesce_chunks()
1408 vcontig_len = startsg->length; in sba_coalesce_chunks()