Lines Matching full:dmabuf
74 * @dmabuf: DMA-buf where we attach to
79 static int amdgpu_dma_buf_attach(struct dma_buf *dmabuf, in amdgpu_dma_buf_attach() argument
83 struct drm_gem_object *obj = dmabuf->priv; in amdgpu_dma_buf_attach()
138 * @dmabuf: DMA-buf where we remove the attachment from
143 static void amdgpu_dma_buf_detach(struct dma_buf *dmabuf, in amdgpu_dma_buf_detach() argument
146 struct drm_gem_object *obj = dmabuf->priv; in amdgpu_dma_buf_detach()
163 struct dma_buf *dmabuf = attach->dmabuf; in amdgpu_dma_buf_pin() local
164 struct amdgpu_bo *bo = gem_to_amdgpu_bo(dmabuf->priv); in amdgpu_dma_buf_pin()
167 dma_resv_assert_held(dmabuf->resv); in amdgpu_dma_buf_pin()
177 list_for_each_entry(attach, &dmabuf->attachments, node) in amdgpu_dma_buf_pin()
199 struct drm_gem_object *obj = attach->dmabuf->priv; in amdgpu_dma_buf_unpin()
221 struct dma_buf *dma_buf = attach->dmabuf; in amdgpu_dma_buf_map()
302 struct drm_gem_object *obj = attach->dmabuf->priv; in amdgpu_dma_buf_unmap()
516 * DMABuf imports are initialized in the right VM list. in amdgpu_dma_buf_move_notify()
597 * Importing dmabuf exported from out own gem increases in amdgpu_gem_prime_import()
598 * refcount on gem itself instead of f_count of dmabuf. in amdgpu_gem_prime_import()
628 * True if dmabuf accessible over xgmi, false otherwise.
640 struct dma_buf *dma_buf = obj->import_attach->dmabuf; in amdgpu_dmabuf_is_xgmi_accessible()