/linux-6.6.21/drivers/infiniband/sw/rxe/ |
D | rxe_mw.c | 16 int rxe_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in rxe_alloc_mw() argument 18 struct rxe_mw *mw = to_rmw(ibmw); in rxe_alloc_mw() 19 struct rxe_pd *pd = to_rpd(ibmw->pd); in rxe_alloc_mw() 20 struct rxe_dev *rxe = to_rdev(ibmw->device); in rxe_alloc_mw() 31 mw->rkey = ibmw->rkey = (mw->elem.index << 8) | rxe_get_next_key(-1); in rxe_alloc_mw() 32 mw->state = (mw->ibmw.type == IB_MW_TYPE_2) ? in rxe_alloc_mw() 41 int rxe_dealloc_mw(struct ib_mw *ibmw) in rxe_dealloc_mw() argument 43 struct rxe_mw *mw = to_rmw(ibmw); in rxe_dealloc_mw() 53 if (mw->ibmw.type == IB_MW_TYPE_1) { in rxe_check_bind_mw() 67 if (mw->ibmw.type == IB_MW_TYPE_2) { in rxe_check_bind_mw() [all …]
|
D | rxe.h | 58 #define rxe_dbg_mw(mw, fmt, ...) ibdev_dbg((mw)->ibmw.device, \ 79 #define rxe_err_mw(mw, fmt, ...) ibdev_err_ratelimited((mw)->ibmw.device, \ 100 #define rxe_info_mw(mw, fmt, ...) ibdev_info_ratelimited((mw)->ibmw.device, \
|
D | rxe_verbs.h | 334 struct ib_mw ibmw; member 455 return mw ? container_of(mw, struct rxe_mw, ibmw) : NULL; in to_rmw() 470 return to_rpd(mw->ibmw.pd); in rxe_mw_pd()
|
D | rxe_loc.h | 84 int rxe_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata); 85 int rxe_dealloc_mw(struct ib_mw *ibmw);
|
D | rxe_verbs.c | 1495 INIT_RDMA_OBJ_SIZE(ib_mw, rxe_mw, ibmw),
|
/linux-6.6.21/drivers/infiniband/hw/mlx4/ |
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()
|
D | mlx4_ib.h | 146 struct ib_mw ibmw; member 705 static inline struct mlx4_ib_mw *to_mmw(struct ib_mw *ibmw) in to_mmw() argument 707 return container_of(ibmw, struct mlx4_ib_mw, ibmw); in to_mmw()
|
D | main.c | 2596 INIT_RDMA_OBJ_SIZE(ib_mw, mlx4_ib_mw, ibmw),
|
/linux-6.6.21/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 528 int hns_roce_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in hns_roce_alloc_mw() argument 530 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_alloc_mw() 533 struct hns_roce_mw *mw = to_hr_mw(ibmw); in hns_roce_alloc_mw() 547 ibmw->rkey = mw->rkey; in hns_roce_alloc_mw() 548 mw->pdn = to_hr_pd(ibmw->pd)->pdn; in hns_roce_alloc_mw() 564 int hns_roce_dealloc_mw(struct ib_mw *ibmw) in hns_roce_dealloc_mw() argument 566 struct hns_roce_dev *hr_dev = to_hr_dev(ibmw->device); in hns_roce_dealloc_mw() 567 struct hns_roce_mw *mw = to_hr_mw(ibmw); in hns_roce_dealloc_mw()
|
D | hns_roce_device.h | 300 struct ib_mw ibmw; member 1011 static inline struct hns_roce_mw *to_hr_mw(struct ib_mw *ibmw) in to_hr_mw() argument 1013 return container_of(ibmw, struct hns_roce_mw, ibmw); in to_hr_mw() 1175 int hns_roce_dealloc_mw(struct ib_mw *ibmw);
|
D | hns_roce_main.c | 649 INIT_RDMA_OBJ_SIZE(ib_mw, hns_roce_mw, ibmw),
|
D | hns_roce_hw_v2.c | 3348 mw->ibmw.type == IB_MW_TYPE_1 ? 0 : 1); in hns_roce_v2_mw_write_mtpt()
|
/linux-6.6.21/drivers/infiniband/hw/irdma/ |
D | main.h | 393 static inline struct irdma_mr *to_iwmw(struct ib_mw *ibmw) in to_iwmw() argument 395 return container_of(ibmw, struct irdma_mr, ibmw); in to_iwmw()
|
D | verbs.h | 100 struct ib_mw ibmw; member
|
D | verbs.c | 2553 if (iwmr->ibmw.type == IB_MW_TYPE_1) in irdma_hw_alloc_mw() 2575 static int irdma_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in irdma_alloc_mw() argument 2577 struct irdma_device *iwdev = to_iwdev(ibmw->device); in irdma_alloc_mw() 2578 struct irdma_mr *iwmr = to_iwmw(ibmw); in irdma_alloc_mw() 2587 ibmw->rkey = stag; in irdma_alloc_mw() 2602 static int irdma_dealloc_mw(struct ib_mw *ibmw) in irdma_dealloc_mw() argument 2604 struct ib_pd *ibpd = ibmw->pd; in irdma_dealloc_mw() 2606 struct irdma_mr *iwmr = to_iwmr((struct ib_mr *)ibmw); in irdma_dealloc_mw() 2607 struct irdma_device *iwdev = to_iwdev(ibmw->device); in irdma_dealloc_mw() 2620 info->stag_idx = ibmw->rkey >> IRDMA_CQPSQ_STAG_IDX_S; in irdma_dealloc_mw() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/cxgb4/ |
D | iw_cxgb4.h | 409 struct ib_mw ibmw; member 417 static inline struct c4iw_mw *to_c4iw_mw(struct ib_mw *ibmw) in to_c4iw_mw() argument 419 return container_of(ibmw, struct c4iw_mw, ibmw); in to_c4iw_mw()
|
D | provider.c | 505 INIT_RDMA_OBJ_SIZE(ib_mw, c4iw_mw, ibmw),
|
/linux-6.6.21/drivers/infiniband/hw/mlx5/ |
D | mlx5_ib.h | 726 struct ib_mw ibmw; member 1242 static inline struct mlx5_ib_mw *to_mmw(struct ib_mw *ibmw) in to_mmw() argument 1244 return container_of(ibmw, struct mlx5_ib_mw, ibmw); in to_mmw()
|
D | mr.c | 2190 int mlx5_ib_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata) in mlx5_ib_alloc_mw() argument 2192 struct mlx5_ib_dev *dev = to_mdev(ibmw->device); in mlx5_ib_alloc_mw() 2194 struct mlx5_ib_mw *mw = to_mmw(ibmw); in mlx5_ib_alloc_mw() 2227 MLX5_SET(mkc, mkc, pd, to_mpd(ibmw->pd)->pdn); in mlx5_ib_alloc_mw() 2231 MLX5_SET(mkc, mkc, en_rinval, !!((ibmw->type == IB_MW_TYPE_2))); in mlx5_ib_alloc_mw() 2239 ibmw->rkey = mw->mmkey.key; in mlx5_ib_alloc_mw()
|
D | main.c | 3840 INIT_RDMA_OBJ_SIZE(ib_mw, mlx5_ib_mw, ibmw),
|