/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sunrpc/auth_gss/ |
H A D | gss_krb5_crypto.c | 61 struct scatterlist sg[1]; local 78 sg_set_buf(sg, out, length); 80 ret = crypto_blkcipher_encrypt_iv(&desc, sg, sg, length); 97 struct scatterlist sg[1]; local 113 sg_set_buf(sg, out, length); 115 ret = crypto_blkcipher_decrypt_iv(&desc, sg, sg, length); 124 checksummer(struct scatterlist *sg, void *data) argument 128 return crypto_hash_update(desc, sg, s 137 struct scatterlist sg[1]; local 179 encryptor(struct scatterlist *sg, void *data) argument 266 decryptor(struct scatterlist *sg, void *data) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/crypto/ |
H A D | scatterwalk.c | 42 void scatterwalk_start(struct scatter_walk *walk, struct scatterlist *sg) argument 44 walk->sg = sg; 46 BUG_ON(!sg->length); 48 walk->offset = sg->offset; 65 page = walk->sg->page + ((walk->offset - 1) >> PAGE_SHIFT); 72 if (walk->offset >= walk->sg->offset + walk->sg->length) 73 scatterwalk_start(walk, sg_next(walk->sg));
|
H A D | digest.c | 35 struct scatterlist *sg, unsigned int nbytes) 44 struct page *pg = sg->page; 45 unsigned int offset = sg->offset; 46 unsigned int l = sg->length; 80 sg = sg_next(sg); 87 struct scatterlist *sg, unsigned int nbytes) 91 return update2(desc, sg, nbytes); 129 struct scatterlist *sg, unsigned int nbytes, u8 *out) 135 update2(desc, sg, nbyte 34 update2(struct hash_desc *desc, struct scatterlist *sg, unsigned int nbytes) argument 86 update(struct hash_desc *desc, struct scatterlist *sg, unsigned int nbytes) argument 128 digest(struct hash_desc *desc, struct scatterlist *sg, unsigned int nbytes, u8 *out) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sparc/mm/ |
H A D | iommu.c | 234 static void iommu_get_scsi_sgl_noflush(struct scatterlist *sg, int sz, struct sbus_bus *sbus) argument 240 n = (sg->length + sg->offset + PAGE_SIZE-1) >> PAGE_SHIFT; 241 sg->dvma_address = iommu_get_one(sg->page, n, sbus) + sg->offset; 242 sg->dvma_length = (__u32) sg->length; 243 sg++; 247 static void iommu_get_scsi_sgl_gflush(struct scatterlist *sg, in argument 261 iommu_get_scsi_sgl_pflush(struct scatterlist *sg, int sz, struct sbus_bus *sbus) argument 313 iommu_release_scsi_sgl(struct scatterlist *sg, int sz, struct sbus_bus *sbus) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ia64/sn/pci/ |
H A D | pci_dma.c | 19 #define SG_ENT_VIRT_ADDRESS(sg) (page_address((sg)->page) + (sg)->offset) 215 * @sg: scatterlist to unmap 221 void sn_dma_unmap_sg(struct device *dev, struct scatterlist *sg, argument 230 for (i = 0; i < nhwentries; i++, sg++) { 231 provider->dma_unmap(pdev, sg->dma_address, direction); 232 sg->dma_address = (dma_addr_t) NULL; 233 sg->dma_length = 0; 241 * @sg 247 sn_dma_map_sg(struct device *dev, struct scatterlist *sg, int nhwentries, int direction) argument 299 sn_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, int direction) argument 306 sn_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, int direction) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sh/ |
H A D | dma-mapping.h | 81 static inline int dma_map_sg(struct device *dev, struct scatterlist *sg, argument 88 dma_cache_sync(dev, page_address(sg[i].page) + sg[i].offset, 89 sg[i].length, dir); 91 sg[i].dma_address = page_to_phys(sg[i].page) + sg[i].offset; 97 #define dma_unmap_sg(dev, sg, nents, dir) do { } while (0) 134 static inline void dma_sync_sg(struct device *dev, struct scatterlist *sg, argument 141 dma_cache_sync(dev, page_address(sg[ 163 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument 170 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sh64/ |
H A D | dma-mapping.h | 63 static inline int dma_map_sg(struct device *dev, struct scatterlist *sg, argument 70 dma_cache_sync(dev, page_address(sg[i].page) + sg[i].offset, 71 sg[i].length, dir); 73 sg[i].dma_address = page_to_phys(sg[i].page) + sg[i].offset; 79 #define dma_unmap_sg(dev, sg, nents, dir) do { } while (0) 116 static inline void dma_sync_sg(struct device *dev, struct scatterlist *sg, argument 123 dma_cache_sync(dev, page_address(sg[ 144 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument 151 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument [all...] |
H A D | pci.h | 82 * You should only work with the number of sg entries pci_map_sg 83 * returns, or alternatively stop on the first sg_dma_len(sg) which 86 #define sg_dma_address(sg) ((sg)->dma_address) 87 #define sg_dma_len(sg) ((sg)->length)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm/ |
H A D | dma-mapping.h | 239 * @sg: list of buffers 260 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument 265 for (i = 0; i < nents; i++, sg++) { 268 sg->dma_address = page_to_dma(dev, sg->page) + sg->offset; 269 virt = page_address(sg->page) + sg->offset; 272 consistent_sync(virt, sg->length, dir); 284 * @sg 294 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir) argument 359 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir) argument 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/drivers/infiniband/hw/ipath/ |
H A D | ipath_dma.c | 99 static int ipath_map_sg(struct ib_device *dev, struct scatterlist *sg, int nents, argument 109 addr = (u64) page_address(sg[i].page); 120 struct scatterlist *sg, int nents, 126 static u64 ipath_sg_dma_address(struct ib_device *dev, struct scatterlist *sg) argument 128 u64 addr = (u64) page_address(sg->page); 131 addr += sg->offset; 136 struct scatterlist *sg) 138 return sg->length; 119 ipath_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument 135 ipath_sg_dma_len(struct ib_device *dev, struct scatterlist *sg) argument
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/ulp/iser/ |
H A D | iser_memory.c | 71 /* dma_unmap_single/sg later */ 128 /* copy the unaligned sg the buffer which is used for RDMA */ 129 struct scatterlist *sg = (struct scatterlist *)data->buf; local 134 from = kmap_atomic(sg[i].page, KM_USER0); 136 from + sg[i].offset, 137 sg[i].length); 139 p += sg[i].length; 181 struct scatterlist *sg; local 186 /* copy back read RDMA to unaligned sg */ 189 sg 229 struct scatterlist *sg = (struct scatterlist *)data->buf; local 289 struct scatterlist *sg; local 327 struct scatterlist *sg = (struct scatterlist *)data->buf; local 424 struct scatterlist *sg; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sparc64/kernel/ |
H A D | iommu_common.h | 32 * any time you make changes to the sg code below, run it for a while 38 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/include/asm-frv/ |
H A D | dma-mapping.h | 22 * You should only work with the number of sg entries pci_map_sg 23 * returns, or alternatively stop on the first sg_dma_len(sg) which 26 #define sg_dma_address(sg) ((sg)->dma_address) 27 #define sg_dma_len(sg) ((sg)->length) 70 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, 79 void dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, argument 126 void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, argument 132 void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/m68k/kernel/ |
H A D | dma.c | 87 void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nents, argument 92 for (i = 0; i < nents; sg++, i++) 93 dma_sync_single_for_device(dev, sg->dma_address, sg->length, dir); 118 int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument 123 for (i = 0; i < nents; sg++, i++) { 124 sg->dma_address = page_to_phys(sg->page) + sg->offset; 125 dma_sync_single_for_device(dev, sg [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mmc/card/ |
H A D | queue.h | 16 struct scatterlist *sg; member in struct:mmc_queue
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-x86_64/ |
H A D | swiotlb.h | 29 struct scatterlist *sg, int nelems, 32 struct scatterlist *sg, int nelems, 34 extern int swiotlb_map_sg(struct device *hwdev, struct scatterlist *sg, 36 extern void swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg,
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/mach-imx/ |
H A D | dma.c | 44 * Functions prepares DMA controller for next sg data chunk transfer. 63 if (!imxdma->sg) { 64 pr_debug("imxdma%d: no sg data\n", dma_ch); 69 if ((imxdma->sgbc >= imxdma->sg->length) || !imxdma->resbytes) { 71 pr_debug("imxdma%d: sg transfer limit reached\n", 74 imxdma->sg = NULL; 78 imxdma->sg++; 82 nextcount = imxdma->sg->length - imxdma->sgbc; 83 nextaddr = imxdma->sg->dma_address + imxdma->sgbc; 94 pr_debug("imxdma%d: next sg chun 110 imx_dma_setup_sg_base(imx_dmach_t dma_ch, struct scatterlist *sg, unsigned int sgcount) argument 224 imx_dma_setup_sg(imx_dmach_t dma_ch, struct scatterlist *sg, unsigned int sgcount, unsigned int dma_length, unsigned int dev_addr, dmamode_t dmamode) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-powerpc/ |
H A D | dma-mapping.h | 59 int (*map_sg)(struct device *dev, struct scatterlist *sg, 61 void (*unmap_sg)(struct device *dev, struct scatterlist *sg, 164 static inline int dma_map_sg(struct device *dev, struct scatterlist *sg, argument 170 return dma_ops->map_sg(dev, sg, nents, direction); 173 static inline void dma_unmap_sg(struct device *dev, struct scatterlist *sg, argument 180 dma_ops->unmap_sg(dev, sg, nhwentries, direction); 272 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument 279 for (i = 0; i < nents; i++, sg++) { 280 BUG_ON(!sg->page); 281 __dma_sync_page(sg 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/include/asm-i386/ |
H A D | dma-mapping.h | 38 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument 44 WARN_ON(nents == 0 || sg[0].length == 0); 47 BUG_ON(!sg[i].page); 49 sg[i].dma_address = page_to_phys(sg[i].page) + sg[i].offset; 73 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, argument 108 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, argument 114 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, argument
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/alpha/kernel/ |
H A D | pci-noop.c | 136 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 183 BUG_ON(!sg[i].page); 184 va = page_address(sg[i].page) + sg[i].offset; 185 sg_dma_address(sg + i) = (dma_addr_t)virt_to_bus(va); 186 sg_dma_len(sg + i) = sg[i].length;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/lib/ |
H A D | swiotlb.c | 38 #define SG_ENT_VIRT_ADDRESS(sg) (page_address((sg)->page) + (sg)->offset) 39 #define SG_ENT_PHYS_ADDRESS(sg) virt_to_bus(SG_ENT_VIRT_ADDRESS(sg)) 671 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sg, int nelems, argument 680 for (i = 0; i < nelems; i++, sg++) { 681 addr = SG_ENT_VIRT_ADDRESS(sg); 684 void *map = map_single(hwdev, addr, sg->length, dir); 688 swiotlb_full(hwdev, sg 706 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nelems, int dir) argument 729 swiotlb_sync_sg(struct device *hwdev, struct scatterlist *sg, int nelems, int dir, int target) argument 745 swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, int nelems, int dir) argument 752 swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg, int nelems, int dir) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/mach-rpc/ |
H A D | dma.c | 39 static void iomd_get_next_sg(struct scatterlist *sg, dma_t *dma) argument 43 if (dma->sg) { 44 sg->dma_address = dma->sg->dma_address; 45 offset = sg->dma_address & ~PAGE_MASK; 47 end = offset + dma->sg->length; 55 sg->length = end - TRANSFER_SIZE; 57 dma->sg->length -= end - offset; 58 dma->sg->dma_address += end - offset; 60 if (dma->sg [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/storage/ |
H A D | protocol.c | 186 struct scatterlist *sg = local 196 struct page *page = sg->page + 197 ((sg->offset + *offset) >> PAGE_SHIFT); 199 (sg->offset + *offset) & (PAGE_SIZE-1); 200 unsigned int sglen = sg->length - *offset; 212 ++sg;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/aacraid/ |
H A D | commctrl.c | 543 if (user_srbcmd->sg.count > ARRAY_SIZE(sg_list)) { 544 dprintk((KERN_DEBUG"aacraid: too many sg entries %d\n", 545 le32_to_cpu(srbcmd->sg.count))); 550 ((user_srbcmd->sg.count & 0xff) * sizeof(struct sgentry)); 551 actual_fibsize64 = actual_fibsize + (user_srbcmd->sg.count & 0xff) * 557 "user_srbcmd->sg.count=%d aac_srb=%lu sgentry=%lu;%lu " 559 actual_fibsize, actual_fibsize64, user_srbcmd->sg.count, 565 if ((data_dir == DMA_NONE) && user_srbcmd->sg.count) { 572 struct user_sgmap64* upsg = (struct user_sgmap64*)&user_srbcmd->sg; 573 struct sgmap64* psg = (struct sgmap64*)&srbcmd->sg; [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/kernel/ |
H A D | dma_64.c | 157 static int dma_direct_map_sg(struct device *dev, struct scatterlist *sg, argument 162 for (i = 0; i < nents; i++, sg++) { 163 sg->dma_address = (page_to_phys(sg->page) + sg->offset) | 165 sg->dma_length = sg->length; 171 static void dma_direct_unmap_sg(struct device *dev, struct scatterlist *sg, argument
|