/linux-master/drivers/vfio/pci/pds/ |
H A D | cmds.c | 217 err = dma_map_sgtable(dev, &lm_file->sg_table, dir, 0); 221 lm_file->num_sge = lm_file->sg_table.nents; 233 for_each_sgtable_dma_sg(&lm_file->sg_table, sg, i) { 255 dma_unmap_sgtable(dev, &lm_file->sg_table, dir, 0); 278 dma_unmap_sgtable(dev, &lm_file->sg_table, dir, 0);
|
H A D | lm.c | 66 if (sg_alloc_table_from_pages(&lm_file->sg_table, pages, npages, 0, 101 sg_free_table(&lm_file->sg_table); 142 lm_file->last_offset_sg = lm_file->sg_table.sgl; 149 lm_file->sg_table.orig_nents - lm_file->sg_last_entry, i) {
|
/linux-master/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_gem.c | 421 * Allocate a sg_table for this GEM object. 422 * Note: Both the table's contents, and the sg_table itself must be freed by 424 * Returns a pointer to the newly allocated sg_table, or an ERR_PTR() error. 426 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj) 430 struct sg_table *sgt; 455 struct sg_table *sg, 465 struct sg_table *sg, 473 DRM_ERROR("failed to map sg_table to contiguous linear address.\n"); 486 struct sg_table *sg)
|
/linux-master/include/linux/ |
H A D | dma-map-ops.h | 40 struct sg_table *(*alloc_noncontiguous)(struct device *dev, size_t size, 44 struct sg_table *sgt, enum dma_data_direction dir); 48 int (*get_sgtable)(struct device *dev, struct sg_table *sgt, 224 * The users of the DMA API should only care about the sg_table, but to make 230 struct sg_table sgt; 236 int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
|
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_object.h | 67 struct sg_table *pages, 77 struct sg_table *pages); 79 struct sg_table *pages); 83 struct sg_table * 640 struct sg_table *pages); 841 int shmem_sg_alloc_table(struct drm_i915_private *i915, struct sg_table *st, 845 void shmem_sg_free_table(struct sg_table *st, struct address_space *mapping,
|
H A D | i915_gem_shmem.c | 32 void shmem_sg_free_table(struct sg_table *st, struct address_space *mapping, 63 int shmem_sg_alloc_table(struct drm_i915_private *i915, struct sg_table *st, 211 struct sg_table *st; 368 struct sg_table *pages, 396 void i915_gem_object_put_pages_shmem(struct drm_i915_gem_object *obj, struct sg_table *pages) 412 shmem_put_pages(struct drm_i915_gem_object *obj, struct sg_table *pages)
|
H A D | i915_gem_userptr.c | 102 struct sg_table *st; 159 struct sg_table *pages) 214 struct sg_table *pages;
|
/linux-master/lib/ |
H A D | scatterlist.c | 195 void __sg_free_table(struct sg_table *table, unsigned int max_ents, 256 void sg_free_table(struct sg_table *table) 285 int __sg_alloc_table(struct sg_table *table, unsigned int nents, 374 int sg_alloc_table(struct sg_table *table, unsigned int nents, gfp_t gfp_mask) 578 int sg_alloc_table_from_pages_segment(struct sg_table *sgt, struct page **pages, 1109 struct sg_table *sgtable, 1163 struct sg_table *sgtable, 1209 struct sg_table *sgtable, 1270 struct sg_table *sgtable, 1342 struct sg_table *sgtabl [all...] |
/linux-master/kernel/dma/ |
H A D | mapping.c | 217 * @sg: The sg_table object describing the buffer 246 * @sgt: The sg_table object describing the buffer 250 * Maps a buffer described by a scatterlist stored in the given sg_table 268 * in the sg_table. This will not succeed if retried. 270 int dma_map_sgtable(struct device *dev, struct sg_table *sgt, 440 int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, 663 static struct sg_table *alloc_single_sgt(struct device *dev, size_t size, 666 struct sg_table *sgt; 687 struct sg_table *dma_alloc_noncontiguous(struct device *dev, size_t size, 691 struct sg_table *sg [all...] |
H A D | ops_helpers.c | 18 int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
|
/linux-master/drivers/nvme/host/ |
H A D | rdma.c | 58 struct sg_table sg_table; member in struct:nvme_rdma_sgl 1226 ib_dma_unmap_sg(ibdev, req->metadata_sgl->sg_table.sgl, 1228 sg_free_table_chained(&req->metadata_sgl->sg_table, 1232 ib_dma_unmap_sg(ibdev, req->data_sgl.sg_table.sgl, req->data_sgl.nents, 1234 sg_free_table_chained(&req->data_sgl.sg_table, NVME_INLINE_SG_CNT); 1280 for_each_sg(req->data_sgl.sg_table.sgl, sgl, count, i) { 1301 sg->addr = cpu_to_le64(sg_dma_address(req->data_sgl.sg_table.sgl)); 1302 put_unaligned_le24(sg_dma_len(req->data_sgl.sg_table.sgl), sg->length); 1323 nr = ib_map_mr_sg(req->mr, req->data_sgl.sg_table [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_gem_shmem_helper.c | 662 struct sg_table *drm_gem_shmem_get_sg_table(struct drm_gem_shmem_object *shmem) 672 static struct sg_table *drm_gem_shmem_get_pages_sgt_locked(struct drm_gem_shmem_object *shmem) 676 struct sg_table *sgt; 725 struct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_shmem_object *shmem) 728 struct sg_table *sgt; 758 struct sg_table *sgt)
|
/linux-master/drivers/fpga/ |
H A D | fpga-mgr.c | 96 struct sg_table *sgt) 182 struct sg_table *sgt) 214 struct sg_table *sgt, size_t *ret_size) 295 struct sg_table *sgt) 363 struct sg_table *sgt) 469 struct sg_table sgt; 484 * Convert the linear kernel pointer into a sg_table of pages for use
|
/linux-master/net/ceph/ |
H A D | crypto.c | 161 static int setup_sgtable(struct sg_table *sgt, struct scatterlist *prealloc_sg, 213 static void teardown_sgtable(struct sg_table *sgt) 223 struct sg_table sgt;
|
/linux-master/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gem.c | 405 struct sg_table *exynos_drm_gem_prime_get_sg_table(struct drm_gem_object *obj) 409 struct sg_table *sgt; 431 struct sg_table *sgt) 435 /* check if the entries in the sg_table are contiguous */
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_dma_buf.c | 140 * sg_table filled with the DMA addresses to use or ERR_PRT with negative error 143 static struct sg_table *amdgpu_dma_buf_map(struct dma_buf_attachment *attach, 150 struct sg_table *sgt; 208 * @sgt: sg_table to unmap 215 struct sg_table *sgt,
|
/linux-master/drivers/xen/ |
H A D | gntdev-dmabuf.c | 46 struct sg_table *sgt; 65 struct sg_table *sgt; 195 static struct sg_table * 198 struct sg_table *sgt; 241 struct sg_table *sgt = gntdev_dmabuf_attach->sgt; 257 static struct sg_table * 263 struct sg_table *sgt; 301 struct sg_table *sgt, 572 struct sg_table *sgt;
|
/linux-master/drivers/crypto/qce/ |
H A D | dma.c | 50 qce_sgtable_add(struct sg_table *sgt, struct scatterlist *new_sgl,
|
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | ispstat.h | 36 struct sg_table sgt;
|
/linux-master/drivers/block/rnbd/ |
H A D | rnbd-clt.h | 62 struct sg_table sgt;
|
/linux-master/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gem.h | 47 struct sg_table *sgt;
|
/linux-master/drivers/infiniband/ulp/rtrs/ |
H A D | rtrs-srv.h | 68 struct sg_table sgt;
|
/linux-master/drivers/dma-buf/heaps/ |
H A D | cma_heap.c | 45 struct sg_table table; 97 static struct sg_table *cma_heap_map_dma_buf(struct dma_buf_attachment *attachment, 101 struct sg_table *table = &a->table; 112 struct sg_table *table,
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_vma_types.h | 191 struct sg_table *pages;
|
H A D | intel_memory_region.h | 19 struct sg_table;
|