Lines Matching full:attach
28 static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attach, in i915_gem_map_dma_buf() argument
31 struct drm_i915_gem_object *obj = dma_buf_to_obj(attach->dmabuf); 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()
168 struct dma_buf_attachment *attach) in i915_gem_dmabuf_attach() argument
197 struct dma_buf_attachment *attach) in i915_gem_dmabuf_detach() argument
205 .attach = i915_gem_dmabuf_attach,
286 struct dma_buf_attachment *attach; in i915_gem_prime_import() local
307 /* need to attach */ in i915_gem_prime_import()
308 attach = dma_buf_attach(dma_buf, dev->dev); in i915_gem_prime_import()
309 if (IS_ERR(attach)) in i915_gem_prime_import()
310 return ERR_CAST(attach); in i915_gem_prime_import()
323 obj->base.import_attach = attach; in i915_gem_prime_import()
339 dma_buf_detach(dma_buf, attach); in i915_gem_prime_import()