/drivers/parisc/ |
H A D | ccio-rm-dma.c | 115 static int ccio_map_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) argument 117 int tmp = nents; 120 while (nents) { 123 nents--; 131 static void ccio_unmap_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) argument 134 while (nents) { 136 nents--;
|
H A D | iommu-helpers.h | 7 * @nents: The number of entries in the scatter/gather list. 14 iommu_fill_pdir(struct ioc *ioc, struct scatterlist *startsg, int nents, argument 29 while (nents-- > 0) { 33 DBG_RUN_SG(" %d : %08lx/%05x %08lx/%05x\n", nents, 101 struct scatterlist *startsg, int nents, 109 while (nents > 0) { 126 while(--nents > 0) { 100 iommu_coalesce_chunks(struct ioc *ioc, struct device *dev, struct scatterlist *startsg, int nents, int (*iommu_alloc_range)(struct ioc *, struct device *, size_t)) argument
|
H A D | ccio-dma.c | 895 * @nents: The number of entries in the scatter/gather list. 901 ccio_map_sg(struct device *dev, struct scatterlist *sglist, int nents, argument 914 DBG_RUN_SG("%s() START %d entries\n", __func__, nents); 917 if (nents == 1) { 925 for(i = 0; i < nents; i++) 942 coalesced = iommu_coalesce_chunks(ioc, dev, sglist, nents, ccio_alloc_range); 952 filled = iommu_fill_pdir(ioc, sglist, nents, hint, ccio_io_pdir_entry); 972 * @nents: The number of entries in the scatter/gather list. 978 ccio_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, argument 987 __func__, nents, sg_virt_add [all...] |
H A D | sba_iommu.c | 269 * @nents: number of entries in SG list 274 sba_dump_sg( struct ioc *ioc, struct scatterlist *startsg, int nents) argument 276 while (nents-- > 0) { 278 nents, 929 * @nents: number of entries in list 935 sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents, argument 942 DBG_RUN_SG("%s() START %d entries\n", __func__, nents); 947 if (nents == 1) { 960 sba_dump_sg(ioc, sglist, nents); 977 coalesced = iommu_coalesce_chunks(ioc, dev, sglist, nents, sba_alloc_rang 1019 sba_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents, enum dma_data_direction direction) argument [all...] |
/drivers/infiniband/core/ |
H A D | umem.c | 57 chunk->nents, DMA_BIDIRECTIONAL); 58 for (i = 0; i < chunk->nents; ++i) { 174 chunk->nents = min_t(int, ret, IB_UMEM_MAX_PAGE_CHUNK); 175 sg_init_table(chunk->page_list, chunk->nents); 176 for (i = 0; i < chunk->nents; ++i) { 185 chunk->nents, 189 for (i = 0; i < chunk->nents; ++i) 197 ret -= chunk->nents; 198 off += chunk->nents;
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_dma.c | 102 int nents, enum dma_data_direction direction) 107 int ret = nents; 111 for_each_sg(sgl, sg, nents, i) { 123 struct scatterlist *sg, int nents, 101 ipath_map_sg(struct ib_device *dev, struct scatterlist *sgl, int nents, enum dma_data_direction direction) argument 122 ipath_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
|
H A D | ipath_mr.c | 207 n += chunk->nents; 228 for (i = 0; i < chunk->nents; i++) {
|
/drivers/infiniband/hw/qib/ |
H A D | qib_dma.c | 95 int nents, enum dma_data_direction direction) 100 int ret = nents; 104 for_each_sg(sgl, sg, nents, i) { 116 struct scatterlist *sg, int nents, 94 qib_map_sg(struct ib_device *dev, struct scatterlist *sgl, int nents, enum dma_data_direction direction) argument 115 qib_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
|
/drivers/dma/ |
H A D | coh901318_lli.h | 107 * @nents: number of entries in sg 119 struct scatterlist *sg, unsigned int nents,
|
H A D | coh901318_lli.c | 233 struct scatterlist *sgl, unsigned int nents, 258 for_each_sg(sgl, sg, nents, i) { 265 } else if (i == nents - 1) 231 coh901318_lli_fill_sg(struct coh901318_pool *pool, struct coh901318_lli *lli, struct scatterlist *sgl, unsigned int nents, dma_addr_t dev_addr, u32 ctrl_chained, u32 ctrl, u32 ctrl_last, enum dma_transfer_direction dir, u32 ctrl_irq_mask) argument
|
/drivers/misc/ |
H A D | tifm_core.c | 295 int tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, argument 298 return pci_map_sg(to_pci_dev(sock->dev.parent), sg, nents, direction); 302 void tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, argument 305 pci_unmap_sg(to_pci_dev(sock->dev.parent), sg, nents, direction);
|
/drivers/scsi/libfc/ |
H A D | fc_libfc.c | 106 * @nents: pointer to the remaining number of entries in the SG list. 113 u32 *nents, size_t *offset, 128 if (!(*nents)) 130 --(*nents); 111 fc_copy_buffer_to_sglist(void *buf, size_t len, struct scatterlist *sg, u32 *nents, size_t *offset, u32 *crc) argument
|
H A D | fc_libfc.h | 136 u32 *nents, size_t *offset,
|
/drivers/spi/ |
H A D | spi-ep93xx.c | 559 int i, ret, nents; local 599 nents = DIV_ROUND_UP(len, PAGE_SIZE); 600 if (nents != sgt->nents) { 603 ret = sg_alloc_table(sgt, nents, GFP_KERNEL); 609 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 629 nents = dma_map_sg(chan->device->dev, sgt->sgl, sgt->nents, dir); 630 if (!nents) 633 txd = dmaengine_prep_slave_sg(chan, sgt->sgl, nents, di [all...] |
H A D | spi-pl022.c | 758 pl022->sgt_tx.nents, DMA_TO_DEVICE); 760 pl022->sgt_rx.nents, DMA_FROM_DEVICE); 785 pl022->sgt_rx.nents, 788 for_each_sg(pl022->sgt_rx.sgl, sg, pl022->sgt_rx.nents, i) { 798 for_each_sg(pl022->sgt_tx.sgl, sg, pl022->sgt_tx.nents, i) { 836 for_each_sg(sgtab->sgl, sg, sgtab->nents, i) { 857 for_each_sg(sgtab->sgl, sg, sgtab->nents, i) { 1012 pl022->sgt_rx.nents, DMA_FROM_DEVICE); 1017 pl022->sgt_tx.nents, DMA_TO_DEVICE); 1056 pl022->sgt_tx.nents, DMA_TO_DEVIC [all...] |
/drivers/iommu/ |
H A D | omap-iovmm.c | 34 if (!sgt || !sgt->nents) 49 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 178 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 382 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 422 for_each_sg(sgt->sgl, sg, sgt->nents, i) { 476 for_each_sg(sgt->sgl, sg, sgt->nents, i) {
|
/drivers/hsi/ |
H A D | hsi.c | 293 * @nents: Number of memory entries 296 * nents can be 0. This mainly makes sense for read transfer. 302 struct hsi_msg *hsi_alloc_msg(unsigned int nents, gfp_t flags) argument 311 if (!nents) 314 err = sg_alloc_table(&msg->sgt, nents, flags); 330 * fields set beforehand. If nents > 0 then the client has to initialize
|
/drivers/gpu/ion/ |
H A D | ion_system_heap.c | 204 dma_sync_sg_for_device(NULL, table->sgl, table->nents, 230 for_each_sg(table->sgl, sg, table->nents, i) 268 for_each_sg(table->sgl, sg, table->nents, i) { 297 for_each_sg(table->sgl, sg, table->nents, i) {
|
H A D | ion.c | 179 for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, 206 for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, i) 752 unsigned long pages = buffer->sg_table->nents; 781 for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, i) { 805 for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, i) { 1040 buffer->sg_table->nents, DMA_BIDIRECTIONAL);
|
/drivers/media/common/ |
H A D | saa7146_core.c | 194 pt->nents = pages; 195 slen = pci_map_sg(pci,pt->slist,pt->nents,PCI_DMA_FROMDEVICE); 205 pci_unmap_sg(pci, pt->slist, pt->nents, PCI_DMA_FROMDEVICE); 219 pci_unmap_sg(pci, pt->slist, pt->nents, PCI_DMA_FROMDEVICE);
|
/drivers/staging/rts5139/ |
H A D | rts51x_transport.c | 397 io->sg, io->nents); 473 unsigned int *offset, int nents, size_t length, gfp_t mem_flags) 487 || (nents <= 0)) 494 io->nents = nents; 505 * total nents */ 507 first_sg, nents); 509 io->entries = nents; 608 int nents, size_t length, gfp_t mem_flags) 610 return usb_sg_init(io, dev, pipe, period, sg, nents, lengt 606 rts51x_sg_init(struct usb_sg_request *io, struct usb_device *dev, unsigned pipe, unsigned period, struct scatterlist *sg, int nents, size_t length, gfp_t mem_flags) argument [all...] |
/drivers/scsi/ |
H A D | scsi_lib.c | 582 static inline unsigned int scsi_sgtable_index(unsigned short nents) argument 586 BUG_ON(nents > SCSI_MAX_SG_SEGMENTS); 588 if (nents <= 8) 591 index = get_count_order(nents) - 3; 596 static void scsi_sg_free(struct scatterlist *sgl, unsigned int nents) argument 600 sgp = scsi_sg_pools + scsi_sgtable_index(nents); 604 static struct scatterlist *scsi_sg_alloc(unsigned int nents, gfp_t gfp_mask) argument 608 sgp = scsi_sg_pools + scsi_sgtable_index(nents); 612 static int scsi_alloc_sgtable(struct scsi_data_buffer *sdb, int nents, argument 617 BUG_ON(!nents); [all...] |
/drivers/infiniband/hw/cxgb3/ |
H A D | cxio_dbg.c | 139 void cxio_dump_rqt(struct cxio_rdev *rdev, u32 hwtid, int nents) argument 142 int size = nents * 64;
|
/drivers/crypto/ |
H A D | picoxcell_crypto.c | 295 unsigned nents, mapped_ents; local 300 nents = sg_count(payload, nbytes); 301 mapped_ents = dma_map_sg(engine->dev, payload, nents, dir); 317 dma_unmap_sg(engine->dev, payload, nents, dir); 328 unsigned nents = sg_count(areq->src, areq->cryptlen); local 350 src_ents = dma_map_sg(engine->dev, areq->src, nents, 352 dst_ents = dma_map_sg(engine->dev, areq->dst, nents, 355 src_ents = dma_map_sg(engine->dev, areq->src, nents, 412 unsigned nents = sg_count(areq->src, areq->cryptlen); local 415 dma_unmap_sg(engine->dev, areq->src, nents, DMA_TO_DEVIC 435 unsigned nents = sg_count(payload, nbytes); local [all...] |
/drivers/block/ |
H A D | nvme.c | 304 int nents; /* Used in scatterlist */ member in struct:nvme_iod 377 dma_unmap_sg(&dev->pci_dev->dev, iod->sg, iod->nents, 499 iod->nents = nsegs; 501 if (dma_map_sg(dev, iod->sg, iod->nents, dma_dir) == 0) { 1027 int i, err, count, nents, offset; local 1058 iod->nents = count; 1061 nents = dma_map_sg(&dev->pci_dev->dev, sg, count, 1063 if (!nents) 1083 dma_unmap_sg(&dev->pci_dev->dev, iod->sg, iod->nents, 1086 for (i = 0; i < iod->nents; [all...] |