Searched refs:odp (Results 1 – 3 of 3) sorted by relevance
96 static int check_parent(struct ib_umem_odp *odp, in check_parent() argument99 struct mlx5_ib_mr *mr = odp->private; in check_parent()101 return mr && mr->parent == parent && !odp->dying; in check_parent()112 static struct ib_umem_odp *odp_next(struct ib_umem_odp *odp) in odp_next() argument114 struct mlx5_ib_mr *mr = odp->private, *parent = mr->parent; in odp_next()115 struct ib_ucontext_per_mm *per_mm = odp->per_mm; in odp_next()120 rb = rb_next(&odp->interval_tree.rb); in odp_next()123 odp = rb_entry(rb, struct ib_umem_odp, interval_tree.rb); in odp_next()124 if (check_parent(odp, parent)) in odp_next()128 odp = NULL; in odp_next()[all …]
7 mlx5_ib-$(CONFIG_INFINIBAND_ON_DEMAND_PAGING) += odp.o
765 struct ib_umem_odp *odp; in mr_umem_get() local767 odp = ib_umem_odp_get(udata, start, length, access_flags); in mr_umem_get()768 if (IS_ERR(odp)) { in mr_umem_get()770 PTR_ERR(odp)); in mr_umem_get()771 return PTR_ERR(odp); in mr_umem_get()774 u = &odp->umem; in mr_umem_get()776 *page_shift = odp->page_shift; in mr_umem_get()777 *ncont = ib_umem_odp_num_pages(odp); in mr_umem_get()