| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx4/ |
| H A D | mr.c | 613 int mlx4_ib_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in mlx4_ib_alloc_mw() argument 615 struct mlx4_ib_dev *dev = to_mdev(ibmw->device); in mlx4_ib_alloc_mw() 616 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_alloc_mw() 619 err = mlx4_mw_alloc(dev->dev, to_mpd(ibmw->pd)->pdn, in mlx4_ib_alloc_mw() 620 to_mlx4_type(ibmw->type), &mw->mmw); in mlx4_ib_alloc_mw() 628 ibmw->rkey = mw->mmw.key; in mlx4_ib_alloc_mw() 636 int mlx4_ib_dealloc_mw(struct ib_mw *ibmw) in mlx4_ib_dealloc_mw() argument 638 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_dealloc_mw() 640 mlx4_mw_free(to_mdev(ibmw->device)->dev, &mw->mmw); in mlx4_ib_dealloc_mw()
|
| H 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()
|
| H A D | main.c | 2587 INIT_RDMA_OBJ_SIZE(ib_mw, mlx4_ib_mw, ibmw),
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_mr.c | 591 int hns_roce_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in hns_roce_alloc_mw() argument 593 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_alloc_mw() 594 struct hns_roce_mw *mw = to_hr_mw(ibmw); in hns_roce_alloc_mw() 605 ibmw->rkey = mw->rkey; in hns_roce_alloc_mw() 606 mw->pdn = to_hr_pd(ibmw->pd)->pdn; in hns_roce_alloc_mw() 622 int hns_roce_dealloc_mw(struct ib_mw *ibmw) in hns_roce_dealloc_mw() argument 624 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_dealloc_mw() 625 struct hns_roce_mw *mw = to_hr_mw(ibmw); in hns_roce_dealloc_mw()
|
| H A D | hns_roce_device.h | 367 struct ib_mw ibmw; member 1041 static inline struct hns_roce_mw *to_hr_mw(struct ib_mw *ibmw) in to_hr_mw() argument 1043 return container_of(ibmw, struct hns_roce_mw, ibmw); in to_hr_mw() 1223 int hns_roce_dealloc_mw(struct ib_mw *ibmw);
|
| H A D | hns_roce_main.c | 464 INIT_RDMA_OBJ_SIZE(ib_mw, hns_roce_mw, ibmw),
|
| H A D | hns_roce_hw_v2.c | 2945 mw->ibmw.type == IB_MW_TYPE_1 ? 0 : 1); in hns_roce_v2_mw_write_mtpt()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/i40iw/ |
| H A D | i40iw.h | 388 static inline struct i40iw_mr *to_iwmw(struct ib_mw *ibmw) in to_iwmw() argument 390 return container_of(ibmw, struct i40iw_mr, ibmw); in to_iwmw()
|
| H A D | i40iw_verbs.h | 91 struct ib_mw ibmw; member
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/rxe/ |
| H A D | rxe_verbs.h | 295 struct ib_mw ibmw; member 433 return mw ? container_of(mw, struct rxe_mem, ibmw) : NULL; in to_rmw()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/cxgb4/ |
| H A D | mem.c | 614 int c4iw_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in c4iw_alloc_mw() argument 616 struct c4iw_mw *mhp = to_c4iw_mw(ibmw); in c4iw_alloc_mw() 623 if (ibmw->type != IB_MW_TYPE_1) in c4iw_alloc_mw() 626 php = to_c4iw_pd(ibmw->pd); in c4iw_alloc_mw() 647 ibmw->rkey = stag; in c4iw_alloc_mw()
|
| H A D | iw_cxgb4.h | 415 struct ib_mw ibmw; member 423 static inline struct c4iw_mw *to_c4iw_mw(struct ib_mw *ibmw) in to_c4iw_mw() argument 425 return container_of(ibmw, struct c4iw_mw, ibmw); in to_c4iw_mw()
|
| H A D | provider.c | 503 INIT_RDMA_OBJ_SIZE(ib_mw, c4iw_mw, ibmw),
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx5/ |
| H A D | mlx5_ib.h | 643 struct ib_mw ibmw; member 1108 static inline struct mlx5_ib_mw *to_mmw(struct ib_mw *ibmw) in to_mmw() argument 1110 return container_of(ibmw, struct mlx5_ib_mw, ibmw); in to_mmw()
|
| H A D | mr.c | 1992 int mlx5_ib_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in mlx5_ib_alloc_mw() argument 1994 struct mlx5_ib_dev *dev = to_mdev(ibmw->device); in mlx5_ib_alloc_mw() 1996 struct mlx5_ib_mw *mw = to_mmw(ibmw); in mlx5_ib_alloc_mw() 2031 MLX5_SET(mkc, mkc, pd, to_mpd(ibmw->pd)->pdn); in mlx5_ib_alloc_mw() 2035 MLX5_SET(mkc, mkc, en_rinval, !!((ibmw->type == IB_MW_TYPE_2))); in mlx5_ib_alloc_mw() 2043 ibmw->rkey = mw->mmkey.key; in mlx5_ib_alloc_mw()
|
| H A D | main.c | 4089 INIT_RDMA_OBJ_SIZE(ib_mw, mlx5_ib_mw, ibmw),
|