/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
D | pd.c | 65 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) in __mlx4_xrcd_alloc() argument 69 *xrcdn = mlx4_bitmap_alloc(&priv->xrcd_bitmap); in __mlx4_xrcd_alloc() 70 if (*xrcdn == -1) in __mlx4_xrcd_alloc() 76 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) in mlx4_xrcd_alloc() argument 89 *xrcdn = get_param_l(&out_param); in mlx4_xrcd_alloc() 92 return __mlx4_xrcd_alloc(dev, xrcdn); in mlx4_xrcd_alloc() 96 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) in __mlx4_xrcd_free() argument 98 mlx4_bitmap_free(&mlx4_priv(dev)->xrcd_bitmap, xrcdn, MLX4_USE_RR); in __mlx4_xrcd_free() 101 void mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) in mlx4_xrcd_free() argument 107 set_param_l(&in_param, xrcdn); in mlx4_xrcd_free() [all …]
|
D | resource_tracker.c | 2275 u32 xrcdn; in xrcdn_alloc_res() local 2281 err = __mlx4_xrcd_alloc(dev, &xrcdn); in xrcdn_alloc_res() 2285 err = add_res_range(dev, slave, xrcdn, 1, RES_XRCD, 0); in xrcdn_alloc_res() 2287 __mlx4_xrcd_free(dev, xrcdn); in xrcdn_alloc_res() 2289 set_param_l(out_param, xrcdn); in xrcdn_alloc_res() 2592 int xrcdn; in xrcdn_free_res() local 2598 xrcdn = get_param_l(&in_param); in xrcdn_free_res() 2599 err = rem_res_range(dev, slave, xrcdn, 1, RES_XRCD, 0); in xrcdn_free_res() 2603 __mlx4_xrcd_free(dev, xrcdn); in xrcdn_free_res() 5226 int xrcdn; in rem_slave_xrcdns() local [all …]
|
D | mlx4.h | 1037 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn); 1038 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
|
/Linux-v5.4/drivers/infiniband/hw/mlx5/ |
D | cmd.h | 62 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid); 63 int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid);
|
D | cmd.c | 307 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid) in mlx5_cmd_xrcd_alloc() argument 317 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_cmd_xrcd_alloc() 321 int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid) in mlx5_cmd_xrcd_dealloc() argument 327 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_cmd_xrcd_dealloc()
|
D | srq.c | 278 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq() 280 in.xrcd = to_mxrcd(dev->devr.x0)->xrcdn; in mlx5_ib_create_srq()
|
D | qp.c | 2226 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(init_attr->xrcd)->xrcdn); in create_qp_common() 2230 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x1)->xrcdn); in create_qp_common() 2235 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x0)->xrcdn); in create_qp_common() 2238 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x1)->xrcdn); in create_qp_common() 2633 u16 xrcdn = 0; in mlx5_ib_create_qp() local 2692 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in mlx5_ib_create_qp() 2728 qp->trans_qp.xrcdn = xrcdn; in mlx5_ib_create_qp() 5852 err = mlx5_cmd_xrcd_alloc(dev->mdev, &xrcd->xrcdn, 0); in mlx5_ib_alloc_xrcd() 5864 u32 xrcdn = to_mxrcd(xrcd)->xrcdn; in mlx5_ib_dealloc_xrcd() local 5867 err = mlx5_cmd_xrcd_dealloc(dev->mdev, xrcdn, 0); in mlx5_ib_dealloc_xrcd() [all …]
|
D | mlx5_ib.h | 353 u16 xrcdn; member 554 u32 xrcdn; member
|
/Linux-v5.4/drivers/infiniband/hw/mlx4/ |
D | srq.c | 83 u16 xrcdn; in mlx4_ib_create_srq() local 176 xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? in mlx4_ib_create_srq() 177 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq() 179 err = mlx4_srq_alloc(dev->dev, to_mpd(ib_srq->pd)->pdn, cqn, xrcdn, in mlx4_ib_create_srq()
|
D | mlx4_ib.h | 99 u32 xrcdn; member 328 u16 xrcdn; member
|
D | qp.c | 1539 u16 xrcdn = 0; in _mlx4_ib_create_qp() local 1579 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in _mlx4_ib_create_qp() 1605 qp->xrcdn = xrcdn; in _mlx4_ib_create_qp() 2247 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
|
D | main.c | 1218 err = mlx4_xrcd_alloc(to_mdev(ibdev)->dev, &xrcd->xrcdn); in mlx4_ib_alloc_xrcd() 1240 mlx4_xrcd_free(to_mdev(ibdev)->dev, xrcd->xrcdn); in mlx4_ib_alloc_xrcd() 1250 mlx4_xrcd_free(to_mdev(xrcd->device)->dev, to_mxrcd(xrcd)->xrcdn); in mlx4_ib_dealloc_xrcd()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | qp.c | 570 int mlx5_core_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn) in mlx5_core_xrcd_alloc() argument 579 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_core_xrcd_alloc() 584 int mlx5_core_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn) in mlx5_core_xrcd_dealloc() argument 590 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_core_xrcd_dealloc()
|
/Linux-v5.4/include/linux/mlx5/ |
D | qp.h | 584 int mlx5_core_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn); 585 int mlx5_core_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn);
|
/Linux-v5.4/include/linux/mlx4/ |
D | device.h | 1104 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn); 1105 void mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn); 1150 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcdn,
|