Searched refs:umem_dmabuf (Results 1 – 6 of 6) sorted by relevance
/linux-5.19.10/drivers/infiniband/core/ |
D | umem_dmabuf.c | 15 int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf) in ib_umem_dmabuf_map_pages() argument 24 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in ib_umem_dmabuf_map_pages() 26 if (umem_dmabuf->sgt) in ib_umem_dmabuf_map_pages() 29 sgt = dma_buf_map_attachment(umem_dmabuf->attach, DMA_BIDIRECTIONAL); in ib_umem_dmabuf_map_pages() 35 start = ALIGN_DOWN(umem_dmabuf->umem.address, PAGE_SIZE); in ib_umem_dmabuf_map_pages() 36 end = ALIGN(umem_dmabuf->umem.address + umem_dmabuf->umem.length, in ib_umem_dmabuf_map_pages() 44 umem_dmabuf->first_sg = sg; in ib_umem_dmabuf_map_pages() 45 umem_dmabuf->first_sg_offset = offset; in ib_umem_dmabuf_map_pages() 53 umem_dmabuf->last_sg = sg; in ib_umem_dmabuf_map_pages() 54 umem_dmabuf->last_sg_trim = trim; in ib_umem_dmabuf_map_pages() [all …]
|
D | Makefile | 43 ib_uverbs-$(CONFIG_INFINIBAND_USER_MEM) += umem.o umem_dmabuf.o
|
/linux-5.19.10/include/rdma/ |
D | ib_umem.h | 147 int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf); 148 void ib_umem_dmabuf_unmap_pages(struct ib_umem_dmabuf *umem_dmabuf); 149 void ib_umem_dmabuf_release(struct ib_umem_dmabuf *umem_dmabuf); 193 static inline int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf) in ib_umem_dmabuf_map_pages() argument 197 static inline void ib_umem_dmabuf_unmap_pages(struct ib_umem_dmabuf *umem_dmabuf) { } in ib_umem_dmabuf_unmap_pages() argument 198 static inline void ib_umem_dmabuf_release(struct ib_umem_dmabuf *umem_dmabuf) { } in ib_umem_dmabuf_release() argument
|
/linux-5.19.10/drivers/infiniband/hw/mlx5/ |
D | mr.c | 1224 struct ib_umem_dmabuf *umem_dmabuf = attach->importer_priv; in mlx5_ib_dmabuf_invalidate_cb() local 1225 struct mlx5_ib_mr *mr = umem_dmabuf->private; in mlx5_ib_dmabuf_invalidate_cb() 1227 dma_resv_assert_held(umem_dmabuf->attach->dmabuf->resv); in mlx5_ib_dmabuf_invalidate_cb() 1229 if (!umem_dmabuf->sgt) in mlx5_ib_dmabuf_invalidate_cb() 1233 ib_umem_dmabuf_unmap_pages(umem_dmabuf); in mlx5_ib_dmabuf_invalidate_cb() 1248 struct ib_umem_dmabuf *umem_dmabuf; in mlx5_ib_reg_user_mr_dmabuf() local 1263 umem_dmabuf = ib_umem_dmabuf_get(&dev->ib_dev, offset, length, fd, in mlx5_ib_reg_user_mr_dmabuf() 1266 if (IS_ERR(umem_dmabuf)) { in mlx5_ib_reg_user_mr_dmabuf() 1268 PTR_ERR(umem_dmabuf)); in mlx5_ib_reg_user_mr_dmabuf() 1269 return ERR_CAST(umem_dmabuf); in mlx5_ib_reg_user_mr_dmabuf() [all …]
|
D | odp.c | 695 struct ib_umem_dmabuf *umem_dmabuf = to_ib_umem_dmabuf(mr->umem); in pagefault_dmabuf_mr() local 703 dma_resv_lock(umem_dmabuf->attach->dmabuf->resv, NULL); in pagefault_dmabuf_mr() 704 err = ib_umem_dmabuf_map_pages(umem_dmabuf); in pagefault_dmabuf_mr() 706 dma_resv_unlock(umem_dmabuf->attach->dmabuf->resv); in pagefault_dmabuf_mr() 710 page_size = mlx5_umem_find_best_pgsz(&umem_dmabuf->umem, mkc, in pagefault_dmabuf_mr() 712 umem_dmabuf->umem.iova); in pagefault_dmabuf_mr() 714 ib_umem_dmabuf_unmap_pages(umem_dmabuf); in pagefault_dmabuf_mr() 719 dma_resv_unlock(umem_dmabuf->attach->dmabuf->resv); in pagefault_dmabuf_mr()
|
/linux-5.19.10/drivers/infiniband/hw/efa/ |
D | efa_verbs.c | 1649 struct ib_umem_dmabuf *umem_dmabuf; in efa_reg_user_mr_dmabuf() local 1659 umem_dmabuf = ib_umem_dmabuf_get_pinned(ibpd->device, start, length, fd, in efa_reg_user_mr_dmabuf() 1661 if (IS_ERR(umem_dmabuf)) { in efa_reg_user_mr_dmabuf() 1662 err = PTR_ERR(umem_dmabuf); in efa_reg_user_mr_dmabuf() 1667 mr->umem = &umem_dmabuf->umem; in efa_reg_user_mr_dmabuf()
|