Home | History | Annotate | Download | only in drm

Lines Matching defs:attach

676  * Optional pinning of buffers is handled at dma-buf attach and detach time in
703 * drm_gem_map_attach - dma_buf attach implementation for GEM
704 * @dma_buf: buffer to attach device to
705 * @attach: buffer attachment data
708 * used as the &dma_buf_ops.attach callback. Must be used together with
714 struct dma_buf_attachment *attach)
725 * @attach: attachment to be detached
732 struct dma_buf_attachment *attach)
742 * @attach: attachment whose scatterlist is to be returned
752 struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach,
755 struct drm_gem_object *obj = attach->dmabuf->priv;
766 if (!dma_map_sg_attrs(attach->dev, sgt->sgl, sgt->nents, dir,
779 * @attach: attachment to unmap buffer from
785 void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
792 dma_unmap_sg_attrs(attach->dev, sgt->sgl, sgt->nents, dir,
961 .attach = drm_gem_map_attach,
1038 * @attach_dev: struct device to dma_buf attach
1058 struct dma_buf_attachment *attach;
1078 attach = dma_buf_attach(dma_buf, attach_dev);
1079 if (IS_ERR(attach))
1080 return ERR_CAST(attach);
1084 sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL);
1090 obj = dev->driver->gem_prime_import_sg_table(dev, attach, sgt);
1096 obj->import_attach = attach;
1102 dma_buf_unmap_attachment(attach, sgt, DMA_BIDIRECTIONAL);
1104 dma_buf_detach(dma_buf, attach);
1289 struct dma_buf_attachment *attach;
1291 attach = obj->import_attach;
1293 dma_buf_unmap_attachment(attach, sg, DMA_BIDIRECTIONAL);
1294 dma_buf = attach->dmabuf;
1295 dma_buf_detach(attach->dmabuf, attach);