Home
last modified time | relevance | path

Searched refs:sg_table (Results 1 – 162 of 162) sorted by relevance

/linux-4.4.14/drivers/target/
Dtarget_core_rd.c76 static u32 rd_release_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *sg_table, in rd_release_sgl_table() argument
84 sg = sg_table[i].sg_table; in rd_release_sgl_table()
85 sg_per_table = sg_table[i].rd_sg_count; in rd_release_sgl_table()
97 kfree(sg_table); in rd_release_sgl_table()
125 static int rd_allocate_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *sg_table, in rd_allocate_sgl_table() argument
158 sg_chain(sg_table[i - 1].sg_table, in rd_allocate_sgl_table()
162 sg_table[i].sg_table = sg; in rd_allocate_sgl_table()
163 sg_table[i].rd_sg_count = sg_per_table; in rd_allocate_sgl_table()
164 sg_table[i].page_start_offset = page_offset; in rd_allocate_sgl_table()
165 sg_table[i++].page_end_offset = (page_offset + sg_per_table) in rd_allocate_sgl_table()
[all …]
Dtarget_core_rd.h21 struct scatterlist *sg_table; member
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf2-dma-sg.c44 struct sg_table sg_table; member
50 struct sg_table *dma_sgt;
107 struct sg_table *sgt; in vb2_dma_sg_alloc()
126 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc()
145 sgt = &buf->sg_table; in vb2_dma_sg_alloc()
182 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put()
207 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
220 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
235 struct sg_table *sgt; in vb2_dma_sg_get_userptr()
249 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
[all …]
Dvideobuf2-dma-contig.c34 struct sg_table *dma_sgt;
40 struct sg_table *sgt_base;
50 static unsigned long vb2_dc_get_contiguous_size(struct sg_table *sgt) in vb2_dc_get_contiguous_size()
97 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare()
110 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_finish()
214 struct sg_table sgt;
224 struct sg_table *sgt; in vb2_dc_dmabuf_ops_attach()
260 struct sg_table *sgt; in vb2_dc_dmabuf_ops_detach()
276 static struct sg_table *vb2_dc_dmabuf_ops_map( in vb2_dc_dmabuf_ops_map()
282 struct sg_table *sgt; in vb2_dc_dmabuf_ops_map()
[all …]
Dvideobuf2-vmalloc.c202 struct sg_table sgt;
212 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_attach()
249 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_detach()
265 static struct sg_table *vb2_vmalloc_dmabuf_ops_map( in vb2_vmalloc_dmabuf_ops_map()
271 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_map()
306 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap()
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_gem.h55 struct sg_table *sgt;
150 struct sg_table *sgt,
155 struct sg_table *sgt,
159 struct sg_table *exynos_drm_gem_prime_get_sg_table(struct drm_gem_object *obj);
163 struct sg_table *sgt);
Dexynos_drm_gem.c28 struct sg_table sgt; in exynos_drm_alloc_buf()
376 struct sg_table *sgt, in exynos_gem_map_sgt_with_dma()
395 struct sg_table *sgt, in exynos_gem_unmap_sgt_from_dma()
549 struct sg_table *exynos_drm_gem_prime_get_sg_table(struct drm_gem_object *obj) in exynos_drm_gem_prime_get_sg_table()
562 struct sg_table *sgt) in exynos_drm_gem_prime_import_sg_table()
Dexynos_drm_g2d.c198 struct sg_table *sgt;
416 struct sg_table *sgt; in g2d_userptr_get_dma_addr()
/linux-4.4.14/drivers/staging/android/ion/
Dion_system_heap.c128 struct sg_table *table; in ion_system_heap_allocate()
153 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_heap_allocate()
183 struct sg_table *table = buffer->sg_table; in ion_system_heap_free()
202 static struct sg_table *ion_system_heap_map_dma(struct ion_heap *heap, in ion_system_heap_map_dma()
332 struct sg_table *table; in ion_system_contig_heap_allocate()
349 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_contig_heap_allocate()
378 struct sg_table *table = buffer->priv_virt; in ion_system_contig_heap_free()
393 struct sg_table *table = buffer->priv_virt; in ion_system_contig_heap_phys()
400 static struct sg_table *ion_system_contig_heap_map_dma(struct ion_heap *heap, in ion_system_contig_heap_map_dma()
Dion_carveout_heap.c63 struct sg_table *table = buffer->priv_virt; in ion_carveout_heap_phys()
77 struct sg_table *table; in ion_carveout_heap_allocate()
84 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_carveout_heap_allocate()
112 struct sg_table *table = buffer->priv_virt; in ion_carveout_heap_free()
127 static struct sg_table *ion_carveout_heap_map_dma(struct ion_heap *heap, in ion_carveout_heap_map_dma()
Dion_chunk_heap.c43 struct sg_table *table; in ion_chunk_heap_allocate()
58 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_chunk_heap_allocate()
98 struct sg_table *table = buffer->priv_virt; in ion_chunk_heap_free()
120 static struct sg_table *ion_chunk_heap_map_dma(struct ion_heap *heap, in ion_chunk_heap_map_dma()
Dion_heap.c35 struct sg_table *table = buffer->sg_table; in ion_heap_map_kernel()
74 struct sg_table *table = buffer->sg_table; in ion_heap_map_user()
143 struct sg_table *table = buffer->sg_table; in ion_heap_buffer_zero()
Dion_priv.h80 struct sg_table *sg_table; member
116 struct sg_table * (*map_dma)(struct ion_heap *heap,
Dion_cma_heap.c39 struct sg_table *table;
72 info->table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_cma_allocate()
125 static struct sg_table *ion_cma_heap_map_dma(struct ion_heap *heap, in ion_cma_heap_map_dma()
Dion.c183 struct sg_table *table; in ion_buffer_create()
220 buffer->sg_table = table; in ion_buffer_create()
254 for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, i) { in ion_buffer_create()
856 struct sg_table *ion_sg_table(struct ion_client *client, in ion_sg_table()
860 struct sg_table *table; in ion_sg_table()
870 table = buffer->sg_table; in ion_sg_table()
880 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf()
887 return buffer->sg_table; in ion_map_dma_buf()
891 struct sg_table *table, in ion_unmap_dma_buf()
1222 dma_sync_sg_for_device(NULL, buffer->sg_table->sgl, in ion_sync_for_device()
[all …]
Dion.h159 struct sg_table *ion_sg_table(struct ion_client *client,
Dion_test.c49 struct sg_table *table; in ion_handle_test_dma()
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_dmabuf.c26 struct sg_table sgt;
54 struct sg_table *sgt; in udl_detach_dma_buf()
73 static struct sg_table *udl_map_dma_buf(struct dma_buf_attachment *attach, in udl_map_dma_buf()
80 struct sg_table *sgt = NULL; in udl_map_dma_buf()
145 struct sg_table *sgt, in udl_unmap_dma_buf()
217 struct sg_table *sg, in udl_prime_create()
247 struct sg_table *sg; in udl_gem_prime_import()
Dudl_drv.h74 struct sg_table *sg;
/linux-4.4.14/include/linux/
Dscatterlist.h38 struct sg_table { struct
259 void __sg_free_table(struct sg_table *, unsigned int, bool, sg_free_fn *);
260 void sg_free_table(struct sg_table *);
261 int __sg_alloc_table(struct sg_table *, unsigned int, unsigned int,
263 int sg_alloc_table(struct sg_table *, unsigned int, gfp_t);
264 int sg_alloc_table_from_pages(struct sg_table *sgt,
Ddma-buf.h84 struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *,
87 struct sg_table *,
223 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *,
225 void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *,
Dhost1x.h58 struct sg_table;
63 dma_addr_t (*pin)(struct host1x_bo *bo, struct sg_table **sgt);
64 void (*unpin)(struct host1x_bo *bo, struct sg_table *sgt);
92 struct sg_table **sgt) in host1x_bo_pin()
97 static inline void host1x_bo_unpin(struct host1x_bo *bo, struct sg_table *sgt) in host1x_bo_unpin()
Ddma-mapping.h28 int (*get_sgtable)(struct device *dev, struct sg_table *sgt, void *,
Dide.h727 struct scatterlist *sg_table; member
/linux-4.4.14/include/drm/
Ddrm_gem_cma_helper.h17 struct sg_table *sgt;
60 struct sg_table *drm_gem_cma_prime_get_sg_table(struct drm_gem_object *obj);
64 struct sg_table *sgt);
DdrmP.h606 struct sg_table *(*gem_prime_get_sg_table)(struct drm_gem_object *obj);
610 struct sg_table *sgt);
931 void drm_clflush_sg(struct sg_table *st);
1042 extern int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
1044 extern struct sg_table *drm_prime_pages_to_sg(struct page **pages, unsigned int nr_pages);
1045 extern void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
Dintel-gtt.h16 void intel_gtt_insert_sg_entries(struct sg_table *st,
/linux-4.4.14/drivers/gpu/drm/
Ddrm_prime.c70 struct sg_table *sgt;
145 struct sg_table *sgt; in drm_gem_map_detach()
180 static struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, in drm_gem_map_dma_buf()
185 struct sg_table *sgt; in drm_gem_map_dma_buf()
218 struct sg_table *sgt, in drm_gem_unmap_dma_buf()
503 struct sg_table *sgt; in drm_gem_prime_import()
678 struct sg_table *drm_prime_pages_to_sg(struct page **pages, unsigned int nr_pages) in drm_prime_pages_to_sg()
680 struct sg_table *sg = NULL; in drm_prime_pages_to_sg()
683 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in drm_prime_pages_to_sg()
711 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, in drm_prime_sg_to_page_addr_arrays()
[all …]
Ddrm_gem_cma_helper.c404 struct sg_table *drm_gem_cma_prime_get_sg_table(struct drm_gem_object *obj) in drm_gem_cma_prime_get_sg_table()
407 struct sg_table *sgt; in drm_gem_cma_prime_get_sg_table()
447 struct sg_table *sgt) in drm_gem_cma_prime_import_sg_table()
Ddrm_cache.c105 drm_clflush_sg(struct sg_table *st) in drm_clflush_sg()
/linux-4.4.14/include/media/
Dvideobuf2-dma-sg.h18 static inline struct sg_table *vb2_dma_sg_plane_desc( in vb2_dma_sg_plane_desc()
21 return (struct sg_table *)vb2_plane_cookie(vb, plane_no); in vb2_dma_sg_plane_desc()
/linux-4.4.14/drivers/dma-buf/
Ddma-buf.c494 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *attach, in dma_buf_map_attachment()
497 struct sg_table *sg_table = ERR_PTR(-EINVAL); in dma_buf_map_attachment() local
504 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in dma_buf_map_attachment()
505 if (!sg_table) in dma_buf_map_attachment()
506 sg_table = ERR_PTR(-ENOMEM); in dma_buf_map_attachment()
508 return sg_table; in dma_buf_map_attachment()
522 struct sg_table *sg_table, in dma_buf_unmap_attachment() argument
527 if (WARN_ON(!attach || !attach->dmabuf || !sg_table)) in dma_buf_unmap_attachment()
530 attach->dmabuf->ops->unmap_dma_buf(attach, sg_table, in dma_buf_unmap_attachment()
/linux-4.4.14/drivers/crypto/qce/
Dcipher.h49 struct sg_table dst_tbl;
51 struct sg_table src_tbl;
Ddma.h53 qce_sgtable_add(struct sg_table *sgt, struct scatterlist *sg_add);
Ddma.c58 qce_sgtable_add(struct sg_table *sgt, struct scatterlist *new_sgl) in qce_sgtable_add()
/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_prime.c42 struct sg_table *virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj) in virtgpu_gem_prime_get_sg_table()
50 struct sg_table *table) in virtgpu_gem_prime_import_sg_table()
Dvirtgpu_drv.h58 struct sg_table *pages;
365 struct sg_table *virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj);
368 struct sg_table *sgt);
Dvirtgpu_object.c132 bo->pages = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in virtio_gpu_object_get_sg_table()
/linux-4.4.14/drivers/gpu/drm/qxl/
Dqxl_prime.c42 struct sg_table *qxl_gem_prime_get_sg_table(struct drm_gem_object *obj) in qxl_gem_prime_get_sg_table()
50 struct sg_table *table) in qxl_gem_prime_import_sg_table()
Dqxl_drv.h542 struct sg_table *qxl_gem_prime_get_sg_table(struct drm_gem_object *obj);
545 struct sg_table *sgt);
/linux-4.4.14/drivers/gpu/drm/msm/
Dmsm_mmu.h26 int (*map)(struct msm_mmu *mmu, uint32_t iova, struct sg_table *sgt,
28 int (*unmap)(struct msm_mmu *mmu, uint32_t iova, struct sg_table *sgt,
Dmsm_gem_prime.c23 struct sg_table *msm_gem_prime_get_sg_table(struct drm_gem_object *obj) in msm_gem_prime_get_sg_table()
56 struct dma_buf_attachment *attach, struct sg_table *sg) in msm_gem_prime_import_sg_table()
Dmsm_iommu.c47 struct sg_table *sgt, unsigned len, int prot) in msm_iommu_map()
86 struct sg_table *sgt, unsigned len) in msm_iommu_unmap()
Dmsm_drv.h211 struct sg_table *msm_gem_prime_get_sg_table(struct drm_gem_object *obj);
216 struct dma_buf_attachment *attach, struct sg_table *sg);
235 uint32_t size, struct sg_table *sgt);
Dmsm_gem.h52 struct sg_table *sgt;
Dmsm_gem.c666 uint32_t size, struct sg_table *sgt) in msm_gem_import()
/linux-4.4.14/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.h29 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj);
32 struct sg_table *sgt);
Drockchip_drm_gem.c257 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj) in rockchip_gem_prime_get_sg_table()
261 struct sg_table *sgt; in rockchip_gem_prime_get_sg_table()
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_gem.h40 extern struct sg_table *nouveau_gem_prime_get_sg_table(struct drm_gem_object *);
42 struct drm_device *, struct dma_buf_attachment *, struct sg_table *);
Dnouveau_prime.c31 struct sg_table *nouveau_gem_prime_get_sg_table(struct drm_gem_object *obj) in nouveau_gem_prime_get_sg_table()
61 struct sg_table *sg) in nouveau_gem_prime_import_sg_table()
Dnouveau_bo.h73 u32 tile_mode, u32 tile_flags, struct sg_table *sg,
Dnouveau_bo.c179 struct sg_table *sg, struct reservation_object *robj, in nouveau_bo_new()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_gem_dmabuf.c35 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_map_dma_buf()
39 struct sg_table *st; in i915_gem_map_dma_buf()
54 st = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in i915_gem_map_dma_buf()
93 struct sg_table *sg, in i915_gem_unmap_dma_buf()
252 struct sg_table *sg; in i915_gem_object_get_pages_dmabuf()
Di915_gem_gtt.h161 struct sg_table *pages;
324 struct sg_table *st,
Di915_gem_gtt.c820 struct sg_table *pages, in gen8_ppgtt_insert_entries()
1829 struct sg_table *pages, in gen6_ppgtt_insert_entries()
2344 struct sg_table *st, in gen8_ggtt_insert_entries()
2390 struct sg_table *st, in gen6_ggtt_insert_entries()
2480 struct sg_table *pages, in i915_ggtt_insert_entries()
2538 struct sg_table *pages = obj->pages; in aliasing_gtt_bind_vma()
3273 struct sg_table *st, struct scatterlist *sg) in rotate_pages()
3302 static struct sg_table *
3312 struct sg_table *st; in intel_rotate_fb_obj_pages()
3391 static struct sg_table *
[all …]
Di915_gem_stolen.c487 static struct sg_table *
492 struct sg_table *st; in i915_pages_create_for_stolen()
Di915_guc_submission.c390 struct sg_table *sg; in guc_init_ctx_desc()
475 struct sg_table *sg; in guc_fini_ctx_desc()
Dintel_guc_loader.c240 struct sg_table *sg = fw_obj->pages; in guc_ucode_xfer_dma()
Di915_gem_userptr.c479 st_set_pages(struct sg_table **st, struct page **pvec, int num_pages) in st_set_pages()
Di915_gem.c160 struct sg_table *st; in i915_gem_object_get_pages_phys()
2247 struct sg_table *st; in i915_gem_object_get_pages_gtt()
5249 struct sg_table *sg; in i915_gem_object_create_from_data()
Di915_drv.h2118 struct sg_table *pages;
/linux-4.4.14/drivers/crypto/ccp/
Dccp-crypto.h116 struct sg_table data_sg;
170 struct sg_table data_sg;
208 struct scatterlist *ccp_crypto_sg_table_add(struct sg_table *table,
Dccp-crypto-main.c300 struct scatterlist *ccp_crypto_sg_table_add(struct sg_table *table, in ccp_crypto_sg_table_add()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_prime.c54 static struct sg_table *vmw_prime_map_dma_buf(struct dma_buf_attachment *attach, in vmw_prime_map_dma_buf()
61 struct sg_table *sgb, in vmw_prime_unmap_dma_buf()
Dvmwgfx_buffer.c222 struct sg_table sgt;
417 sgt_size = ttm_round_pot(sizeof(struct sg_table)); in vmw_ttm_map_dma()
Dvmwgfx_drv.h249 struct sg_table *sgt;
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c24 static struct sg_table *omap_gem_map_dma_buf( in omap_gem_map_dma_buf()
29 struct sg_table *sg; in omap_gem_map_dma_buf()
63 struct sg_table *sg, enum dma_data_direction dir) in omap_gem_unmap_dma_buf()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_prime.c32 struct sg_table *amdgpu_gem_prime_get_sg_table(struct drm_gem_object *obj) in amdgpu_gem_prime_get_sg_table()
62 struct sg_table *sg) in amdgpu_gem_prime_import_sg_table()
Damdgpu_object.h131 struct sg_table *sg,
137 struct sg_table *sg,
Damdgpu_object.c220 struct sg_table *sg, in amdgpu_bo_create_restricted()
290 struct sg_table *sg, in amdgpu_bo_create()
Damdgpu_cgs.c87 struct sg_table *sg = drm_prime_pages_to_sg(&kmem_page, npages); in amdgpu_cgs_gmap_kmem()
Damdgpu.h557 struct sg_table *amdgpu_gem_prime_get_sg_table(struct drm_gem_object *obj);
560 struct sg_table *sg);
Damdgpu_ttm.c681 ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL); in amdgpu_ttm_tt_populate()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_prime.c32 struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj) in radeon_gem_prime_get_sg_table()
62 struct sg_table *sg) in radeon_gem_prime_import_sg_table()
Dradeon_object.h128 struct sg_table *sg,
Dradeon_drv.c141 struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
144 struct sg_table *sg);
Dradeon_object.c180 u32 domain, u32 flags, struct sg_table *sg, in radeon_bo_create()
Dradeon_ttm.c724 ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL); in radeon_ttm_tt_populate()
/linux-4.4.14/lib/
Dscatterlist.c205 void __sg_free_table(struct sg_table *table, unsigned int max_ents, in __sg_free_table()
250 void sg_free_table(struct sg_table *table) in sg_free_table()
275 int __sg_alloc_table(struct sg_table *table, unsigned int nents, in __sg_alloc_table()
359 int sg_alloc_table(struct sg_table *table, unsigned int nents, gfp_t gfp_mask) in sg_alloc_table()
392 int sg_alloc_table_from_pages(struct sg_table *sgt, in sg_alloc_table_from_pages()
/linux-4.4.14/net/ceph/
Dcrypto.c101 static int setup_sgtable(struct sg_table *sgt, struct scatterlist *prealloc_sg, in setup_sgtable()
153 static void teardown_sgtable(struct sg_table *sgt) in teardown_sgtable()
164 struct sg_table sg_out; in ceph_aes_encrypt()
224 struct sg_table sg_out; in ceph_aes_encrypt2()
285 struct sg_table sg_in; in ceph_aes_decrypt()
350 struct sg_table sg_in; in ceph_aes_decrypt2()
/linux-4.4.14/drivers/ata/
Dsata_promise.h45 dma_addr_t sg_table, in pdc_pkt_header() argument
71 buf32[1] = cpu_to_le32(sg_table); /* S/G table addr */ in pdc_pkt_header()
Dsata_promise.c504 dma_addr_t sg_table = ap->bmdma_prd_dma; in pdc_atapi_pkt() local
529 buf32[1] = cpu_to_le32(sg_table); /* S/G table addr */ in pdc_atapi_pkt()
/linux-4.4.14/drivers/spi/
Dspi-pxa2xx.h55 struct sg_table rx_sgt;
56 struct sg_table tx_sgt;
Dspi-pxa2xx-dma.c29 struct sg_table *sgt; in pxa2xx_spi_map_dma_buffer()
78 struct sg_table *sgt; in pxa2xx_spi_unmap_dma_buffer()
167 struct sg_table *sgt; in pxa2xx_spi_dma_prepare_one()
Dspi-ep93xx.c105 struct sg_table rx_sgt;
106 struct sg_table tx_sgt;
439 struct sg_table *sgt; in ep93xx_spi_dma_prepare()
537 struct sg_table *sgt; in ep93xx_spi_dma_finish()
Dspi-rockchip.c198 struct sg_table tx_sg;
199 struct sg_table rx_sg;
Dspi-rspi.c515 static int rspi_dma_transfer(struct rspi_data *rspi, struct sg_table *tx, in rspi_dma_transfer()
516 struct sg_table *rx) in rspi_dma_transfer()
Dspi-pl022.c406 struct sg_table sgt_rx;
407 struct sg_table sgt_tx;
882 struct sg_table *sgtab) in setup_dma_scatter()
Dspi-bcm2835.c289 static inline int bcm2835_check_sg_length(struct sg_table *sgt) in bcm2835_check_sg_length()
Dspi.c684 struct sg_table *sgt, void *buf, size_t len, in spi_map_buf()
744 struct sg_table *sgt, enum dma_data_direction dir) in spi_unmap_buf()
Dspi-imx.c910 struct sg_table *tx = &transfer->tx_sg, *rx = &transfer->rx_sg; in spi_imx_dma_transfer()
Dspi-s3c64xx.c278 struct sg_table *sgt) in prepare_dma()
/linux-4.4.14/include/drm/ttm/
Dttm_bo_api.h255 struct sg_table *sg;
490 struct sg_table *sg,
Dttm_bo_driver.h121 struct sg_table *sg; /* for SG objects via dma-buf */
/linux-4.4.14/drivers/gpu/host1x/
Djob.h46 struct sg_table *sgt;
Djob.c185 struct sg_table *sgt; in pin_job()
204 struct sg_table *sgt; in pin_job()
/linux-4.4.14/drivers/gpu/drm/tegra/
Dgem.c38 static dma_addr_t tegra_bo_pin(struct host1x_bo *bo, struct sg_table **sgt) in tegra_bo_pin()
45 static void tegra_bo_unpin(struct host1x_bo *bo, struct sg_table *sgt) in tegra_bo_unpin()
506 static struct sg_table *
512 struct sg_table *sgt; in tegra_gem_prime_map_dma_buf()
547 struct sg_table *sgt, in tegra_gem_prime_unmap_dma_buf()
Dgem.h37 struct sg_table *sgt;
/linux-4.4.14/drivers/gpu/drm/armada/
Darmada_gem.h21 struct sg_table *sgt; /* for imported */
Darmada_gem.c421 struct sg_table *
428 struct sg_table *sgt; in armada_gem_prime_map_dma_buf()
492 struct sg_table *sgt, enum dma_data_direction dir) in armada_gem_prime_unmap_dma_buf()
/linux-4.4.14/include/rdma/
Dib_umem.h55 struct sg_table sg_head;
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispccdc.h60 struct sg_table sgt;
Dispstat.h39 struct sg_table sgt;
/linux-4.4.14/arch/c6x/include/asm/
Ddma-mapping.h108 static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt, in dma_get_sgtable()
/linux-4.4.14/drivers/ide/
Dide-dma.c136 struct scatterlist *sg = hwif->sg_table; in ide_dma_map_sg()
168 dma_unmap_sg(hwif->dev, hwif->sg_table, cmd->orig_sg_nents, in ide_dma_unmap_sg()
Dide-probe.c976 hwif->sg_table = kmalloc(sizeof(struct scatterlist)*hwif->sg_max_nents, in hwif_init()
978 if (!hwif->sg_table) { in hwif_init()
983 sg_init_table(hwif->sg_table, hwif->sg_max_nents); in hwif_init()
1548 kfree(hwif->sg_table); in ide_unregister()
Dide-dma-sff.c123 for_each_sg(hwif->sg_table, sg, cmd->sg_nents, i) { in ide_build_dmatable()
Dsgiioc4.c419 struct scatterlist *sg = hwif->sg_table; in sgiioc4_build_dmatable()
Dau1xxx-ide.c227 sg = hwif->sg_table; in auide_build_dmatable()
Dicside.c344 set_dma_sg(ec->dma, hwif->sg_table, cmd->sg_nents); in icside_dma_setup()
Dtx4939ide.c243 for_each_sg(hwif->sg_table, sg, cmd->sg_nents, i) { in tx4939ide_build_dmatable()
Dide-taskfile.c227 struct scatterlist *sg = hwif->sg_table; in ide_pio_bytes()
Dide-io.c226 struct scatterlist *sg = hwif->sg_table; in ide_map_sg()
Dpmac.c1476 sg = hwif->sg_table; in pmac_ide_build_dmatable()
/linux-4.4.14/arch/frv/include/asm/
Ddma-mapping.h143 static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt, in dma_get_sgtable()
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dfb.h37 struct sg_table *sg;
/linux-4.4.14/arch/m68k/include/asm/
Ddma-mapping.h116 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-4.4.14/arch/mn10300/include/asm/
Ddma-mapping.h179 static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt, in dma_get_sgtable()
/linux-4.4.14/arch/cris/include/asm/
Ddma-mapping.h164 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-4.4.14/arch/nios2/include/asm/
Ddma-mapping.h133 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-4.4.14/drivers/scsi/isci/
Drequest.h124 struct scu_sgl_element_pair sg_table[SCU_SGL_SIZE] __attribute__ ((aligned(32))); member
Drequest.c84 return &ireq->sg_table[idx - 2]; in to_sgl_element_pair()
102 return sci_io_request_get_dma_addr(ireq, &ireq->sg_table[idx - 2]); in to_sgl_element_pair_dma()
/linux-4.4.14/include/linux/spi/
Dspi.h687 struct sg_table tx_sg;
688 struct sg_table rx_sg;
/linux-4.4.14/arch/arm/include/asm/
Ddma-mapping.h281 extern int arm_dma_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-4.4.14/include/asm-generic/
Ddma-mapping-common.h224 dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
228 dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, in dma_get_sgtable_attrs()
/linux-4.4.14/drivers/char/agp/
Dintel-gtt.c99 struct sg_table *st) in intel_gtt_map_memory()
125 struct sg_table st; in intel_gtt_unmap_memory()
841 void intel_gtt_insert_sg_entries(struct sg_table *st, in intel_gtt_insert_sg_entries()
912 struct sg_table st; in intel_fake_agp_insert_entries()
/linux-4.4.14/drivers/mmc/core/
Dsdio_ops.c128 struct sg_table sgtable; in mmc_io_rw_extended()
/linux-4.4.14/arch/blackfin/include/asm/
Ddma-mapping.h160 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-4.4.14/arch/avr32/include/asm/
Ddma-mapping.h343 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-4.4.14/arch/metag/include/asm/
Ddma-mapping.h188 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-4.4.14/include/scsi/
Dscsi_cmnd.h35 struct sg_table table;
/linux-4.4.14/arch/arc/include/asm/
Ddma-mapping.h32 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-4.4.14/include/linux/hsi/
Dhsi.h204 struct sg_table sgt;
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dsdio.h197 struct sg_table sgtable;
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-vbi.c124 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in buffer_prepare()
Dsaa7134-ts.c99 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in saa7134_ts_buffer_prepare()
Dsaa7134-core.c226 struct sg_table *dma = vb2_dma_sg_plane_desc(&buf->vb2.vb2_buf, 0); in saa7134_buffer_base()
Dsaa7134-video.c889 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in buffer_prepare()
/linux-4.4.14/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2-enc.c318 struct sg_table *vbuf, int off, int size, in solo_send_desc()
463 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_jpeg()
485 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_mpeg()
751 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in solo_enc_buf_finish()
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_rma.h259 struct sg_table *st;
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-vbi.c145 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
Dcx23885-video.c337 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
Dcx23885-core.c1457 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in cx23885_buf_prepare()
/linux-4.4.14/drivers/base/
Ddma-mapping.c228 int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt, in dma_common_get_sgtable()
/linux-4.4.14/Documentation/
Ddma-buf-sharing.txt122 struct sg_table * dma_buf_map_attachment(struct dma_buf_attachment *,
129 struct sg_table * (*map_dma_buf)(struct dma_buf_attachment *,
133 It should return the sg_table containing scatterlist for this buffer, mapped
155 struct sg_table *);
162 struct sg_table *,
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-vbi.c131 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
Dcx88-mpeg.c228 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in cx8802_buf_prepare()
Dcx88-video.c451 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_io.c273 - (u8 *)rq->sg_table-> in esas2r_build_sg_list_sge()
337 (u8 *)rq->sg_table->virt_addr)); in esas2r_build_sg_list_sge()
Desas2r.h659 struct esas2r_mem_desc *sg_table; member
/linux-4.4.14/drivers/media/platform/marvell-ccic/
Dmcam-core.c1223 struct sg_table *sg_table = vb2_dma_sg_plane_desc(vb, 0); in mcam_vb_sg_buf_prepare() local
1228 for_each_sg(sg_table->sgl, sg, sg_table->nents, i) { in mcam_vb_sg_buf_prepare()
/linux-4.4.14/arch/parisc/include/asm/
Ddma-mapping.h252 static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt, in dma_get_sgtable()
/linux-4.4.14/arch/arm64/mm/
Ddma-mapping.c331 static int __swiotlb_get_sgtable(struct device *dev, struct sg_table *sgt, in __swiotlb_get_sgtable()
654 static int __iommu_get_sgtable(struct device *dev, struct sg_table *sgt, in __iommu_get_sgtable()
/linux-4.4.14/drivers/iommu/
Ddma-iommu.c289 struct sg_table sgt; in iommu_dma_alloc()
/linux-4.4.14/drivers/input/touchscreen/
Dsur40.c376 struct sg_table *sgt; in sur40_process_video()
/linux-4.4.14/arch/arm/mm/
Ddma-mapping.c777 int arm_dma_get_sgtable(struct device *dev, struct sg_table *sgt, in arm_dma_get_sgtable()
1466 static int arm_iommu_get_sgtable(struct device *dev, struct sg_table *sgt, in arm_iommu_get_sgtable()
/linux-4.4.14/drivers/scsi/bfa/
Dbfad_bsg.c3257 struct bfa_sge_s *sg_table; in bfad_fcxp_map_sg() local
3265 sg_table = (struct bfa_sge_s *) (((uint8_t *)buf_base) + in bfad_fcxp_map_sg()
3283 sg_table->sg_len = buf_info->size; in bfad_fcxp_map_sg()
3284 sg_table->sg_addr = (void *)(size_t) buf_info->phys; in bfad_fcxp_map_sg()
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-video.c168 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in cx25821_buffer_prepare()
/linux-4.4.14/drivers/media/pci/tw68/
Dtw68-video.c466 struct sg_table *dma = vb2_dma_sg_plane_desc(vb, 0); in tw68_buf_prepare()
/linux-4.4.14/drivers/scsi/
Dvirtio_scsi.c431 struct sg_table *out, *in; in virtscsi_add_cmd()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-v4l2.c79 struct sg_table *sg_desc = vb2_dma_sg_plane_desc(vb, 0); in cobalt_buf_init()
/linux-4.4.14/drivers/gpu/drm/ttm/
Dttm_bo.c1088 struct sg_table *sg, in ttm_bo_init()