Home
last modified time | relevance | path

Searched refs:sgt (Results 1 – 25 of 176) sorted by relevance

12345678

/drivers/media/common/videobuf2/
Dvideobuf2-dma-contig.c53 static unsigned long vb2_dc_get_contiguous_size(struct sg_table *sgt) in vb2_dc_get_contiguous_size() argument
56 dma_addr_t expected = sg_dma_address(sgt->sgl); in vb2_dc_get_contiguous_size()
60 for_each_sgtable_dma_sg(sgt, s, i) { in vb2_dc_get_contiguous_size()
126 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare() local
140 dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); in vb2_dc_prepare()
146 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_finish() local
160 dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); in vb2_dc_finish()
313 struct sg_table sgt; member
323 struct sg_table *sgt; in vb2_dc_dmabuf_ops_attach() local
331 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_attach()
[all …]
Dvideobuf2-dma-sg.c105 struct sg_table *sgt; in vb2_dma_sg_alloc() local
145 sgt = &buf->sg_table; in vb2_dma_sg_alloc()
150 if (dma_map_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dma_sg_alloc()
182 struct sg_table *sgt = &buf->sg_table; in vb2_dma_sg_put() local
188 dma_unmap_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dma_sg_put()
204 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare() local
209 dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); in vb2_dma_sg_prepare()
215 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish() local
220 dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); in vb2_dma_sg_finish()
227 struct sg_table *sgt; in vb2_dma_sg_get_userptr() local
[all …]
Dvideobuf2-vmalloc.c206 struct sg_table sgt; member
216 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_attach() local
226 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
227 ret = sg_alloc_table(sgt, num_pages, GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
232 for_each_sgtable_sg(sgt, sg, i) { in vb2_vmalloc_dmabuf_ops_attach()
236 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_attach()
253 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_detach() local
258 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_detach()
262 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_detach()
263 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_detach()
[all …]
/drivers/gpu/drm/tegra/
Dgem.c47 static inline unsigned int sgt_dma_count_chunks(struct sg_table *sgt) in sgt_dma_count_chunks() argument
49 return sg_dma_count_chunks(sgt->sgl, sgt->nents); in sgt_dma_count_chunks()
88 map->sgt = dma_buf_map_attachment_unlocked(map->attach, direction); in tegra_bo_pin()
89 if (IS_ERR(map->sgt)) { in tegra_bo_pin()
91 err = PTR_ERR(map->sgt); in tegra_bo_pin()
92 map->sgt = NULL; in tegra_bo_pin()
96 err = sgt_dma_count_chunks(map->sgt); in tegra_bo_pin()
106 map->sgt = kzalloc(sizeof(*map->sgt), GFP_KERNEL); in tegra_bo_pin()
107 if (!map->sgt) { in tegra_bo_pin()
117 err = sg_alloc_table_from_pages(map->sgt, obj->pages, obj->num_pages, 0, gem->size, in tegra_bo_pin()
[all …]
/drivers/gpu/drm/armada/
Darmada_gem.c68 if (dobj->sgt) in armada_gem_free_object()
70 dobj->sgt, DMA_TO_DEVICE); in armada_gem_free_object()
392 struct sg_table *sgt; in armada_gem_prime_map_dma_buf() local
395 sgt = kmalloc(sizeof(*sgt), GFP_KERNEL); in armada_gem_prime_map_dma_buf()
396 if (!sgt) in armada_gem_prime_map_dma_buf()
404 if (sg_alloc_table(sgt, count, GFP_KERNEL)) in armada_gem_prime_map_dma_buf()
409 for_each_sgtable_sg(sgt, sg, i) { in armada_gem_prime_map_dma_buf()
419 if (dma_map_sgtable(attach->dev, sgt, dir, 0)) in armada_gem_prime_map_dma_buf()
423 if (sg_alloc_table(sgt, 1, GFP_KERNEL)) in armada_gem_prime_map_dma_buf()
426 sg_set_page(sgt->sgl, dobj->page, dobj->obj.size, 0); in armada_gem_prime_map_dma_buf()
[all …]
/drivers/gpu/drm/virtio/
Dvirtgpu_vram.c75 struct sg_table *sgt; in virtio_gpu_vram_map_dma_buf() local
79 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); in virtio_gpu_vram_map_dma_buf()
80 if (!sgt) in virtio_gpu_vram_map_dma_buf()
90 return sgt; in virtio_gpu_vram_map_dma_buf()
93 ret = sg_alloc_table(sgt, 1, GFP_KERNEL); in virtio_gpu_vram_map_dma_buf()
104 sg_set_page(sgt->sgl, NULL, vram->vram_node.size, 0); in virtio_gpu_vram_map_dma_buf()
105 sg_dma_address(sgt->sgl) = addr; in virtio_gpu_vram_map_dma_buf()
106 sg_dma_len(sgt->sgl) = vram->vram_node.size; in virtio_gpu_vram_map_dma_buf()
108 return sgt; in virtio_gpu_vram_map_dma_buf()
110 sg_free_table(sgt); in virtio_gpu_vram_map_dma_buf()
[all …]
/drivers/xen/
Dgntdev-dmabuf.c46 struct sg_table *sgt; member
65 struct sg_table *sgt; member
198 struct sg_table *sgt; in dmabuf_pages_to_sgt() local
201 sgt = kmalloc(sizeof(*sgt), GFP_KERNEL); in dmabuf_pages_to_sgt()
202 if (!sgt) { in dmabuf_pages_to_sgt()
207 ret = sg_alloc_table_from_pages(sgt, pages, nr_pages, 0, in dmabuf_pages_to_sgt()
213 return sgt; in dmabuf_pages_to_sgt()
216 kfree(sgt); in dmabuf_pages_to_sgt()
241 struct sg_table *sgt = gntdev_dmabuf_attach->sgt; in dmabuf_exp_ops_detach() local
243 if (sgt) { in dmabuf_exp_ops_detach()
[all …]
/drivers/gpu/drm/mediatek/
Dmtk_drm_gem.c196 struct sg_table *sgt; in mtk_gem_prime_get_sg_table() local
199 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); in mtk_gem_prime_get_sg_table()
200 if (!sgt) in mtk_gem_prime_get_sg_table()
203 ret = dma_get_sgtable_attrs(priv->dma_dev, sgt, mtk_gem->cookie, in mtk_gem_prime_get_sg_table()
208 kfree(sgt); in mtk_gem_prime_get_sg_table()
212 return sgt; in mtk_gem_prime_get_sg_table()
239 struct sg_table *sgt = NULL; in mtk_drm_gem_prime_vmap() local
245 sgt = mtk_gem_prime_get_sg_table(obj); in mtk_drm_gem_prime_vmap()
246 if (IS_ERR(sgt)) in mtk_drm_gem_prime_vmap()
247 return PTR_ERR(sgt); in mtk_drm_gem_prime_vmap()
[all …]
/drivers/gpu/drm/i915/
Di915_mm.c37 struct sgt_iter sgt; member
46 return (r->sgt.dma + r->sgt.curr + r->iobase) >> PAGE_SHIFT; in sgt_pfn()
48 return r->sgt.pfn + (r->sgt.curr >> PAGE_SHIFT); in sgt_pfn()
55 if (GEM_WARN_ON(!r->sgt.sgp)) in remap_sg()
63 r->sgt.curr += PAGE_SIZE; in remap_sg()
64 if (r->sgt.curr >= r->sgt.max) in remap_sg()
65 r->sgt = __sgt_iter(__sg_next(r->sgt.sgp), use_dma(r->iobase)); in remap_sg()
136 .sgt = __sgt_iter(sgl, use_dma(iobase)), in remap_io_sg()
/drivers/hwtracing/intel_th/
Dmsu-sink.c51 static int msu_sink_alloc_window(void *data, struct sg_table **sgt, size_t size) in msu_sink_alloc_window() argument
64 ret = sg_alloc_table(*sgt, nents, GFP_KERNEL); in msu_sink_alloc_window()
68 priv->sgts[priv->nr_sgts++] = *sgt; in msu_sink_alloc_window()
70 for_each_sg((*sgt)->sgl, sg_ptr, nents, i) { in msu_sink_alloc_window()
84 static void msu_sink_free_window(void *data, struct sg_table *sgt) in msu_sink_free_window() argument
90 for_each_sg(sgt->sgl, sg_ptr, sgt->nents, i) { in msu_sink_free_window()
95 sg_free_table(sgt); in msu_sink_free_window()
99 static int msu_sink_ready(void *data, struct sg_table *sgt, size_t bytes) in msu_sink_ready() argument
103 intel_th_msc_window_unlock(priv->dev, sgt); in msu_sink_ready()
/drivers/accel/ivpu/
Divpu_gem.c43 struct sg_table *sgt; in prime_map_pages_locked() local
45 sgt = dma_buf_map_attachment_unlocked(bo->base.import_attach, DMA_BIDIRECTIONAL); in prime_map_pages_locked()
46 if (IS_ERR(sgt)) { in prime_map_pages_locked()
47 ivpu_err(vdev, "Failed to map attachment: %ld\n", PTR_ERR(sgt)); in prime_map_pages_locked()
48 return PTR_ERR(sgt); in prime_map_pages_locked()
51 bo->sgt = sgt; in prime_map_pages_locked()
57 dma_buf_unmap_attachment_unlocked(bo->base.import_attach, bo->sgt, DMA_BIDIRECTIONAL); in prime_unmap_pages_locked()
58 bo->sgt = NULL; in prime_unmap_pages_locked()
101 struct sg_table *sgt; in ivpu_bo_map_pages_locked() local
104 sgt = drm_prime_pages_to_sg(&vdev->drm, bo->pages, npages); in ivpu_bo_map_pages_locked()
[all …]
/drivers/gpu/drm/i915/gem/
Di915_gem_dmabuf.c32 struct sg_table *sgt; in i915_gem_map_dma_buf() local
40 sgt = kmalloc(sizeof(*sgt), GFP_KERNEL); in i915_gem_map_dma_buf()
41 if (!sgt) { in i915_gem_map_dma_buf()
46 ret = sg_alloc_table(sgt, obj->mm.pages->orig_nents, GFP_KERNEL); in i915_gem_map_dma_buf()
50 dst = sgt->sgl; in i915_gem_map_dma_buf()
56 ret = dma_map_sgtable(attach->dev, sgt, dir, DMA_ATTR_SKIP_CPU_SYNC); in i915_gem_map_dma_buf()
60 return sgt; in i915_gem_map_dma_buf()
63 sg_free_table(sgt); in i915_gem_map_dma_buf()
65 kfree(sgt); in i915_gem_map_dma_buf()
240 struct sg_table *sgt; in i915_gem_object_get_pages_dmabuf() local
[all …]
/drivers/gpu/drm/
Ddrm_gem_shmem_helper.c143 drm_prime_gem_destroy(obj, shmem->sgt); in drm_gem_shmem_free()
149 if (shmem->sgt) { in drm_gem_shmem_free()
150 dma_unmap_sgtable(obj->dev->dev, shmem->sgt, in drm_gem_shmem_free()
152 sg_free_table(shmem->sgt); in drm_gem_shmem_free()
153 kfree(shmem->sgt); in drm_gem_shmem_free()
449 dma_unmap_sgtable(dev->dev, shmem->sgt, DMA_BIDIRECTIONAL, 0); in drm_gem_shmem_purge()
450 sg_free_table(shmem->sgt); in drm_gem_shmem_purge()
451 kfree(shmem->sgt); in drm_gem_shmem_purge()
452 shmem->sgt = NULL; in drm_gem_shmem_purge()
678 struct sg_table *sgt; in drm_gem_shmem_get_pages_sgt_locked() local
[all …]
Ddrm_prime.c631 struct sg_table *sgt; in drm_gem_map_dma_buf() local
640 sgt = obj->funcs->get_sg_table(obj); in drm_gem_map_dma_buf()
641 if (IS_ERR(sgt)) in drm_gem_map_dma_buf()
642 return sgt; in drm_gem_map_dma_buf()
644 ret = dma_map_sgtable(attach->dev, sgt, dir, in drm_gem_map_dma_buf()
647 sg_free_table(sgt); in drm_gem_map_dma_buf()
648 kfree(sgt); in drm_gem_map_dma_buf()
649 sgt = ERR_PTR(ret); in drm_gem_map_dma_buf()
652 return sgt; in drm_gem_map_dma_buf()
665 struct sg_table *sgt, in drm_gem_unmap_dma_buf() argument
[all …]
Ddrm_gem_dma_helper.c234 drm_prime_gem_destroy(gem_obj, dma_obj->sgt); in drm_gem_dma_free()
424 struct sg_table *sgt; in drm_gem_dma_get_sg_table() local
427 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); in drm_gem_dma_get_sg_table()
428 if (!sgt) in drm_gem_dma_get_sg_table()
431 ret = dma_get_sgtable(obj->dev->dev, sgt, dma_obj->vaddr, in drm_gem_dma_get_sg_table()
436 return sgt; in drm_gem_dma_get_sg_table()
439 kfree(sgt); in drm_gem_dma_get_sg_table()
464 struct sg_table *sgt) in drm_gem_dma_prime_import_sg_table() argument
469 if (drm_prime_get_contiguous_size(sgt) < attach->dmabuf->size) in drm_gem_dma_prime_import_sg_table()
477 dma_obj->dma_addr = sg_dma_address(sgt->sgl); in drm_gem_dma_prime_import_sg_table()
[all …]
/drivers/media/platform/nvidia/tegra-vde/
Ddmabuf-cache.c27 struct sg_table *sgt; member
41 dma_buf_unmap_attachment_unlocked(entry->a, entry->sgt, entry->dma_dir); in tegra_vde_release_entry()
72 struct sg_table *sgt; in tegra_vde_dmabuf_cache_map() local
93 *addrp = sg_dma_address(entry->sgt->sgl); in tegra_vde_dmabuf_cache_map()
105 sgt = dma_buf_map_attachment_unlocked(attachment, dma_dir); in tegra_vde_dmabuf_cache_map()
106 if (IS_ERR(sgt)) { in tegra_vde_dmabuf_cache_map()
108 err = PTR_ERR(sgt); in tegra_vde_dmabuf_cache_map()
112 if (!vde->domain && sgt->nents > 1) { in tegra_vde_dmabuf_cache_map()
125 err = tegra_vde_iommu_map(vde, sgt, &iova, dmabuf->size); in tegra_vde_dmabuf_cache_map()
131 *addrp = sg_dma_address(sgt->sgl); in tegra_vde_dmabuf_cache_map()
[all …]
/drivers/infiniband/core/
Dumem_dmabuf.c17 struct sg_table *sgt; in ib_umem_dmabuf_map_pages() local
26 if (umem_dmabuf->sgt) in ib_umem_dmabuf_map_pages()
29 sgt = dma_buf_map_attachment(umem_dmabuf->attach, in ib_umem_dmabuf_map_pages()
31 if (IS_ERR(sgt)) in ib_umem_dmabuf_map_pages()
32 return PTR_ERR(sgt); in ib_umem_dmabuf_map_pages()
39 for_each_sgtable_dma_sg(sgt, sg, i) { in ib_umem_dmabuf_map_pages()
62 umem_dmabuf->umem.sgt_append.sgt.sgl = umem_dmabuf->first_sg; in ib_umem_dmabuf_map_pages()
63 umem_dmabuf->umem.sgt_append.sgt.nents = nmap; in ib_umem_dmabuf_map_pages()
64 umem_dmabuf->sgt = sgt; in ib_umem_dmabuf_map_pages()
87 if (!umem_dmabuf->sgt) in ib_umem_dmabuf_unmap_pages()
[all …]
/drivers/gpu/drm/etnaviv/
Detnaviv_gem.c23 struct sg_table *sgt = etnaviv_obj->sgt; in etnaviv_gem_scatter_map() local
30 dma_map_sgtable(dev->dev, sgt, DMA_BIDIRECTIONAL, 0); in etnaviv_gem_scatter_map()
36 struct sg_table *sgt = etnaviv_obj->sgt; in etnaviv_gem_scatterlist_unmap() local
54 dma_unmap_sgtable(dev->dev, sgt, DMA_BIDIRECTIONAL, 0); in etnaviv_gem_scatterlist_unmap()
75 if (etnaviv_obj->sgt) { in put_pages()
77 sg_free_table(etnaviv_obj->sgt); in put_pages()
78 kfree(etnaviv_obj->sgt); in put_pages()
79 etnaviv_obj->sgt = NULL; in put_pages()
101 if (!etnaviv_obj->sgt) { in etnaviv_gem_get_pages()
104 struct sg_table *sgt; in etnaviv_gem_get_pages() local
[all …]
/drivers/gpu/drm/lima/
Dlima_gem.c29 struct sg_table sgt; in lima_heap_alloc() local
67 ret = sg_alloc_table_from_pages(&sgt, pages, i, 0, in lima_heap_alloc()
72 if (bo->base.sgt) { in lima_heap_alloc()
73 dma_unmap_sgtable(dev, bo->base.sgt, DMA_BIDIRECTIONAL, 0); in lima_heap_alloc()
74 sg_free_table(bo->base.sgt); in lima_heap_alloc()
76 bo->base.sgt = kmalloc(sizeof(*bo->base.sgt), GFP_KERNEL); in lima_heap_alloc()
77 if (!bo->base.sgt) { in lima_heap_alloc()
83 ret = dma_map_sgtable(dev, &sgt, DMA_BIDIRECTIONAL, 0); in lima_heap_alloc()
87 *bo->base.sgt = sgt; in lima_heap_alloc()
99 dma_unmap_sgtable(dev, &sgt, DMA_BIDIRECTIONAL, 0); in lima_heap_alloc()
[all …]
/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c41 ret = iommu_map_sgtable(private->domain, rk_obj->dma_addr, rk_obj->sgt, in rockchip_gem_iommu_map()
90 rk_obj->sgt = drm_prime_pages_to_sg(rk_obj->base.dev, in rockchip_gem_get_pages()
92 if (IS_ERR(rk_obj->sgt)) { in rockchip_gem_get_pages()
93 ret = PTR_ERR(rk_obj->sgt); in rockchip_gem_get_pages()
104 for_each_sgtable_sg(rk_obj->sgt, s, i) in rockchip_gem_get_pages()
107 dma_sync_sgtable_for_device(drm->dev, rk_obj->sgt, DMA_TO_DEVICE); in rockchip_gem_get_pages()
118 sg_free_table(rk_obj->sgt); in rockchip_gem_put_pages()
119 kfree(rk_obj->sgt); in rockchip_gem_put_pages()
339 dma_unmap_sgtable(drm->dev, rk_obj->sgt, in rockchip_gem_free_object()
342 drm_prime_gem_destroy(obj, rk_obj->sgt); in rockchip_gem_free_object()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dma_buf.c146 struct sg_table *sgt; in amdgpu_dma_buf_map() local
171 sgt = drm_prime_pages_to_sg(obj->dev, in amdgpu_dma_buf_map()
174 if (IS_ERR(sgt)) in amdgpu_dma_buf_map()
175 return sgt; in amdgpu_dma_buf_map()
177 if (dma_map_sgtable(attach->dev, sgt, dir, in amdgpu_dma_buf_map()
185 dir, &sgt); in amdgpu_dma_buf_map()
193 return sgt; in amdgpu_dma_buf_map()
196 sg_free_table(sgt); in amdgpu_dma_buf_map()
197 kfree(sgt); in amdgpu_dma_buf_map()
211 struct sg_table *sgt, in amdgpu_dma_buf_unmap() argument
[all …]
/drivers/fpga/
Dfpga-mgr.c96 struct sg_table *sgt) in fpga_mgr_write_sg() argument
99 return mgr->mops->write_sg(mgr, sgt); in fpga_mgr_write_sg()
182 struct sg_table *sgt) in fpga_mgr_parse_header_sg_first() argument
189 sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG); in fpga_mgr_parse_header_sg_first()
214 struct sg_table *sgt, size_t *ret_size) in fpga_mgr_parse_header_sg() argument
236 len = sg_pcopy_to_buffer(sgt->sgl, sgt->nents, in fpga_mgr_parse_header_sg()
295 struct sg_table *sgt) in fpga_mgr_prepare_sg() argument
310 ret = fpga_mgr_parse_header_sg_first(mgr, info, sgt); in fpga_mgr_prepare_sg()
313 sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG); in fpga_mgr_prepare_sg()
333 buf = fpga_mgr_parse_header_sg(mgr, info, sgt, &len); in fpga_mgr_prepare_sg()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c151 __sg_page_iter_start(&viter->iter.base, vsgt->sgt->sgl, in vmw_piter_start()
152 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start()
171 dma_unmap_sgtable(dev, &vmw_tt->sgt, DMA_BIDIRECTIONAL, 0); in vmw_ttm_unmap_from_dma()
172 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma()
192 return dma_map_sgtable(dev, &vmw_tt->sgt, DMA_BIDIRECTIONAL, 0); in vmw_ttm_map_for_dma()
218 vsgt->sgt = NULL; in vmw_ttm_map_dma()
224 vsgt->sgt = vmw_tt->dma_ttm.sg; in vmw_ttm_map_dma()
226 vsgt->sgt = &vmw_tt->sgt; in vmw_ttm_map_dma()
227 ret = sg_alloc_table_from_pages_segment(&vmw_tt->sgt, in vmw_ttm_map_dma()
250 sg_free_table(vsgt->sgt); in vmw_ttm_map_dma()
[all …]
/drivers/gpu/drm/exynos/
Dexynos_drm_gem.c125 drm_prime_gem_destroy(obj, exynos_gem->sgt); in exynos_drm_gem_destroy()
409 struct sg_table *sgt; in exynos_drm_gem_prime_get_sg_table() local
412 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); in exynos_drm_gem_prime_get_sg_table()
413 if (!sgt) in exynos_drm_gem_prime_get_sg_table()
416 ret = dma_get_sgtable_attrs(to_dma_dev(drm_dev), sgt, exynos_gem->cookie, in exynos_drm_gem_prime_get_sg_table()
421 kfree(sgt); in exynos_drm_gem_prime_get_sg_table()
425 return sgt; in exynos_drm_gem_prime_get_sg_table()
431 struct sg_table *sgt) in exynos_drm_gem_prime_import_sg_table() argument
436 if (drm_prime_get_contiguous_size(sgt) < attach->dmabuf->size) { in exynos_drm_gem_prime_import_sg_table()
455 exynos_gem->dma_addr = sg_dma_address(sgt->sgl); in exynos_drm_gem_prime_import_sg_table()
[all …]
/drivers/accel/qaic/
Dqaic_data.c159 sg_free_table(slice->sgt); in free_slice()
160 kfree(slice->sgt); in free_slice()
170 struct sg_table *sgt; in clone_range_of_sgt_for_slice() local
205 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); in clone_range_of_sgt_for_slice()
206 if (!sgt) { in clone_range_of_sgt_for_slice()
211 ret = sg_alloc_table(sgt, nents, GFP_KERNEL); in clone_range_of_sgt_for_slice()
217 for_each_sgtable_sg(sgt, sg, j) { in clone_range_of_sgt_for_slice()
235 *sgt_out = sgt; in clone_range_of_sgt_for_slice()
239 kfree(sgt); in clone_range_of_sgt_for_slice()
297 for_each_sgtable_sg(slice->sgt, sg, i) { in encode_reqs()
[all …]

12345678