/include/linux/ |
D | scatterlist.h | 28 #define sg_dma_address(sg) ((sg)->dma_address) argument 31 #define sg_dma_len(sg) ((sg)->dma_length) argument 33 #define sg_dma_len(sg) ((sg)->length) argument 72 #define sg_is_chain(sg) ((sg)->page_link & SG_CHAIN) argument 73 #define sg_is_last(sg) ((sg)->page_link & SG_END) argument 74 #define sg_chain_ptr(sg) \ argument 75 ((struct scatterlist *) ((sg)->page_link & ~(SG_CHAIN | SG_END))) 87 static inline void sg_assign_page(struct scatterlist *sg, struct page *page) in sg_assign_page() argument 89 unsigned long page_link = sg->page_link & (SG_CHAIN | SG_END); in sg_assign_page() 97 BUG_ON(sg_is_chain(sg)); in sg_assign_page() [all …]
|
D | skmsg.h | 45 struct sk_msg_sg sg; member 138 WARN_ON(i == msg->sg.end && bytes); in sk_msg_check_to_free() 172 sk_msg_iter_var_prev(msg->sg.which) 175 sk_msg_iter_var_next(msg->sg.which) 179 memset(&msg->sg, 0, offsetofend(struct sk_msg_sg, copy)); in sk_msg_clear_meta() 184 BUILD_BUG_ON(ARRAY_SIZE(msg->sg.data) - 1 != NR_MSG_FRAG_IDS); in sk_msg_init() 186 sg_init_marker(msg->sg.data, NR_MSG_FRAG_IDS); in sk_msg_init() 192 dst->sg.data[which] = src->sg.data[which]; in sk_msg_xfer() 193 dst->sg.data[which].length = size; in sk_msg_xfer() 194 dst->sg.size += size; in sk_msg_xfer() [all …]
|
D | pci-p2pdma.h | 33 int pci_p2pdma_map_sg_attrs(struct device *dev, struct scatterlist *sg, 35 void pci_p2pdma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, 87 struct scatterlist *sg, int nents, enum dma_data_direction dir, in pci_p2pdma_map_sg_attrs() argument 93 struct scatterlist *sg, int nents, enum dma_data_direction dir, in pci_p2pdma_unmap_sg_attrs() argument 122 static inline int pci_p2pdma_map_sg(struct device *dev, struct scatterlist *sg, in pci_p2pdma_map_sg() argument 125 return pci_p2pdma_map_sg_attrs(dev, sg, nents, dir, 0); in pci_p2pdma_map_sg() 129 struct scatterlist *sg, int nents, enum dma_data_direction dir) in pci_p2pdma_unmap_sg() argument 131 pci_p2pdma_unmap_sg_attrs(dev, sg, nents, dir, 0); in pci_p2pdma_unmap_sg()
|
D | pci-dma-compat.h | 65 pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, in pci_map_sg() argument 68 return dma_map_sg(&hwdev->dev, sg, nents, (enum dma_data_direction)direction); in pci_map_sg() 72 pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, in pci_unmap_sg() argument 75 dma_unmap_sg(&hwdev->dev, sg, nents, (enum dma_data_direction)direction); in pci_unmap_sg() 93 pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sg, in pci_dma_sync_sg_for_cpu() argument 96 dma_sync_sg_for_cpu(&hwdev->dev, sg, nelems, (enum dma_data_direction)direction); in pci_dma_sync_sg_for_cpu() 100 pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, in pci_dma_sync_sg_for_device() argument 103 dma_sync_sg_for_device(&hwdev->dev, sg, nelems, (enum dma_data_direction)direction); in pci_dma_sync_sg_for_device()
|
D | page_reporting.h | 14 struct scatterlist *sg, unsigned int nents);
|
D | virtio.h | 38 struct scatterlist sg[], unsigned int num, 43 struct scatterlist sg[], unsigned int num, 48 struct scatterlist sg[], unsigned int num,
|
D | tifm.h | 144 int tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents, 146 void tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
|
D | dma-map-ops.h | 49 int (*map_sg)(struct device *dev, struct scatterlist *sg, int nents, 51 void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nents, 64 void (*sync_sg_for_cpu)(struct device *dev, struct scatterlist *sg, 66 void (*sync_sg_for_device)(struct device *dev, struct scatterlist *sg, 356 bool arch_dma_map_sg_direct(struct device *dev, struct scatterlist *sg, 358 bool arch_dma_unmap_sg_direct(struct device *dev, struct scatterlist *sg,
|
D | dma-mapping.h | 125 unsigned int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, 127 void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, 140 void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, 142 void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, 187 struct scatterlist *sg, int nents, enum dma_data_direction dir, in dma_map_sg_attrs() argument 193 struct scatterlist *sg, int nents, enum dma_data_direction dir, in dma_unmap_sg_attrs() argument 221 struct scatterlist *sg, int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu() argument 225 struct scatterlist *sg, int nelems, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
|
D | memstick.h | 243 struct scatterlist sg; member 320 const struct scatterlist *sg);
|
/include/crypto/ |
D | scatterwalk.h | 20 struct scatterlist *sg, int num) in scatterwalk_crypto_chain() argument 22 if (sg) in scatterwalk_crypto_chain() 23 sg_chain(head, num, sg); in scatterwalk_crypto_chain() 30 unsigned int len = walk->sg->offset + walk->sg->length - walk->offset; in scatterwalk_pagelen() 56 return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); in scatterwalk_page() 65 struct scatterlist *sg) in scatterwalk_start() argument 67 walk->sg = sg; in scatterwalk_start() 68 walk->offset = sg->offset; in scatterwalk_start() 83 page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT); in scatterwalk_pagedone() 87 if (more && walk->offset >= walk->sg->offset + walk->sg->length) in scatterwalk_pagedone() [all …]
|
D | if_alg.h | 61 struct scatterlist sg[ALG_MAX_PAGES + 1]; member 70 struct scatterlist sg[]; /* Array of SGs forming the SGL */ member
|
/include/soc/fsl/ |
D | dpaa2-fd.h | 309 static inline dma_addr_t dpaa2_sg_get_addr(const struct dpaa2_sg_entry *sg) in dpaa2_sg_get_addr() argument 311 return (dma_addr_t)le64_to_cpu(sg->addr); in dpaa2_sg_get_addr() 319 static inline void dpaa2_sg_set_addr(struct dpaa2_sg_entry *sg, dma_addr_t addr) in dpaa2_sg_set_addr() argument 321 sg->addr = cpu_to_le64(addr); in dpaa2_sg_set_addr() 324 static inline bool dpaa2_sg_short_len(const struct dpaa2_sg_entry *sg) in dpaa2_sg_short_len() argument 326 return !!((le16_to_cpu(sg->format_offset) >> SG_SHORT_LEN_FLAG_SHIFT) in dpaa2_sg_short_len() 336 static inline u32 dpaa2_sg_get_len(const struct dpaa2_sg_entry *sg) in dpaa2_sg_get_len() argument 338 if (dpaa2_sg_short_len(sg)) in dpaa2_sg_get_len() 339 return le32_to_cpu(sg->len) & SG_SHORT_LEN_MASK; in dpaa2_sg_get_len() 341 return le32_to_cpu(sg->len); in dpaa2_sg_get_len() [all …]
|
D | qman.h | 202 static inline dma_addr_t qm_sg_addr(const struct qm_sg_entry *sg) in qm_sg_addr() argument 204 return be64_to_cpu(sg->data) & 0xffffffffffLLU; in qm_sg_addr() 207 static inline u64 qm_sg_entry_get64(const struct qm_sg_entry *sg) in qm_sg_entry_get64() argument 209 return be64_to_cpu(sg->data) & 0xffffffffffLLU; in qm_sg_entry_get64() 212 static inline void qm_sg_entry_set64(struct qm_sg_entry *sg, u64 addr) in qm_sg_entry_set64() argument 214 sg->addr_hi = upper_32_bits(addr); in qm_sg_entry_set64() 215 sg->addr_lo = cpu_to_be32(lower_32_bits(addr)); in qm_sg_entry_set64() 218 static inline bool qm_sg_entry_is_final(const struct qm_sg_entry *sg) in qm_sg_entry_is_final() argument 220 return be32_to_cpu(sg->cfg) & QM_SG_FIN; in qm_sg_entry_is_final() 223 static inline bool qm_sg_entry_is_ext(const struct qm_sg_entry *sg) in qm_sg_entry_is_ext() argument [all …]
|
/include/linux/platform_data/ |
D | dma-ste-dma40.h | 184 struct scatterlist sg; in stedma40_slave_mem() local 185 sg_init_table(&sg, 1); in stedma40_slave_mem() 186 sg.dma_address = addr; in stedma40_slave_mem() 187 sg.length = size; in stedma40_slave_mem() 189 return dmaengine_prep_slave_sg(chan, &sg, 1, direction, flags); in stedma40_slave_mem()
|
/include/rdma/ |
D | rw.h | 46 struct scatterlist *sg, u32 sg_cnt, u32 sg_offset, 49 u32 port_num, struct scatterlist *sg, u32 sg_cnt, 53 u32 port_num, struct scatterlist *sg, u32 sg_cnt, 58 u32 port_num, struct scatterlist *sg, u32 sg_cnt,
|
D | ib_umem.h | 137 struct scatterlist *sg = umem->sgt_append.sgt.sgl; in ib_umem_find_best_pgoff() local 140 dma_addr = sg_dma_address(sg) + (umem->address & ~PAGE_MASK); in ib_umem_find_best_pgoff()
|
/include/scsi/ |
D | scsi_cmnd.h | 177 extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count, 217 #define scsi_for_each_sg(cmd, sg, nseg, __i) \ argument 218 for_each_sg(scsi_sglist(cmd), sg, nseg, __i) 342 #define scsi_for_each_prot_sg(cmd, sg, nseg, __i) \ argument 343 for_each_sg(scsi_prot_sglist(cmd), sg, nseg, __i)
|
D | libiscsi_tcp.h | 36 struct scatterlist *sg; member
|
/include/linux/spi/ |
D | spi-mem.h | 314 struct sg_table *sg); 318 struct sg_table *sg); 330 struct sg_table *sg) in spi_controller_dma_map_mem_op_data() argument 338 struct sg_table *sg) in spi_controller_dma_unmap_mem_op_data() argument
|
/include/linux/dma/ |
D | ipu-dma.h | 146 struct scatterlist *sg; /* scatterlist for this */ member 160 struct scatterlist *sg[2]; /* scatterlist elements in buffer-0 and -1 */ member
|
/include/drm/ttm/ |
D | ttm_bo_api.h | 164 struct sg_table *sg; member 399 struct sg_table *sg, struct dma_resv *resv, 442 struct sg_table *sg, struct dma_resv *resv,
|
D | ttm_tt.h | 68 struct sg_table *sg; member
|
/include/drm/ |
D | drm_device.h | 360 struct drm_sg_mem *sg; member
|
D | drm_prime.h | 106 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
|