/drivers/staging/android/ion/ |
D | ion_dma_buf.c | 55 struct dma_buf_attachment *attachment) in ion_dma_buf_attach() argument 72 a->dev = attachment->dev; in ion_dma_buf_attach() 75 attachment->priv = a; in ion_dma_buf_attach() 85 struct dma_buf_attachment *attachment) in ion_dma_buf_detatch() argument 87 struct ion_dma_buf_attachment *a = attachment->priv; in ion_dma_buf_detatch() 98 static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment, in ion_map_dma_buf() argument 101 struct ion_buffer *buffer = attachment->dmabuf->priv; in ion_map_dma_buf() 107 return heap->buf_ops.map_dma_buf(attachment, direction); in ion_map_dma_buf() 109 a = attachment->priv; in ion_map_dma_buf() 112 if (!dma_map_sg(attachment->dev, table->sgl, table->nents, direction)) in ion_map_dma_buf() [all …]
|
/drivers/staging/media/tegra-vde/ |
D | dmabuf-cache.c | 67 struct dma_buf_attachment *attachment; in tegra_vde_dmabuf_cache_map() local 95 attachment = dma_buf_attach(dmabuf, dev); in tegra_vde_dmabuf_cache_map() 96 if (IS_ERR(attachment)) { in tegra_vde_dmabuf_cache_map() 98 err = PTR_ERR(attachment); in tegra_vde_dmabuf_cache_map() 102 sgt = dma_buf_map_attachment(attachment, dma_dir); in tegra_vde_dmabuf_cache_map() 139 entry->a = attachment; in tegra_vde_dmabuf_cache_map() 152 dma_buf_unmap_attachment(attachment, sgt, dma_dir); in tegra_vde_dmabuf_cache_map() 154 dma_buf_detach(dmabuf, attachment); in tegra_vde_dmabuf_cache_map()
|
/drivers/gpu/drm/i915/gem/selftests/ |
D | mock_dmabuf.c | 9 static struct sg_table *mock_map_dma_buf(struct dma_buf_attachment *attachment, in mock_map_dma_buf() argument 12 struct mock_dmabuf *mock = to_mock(attachment->dmabuf); in mock_map_dma_buf() 31 if (!dma_map_sg(attachment->dev, st->sgl, st->nents, dir)) { in mock_map_dma_buf() 45 static void mock_unmap_dma_buf(struct dma_buf_attachment *attachment, in mock_unmap_dma_buf() argument 49 dma_unmap_sg(attachment->dev, st->sgl, st->nents, dir); in mock_unmap_dma_buf()
|
/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 20 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_map_dma_buf() argument 23 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_map_dma_buf() 51 if (!dma_map_sg(attachment->dev, st->sgl, st->nents, dir)) { in i915_gem_map_dma_buf() 68 static void i915_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, in i915_gem_unmap_dma_buf() argument 72 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_unmap_dma_buf() 74 dma_unmap_sg(attachment->dev, sg->sgl, sg->nents, dir); in i915_gem_unmap_dma_buf()
|
/drivers/gpu/drm/omapdrm/ |
D | omap_gem_dmabuf.c | 19 struct dma_buf_attachment *attachment, in omap_gem_map_dma_buf() argument 22 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_map_dma_buf() 56 static void omap_gem_unmap_dma_buf(struct dma_buf_attachment *attachment, in omap_gem_unmap_dma_buf() argument 59 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_unmap_dma_buf()
|
/drivers/misc/ |
D | fastrpc.c | 487 fastrpc_map_dma_buf(struct dma_buf_attachment *attachment, in fastrpc_map_dma_buf() argument 490 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_map_dma_buf() 495 if (!dma_map_sg(attachment->dev, table->sgl, table->nents, dir)) in fastrpc_map_dma_buf() 516 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_attach() argument 534 a->dev = attachment->dev; in fastrpc_dma_buf_attach() 536 attachment->priv = a; in fastrpc_dma_buf_attach() 546 struct dma_buf_attachment *attachment) in fastrpc_dma_buf_detatch() argument 548 struct fastrpc_dma_buf_attachment *a = attachment->priv; in fastrpc_dma_buf_detatch()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_gem.c | 799 struct dma_buf_attachment *attachment; in amdgpu_debugfs_gem_bo_info() local 826 attachment = READ_ONCE(bo->tbo.base.import_attach); in amdgpu_debugfs_gem_bo_info() 828 if (attachment) in amdgpu_debugfs_gem_bo_info()
|
/drivers/sbus/char/ |
D | Kconfig | 29 events, and can also notice the attachment/detachment of external
|
/drivers/char/ |
D | Kconfig | 382 support direct attachment to public switched telephone networks (PSTNs)
|