Lines Matching refs:sglist
1416 static void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist,
1429 static int sba_map_sg_attrs(struct device *dev, struct scatterlist *sglist, in sba_map_sg_attrs() argument
1449 for_each_sg(sglist, sg, nents, filled) { in sba_map_sg_attrs()
1458 sglist->dma_length = sglist->length; in sba_map_sg_attrs()
1459 sglist->dma_address = sba_map_page(dev, sg_page(sglist), in sba_map_sg_attrs()
1460 sglist->offset, sglist->length, dir, attrs); in sba_map_sg_attrs()
1461 if (dma_mapping_error(dev, sglist->dma_address)) in sba_map_sg_attrs()
1470 sba_dump_sg(ioc, sglist, nents); in sba_map_sg_attrs()
1486 coalesced = sba_coalesce_chunks(ioc, dev, sglist, nents); in sba_map_sg_attrs()
1488 sba_unmap_sg_attrs(dev, sglist, nents, dir, attrs); in sba_map_sg_attrs()
1500 filled = sba_fill_pdir(ioc, sglist, nents); in sba_map_sg_attrs()
1506 sba_dump_sg(ioc, sglist, nents); in sba_map_sg_attrs()
1528 static void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist, in sba_unmap_sg_attrs() argument
1538 __func__, nents, sba_sg_address(sglist), sglist->length); in sba_unmap_sg_attrs()
1549 while (nents && sglist->dma_length) { in sba_unmap_sg_attrs()
1551 sba_unmap_page(dev, sglist->dma_address, sglist->dma_length, in sba_unmap_sg_attrs()
1553 sglist = sg_next(sglist); in sba_unmap_sg_attrs()