Lines Matching full:attach
24 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_map_pages()
29 sgt = dma_buf_map_attachment(umem_dmabuf->attach, in ib_umem_dmabuf_map_pages()
72 ret = dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv, in ib_umem_dmabuf_map_pages()
85 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_unmap_pages()
106 dma_buf_unmap_attachment(umem_dmabuf->attach, umem_dmabuf->sgt, in ib_umem_dmabuf_unmap_pages()
153 umem_dmabuf->attach = dma_buf_dynamic_attach( in ib_umem_dmabuf_get()
158 if (IS_ERR(umem_dmabuf->attach)) { in ib_umem_dmabuf_get()
159 ret = ERR_CAST(umem_dmabuf->attach); in ib_umem_dmabuf_get()
174 ib_umem_dmabuf_unsupported_move_notify(struct dma_buf_attachment *attach) in ib_umem_dmabuf_unsupported_move_notify() argument
176 struct ib_umem_dmabuf *umem_dmabuf = attach->importer_priv; in ib_umem_dmabuf_unsupported_move_notify()
200 dma_resv_lock(umem_dmabuf->attach->dmabuf->resv, NULL); in ib_umem_dmabuf_get_pinned()
201 err = dma_buf_pin(umem_dmabuf->attach); in ib_umem_dmabuf_get_pinned()
209 dma_resv_unlock(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_get_pinned()
214 dma_buf_unpin(umem_dmabuf->attach); in ib_umem_dmabuf_get_pinned()
216 dma_resv_unlock(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_get_pinned()
224 struct dma_buf *dmabuf = umem_dmabuf->attach->dmabuf; in ib_umem_dmabuf_release()
229 dma_buf_unpin(umem_dmabuf->attach); in ib_umem_dmabuf_release()
232 dma_buf_detach(dmabuf, umem_dmabuf->attach); in ib_umem_dmabuf_release()