/include/asm-generic/ |
H A D | scatterlist.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) 29 #define sg_dma_len(sg) ((sg)->dma_length) 31 #define sg_dma_len(sg) ((sg)->length)
|
H A D | pci-dma-compat.h | 65 pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, argument 68 return dma_map_sg(hwdev == NULL ? NULL : &hwdev->dev, sg, nents, (enum dma_data_direction)direction); 72 pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, argument 75 dma_unmap_sg(hwdev == NULL ? NULL : &hwdev->dev, sg, nents, (enum dma_data_direction)direction); 93 pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sg, argument 96 dma_sync_sg_for_cpu(hwdev == NULL ? NULL : &hwdev->dev, sg, nelems, (enum dma_data_direction)direction); 100 pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, argument 103 dma_sync_sg_for_device(hwdev == NULL ? NULL : &hwdev->dev, sg, nelems, (enum dma_data_direction)direction);
|
H A D | dma-mapping-common.h | 42 static inline int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, argument 50 for_each_sg(sg, s, nents, i) 53 ents = ops->map_sg(dev, sg, nents, dir, attrs); 54 debug_dma_map_sg(dev, sg, nents, ents, dir); 59 static inline void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, argument 66 debug_dma_unmap_sg(dev, sg, nents, dir); 68 ops->unmap_sg(dev, sg, nents, dir, attrs); 150 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, argument 157 ops->sync_sg_for_cpu(dev, sg, nelems, dir); 158 debug_dma_sync_sg_for_cpu(dev, sg, nelem 162 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument [all...] |
H A D | dma-mapping-broken.h | 47 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, 51 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, 72 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems,
|
/include/crypto/ |
H A D | scatterwalk.h | 36 static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg) argument 38 if (sg_is_last(sg)) 41 return (++sg)->length ? sg : sg_chain_ptr(sg); 45 struct scatterlist *sg, 49 head->length += sg->length; 50 sg = scatterwalk_sg_next(sg); 53 if (sg) 44 scatterwalk_crypto_chain(struct scatterlist *head, struct scatterlist *sg, int chain, int num) argument [all...] |
H A D | if_alg.h | 59 struct scatterlist sg[ALG_MAX_PAGES]; member in struct:af_alg_sgl
|
H A D | algapi.h | 77 struct scatterlist *sg; member in struct:scatter_walk 314 walk->in.sg = src; 315 walk->out.sg = dst; 324 walk->in.sg = src; 325 walk->out.sg = dst;
|
/include/linux/ |
H A D | scatterlist.h | 23 * information about the sg table as well. The two lower bits are reserved 26 * If bit 0 is set, then the page_link contains a pointer to the next sg 27 * table list. Otherwise the next entry is at sg + 1. 29 * If bit 1 is set, then this sg entry is the last element in a list. 39 * a valid sg entry, or whether it points to the start of a new scatterlist. 42 #define sg_is_chain(sg) ((sg)->page_link & 0x01) 43 #define sg_is_last(sg) ((sg)->page_link & 0x02) 44 #define sg_chain_ptr(sg) \ 57 sg_assign_page(struct scatterlist *sg, struct page *page) argument 87 sg_set_page(struct scatterlist *sg, struct page *page, unsigned int len, unsigned int offset) argument 95 sg_page(struct scatterlist *sg) argument 111 sg_set_buf(struct scatterlist *sg, const void *buf, unsigned int buflen) argument 165 sg_mark_end(struct scatterlist *sg) argument 185 sg_unmark_end(struct scatterlist *sg) argument 203 sg_phys(struct scatterlist *sg) argument 218 sg_virt(struct scatterlist *sg) argument 269 struct scatterlist *sg; /* sg holding the page */ member in struct:sg_page_iter [all...] |
H A D | dma-debug.h | 47 extern void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, 79 struct scatterlist *sg, 83 struct scatterlist *sg, 123 static inline void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, argument 173 struct scatterlist *sg, 179 struct scatterlist *sg, 172 debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, int direction) argument 178 debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, int direction) argument
|
H A D | swiotlb.h | 74 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sg, int nents, 78 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents, 95 swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, 103 swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg,
|
H A D | virtio.h | 25 * sg element. 38 struct scatterlist sg[], unsigned int num, 43 struct scatterlist sg[], unsigned int num,
|
H A D | tifm.h | 148 int tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, 150 void tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
|
H A D | dma-mapping.h | 37 int (*map_sg)(struct device *dev, struct scatterlist *sg, 41 struct scatterlist *sg, int nents, 51 struct scatterlist *sg, int nents, 54 struct scatterlist *sg, int nents,
|
H A D | memstick.h | 247 struct scatterlist sg; member in union:memstick_request::__anon498 323 const struct scatterlist *sg);
|
H A D | dmaengine.h | 712 struct scatterlist sg; local 713 sg_init_table(&sg, 1); 714 sg_dma_address(&sg) = buf; 715 sg_dma_len(&sg) = len; 717 return chan->device->device_prep_slave_sg(chan, &sg, 1,
|
/include/linux/platform_data/ |
H A D | dma-ste-dma40.h | 184 struct scatterlist sg; local 185 sg_init_table(&sg, 1); 186 sg.dma_address = addr; 187 sg.length = size; 189 return dmaengine_prep_slave_sg(chan, &sg, 1, direction, flags);
|
/include/xen/ |
H A D | swiotlb-xen.h | 42 xen_swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, 50 xen_swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg,
|
/include/linux/dma/ |
H A D | ipu-dma.h | 149 struct scatterlist *sg; /* scatterlist for this */ member in struct:idmac_tx_desc 163 struct scatterlist *sg[2]; /* scatterlist elements in buffer-0 and -1 */ member in struct:idmac_channel 166 spinlock_t lock; /* protects sg[0,1], queue */
|
/include/scsi/ |
H A D | scsi_cmnd.h | 158 extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count, 192 #define scsi_for_each_sg(cmd, sg, nseg, __i) \ 193 for_each_sg(scsi_sglist(cmd), sg, nseg, __i) 319 #define scsi_for_each_prot_sg(cmd, sg, nseg, __i) \ 320 for_each_sg(scsi_prot_sglist(cmd), sg, nseg, __i)
|
H A D | libiscsi_tcp.h | 47 struct scatterlist *sg; member in struct:iscsi_segment
|
/include/drm/ttm/ |
H A D | ttm_bo_api.h | 139 * @ttm_bo_type_sg: Buffer made from dmabuf sg table shared with another 255 struct sg_table *sg; member in struct:ttm_buffer_object 490 struct sg_table *sg,
|
/include/linux/mmc/ |
H A D | dw_mmc.h | 47 * @sg: Scatterlist entry currently being processed by PIO code, if any. 128 struct scatterlist *sg; member in struct:dw_mci
|
H A D | core.h | 124 struct scatterlist *sg; /* I/O scatter list */ member in struct:mmc_data
|
/include/rdma/ |
H A D | ib_verbs.h | 1408 struct scatterlist *sg, int nents, 1411 struct scatterlist *sg, int nents, 2195 * @sg: The array of scatter/gather entries 2200 struct scatterlist *sg, int nents, 2204 return dev->dma_ops->map_sg(dev, sg, nents, direction); 2205 return dma_map_sg(dev->dma_device, sg, nents, direction); 2211 * @sg: The array of scatter/gather entries 2216 struct scatterlist *sg, int nents, 2220 dev->dma_ops->unmap_sg(dev, sg, nents, direction); 2222 dma_unmap_sg(dev->dma_device, sg, nent 2199 ib_dma_map_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument 2215 ib_dma_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument 2225 ib_dma_map_sg_attrs(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction, struct dma_attrs *attrs) argument 2233 ib_dma_unmap_sg_attrs(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction, struct dma_attrs *attrs) argument 2248 ib_sg_dma_address(struct ib_device *dev, struct scatterlist *sg) argument 2262 ib_sg_dma_len(struct ib_device *dev, struct scatterlist *sg) argument [all...] |
/include/crypto/internal/ |
H A D | hash.h | 32 struct scatterlist *sg; member in struct:crypto_hash_walk 62 struct scatterlist *sg, unsigned int len);
|