Home
last modified time | relevance | path

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

12

/drivers/infiniband/sw/rdmavt/
Dmr.h58 struct ib_mr ibmr;
68 static inline struct rvt_mr *to_imr(struct ib_mr *ibmr) in to_imr()
77 struct ib_mr *rvt_get_dma_mr(struct ib_pd *pd, int acc);
78 struct ib_mr *rvt_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
81 int rvt_dereg_mr(struct ib_mr *ibmr);
82 struct ib_mr *rvt_alloc_mr(struct ib_pd *pd,
85 int rvt_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg,
Dmr.c309 struct ib_mr *rvt_get_dma_mr(struct ib_pd *pd, int acc) in rvt_get_dma_mr()
312 struct ib_mr *ret; in rvt_get_dma_mr()
358 struct ib_mr *rvt_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in rvt_reg_user_mr()
366 struct ib_mr *ret; in rvt_reg_user_mr()
380 ret = (struct ib_mr *)mr; in rvt_reg_user_mr()
432 int rvt_dereg_mr(struct ib_mr *ibmr) in rvt_dereg_mr()
467 struct ib_mr *rvt_alloc_mr(struct ib_pd *pd, in rvt_alloc_mr()
478 return (struct ib_mr *)mr; in rvt_alloc_mr()
490 static int rvt_set_page(struct ib_mr *ibmr, u64 addr) in rvt_set_page()
523 int rvt_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, in rvt_map_mr_sg()
[all …]
/drivers/infiniband/core/
Dmr_pool.c16 struct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list) in ib_mr_pool_get()
18 struct ib_mr *mr; in ib_mr_pool_get()
22 mr = list_first_entry_or_null(list, struct ib_mr, qp_entry); in ib_mr_pool_get()
33 void ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr) in ib_mr_pool_put()
47 struct ib_mr *mr; in ib_mr_pool_init()
72 struct ib_mr *mr; in ib_mr_pool_destroy()
77 mr = list_first_entry(list, struct ib_mr, qp_entry); in ib_mr_pool_destroy()
Dverbs.c257 struct ib_mr *mr; in __ib_alloc_pd()
1416 int ib_dereg_mr(struct ib_mr *mr) in ib_dereg_mr()
1441 struct ib_mr *ib_alloc_mr(struct ib_pd *pd, in ib_alloc_mr()
1445 struct ib_mr *mr; in ib_alloc_mr()
1759 int ib_check_mr_status(struct ib_mr *mr, u32 check_mask, in ib_check_mr_status()
1832 int ib_map_mr_sg(struct ib_mr *mr, struct scatterlist *sg, int sg_nents, in ib_map_mr_sg()
1864 int ib_sg_to_pages(struct ib_mr *mr, struct scatterlist *sgl, int sg_nents, in ib_sg_to_pages()
1865 unsigned int *sg_offset_p, int (*set_page)(struct ib_mr *, u64)) in ib_sg_to_pages() argument
/drivers/infiniband/hw/qedr/
Dverbs.h76 int qedr_dereg_mr(struct ib_mr *);
77 struct ib_mr *qedr_get_dma_mr(struct ib_pd *, int acc);
79 struct ib_mr *qedr_reg_user_mr(struct ib_pd *, u64 start, u64 length,
82 int qedr_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg,
85 struct ib_mr *qedr_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h118 int ocrdma_dereg_mr(struct ib_mr *);
119 struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *, int acc);
120 struct ib_mr *ocrdma_reg_user_mr(struct ib_pd *, u64 start, u64 length,
122 struct ib_mr *ocrdma_alloc_mr(struct ib_pd *pd,
125 int ocrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.h68 struct ib_mr *usnic_ib_reg_mr(struct ib_pd *pd, u64 start, u64 length,
71 int usnic_ib_dereg_mr(struct ib_mr *ibmr);
88 struct ib_mr *usnic_ib_get_dma_mr(struct ib_pd *pd, int acc);
Dusnic_ib.h65 struct ib_mr ibmr;
121 struct usnic_ib_mr *to_umr(struct ib_mr *ibmr) in to_umr()
/drivers/infiniband/hw/mlx5/
Dmlx5_ib.h497 struct ib_mr ibmr;
714 static inline struct mlx5_ib_mr *to_mmr(struct ib_mr *ibmr) in to_mmr()
780 struct ib_mr *mlx5_ib_get_dma_mr(struct ib_pd *pd, int acc);
781 struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
789 int mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start,
792 int mlx5_ib_dereg_mr(struct ib_mr *ibmr);
793 struct ib_mr *mlx5_ib_alloc_mr(struct ib_pd *pd,
796 int mlx5_ib_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
841 int mlx5_ib_check_mr_status(struct ib_mr *ibmr, u32 check_mask,
Dmr.c696 struct ib_mr *mlx5_ib_get_dma_mr(struct ib_pd *pd, int acc) in mlx5_ib_get_dma_mr()
1094 static struct mlx5_ib_mr *reg_create(struct ib_mr *ibmr, struct ib_pd *pd, in reg_create()
1181 struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in mlx5_ib_reg_user_mr()
1349 int mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start, in mlx5_ib_rereg_user_mr() argument
1353 struct mlx5_ib_dev *dev = to_mdev(ib_mr->device); in mlx5_ib_rereg_user_mr()
1354 struct mlx5_ib_mr *mr = to_mmr(ib_mr); in mlx5_ib_rereg_user_mr()
1355 struct ib_pd *pd = (flags & IB_MR_REREG_PD) ? new_pd : ib_mr->pd; in mlx5_ib_rereg_user_mr()
1402 mr = reg_create(ib_mr, pd, addr, len, mr->umem, ncont, in mlx5_ib_rereg_user_mr()
1422 ib_mr->pd = pd; in mlx5_ib_rereg_user_mr()
1531 int mlx5_ib_dereg_mr(struct ib_mr *ibmr) in mlx5_ib_dereg_mr()
[all …]
/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()
134 struct ib_mr *mlx4_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in mlx4_ib_reg_user_mr()
189 int mlx4_ib_rereg_user_mr(struct ib_mr *mr, int flags, in mlx4_ib_rereg_user_mr()
323 int mlx4_ib_dereg_mr(struct ib_mr *ibmr) in mlx4_ib_dereg_mr()
383 struct ib_mr *mlx4_ib_alloc_mr(struct ib_pd *pd, in mlx4_ib_alloc_mr()
521 static int mlx4_set_page(struct ib_mr *ibmr, u64 addr) in mlx4_set_page()
533 int mlx4_ib_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents, in mlx4_ib_map_mr_sg()
Dmlx4_ib.h135 struct ib_mr ibmr;
659 static inline struct mlx4_ib_mr *to_mmr(struct ib_mr *ibmr) in to_mmr()
718 struct ib_mr *mlx4_ib_get_dma_mr(struct ib_pd *pd, int acc);
721 struct ib_mr *mlx4_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
724 int mlx4_ib_dereg_mr(struct ib_mr *mr);
728 struct ib_mr *mlx4_ib_alloc_mr(struct ib_pd *pd,
731 int mlx4_ib_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
881 int mlx4_ib_rereg_user_mr(struct ib_mr *mr, int flags,
/drivers/infiniband/hw/nes/
Dnes_verbs.h74 struct ib_mr ibmr;
149 struct ib_mr *lsmm_mr;
196 struct ib_mr *nes_reg_phys_mr(struct ib_pd *ib_pd,
Dnes_verbs.c54 static int nes_dereg_mr(struct ib_mr *ib_mr);
308 static struct ib_mr *nes_alloc_mr(struct ib_pd *ibpd, in nes_alloc_mr()
325 struct ib_mr *ibmr; in nes_alloc_mr()
393 static int nes_set_page(struct ib_mr *ibmr, u64 addr) in nes_set_page()
405 static int nes_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, in nes_map_mr_sg()
2005 struct ib_mr *nes_reg_phys_mr(struct ib_pd *ib_pd, u64 addr, u64 size, in nes_reg_phys_mr()
2014 struct ib_mr *ibmr; in nes_reg_phys_mr()
2123 static struct ib_mr *nes_get_dma_mr(struct ib_pd *pd, int acc) in nes_get_dma_mr()
2135 static struct ib_mr *nes_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in nes_reg_user_mr()
2147 struct ib_mr *ibmr = ERR_PTR(-EINVAL); in nes_reg_user_mr()
[all …]
/drivers/infiniband/hw/cxgb4/
Dmem.c421 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc) in c4iw_get_dma_mr()
474 struct ib_mr *c4iw_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in c4iw_reg_user_mr()
652 struct ib_mr *c4iw_alloc_mr(struct ib_pd *pd, in c4iw_alloc_mr()
723 static int c4iw_set_page(struct ib_mr *ibmr, u64 addr) in c4iw_set_page()
735 int c4iw_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents, in c4iw_map_mr_sg()
745 int c4iw_dereg_mr(struct ib_mr *ib_mr) in c4iw_dereg_mr() argument
751 PDBG("%s ib_mr %p\n", __func__, ib_mr); in c4iw_dereg_mr()
753 mhp = to_c4iw_mr(ib_mr); in c4iw_dereg_mr()
Diw_cxgb4.h388 struct ib_mr ibmr;
400 static inline struct c4iw_mr *to_c4iw_mr(struct ib_mr *ibmr) in to_c4iw_mr()
956 struct ib_mr *c4iw_alloc_mr(struct ib_pd *pd,
959 int c4iw_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
964 struct ib_mr *c4iw_reg_user_mr(struct ib_pd *pd, u64 start,
967 struct ib_mr *c4iw_get_dma_mr(struct ib_pd *pd, int acc);
968 int c4iw_dereg_mr(struct ib_mr *ib_mr);
/drivers/infiniband/hw/i40iw/
Di40iw_verbs.h88 struct ib_mr ibmr;
143 struct ib_mr *lsmm_mr;
Di40iw_verbs.c1496 static struct ib_mr *i40iw_alloc_mr(struct ib_pd *pd, in i40iw_alloc_mr()
1556 static int i40iw_set_page(struct ib_mr *ibmr, u64 addr) in i40iw_set_page()
1577 static int i40iw_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, in i40iw_map_mr_sg()
1680 static struct ib_mr *i40iw_reg_user_mr(struct ib_pd *pd, in i40iw_reg_user_mr()
1707 return (struct ib_mr *)region; in i40iw_reg_user_mr()
1807 struct ib_mr *i40iw_reg_phys_mr(struct ib_pd *pd, in i40iw_reg_phys_mr()
1862 static struct ib_mr *i40iw_get_dma_mr(struct ib_pd *pd, int acc) in i40iw_get_dma_mr()
1902 static int i40iw_dereg_mr(struct ib_mr *ib_mr) in i40iw_dereg_mr() argument
1904 struct ib_pd *ibpd = ib_mr->pd; in i40iw_dereg_mr()
1906 struct i40iw_mr *iwmr = to_iwmr(ib_mr); in i40iw_dereg_mr()
[all …]
/drivers/infiniband/hw/hns/
Dhns_roce_device.h236 struct ib_mr ibmr;
580 static inline struct hns_roce_mr *to_hr_mr(struct ib_mr *ibmr) in to_hr_mr()
679 struct ib_mr *hns_roce_get_dma_mr(struct ib_pd *pd, int acc);
680 struct ib_mr *hns_roce_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
683 int hns_roce_dereg_mr(struct ib_mr *ibmr);
/drivers/infiniband/hw/mthca/
Dmthca_provider.h74 struct ib_mr ibmr;
309 static inline struct mthca_mr *to_mmr(struct ib_mr *ibmr) in to_mmr()
/drivers/infiniband/ulp/iser/
Discsi_iser.h400 struct ib_mr *mr;
417 struct ib_mr *sig_mr;
556 struct ib_mr fake_mr;
Diser_memory.c217 static int iser_set_page(struct ib_mr *mr, u64 addr) in iser_set_page()
372 struct ib_mr *mr, in iser_inv_rkey()
393 struct ib_mr *mr = pi_ctx->sig_mr; in iser_reg_sig_mr()
444 struct ib_mr *mr = rsc->mr; in iser_fast_reg_mr()
/drivers/infiniband/hw/cxgb3/
Diwch_provider.h75 struct ib_mr ibmr;
86 static inline struct iwch_mr *to_iwch_mr(struct ib_mr *ibmr) in to_iwch_mr()
Diwch_provider.c454 static int iwch_dereg_mr(struct ib_mr *ib_mr) in iwch_dereg_mr() argument
460 PDBG("%s ib_mr %p\n", __func__, ib_mr); in iwch_dereg_mr()
462 mhp = to_iwch_mr(ib_mr); in iwch_dereg_mr()
479 static struct ib_mr *iwch_get_dma_mr(struct ib_pd *pd, int acc) in iwch_get_dma_mr()
557 static struct ib_mr *iwch_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, in iwch_reg_user_mr()
714 static struct ib_mr *iwch_alloc_mr(struct ib_pd *pd, in iwch_alloc_mr()
774 static int iwch_set_page(struct ib_mr *ibmr, u64 addr) in iwch_set_page()
786 static int iwch_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, in iwch_map_mr_sg()
/drivers/infiniband/sw/rxe/
Drxe_verbs.h312 struct ib_mr ibmr;
465 static inline struct rxe_mem *to_rmr(struct ib_mr *mr) in to_rmr()

12