/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_dmabuf.c | 33 struct dma_buf_attachment *attach) 42 attach->priv = exynos_attach; 48 struct dma_buf_attachment *attach) 50 struct exynos_drm_dmabuf_attachment *exynos_attach = attach->priv; 59 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, 64 attach->priv = NULL; 68 exynos_gem_map_dma_buf(struct dma_buf_attachment *attach, argument 71 struct exynos_drm_dmabuf_attachment *exynos_attach = attach->priv; 72 struct exynos_drm_gem_obj *gem_obj = dma_buf_to_obj(attach->dmabuf); 109 nents = dma_map_sg(attach 31 exynos_gem_attach_dma_buf(struct dma_buf *dmabuf, struct device *dev, struct dma_buf_attachment *attach) argument 47 exynos_gem_detach_dma_buf(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument 129 exynos_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument 196 struct dma_buf_attachment *attach; local [all...] |
/drivers/gpu/drm/msm/ |
H A D | msm_gem_prime.c | 41 struct dma_buf_attachment *attach, struct sg_table *sg) 43 return msm_gem_import(dev, attach->dmabuf->size, sg); 40 msm_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
|
H A D | msm_mmu.h | 24 int (*attach)(struct msm_mmu *mmu, const char **names, int cnt); member in struct:msm_mmu_funcs
|
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_prime.c | 38 * DMA-BUF attach- and mapping methods. No need to implement 44 struct dma_buf_attachment *attach) 50 struct dma_buf_attachment *attach) 54 static struct sg_table *vmw_prime_map_dma_buf(struct dma_buf_attachment *attach, argument 60 static void vmw_prime_unmap_dma_buf(struct dma_buf_attachment *attach, argument 106 .attach = vmw_prime_map_attach, 42 vmw_prime_map_attach(struct dma_buf *dma_buf, struct device *target_dev, struct dma_buf_attachment *attach) argument 49 vmw_prime_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument
|
/drivers/acpi/ |
H A D | int340x_thermal.c | 45 .attach = int340x_thermal_handler_attach,
|
H A D | acpi_cmos_rtc.c | 83 .attach = acpi_install_cmos_rtc_space_handler,
|
H A D | acpi_pnp.c | 359 .attach = acpi_pnp_attach,
|
/drivers/gpu/drm/ |
H A D | drm_prime.c | 120 struct dma_buf_attachment *attach) 131 attach->priv = prime_attach; 140 struct dma_buf_attachment *attach) 142 struct drm_prime_attachment *prime_attach = attach->priv; 156 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, 163 attach->priv = NULL; 180 static struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach, argument 183 struct drm_prime_attachment *prime_attach = attach->priv; 184 struct drm_gem_object *obj = attach->dmabuf->priv; 204 if (!dma_map_sg(attach 118 drm_gem_map_attach(struct dma_buf *dma_buf, struct device *target_dev, struct dma_buf_attachment *attach) argument 139 drm_gem_map_detach(struct dma_buf *dma_buf, struct dma_buf_attachment *attach) argument 217 drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument 496 struct dma_buf_attachment *attach; local 748 struct dma_buf_attachment *attach; local [all...] |
/drivers/dma-buf/ |
H A D | dma-buf.c | 414 * calls attach() of dma_buf_ops to allow device-specific attach functionality 415 * @dmabuf: [in] buffer to attach device to. 424 struct dma_buf_attachment *attach; local 430 attach = kzalloc(sizeof(struct dma_buf_attachment), GFP_KERNEL); 431 if (attach == NULL) 434 attach->dev = dev; 435 attach->dmabuf = dmabuf; 439 if (dmabuf->ops->attach) { 440 ret = dmabuf->ops->attach(dmabu 463 dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) argument 488 dma_buf_map_attachment(struct dma_buf_attachment *attach, enum dma_data_direction direction) argument 515 dma_buf_unmap_attachment(struct dma_buf_attachment *attach, struct sg_table *sg_table, enum dma_data_direction direction) argument [all...] |
/drivers/video/adf/ |
H A D | adf_memblock.c | 24 static struct sg_table *adf_memblock_map(struct dma_buf_attachment *attach, argument 27 struct adf_memblock_pdata *pdata = attach->dmabuf->priv; 41 sg_set_page(table->sgl, page, attach->dmabuf->size, 0); 43 nents = dma_map_sg(attach->dev, table->sgl, 1, direction); 58 static void adf_memblock_unmap(struct dma_buf_attachment *attach, argument 61 dma_unmap_sg(attach->dev, table->sgl, 1, direction);
|
H A D | adf.h | 56 if (!dev->ops->attach) 59 return dev->ops->attach(dev, eng, intf);
|
/drivers/gpu/drm/nouveau/ |
H A D | nouveau_prime.c | 60 struct dma_buf_attachment *attach, 64 struct reservation_object *robj = attach->dmabuf->resv; 71 ret = nouveau_bo_new(dev, attach->dmabuf->size, 0, flags, 0, 0, 59 nouveau_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
|
/drivers/gpu/drm/qxl/ |
H A D | qxl_prime.c | 49 struct drm_device *dev, struct dma_buf_attachment *attach, 48 qxl_gem_prime_import_sg_table( struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *table) argument
|
/drivers/staging/comedi/drivers/ |
H A D | amplc_pc236.c | 74 .attach = pc236_attach,
|
/drivers/media/v4l2-core/ |
H A D | videobuf2-dma-contig.c | 238 struct vb2_dc_attachment *attach; local 245 attach = kzalloc(sizeof(*attach), GFP_KERNEL); 246 if (!attach) 249 sgt = &attach->sgt; 255 kfree(attach); 267 attach->dir = DMA_NONE; 268 dbuf_attach->priv = attach; 276 struct vb2_dc_attachment *attach = db_attach->priv; local 279 if (!attach) 296 struct vb2_dc_attachment *attach = db_attach->priv; local [all...] |
/drivers/gpu/drm/udl/ |
H A D | udl_gem.c | 255 struct dma_buf_attachment *attach; local 260 /* need to attach */ 262 attach = dma_buf_attach(dma_buf, dev->dev); 263 if (IS_ERR(attach)) { 265 return ERR_CAST(attach); 270 sg = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); 281 uobj->base.import_attach = attach; 286 dma_buf_unmap_attachment(attach, sg, DMA_BIDIRECTIONAL); 288 dma_buf_detach(dma_buf, attach);
|
/drivers/mtd/ubi/ |
H A 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/staging/android/ion/ |
H A D | ion_test.c | 48 struct dma_buf_attachment *attach; local 55 attach = dma_buf_attach(dma_buf, dev); 56 if (IS_ERR(attach)) 57 return PTR_ERR(attach); 59 table = dma_buf_map_attachment(attach, dir); 95 dma_buf_unmap_attachment(attach, table, dir); 96 dma_buf_detach(dma_buf, attach);
|
/drivers/gpu/drm/radeon/ |
H A D | radeon_prime.c | 61 struct dma_buf_attachment *attach, 64 struct reservation_object *resv = attach->dmabuf->resv; 70 ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false, 60 radeon_gem_prime_import_sg_table(struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sg) argument
|
/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_dcb.h | 31 int (*attach) (struct qlcnic_dcb *); member in struct:qlcnic_dcb_ops 67 if (dcb && dcb->ops->attach) 68 return dcb->ops->attach(dcb);
|
/drivers/gpu/drm/tegra/ |
H A D | gem.c | 176 struct dma_buf_attachment *attach; local 196 attach = dma_buf_attach(buf, drm->dev); 197 if (IS_ERR(attach)) { 198 err = PTR_ERR(attach); 204 bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); 221 bo->gem.import_attach = attach; 227 dma_buf_unmap_attachment(attach, bo->sgt, DMA_TO_DEVICE); 229 dma_buf_detach(buf, attach); 334 tegra_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, argument 337 struct drm_gem_object *gem = attach 356 tegra_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, struct sg_table *sgt, enum dma_data_direction dir) argument [all...] |
/drivers/scsi/pcmcia/ |
H A 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/i915/ |
H A D | i915_gem_dmabuf.c | 272 struct dma_buf_attachment *attach; local 290 /* need to attach */ 291 attach = dma_buf_attach(dma_buf, dev->dev); 292 if (IS_ERR(attach)) 293 return ERR_CAST(attach); 305 obj->base.import_attach = attach; 310 dma_buf_detach(dma_buf, attach);
|
/drivers/gpu/drm/armada/ |
H A D | armada_gem.c | 421 armada_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, argument 424 struct drm_gem_object *obj = attach->dmabuf->priv; 456 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) { 467 if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) 490 static void armada_gem_prime_unmap_dma_buf(struct dma_buf_attachment *attach, argument 493 struct drm_gem_object *obj = attach->dmabuf->priv; 498 dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, dir); 548 struct dma_buf_attachment *attach; local 563 attach = dma_buf_attach(buf, dev->dev); 564 if (IS_ERR(attach)) [all...] |
/drivers/net/wireless/ath/ath5k/ |
H A D | Makefile | 11 ath5k-y += attach.o
|