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

1234

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sparc64/kernel/
H A Diommu_common.c15 static int verify_lengths(struct scatterlist *sg, int nents, int npages) argument
21 for (i = 0; i < nents; i++)
25 for (i = 0; i < nents && sg[i].dma_length; i++)
35 for (i = 0; i < nents && sg[i].dma_length; i++) {
58 static int verify_one_map(struct scatterlist *dma_sg, struct scatterlist **__sg, int nents, iopte_t **__iopte) argument
78 nents = -1;
88 nents = -1;
117 if (--nents <= 0)
126 nents = -1;
137 return nents;
140 verify_maps(struct scatterlist *sg, int nents, iopte_t *iopte) argument
172 verify_sglist(struct scatterlist *sg, int nents, iopte_t *iopte, int npages) argument
195 prepare_sg(struct scatterlist *sg, int nents) argument
[all...]
H A Diommu_common.h38 extern void verify_sglist(struct scatterlist *sg, int nents, iopte_t *iopte, int npages);
48 extern unsigned long prepare_sg(struct scatterlist *sg, int nents);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/parisc/
H A Diommu-helpers.h5 * @nents: The number of entries in the scatter/gather list.
12 iommu_fill_pdir(struct ioc *ioc, struct scatterlist *startsg, int nents, argument
27 while (nents-- > 0) {
31 DBG_RUN_SG(" %d : %08lx/%05x %08lx/%05x\n", nents,
98 iommu_coalesce_chunks(struct ioc *ioc, struct scatterlist *startsg, int nents, argument
105 while (nents > 0) {
122 while(--nents > 0) {
H A Dccio-rm-dma.c114 static int ccio_map_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) argument
116 int tmp = nents;
119 while (nents) {
122 nents--;
130 static void ccio_unmap_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-alpha/
H A Ddma-mapping.h21 #define dma_map_sg(dev, sg, nents, dir) \
22 pci_map_sg(alpha_gendev_to_pci(dev), sg, nents, dir)
23 #define dma_unmap_sg(dev, sg, nents, dir) \
24 pci_unmap_sg(alpha_gendev_to_pci(dev), sg, nents, dir)
35 int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
46 #define dma_unmap_sg(dev, sg, nents, dir) ((void)0)
61 #define dma_sync_sg_for_cpu(dev, sg, nents, dir) ((void)0)
62 #define dma_sync_sg_for_device(dev, sg, nents, dir) ((void)0)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/x86_64/kernel/
H A Dpci-nommu.c52 * used, at most nents.
58 int nents, int direction)
62 for (i = 0; i < nents; i++ ) {
70 return nents;
78 int nents, int dir)
57 nommu_map_sg(struct device *hwdev, struct scatterlist *sg, int nents, int direction) argument
77 nommu_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, int dir) argument
H A Dpci-gart.c278 void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, int dir) argument
282 for (i = 0; i < nents; i++) {
292 int nents, int dir)
300 for (i = 0; i < nents; i++ ) {
308 nents = 0;
317 return nents;
376 int gart_map_sg(struct device *dev, struct scatterlist *sg, int nents, int dir) argument
384 if (nents == 0)
392 for (i = 0; i < nents; i++) {
423 if (out < nents)
291 dma_map_sg_nonforce(struct device *dev, struct scatterlist *sg, int nents, int dir) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-blackfin/
H A Dpci.h87 * used, at most nents.
93 int nents, int direction)
97 return nents;
105 int nents, int direction)
92 pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) argument
104 pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) argument
H A Ddma-mapping.h52 * used, at most nents.
57 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-avr32/
H A Ddma-mapping.h193 * @nents: number of buffers to map
206 * used, at most nents.
212 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument
217 for (i = 0; i < nents; i++) {
225 return nents;
232 * @nents: number of buffers to map
299 * @nents: number of buffers to map
310 int nents, enum dma_data_direction direction)
314 for (i = 0; i < nents; i++) {
322 int nents, enu
309 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
321 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ia64/hp/common/
H A Dhwsw_iommu.c120 hwsw_map_sg (struct device *dev, struct scatterlist *sglist, int nents, int dir) argument
123 return swiotlb_map_sg(dev, sglist, nents, dir);
125 return hwiommu_map_sg(dev, sglist, nents, dir);
129 hwsw_unmap_sg (struct device *dev, struct scatterlist *sglist, int nents, int dir) argument
132 return swiotlb_unmap_sg(dev, sglist, nents, dir);
134 return hwiommu_unmap_sg(dev, sglist, nents, dir);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/frv/mb93090-mb00/
H A Dpci-dma.c71 * used, at most nents.
76 int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument
88 for (i = 0; i < nents; i++) {
102 return nents;
H A Dpci-dma-nommu.c135 * used, at most nents.
140 int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument
145 for (i=0; i<nents; i++)
152 return nents;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/ipath/
H A Dipath_dma.c99 static int ipath_map_sg(struct ib_device *dev, struct scatterlist *sg, int nents, argument
104 int ret = nents;
108 for (i = 0; i < nents; i++) {
120 struct scatterlist *sg, int nents,
119 ipath_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/core/
H A Dumem.c50 chunk->nents, DMA_BIDIRECTIONAL);
51 for (i = 0; i < chunk->nents; ++i) {
147 chunk->nents = min_t(int, ret, IB_UMEM_MAX_PAGE_CHUNK);
148 for (i = 0; i < chunk->nents; ++i) {
156 chunk->nents,
159 for (i = 0; i < chunk->nents; ++i)
167 ret -= chunk->nents;
168 off += chunk->nents;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-x86_64/
H A Dswiotlb.h35 int nents, int direction);
37 int nents, int direction);
H A Ddma-mapping.h46 int nents, int direction);
48 struct scatterlist *sg, int nents,
167 dma_map_sg(struct device *hwdev, struct scatterlist *sg, int nents, int direction) argument
170 return dma_ops->map_sg(hwdev, sg, nents, direction);
174 dma_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents, argument
178 dma_ops->unmap_sg(hwdev, sg, nents, direction);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm/
H A Ddma-mapping.h240 * @nents: number of buffers to map
253 * used, at most nents.
260 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument
265 for (i = 0; i < nents; i++, sg++) {
275 return nents;
285 * @nents: number of buffers to map
294 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, argument
348 * @nents: number of buffers to map
359 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents, argument
364 for (i = 0; i < nents;
372 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/m68k/kernel/
H A Ddma.c87 void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents, argument
92 for (i = 0; i < nents; sg++, i++)
118 int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument
123 for (i = 0; i < nents; sg++, i++) {
127 return nents;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/alpha/kernel/
H A Dpci-noop.c136 pci_map_sg(struct pci_dev *pdev, struct scatterlist *sg, int nents, argument
143 pci_unmap_sg(struct pci_dev *pdev, struct scatterlist *sg, int nents, argument
175 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument
180 for (i = 0; i < nents; i++ ) {
189 return nents;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-powerpc/
H A Ddma-mapping.h60 int nents, enum dma_data_direction direction);
62 int nents, enum dma_data_direction direction);
165 int nents, enum dma_data_direction direction)
170 return dma_ops->map_sg(dev, sg, nents, direction);
272 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument
279 for (i = 0; i < nents; i++, sg++) {
285 return nents;
289 #define dma_unmap_sg(dev, sg, nents, dir) ((void)0)
310 struct scatterlist *sg, int nents,
317 for (i = 0; i < nents;
164 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
309 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
321 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/kernel/
H A Ddma_64.c158 int nents, enum dma_data_direction direction)
162 for (i = 0; i < nents; i++, sg++) {
168 return nents;
172 int nents, enum dma_data_direction direction)
157 dma_direct_map_sg(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
171 dma_direct_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/rdma/
H A Dib_umem.h56 int nents; member in struct:ib_umem_chunk
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-generic/
H A Dpci-dma-compat.h61 int nents, int direction)
63 return dma_map_sg(hwdev == NULL ? NULL : &hwdev->dev, sg, nents, (enum dma_data_direction)direction);
68 int nents, int direction)
70 dma_unmap_sg(hwdev == NULL ? NULL : &hwdev->dev, sg, nents, (enum dma_data_direction)direction);
60 pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) argument
67 pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int direction) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-i386/
H A Ddma-mapping.h38 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument
44 WARN_ON(nents == 0 || sg[0].length == 0);
46 for (i = 0; i < nents; i++ ) {
53 return nents;

Completed in 112 milliseconds

1234