/linux/drivers/infiniband/sw/rxe/ |
A D | rxe_mw.c | 10 struct rxe_mw *mw = to_rmw(ibmw); in rxe_alloc_mw() 11 struct rxe_pd *pd = to_rpd(ibmw->pd); in rxe_alloc_mw() 12 struct rxe_dev *rxe = to_rdev(ibmw->device); in rxe_alloc_mw() 25 mw->state = (mw->ibmw.type == IB_MW_TYPE_2) ? in rxe_alloc_mw() 55 int rxe_dealloc_mw(struct ib_mw *ibmw) in rxe_dealloc_mw() argument 57 struct rxe_mw *mw = to_rmw(ibmw); in rxe_dealloc_mw() 58 struct rxe_pd *pd = to_rpd(ibmw->pd); in rxe_dealloc_mw() 76 if (mw->ibmw.type == IB_MW_TYPE_1) { in rxe_check_bind_mw() 90 if (mw->ibmw.type == IB_MW_TYPE_2) { in rxe_check_bind_mw() 186 if (mw->ibmw.type == IB_MW_TYPE_2) { in rxe_do_bind_mw() [all …]
|
A D | rxe_verbs.h | 344 struct ib_mw ibmw; member 467 return mw ? container_of(mw, struct rxe_mw, ibmw) : NULL; in to_rmw() 482 return to_rpd(mw->ibmw.pd); in rxe_mw_pd()
|
A D | rxe_loc.h | 95 int rxe_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata); 96 int rxe_dealloc_mw(struct ib_mw *ibmw);
|
A D | rxe_verbs.c | 1117 INIT_RDMA_OBJ_SIZE(ib_mw, rxe_mw, ibmw),
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | mr.c | 614 int mlx4_ib_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in mlx4_ib_alloc_mw() argument 616 struct mlx4_ib_dev *dev = to_mdev(ibmw->device); in mlx4_ib_alloc_mw() 617 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_alloc_mw() 620 err = mlx4_mw_alloc(dev->dev, to_mpd(ibmw->pd)->pdn, in mlx4_ib_alloc_mw() 621 to_mlx4_type(ibmw->type), &mw->mmw); in mlx4_ib_alloc_mw() 629 ibmw->rkey = mw->mmw.key; in mlx4_ib_alloc_mw() 637 int mlx4_ib_dealloc_mw(struct ib_mw *ibmw) in mlx4_ib_dealloc_mw() argument 639 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_dealloc_mw() 641 mlx4_mw_free(to_mdev(ibmw->device)->dev, &mw->mmw); in mlx4_ib_dealloc_mw()
|
A D | mlx4_ib.h | 145 struct ib_mw ibmw; member 703 static inline struct mlx4_ib_mw *to_mmw(struct ib_mw *ibmw) in to_mmw() argument 705 return container_of(ibmw, struct mlx4_ib_mw, ibmw); in to_mmw()
|
A D | main.c | 2610 INIT_RDMA_OBJ_SIZE(ib_mw, mlx4_ib_mw, ibmw),
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_mr.c | 551 int hns_roce_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in hns_roce_alloc_mw() argument 553 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_alloc_mw() 556 struct hns_roce_mw *mw = to_hr_mw(ibmw); in hns_roce_alloc_mw() 570 ibmw->rkey = mw->rkey; in hns_roce_alloc_mw() 571 mw->pdn = to_hr_pd(ibmw->pd)->pdn; in hns_roce_alloc_mw() 587 int hns_roce_dealloc_mw(struct ib_mw *ibmw) in hns_roce_dealloc_mw() argument 589 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_dealloc_mw() 590 struct hns_roce_mw *mw = to_hr_mw(ibmw); in hns_roce_dealloc_mw()
|
A D | hns_roce_device.h | 339 struct ib_mw ibmw; member 1046 static inline struct hns_roce_mw *to_hr_mw(struct ib_mw *ibmw) in to_hr_mw() argument 1048 return container_of(ibmw, struct hns_roce_mw, ibmw); in to_hr_mw() 1214 int hns_roce_dealloc_mw(struct ib_mw *ibmw);
|
A D | hns_roce_main.c | 556 INIT_RDMA_OBJ_SIZE(ib_mw, hns_roce_mw, ibmw),
|
A D | hns_roce_hw_v2.c | 3233 mw->ibmw.type == IB_MW_TYPE_1 ? 0 : 1); in hns_roce_v2_mw_write_mtpt()
|
/linux/drivers/infiniband/hw/irdma/ |
A D | main.h | 387 static inline struct irdma_mr *to_iwmw(struct ib_mw *ibmw) in to_iwmw() argument 389 return container_of(ibmw, struct irdma_mr, ibmw); in to_iwmw()
|
A D | verbs.h | 93 struct ib_mw ibmw; member
|
A D | verbs.c | 2441 if (iwmr->ibmw.type == IB_MW_TYPE_1) in irdma_hw_alloc_mw() 2463 static int irdma_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in irdma_alloc_mw() argument 2465 struct irdma_device *iwdev = to_iwdev(ibmw->device); in irdma_alloc_mw() 2466 struct irdma_mr *iwmr = to_iwmw(ibmw); in irdma_alloc_mw() 2475 ibmw->rkey = stag; in irdma_alloc_mw() 2490 static int irdma_dealloc_mw(struct ib_mw *ibmw) in irdma_dealloc_mw() argument 2492 struct ib_pd *ibpd = ibmw->pd; in irdma_dealloc_mw() 2494 struct irdma_mr *iwmr = to_iwmr((struct ib_mr *)ibmw); in irdma_dealloc_mw() 2495 struct irdma_device *iwdev = to_iwdev(ibmw->device); in irdma_dealloc_mw() 2508 info->stag_idx = ibmw->rkey >> IRDMA_CQPSQ_STAG_IDX_S; in irdma_dealloc_mw() [all …]
|
/linux/drivers/infiniband/hw/cxgb4/ |
A D | iw_cxgb4.h | 410 struct ib_mw ibmw; member 418 static inline struct c4iw_mw *to_c4iw_mw(struct ib_mw *ibmw) in to_c4iw_mw() argument 420 return container_of(ibmw, struct c4iw_mw, ibmw); in to_c4iw_mw()
|
A D | provider.c | 500 INIT_RDMA_OBJ_SIZE(ib_mw, c4iw_mw, ibmw),
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | mlx5_ib.h | 737 struct ib_mw ibmw; member 1214 static inline struct mlx5_ib_mw *to_mmw(struct ib_mw *ibmw) in to_mmw() argument 1216 return container_of(ibmw, struct mlx5_ib_mw, ibmw); in to_mmw()
|
A D | mr.c | 2254 int mlx5_ib_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in mlx5_ib_alloc_mw() argument 2256 struct mlx5_ib_dev *dev = to_mdev(ibmw->device); in mlx5_ib_alloc_mw() 2258 struct mlx5_ib_mw *mw = to_mmw(ibmw); in mlx5_ib_alloc_mw() 2293 MLX5_SET(mkc, mkc, pd, to_mpd(ibmw->pd)->pdn); in mlx5_ib_alloc_mw() 2297 MLX5_SET(mkc, mkc, en_rinval, !!((ibmw->type == IB_MW_TYPE_2))); in mlx5_ib_alloc_mw() 2305 ibmw->rkey = mw->mmkey.key; in mlx5_ib_alloc_mw()
|
A D | main.c | 3800 INIT_RDMA_OBJ_SIZE(ib_mw, mlx5_ib_mw, ibmw),
|