/drivers/gpu/drm/exynos/ |
D | exynos_drm_dmabuf.c | 33 struct dma_buf_attachment *attach) in exynos_gem_attach_dma_buf() argument 42 attach->priv = exynos_attach; in exynos_gem_attach_dma_buf() 48 struct dma_buf_attachment *attach) in exynos_gem_detach_dma_buf() argument 50 struct exynos_drm_dmabuf_attachment *exynos_attach = attach->priv; in exynos_gem_detach_dma_buf() 59 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, in exynos_gem_detach_dma_buf() 64 attach->priv = NULL; in exynos_gem_detach_dma_buf() 68 exynos_gem_map_dma_buf(struct dma_buf_attachment *attach, in exynos_gem_map_dma_buf() argument 71 struct exynos_drm_dmabuf_attachment *exynos_attach = attach->priv; in exynos_gem_map_dma_buf() 72 struct exynos_drm_gem_obj *gem_obj = dma_buf_to_obj(attach->dmabuf); in exynos_gem_map_dma_buf() 109 nents = dma_map_sg(attach->dev, sgt->sgl, sgt->orig_nents, dir); in exynos_gem_map_dma_buf() [all …]
|
/drivers/gpu/drm/ |
D | drm_prime.c | 120 struct dma_buf_attachment *attach) in drm_gem_map_attach() argument 131 attach->priv = prime_attach; in drm_gem_map_attach() 140 struct dma_buf_attachment *attach) in drm_gem_map_detach() argument 142 struct drm_prime_attachment *prime_attach = attach->priv; in drm_gem_map_detach() 156 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, in drm_gem_map_detach() 163 attach->priv = NULL; 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() argument 183 struct drm_prime_attachment *prime_attach = attach->priv; in drm_gem_map_dma_buf() 184 struct drm_gem_object *obj = attach->dmabuf->priv; in drm_gem_map_dma_buf() 204 if (!dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir)) { in drm_gem_map_dma_buf() [all …]
|
D | drm_gem_cma_helper.c | 320 struct dma_buf_attachment *attach, in drm_gem_cma_prime_import_sg_table() argument 329 cma_obj = __drm_gem_cma_create(dev, attach->dmabuf->size); in drm_gem_cma_prime_import_sg_table() 336 DRM_DEBUG_PRIME("dma_addr = %pad, size = %zu\n", &cma_obj->paddr, attach->dmabuf->size); in drm_gem_cma_prime_import_sg_table()
|
/drivers/dma-buf/ |
D | dma-buf.c | 424 struct dma_buf_attachment *attach; in dma_buf_attach() local 430 attach = kzalloc(sizeof(struct dma_buf_attachment), GFP_KERNEL); in dma_buf_attach() 431 if (attach == NULL) in dma_buf_attach() 434 attach->dev = dev; in dma_buf_attach() 435 attach->dmabuf = dmabuf; in dma_buf_attach() 439 if (dmabuf->ops->attach) { in dma_buf_attach() 440 ret = dmabuf->ops->attach(dmabuf, dev, attach); in dma_buf_attach() 444 list_add(&attach->node, &dmabuf->attachments); in dma_buf_attach() 447 return attach; in dma_buf_attach() 450 kfree(attach); in dma_buf_attach() [all …]
|
/drivers/media/v4l2-core/ |
D | videobuf2-dma-contig.c | 238 struct vb2_dc_attachment *attach; in vb2_dc_dmabuf_ops_attach() local 245 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dc_dmabuf_ops_attach() 246 if (!attach) in vb2_dc_dmabuf_ops_attach() 249 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_attach() 255 kfree(attach); in vb2_dc_dmabuf_ops_attach() 267 attach->dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach() 268 dbuf_attach->priv = attach; in vb2_dc_dmabuf_ops_attach() 276 struct vb2_dc_attachment *attach = db_attach->priv; in vb2_dc_dmabuf_ops_detach() local 279 if (!attach) in vb2_dc_dmabuf_ops_detach() 282 sgt = &attach->sgt; in vb2_dc_dmabuf_ops_detach() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_prime.c | 44 struct dma_buf_attachment *attach) in vmw_prime_map_attach() argument 50 struct dma_buf_attachment *attach) in vmw_prime_map_detach() argument 54 static struct sg_table *vmw_prime_map_dma_buf(struct dma_buf_attachment *attach, in vmw_prime_map_dma_buf() argument 60 static void vmw_prime_unmap_dma_buf(struct dma_buf_attachment *attach, in vmw_prime_unmap_dma_buf() argument 106 .attach = vmw_prime_map_attach,
|
/drivers/gpu/drm/tegra/ |
D | gem.c | 176 struct dma_buf_attachment *attach; in tegra_bo_import() local 196 attach = dma_buf_attach(buf, drm->dev); in tegra_bo_import() 197 if (IS_ERR(attach)) { in tegra_bo_import() 198 err = PTR_ERR(attach); in tegra_bo_import() 204 bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); in tegra_bo_import() 221 bo->gem.import_attach = attach; in tegra_bo_import() 227 dma_buf_unmap_attachment(attach, bo->sgt, DMA_TO_DEVICE); in tegra_bo_import() 229 dma_buf_detach(buf, attach); in tegra_bo_import() 330 tegra_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, in tegra_gem_prime_map_dma_buf() argument 333 struct drm_gem_object *gem = attach->dmabuf->priv; in tegra_gem_prime_map_dma_buf() [all …]
|
/drivers/video/adf/ |
D | adf_memblock.c | 24 static struct sg_table *adf_memblock_map(struct dma_buf_attachment *attach, in adf_memblock_map() argument 27 struct adf_memblock_pdata *pdata = attach->dmabuf->priv; in adf_memblock_map() 41 sg_set_page(table->sgl, page, attach->dmabuf->size, 0); in adf_memblock_map() 43 nents = dma_map_sg(attach->dev, table->sgl, 1, direction); in adf_memblock_map() 58 static void adf_memblock_unmap(struct dma_buf_attachment *attach, in adf_memblock_unmap() argument 61 dma_unmap_sg(attach->dev, table->sgl, 1, direction); in adf_memblock_unmap()
|
D | adf.h | 56 if (!dev->ops->attach) in adf_device_attach_op() 59 return dev->ops->attach(dev, eng, intf); in adf_device_attach_op()
|
D | adf_fops.c | 439 struct adf_attachment *attach = NULL; in adf_device_get_data() local 454 attach = kzalloc(data.n_attachments * sizeof(attach[0]), in adf_device_get_data() 456 if (!attach) in adf_device_get_data() 459 n_attach = adf_device_attachments(dev, attach, data.n_attachments); in adf_device_get_data() 481 data.n_attachments, attach, n_attach); in adf_device_get_data() 499 kfree(attach); in adf_device_get_data() 504 struct adf_attachment_config __user *arg, bool attach) in adf_device_handle_attachment() argument 527 if (attach) in adf_device_handle_attachment()
|
/drivers/gpu/drm/udl/ |
D | udl_gem.c | 255 struct dma_buf_attachment *attach; in udl_gem_prime_import() local 262 attach = dma_buf_attach(dma_buf, dev->dev); in udl_gem_prime_import() 263 if (IS_ERR(attach)) { in udl_gem_prime_import() 265 return ERR_CAST(attach); in udl_gem_prime_import() 270 sg = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); in udl_gem_prime_import() 281 uobj->base.import_attach = attach; in udl_gem_prime_import() 286 dma_buf_unmap_attachment(attach, sg, DMA_BIDIRECTIONAL); in udl_gem_prime_import() 288 dma_buf_detach(dma_buf, attach); in udl_gem_prime_import()
|
/drivers/gpu/drm/armada/ |
D | armada_gem.c | 421 armada_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_map_dma_buf() argument 424 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_map_dma_buf() 456 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) { in armada_gem_prime_map_dma_buf() 467 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) in armada_gem_prime_map_dma_buf() 490 static void armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, in armada_gem_prime_unmap_dma_buf() argument 493 struct drm_gem_object *obj = attach->dmabuf->priv; in armada_gem_prime_unmap_dma_buf() 498 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, dir); in armada_gem_prime_unmap_dma_buf() 548 struct dma_buf_attachment *attach; in armada_gem_prime_import() local 563 attach = dma_buf_attach(buf, dev->dev); in armada_gem_prime_import() 564 if (IS_ERR(attach)) in armada_gem_prime_import() [all …]
|
/drivers/staging/android/ion/ |
D | ion_test.c | 48 struct dma_buf_attachment *attach; in ion_handle_test_dma() local 55 attach = dma_buf_attach(dma_buf, dev); in ion_handle_test_dma() 56 if (IS_ERR(attach)) in ion_handle_test_dma() 57 return PTR_ERR(attach); in ion_handle_test_dma() 59 table = dma_buf_map_attachment(attach, dir); in ion_handle_test_dma() 95 dma_buf_unmap_attachment(attach, table, dir); in ion_handle_test_dma() 96 dma_buf_detach(dma_buf, attach); in ion_handle_test_dma()
|
/drivers/gpu/drm/i915/ |
D | i915_gem_dmabuf.c | 272 struct dma_buf_attachment *attach; in i915_gem_prime_import() local 291 attach = dma_buf_attach(dma_buf, dev->dev); in i915_gem_prime_import() 292 if (IS_ERR(attach)) in i915_gem_prime_import() 293 return ERR_CAST(attach); in i915_gem_prime_import() 305 obj->base.import_attach = attach; in i915_gem_prime_import() 310 dma_buf_detach(dma_buf, attach); in i915_gem_prime_import()
|
/drivers/net/wireless/prism54/ |
D | oid_mgt.c | 331 struct obj_attachment *attach = data; in mgt_le_to_cpu() local 332 attach->id = le16_to_cpu(attach->id); in mgt_le_to_cpu() 333 attach->size = le16_to_cpu(attach->size); in mgt_le_to_cpu() 400 struct obj_attachment *attach = data; in mgt_cpu_to_le() local 401 attach->id = cpu_to_le16(attach->id); in mgt_cpu_to_le() 402 attach->size = cpu_to_le16(attach->size); in mgt_cpu_to_le() 857 struct obj_attachment *attach = r->ptr; in mgt_response_to_str() local 860 attach->id, in mgt_response_to_str() 861 attach->size); in mgt_response_to_str()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_prime.c | 60 struct dma_buf_attachment *attach, in nouveau_gem_prime_import_sg_table() argument 64 struct reservation_object *robj = attach->dmabuf->resv; in nouveau_gem_prime_import_sg_table() 71 ret = nouveau_bo_new(dev, attach->dmabuf->size, 0, flags, 0, 0, in nouveau_gem_prime_import_sg_table()
|
/drivers/gpu/drm/radeon/ |
D | radeon_prime.c | 61 struct dma_buf_attachment *attach, in radeon_gem_prime_import_sg_table() argument 64 struct reservation_object *resv = attach->dmabuf->resv; in radeon_gem_prime_import_sg_table() 70 ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false, in radeon_gem_prime_import_sg_table()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.h | 31 int (*attach) (struct qlcnic_dcb *); member 67 if (dcb && dcb->ops->attach) in qlcnic_dcb_attach() 68 return dcb->ops->attach(dcb); in qlcnic_dcb_attach()
|
/drivers/scsi/pcmcia/ |
D | Kconfig | 16 Say Y here if you intend to attach this type of PCMCIA SCSI host 25 Say Y here if you intend to attach this type of PCMCIA SCSI host 35 If you intend to attach this type of PCMCIA SCSI host adapter to 68 Say Y here if you intend to attach this type of PCMCIA SCSI host
|
/drivers/gpu/drm/msm/ |
D | msm_gem_prime.c | 41 struct dma_buf_attachment *attach, struct sg_table *sg) in msm_gem_prime_import_sg_table() argument 43 return msm_gem_import(dev, attach->dmabuf->size, sg); in msm_gem_prime_import_sg_table()
|
/drivers/usb/serial/ |
D | io_tables.h | 110 .attach = edge_startup, 142 .attach = edge_startup, 174 .attach = edge_startup, 206 .attach = edge_startup,
|
D | keyspan.h | 549 .attach = keyspan_fake_startup, 569 .attach = keyspan_startup, 593 .attach = keyspan_startup, 617 .attach = keyspan_startup,
|
/drivers/acpi/ |
D | int340x_thermal.c | 45 .attach = int340x_thermal_handler_attach,
|
/drivers/mtd/ubi/ |
D | Makefile | 3 ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o attach.o
|
/drivers/gpu/drm/qxl/ |
D | qxl_prime.c | 49 struct drm_device *dev, struct dma_buf_attachment *attach, in qxl_gem_prime_import_sg_table() argument
|