Searched refs:nents (Results 1 - 25 of 111) sorted by relevance

12345

/drivers/crypto/caam/
H A Dsg_sw_sec4.h89 unsigned int nents, enum dma_data_direction dir,
94 for (i = 0; i < nents; i++) {
99 dma_map_sg(dev, sg, nents, dir);
101 return nents;
105 unsigned int nents, enum dma_data_direction dir,
110 for (i = 0; i < nents; i++) {
115 dma_unmap_sg(dev, sg, nents, dir);
117 return nents;
88 dma_map_sg_chained(struct device *dev, struct scatterlist *sg, unsigned int nents, enum dma_data_direction dir, bool chained) argument
104 dma_unmap_sg_chained(struct device *dev, struct scatterlist *sg, unsigned int nents, enum dma_data_direction dir, bool chained) argument
/drivers/crypto/qce/
H A Ddma.c57 int qce_mapsg(struct device *dev, struct scatterlist *sg, int nents, argument
70 err = dma_map_sg(dev, sg, nents, dir);
75 return nents;
78 void qce_unmapsg(struct device *dev, struct scatterlist *sg, int nents, argument
87 dma_unmap_sg(dev, sg, nents, dir);
93 int nents = 0; local
99 nents++;
106 return nents;
135 int nents, unsigned long flags,
142 if (!sg || !nents)
134 qce_dma_prep_sg(struct dma_chan *chan, struct scatterlist *sg, int nents, unsigned long flags, enum dma_transfer_direction dir, dma_async_tx_callback cb, void *cb_param) argument
[all...]
H A Ddma.h53 void qce_unmapsg(struct device *dev, struct scatterlist *sg, int nents,
55 int qce_mapsg(struct device *dev, struct scatterlist *sg, int nents,
/drivers/parisc/
H A Dccio-rm-dma.c115 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 Diommu-helpers.h7 * @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
/drivers/spi/
H A Dspi-pxa2xx-dma.c26 int i, nents, len = drv_data->len; local
44 nents = DIV_ROUND_UP(len, SZ_2K);
45 if (nents != sgt->nents) {
49 ret = sg_alloc_table(sgt, nents, GFP_ATOMIC);
55 for_each_sg(sgt->sgl, sg, sgt->nents, i) {
67 nents = dma_map_sg(dmadev, sgt->sgl, sgt->nents, dir);
68 if (!nents)
71 return nents;
165 int nents, ret; local
[all...]
H A Dspi-ep93xx.c443 int i, ret, nents; local
483 nents = DIV_ROUND_UP(len, PAGE_SIZE);
484 if (nents != sgt->nents) {
487 ret = sg_alloc_table(sgt, nents, GFP_KERNEL);
493 for_each_sg(sgt->sgl, sg, sgt->nents, i) {
513 nents = dma_map_sg(chan->device->dev, sgt->sgl, sgt->nents, dir);
514 if (!nents)
517 txd = dmaengine_prep_slave_sg(chan, sgt->sgl, nents, di
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_dma.c102 int nents, enum dma_data_direction direction)
107 int ret = nents;
111 for_each_sg(sgl, sg, nents, i) {
127 struct scatterlist *sg, int nents,
101 ipath_map_sg(struct ib_device *dev, struct scatterlist *sgl, int nents, enum dma_data_direction direction) argument
126 ipath_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
/drivers/infiniband/hw/qib/
H A Dqib_dma.c95 int nents, enum dma_data_direction direction)
100 int ret = nents;
104 for_each_sg(sgl, sg, nents, i) {
120 struct scatterlist *sg, int nents,
94 qib_map_sg(struct ib_device *dev, struct scatterlist *sgl, int nents, enum dma_data_direction direction) argument
119 qib_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
/drivers/usb/storage/
H A Dprotocol.c141 unsigned int nents = scsi_sg_count(srb); local
144 nents = sg_nents(sg);
148 sg_miter_start(&miter, sg, nents, dir == FROM_XFER_BUF ?
/drivers/mmc/core/
H A Dsdio_ops.c129 unsigned int nents, left_size, i; local
160 nents = (left_size - 1) / seg_size + 1;
161 if (nents > 1) {
162 if (sg_alloc_table(&sgtable, nents, GFP_KERNEL))
166 data.sg_len = nents;
185 if (nents > 1)
/drivers/gpu/drm/exynos/
H A Dexynos_drm_dmabuf.c59 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents,
78 int nents, ret; local
109 nents = dma_map_sg(attach->dev, sgt->sgl, sgt->orig_nents, dir);
110 if (!nents) {
249 if (sgt->nents == 1) {
250 /* always physically continuous memory if sgt->nents is 1. */
H A Dexynos_drm_gem.c99 for_each_sg(buf->sgt->sgl, sgl, buf->sgt->nents, i) {
482 int nents; local
486 nents = dma_map_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir);
487 if (!nents) {
490 return nents;
501 dma_unmap_sg(drm_dev->dev, sgt->sgl, sgt->nents, dir);
/drivers/gpu/drm/i915/
H A Di915_gem_dmabuf.c60 ret = sg_alloc_table(st, obj->pages->nents, GFP_KERNEL);
66 for (i = 0; i < obj->pages->nents; i++) {
72 if (!dma_map_sg(attachment->dev, st->sgl, st->nents, dir)) {
100 dma_unmap_sg(attachment->dev, sg->sgl, sg->nents, dir);
139 for_each_sg_page(obj->pages->sgl, &sg_iter, obj->pages->nents, 0)
/drivers/video/adf/
H A Dadf_memblock.c31 int nents, ret; local
43 nents = dma_map_sg(attach->dev, table->sgl, 1, direction);
44 if (!nents) {
/drivers/dma/
H A Dcoh901318.h124 * @nents: number of entries in sg
136 struct scatterlist *sg, unsigned int nents,
H A Dcoh901318_lli.c233 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/infiniband/hw/usnic/
H A Dusnic_uiom.h63 int nents; member in struct:usnic_uiom_chunk
H A Dusnic_uiom.c88 for_each_sg(chunk->page_list, sg, chunk->nents, i) {
168 chunk->nents = min_t(int, ret, USNIC_UIOM_PAGE_CHUNK);
169 sg_init_table(chunk->page_list, chunk->nents);
170 for_each_sg(chunk->page_list, sg, chunk->nents, i) {
177 cur_base += chunk->nents * PAGE_SIZE;
178 ret -= chunk->nents;
179 off += chunk->nents;
266 for (i = 0; i < chunk->nents; i++, va += PAGE_SIZE) {
317 if (i == chunk->nents) {
/drivers/staging/android/ion/
H A Dion_heap.c48 for_each_sg(table->sgl, sg, table->nents, i) {
81 for_each_sg(table->sgl, sg, table->nents, i) {
118 static int ion_heap_sglist_zero(struct scatterlist *sgl, unsigned int nents, argument
126 for_each_sg_page(sgl, &piter, nents, 0) {
151 return ion_heap_sglist_zero(table->sgl, table->nents, pgprot);
/drivers/gpu/drm/msm/
H A Dmsm_iommu.c59 for_each_sg(sgt->sgl, sg, sgt->nents, i) {
94 for_each_sg(sgt->sgl, sg, sgt->nents, i) {
/drivers/gpu/drm/
H A Ddrm_cache.c117 for_each_sg_page(st->sgl, &sg_iter, st->nents, 0)
/drivers/misc/
H A Dtifm_core.c298 int tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, argument
301 return pci_map_sg(to_pci_dev(sock->dev.parent), sg, nents, direction);
305 void tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, argument
308 pci_unmap_sg(to_pci_dev(sock->dev.parent), sg, nents, direction);
/drivers/media/pci/saa7134/
H A Dsaa7134-vbi.c135 ret = dma_map_sg(&dev->pci->dev, dma->sgl, dma->nents, DMA_FROM_DEVICE);
138 return saa7134_pgtable_build(dev->pci, &dmaq->pt, dma->sgl, dma->nents,
179 dma_unmap_sg(&dev->pci->dev, dma->sgl, dma->nents, DMA_FROM_DEVICE);
/drivers/scsi/libfc/
H A Dfc_libfc.c106 * @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

Completed in 424 milliseconds

12345