/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A 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 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() 112 mlx4_warn(dev, "Failed to release xrcdn %d\n", xrcdn); in mlx4_xrcd_free() [all …]
|
A 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() 2603 __mlx4_xrcd_free(dev, xrcdn); in xrcdn_free_res() 5228 int xrcdn; in rem_slave_xrcdns() local 5238 xrcdn = xrcd->com.res_id; in rem_slave_xrcdns() [all …]
|
A D | mlx4.h | 1038 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn); 1039 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
|
/linux-6.3-rc2/drivers/infiniband/hw/hns/ |
A D | hns_roce_pd.c | 121 static int hns_roce_xrcd_alloc(struct hns_roce_dev *hr_dev, u32 *xrcdn) in hns_roce_xrcd_alloc() argument 132 *xrcdn = (u32)id; in hns_roce_xrcd_alloc() 155 ret = hns_roce_xrcd_alloc(hr_dev, &xrcd->xrcdn); in hns_roce_alloc_xrcd() 165 u32 xrcdn = to_hr_xrcd(ib_xrcd)->xrcdn; in hns_roce_dealloc_xrcd() local 167 ida_free(&hr_dev->xrcd_ida.ida, (int)xrcdn); in hns_roce_dealloc_xrcd()
|
A D | hns_roce_srq.c | 323 srq->xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? in set_srq_ext_param() 324 to_hr_xrcd(init_attr->ext.xrc.xrcd)->xrcdn : 0; in set_srq_ext_param()
|
A D | hns_roce_device.h | 216 u32 xrcdn; member 442 u32 xrcdn; member 607 u32 xrcdn; member
|
A D | hns_roce_qp.c | 1206 hr_qp->xrcdn = to_hr_xrcd(init_attr->xrcd)->xrcdn; in hns_roce_create_qp()
|
A D | hns_roce_hw_v2.c | 4369 context->qkey_xrcd = cpu_to_le32(hr_qp->xrcdn); in modify_qp_reset_to_init() 5694 hr_reg_write(ctx, SRQC_XRCD, srq->xrcdn); in hns_roce_v2_write_srqc()
|
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/ |
A D | cmd.h | 55 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid); 56 int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid);
|
A D | qp.h | 44 int mlx5_core_xrcd_alloc(struct mlx5_ib_dev *dev, u32 *xrcdn); 45 int mlx5_core_xrcd_dealloc(struct mlx5_ib_dev *dev, u32 xrcdn);
|
A D | cmd.c | 156 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid) in mlx5_cmd_xrcd_alloc() argument 166 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_cmd_xrcd_alloc() 170 int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid) in mlx5_cmd_xrcd_dealloc() argument 175 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_cmd_xrcd_dealloc()
|
A D | qpc.c | 532 int mlx5_core_xrcd_alloc(struct mlx5_ib_dev *dev, u32 *xrcdn) in mlx5_core_xrcd_alloc() argument 541 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_core_xrcd_alloc() 545 int mlx5_core_xrcd_dealloc(struct mlx5_ib_dev *dev, u32 xrcdn) in mlx5_core_xrcd_dealloc() argument 550 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_core_xrcd_dealloc()
|
A D | srq.c | 257 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
|
A D | mlx5_ib.h | 419 u16 xrcdn; member 599 u32 xrcdn; member
|
A D | qp.c | 2028 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(attr->xrcd)->xrcdn); in create_xrc_tgt_qp() 2057 qp->trans_qp.xrcdn = to_mxrcd(attr->xrcd)->xrcdn; in create_xrc_tgt_qp() 5102 return mlx5_cmd_xrcd_alloc(dev->mdev, &xrcd->xrcdn, 0); in mlx5_ib_alloc_xrcd() 5108 u32 xrcdn = to_mxrcd(xrcd)->xrcdn; in mlx5_ib_dealloc_xrcd() local 5110 return mlx5_cmd_xrcd_dealloc(dev->mdev, xrcdn, 0); in mlx5_ib_dealloc_xrcd()
|
/linux-6.3-rc2/drivers/infiniband/hw/mlx4/ |
A D | srq.c | 83 u16 xrcdn; in mlx4_ib_create_srq() local 182 xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? in mlx4_ib_create_srq() 183 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq() 185 err = mlx4_srq_alloc(dev->dev, to_mpd(ib_srq->pd)->pdn, cqn, xrcdn, in mlx4_ib_create_srq()
|
A D | mlx4_ib.h | 99 u32 xrcdn; member 344 u16 xrcdn; member
|
A D | qp.c | 1518 u16 xrcdn = 0; in _mlx4_ib_create_qp() local 1558 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in _mlx4_ib_create_qp() 1577 qp->xrcdn = xrcdn; in _mlx4_ib_create_qp() 2220 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
|
A D | main.c | 1225 err = mlx4_xrcd_alloc(dev->dev, &xrcd->xrcdn); in mlx4_ib_alloc_xrcd() 1247 mlx4_xrcd_free(dev->dev, xrcd->xrcdn); in mlx4_ib_alloc_xrcd() 1255 mlx4_xrcd_free(to_mdev(xrcd->device)->dev, to_mxrcd(xrcd)->xrcdn); in mlx4_ib_dealloc_xrcd()
|
/linux-6.3-rc2/include/linux/mlx4/ |
A D | device.h | 1092 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn); 1093 void mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn); 1138 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcdn,
|