Searched refs:sg_table (Results 101 - 125 of 324) sorted by relevance

1234567891011>>

/linux-master/drivers/vfio/pci/pds/
H A Dcmds.c217 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 Dlm.c66 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 Drockchip_drm_gem.c421 * 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 Ddma-map-ops.h40 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 Di915_gem_object.h67 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 Di915_gem_shmem.c32 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 Di915_gem_userptr.c102 struct sg_table *st;
159 struct sg_table *pages)
214 struct sg_table *pages;
/linux-master/lib/
H A Dscatterlist.c195 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 Dmapping.c217 * @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 Dops_helpers.c18 int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
/linux-master/drivers/nvme/host/
H A Drdma.c58 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 Ddrm_gem_shmem_helper.c662 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 Dfpga-mgr.c96 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 Dcrypto.c161 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 Dexynos_drm_gem.c405 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 Damdgpu_dma_buf.c140 * 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 Dgntdev-dmabuf.c46 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 Ddma.c50 qce_sgtable_add(struct sg_table *sgt, struct scatterlist *new_sgl,
/linux-master/drivers/media/platform/ti/omap3isp/
H A Dispstat.h36 struct sg_table sgt;
/linux-master/drivers/block/rnbd/
H A Drnbd-clt.h62 struct sg_table sgt;
/linux-master/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem.h47 struct sg_table *sgt;
/linux-master/drivers/infiniband/ulp/rtrs/
H A Drtrs-srv.h68 struct sg_table sgt;
/linux-master/drivers/dma-buf/heaps/
H A Dcma_heap.c45 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 Di915_vma_types.h191 struct sg_table *pages;
H A Dintel_memory_region.h19 struct sg_table;

Completed in 479 milliseconds

1234567891011>>