Lines Matching refs:umem_dmabuf
1571 struct ib_umem_dmabuf *umem_dmabuf = attach->importer_priv; in mlx5_ib_dmabuf_invalidate_cb() local
1572 struct mlx5_ib_mr *mr = umem_dmabuf->private; in mlx5_ib_dmabuf_invalidate_cb()
1574 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in mlx5_ib_dmabuf_invalidate_cb()
1576 if (!umem_dmabuf->sgt) in mlx5_ib_dmabuf_invalidate_cb()
1580 ib_umem_dmabuf_unmap_pages(umem_dmabuf); in mlx5_ib_dmabuf_invalidate_cb()
1595 struct ib_umem_dmabuf *umem_dmabuf; in mlx5_ib_reg_user_mr_dmabuf() local
1610 umem_dmabuf = ib_umem_dmabuf_get(&dev->ib_dev, offset, length, fd, in mlx5_ib_reg_user_mr_dmabuf()
1613 if (IS_ERR(umem_dmabuf)) { in mlx5_ib_reg_user_mr_dmabuf()
1615 PTR_ERR(umem_dmabuf)); in mlx5_ib_reg_user_mr_dmabuf()
1616 return ERR_CAST(umem_dmabuf); in mlx5_ib_reg_user_mr_dmabuf()
1619 mr = alloc_cacheable_mr(pd, &umem_dmabuf->umem, virt_addr, in mlx5_ib_reg_user_mr_dmabuf()
1622 ib_umem_release(&umem_dmabuf->umem); in mlx5_ib_reg_user_mr_dmabuf()
1629 umem_dmabuf->private = mr; in mlx5_ib_reg_user_mr_dmabuf()