Lines Matching refs:nents

387 sba_dump_sg( struct ioc *ioc, struct scatterlist *startsg, int nents)  in sba_dump_sg()  argument
389 while (nents-- > 0) { in sba_dump_sg()
390 printk(KERN_DEBUG " %d : DMA %08lx/%05x CPU %p\n", nents, in sba_dump_sg()
398 sba_check_sg( struct ioc *ioc, struct scatterlist *startsg, int nents) in sba_check_sg() argument
401 int the_nents = nents; in sba_check_sg()
405 sba_dump_sg(NULL, startsg, nents); in sba_check_sg()
1208 int nents) in sba_fill_pdir() argument
1215 while (nents-- > 0) { in sba_fill_pdir()
1222 nents, startsg->dma_address, cnt, in sba_fill_pdir()
1226 nents, startsg->dma_address, cnt, in sba_fill_pdir()
1303 int nents) in sba_coalesce_chunks() argument
1314 while (nents > 0) { in sba_coalesce_chunks()
1332 while (--nents > 0) { in sba_coalesce_chunks()
1425 int nents, enum dma_data_direction dir,
1438 int nents, enum dma_data_direction dir, in sba_map_sg_attrs() argument
1450 DBG_RUN_SG("%s() START %d entries\n", __func__, nents); in sba_map_sg_attrs()
1457 for_each_sg(sglist, sg, nents, filled) { in sba_map_sg_attrs()
1465 if (nents == 1) { in sba_map_sg_attrs()
1478 sba_dump_sg(ioc, sglist, nents); in sba_map_sg_attrs()
1494 coalesced = sba_coalesce_chunks(ioc, dev, sglist, nents); in sba_map_sg_attrs()
1496 sba_unmap_sg_attrs(dev, sglist, nents, dir, attrs); in sba_map_sg_attrs()
1508 filled = sba_fill_pdir(ioc, sglist, nents); in sba_map_sg_attrs()
1514 sba_dump_sg(ioc, sglist, nents); in sba_map_sg_attrs()
1537 int nents, enum dma_data_direction dir, in sba_unmap_sg_attrs() argument
1546 __func__, nents, sba_sg_address(sglist), sglist->length); in sba_unmap_sg_attrs()
1557 while (nents && sglist->dma_length) { in sba_unmap_sg_attrs()
1562 nents--; in sba_unmap_sg_attrs()
1565 DBG_RUN_SG("%s() DONE (nents %d)\n", __func__, nents); in sba_unmap_sg_attrs()