Home
last modified time | relevance | path

Searched refs:ib_mr (Results 1 – 25 of 76) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dmr.h54 struct ib_mr ibmr;
59 static inline struct rvt_mr *to_imr(struct ib_mr *ibmr) in to_imr()
68 struct ib_mr *rvt_get_dma_mr(struct ib_pd *pd, int acc);
69 struct ib_mr *rvt_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
72 int rvt_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
73 struct ib_mr *rvt_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
75 int rvt_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg,
Dmr.c328 struct ib_mr *rvt_get_dma_mr(struct ib_pd *pd, int acc) in rvt_get_dma_mr()
331 struct ib_mr *ret; in rvt_get_dma_mr()
377 struct ib_mr *rvt_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in rvt_reg_user_mr()
385 struct ib_mr *ret; in rvt_reg_user_mr()
398 ret = (struct ib_mr *)mr; in rvt_reg_user_mr()
550 int rvt_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) in rvt_dereg_mr()
576 struct ib_mr *rvt_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type, in rvt_alloc_mr()
586 return (struct ib_mr *)mr; in rvt_alloc_mr()
598 static int rvt_set_page(struct ib_mr *ibmr, u64 addr) in rvt_set_page()
629 int rvt_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, in rvt_map_mr_sg()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dmr_pool.c8 struct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list) in ib_mr_pool_get()
10 struct ib_mr *mr; in ib_mr_pool_get()
14 mr = list_first_entry_or_null(list, struct ib_mr, qp_entry); in ib_mr_pool_get()
25 void ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr) in ib_mr_pool_put()
39 struct ib_mr *mr; in ib_mr_pool_init()
68 struct ib_mr *mr; in ib_mr_pool_destroy()
73 mr = list_first_entry(list, struct ib_mr, qp_entry); in ib_mr_pool_destroy()
Duverbs_std_types_mr.c42 return ib_dereg_mr_user((struct ib_mr *)uobject->object, in uverbs_free_mr()
94 struct ib_mr *mr; in UVERBS_HANDLER()
158 struct ib_mr *mr = in UVERBS_HANDLER()
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h99 int ocrdma_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata);
100 struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *, int acc);
101 struct ib_mr *ocrdma_reg_user_mr(struct ib_pd *, u64 start, u64 length,
103 struct ib_mr *ocrdma_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
105 int ocrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.h111 struct ib_mr ib_mr; member
199 struct ib_mr *bnxt_re_get_dma_mr(struct ib_pd *pd, int mr_access_flags);
201 int bnxt_re_map_mr_sg(struct ib_mr *ib_mr, struct scatterlist *sg, int sg_nents,
203 struct ib_mr *bnxt_re_alloc_mr(struct ib_pd *ib_pd, enum ib_mr_type mr_type,
205 int bnxt_re_dereg_mr(struct ib_mr *mr, struct ib_udata *udata);
209 struct ib_mr *bnxt_re_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
Dib_verbs.c387 struct ib_mr *ib_mr = &fence->mr->ib_mr; in bnxt_re_create_fence_wqe() local
396 wqe->bind.parent_l_key = ib_mr->lkey; in bnxt_re_create_fence_wqe()
448 if (mr->ib_mr.rkey) in bnxt_re_destroy_fence_mr()
451 if (mr->ib_mr.lkey) in bnxt_re_destroy_fence_mr()
504 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_create_fence_mr()
514 mr->ib_mr.rkey = mr->qplib_mr.rkey; in bnxt_re_create_fence_mr()
2465 struct bnxt_re_mr *mr = container_of(wr->mr, struct bnxt_re_mr, ib_mr); in bnxt_re_build_reg_wqe()
3586 struct ib_mr *bnxt_re_get_dma_mr(struct ib_pd *ib_pd, int mr_access_flags) in bnxt_re_get_dma_mr()
3615 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_get_dma_mr()
3618 mr->ib_mr.rkey = mr->ib_mr.lkey; in bnxt_re_get_dma_mr()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dverbs.h78 int qedr_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata);
79 struct ib_mr *qedr_get_dma_mr(struct ib_pd *, int acc);
81 struct ib_mr *qedr_reg_user_mr(struct ib_pd *, u64 start, u64 length,
84 int qedr_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg,
87 struct ib_mr *qedr_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_verbs.h68 struct ib_mr *siw_reg_user_mr(struct ib_pd *base_pd, u64 start, u64 len,
70 struct ib_mr *siw_alloc_mr(struct ib_pd *base_pd, enum ib_mr_type mr_type,
72 struct ib_mr *siw_get_dma_mr(struct ib_pd *base_pd, int rights);
73 int siw_map_mr_sg(struct ib_mr *base_mr, struct scatterlist *sl, int num_sle,
75 int siw_dereg_mr(struct ib_mr *base_mr, struct ib_udata *udata);
/kernel/linux/linux-5.10/net/rds/
Dib_rdma.c45 struct ib_mr *mr;
573 struct ib_mr *ib_mr; in rds_ib_get_mr() local
580 ib_mr = ib_reg_user_mr(rds_ibdev->pd, start, length, virt_addr, in rds_ib_get_mr()
583 if (IS_ERR(ib_mr)) { in rds_ib_get_mr()
585 IS_ERR(ib_mr)); in rds_ib_get_mr()
586 ret = PTR_ERR(ib_mr); in rds_ib_get_mr()
590 *key_ret = ib_mr->rkey; in rds_ib_get_mr()
594 ib_dereg_mr(ib_mr); in rds_ib_get_mr()
598 ibmr->u.mr = ib_mr; in rds_ib_get_mr()
603 sge.lkey = ib_mr->lkey; in rds_ib_get_mr()
Dib_mr.h53 struct ib_mr *mr;
84 struct ib_mr *mr;
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_mr.c58 struct ib_mr *pvrdma_get_dma_mr(struct ib_pd *pd, int acc) in pvrdma_get_dma_mr()
111 struct ib_mr *pvrdma_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in pvrdma_reg_user_mr()
204 struct ib_mr *pvrdma_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type, in pvrdma_alloc_mr()
277 int pvrdma_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) in pvrdma_dereg_mr()
302 static int pvrdma_set_page(struct ib_mr *ibmr, u64 addr) in pvrdma_set_page()
313 int pvrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents, in pvrdma_map_mr_sg()
Dpvrdma_verbs.h403 struct ib_mr *pvrdma_get_dma_mr(struct ib_pd *pd, int acc);
404 struct ib_mr *pvrdma_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
407 int pvrdma_dereg_mr(struct ib_mr *mr, struct ib_udata *udata);
408 struct ib_mr *pvrdma_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
410 int pvrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg,
/kernel/linux/linux-5.10/include/rdma/
Dmr_pool.h10 struct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list);
11 void ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr);
Dib_verbs.h1411 struct ib_mr *mr;
1530 struct ib_mr *__internal_mr;
1789 struct ib_mr { struct
2428 struct ib_mr *(*get_dma_mr)(struct ib_pd *pd, int mr_access_flags);
2429 struct ib_mr *(*reg_user_mr)(struct ib_pd *pd, u64 start, u64 length,
2432 int (*rereg_user_mr)(struct ib_mr *mr, int flags, u64 start, u64 length,
2435 int (*dereg_mr)(struct ib_mr *mr, struct ib_udata *udata);
2436 struct ib_mr *(*alloc_mr)(struct ib_pd *pd, enum ib_mr_type mr_type,
2438 struct ib_mr *(*alloc_mr_integrity)(struct ib_pd *pd,
2445 int (*map_mr_sg)(struct ib_mr *mr, struct scatterlist *sg, int sg_nents,
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_ib.h69 struct ib_mr ibmr;
125 struct usnic_ib_mr *to_umr(struct ib_mr *ibmr) in to_umr()
Dusnic_ib_verbs.h62 struct ib_mr *usnic_ib_reg_mr(struct ib_pd *pd, u64 start, u64 length,
65 int usnic_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Drestrack.c81 static int fill_stat_mr_entry(struct sk_buff *msg, struct ib_mr *ibmr) in fill_stat_mr_entry()
115 static int fill_res_mr_entry_raw(struct sk_buff *msg, struct ib_mr *ibmr) in fill_res_mr_entry_raw()
123 static int fill_res_mr_entry(struct sk_buff *msg, struct ib_mr *ibmr) in fill_res_mr_entry()
Dmlx5_ib.h590 struct ib_mr ibmr;
1103 static inline struct mlx5_ib_mr *to_mmr(struct ib_mr *ibmr) in to_mmr()
1173 struct ib_mr *mlx5_ib_get_dma_mr(struct ib_pd *pd, int acc);
1174 struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
1192 int mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start,
1195 int mlx5_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
1196 struct ib_mr *mlx5_ib_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
1198 struct ib_mr *mlx5_ib_alloc_mr_integrity(struct ib_pd *pd,
1201 int mlx5_ib_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
1203 int mlx5_ib_map_mr_sg_pi(struct ib_mr *ibmr, struct scatterlist *data_sg,
[all …]
Dmr.c807 struct ib_mr *mlx5_ib_get_dma_mr(struct ib_pd *pd, int acc) in mlx5_ib_get_dma_mr()
1165 static struct mlx5_ib_mr *reg_create(struct ib_mr *ibmr, struct ib_pd *pd, in reg_create()
1259 static struct ib_mr *mlx5_ib_get_dm_mr(struct ib_pd *pd, u64 start_addr, in mlx5_ib_get_dm_mr()
1321 struct ib_mr *mlx5_ib_reg_dm_mr(struct ib_pd *pd, struct ib_dm *dm, in mlx5_ib_reg_dm_mr()
1353 struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in mlx5_ib_reg_user_mr()
1513 int mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start, in mlx5_ib_rereg_user_mr() argument
1517 struct mlx5_ib_dev *dev = to_mdev(ib_mr->device); in mlx5_ib_rereg_user_mr()
1518 struct mlx5_ib_mr *mr = to_mmr(ib_mr); in mlx5_ib_rereg_user_mr()
1519 struct ib_pd *pd = (flags & IB_MR_REREG_PD) ? new_pd : ib_mr->pd; in mlx5_ib_rereg_user_mr()
1581 mr = reg_create(ib_mr, pd, addr, len, mr->umem, ncont, in mlx5_ib_rereg_user_mr()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/
Defa.h78 struct ib_mr ibmr;
141 struct ib_mr *efa_reg_mr(struct ib_pd *ibpd, u64 start, u64 length,
144 int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dmr.c58 struct ib_mr *mlx4_ib_get_dma_mr(struct ib_pd *pd, int acc) in mlx4_ib_get_dma_mr()
406 struct ib_mr *mlx4_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in mlx4_ib_reg_user_mr()
459 int mlx4_ib_rereg_user_mr(struct ib_mr *mr, int flags, in mlx4_ib_rereg_user_mr()
597 int mlx4_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) in mlx4_ib_dereg_mr()
645 struct ib_mr *mlx4_ib_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type, in mlx4_ib_alloc_mr()
689 static int mlx4_set_page(struct ib_mr *ibmr, u64 addr) in mlx4_set_page()
701 int mlx4_ib_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents, in mlx4_ib_map_mr_sg()
Dmlx4_ib.h134 struct ib_mr ibmr;
698 static inline struct mlx4_ib_mr *to_mmr(struct ib_mr *ibmr) in to_mmr()
752 struct ib_mr *mlx4_ib_get_dma_mr(struct ib_pd *pd, int acc);
755 struct ib_mr *mlx4_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
758 int mlx4_ib_dereg_mr(struct ib_mr *mr, struct ib_udata *udata);
761 struct ib_mr *mlx4_ib_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
763 int mlx4_ib_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
911 int mlx4_ib_rereg_user_mr(struct ib_mr *mr, int flags,
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_verbs.h90 struct ib_mr ibmr;
145 struct ib_mr *lsmm_mr;
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/
Diw_cxgb4.h396 struct ib_mr ibmr;
409 static inline struct c4iw_mr *to_c4iw_mr(struct ib_mr *ibmr) in to_c4iw_mr()
982 struct ib_mr *c4iw_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
984 int c4iw_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
989 struct ib_mr *c4iw_reg_user_mr(struct ib_pd *pd, u64 start,
992 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc);
993 int c4iw_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata);
1055 int c4iw_fill_res_mr_entry(struct sk_buff *msg, struct ib_mr *ibmr);

1234