/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() 5228 int xrcdn; in rem_slave_xrcdns() local [all …]
|
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);
|
/drivers/infiniband/hw/hns/ |
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()
|
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()
|
D | hns_roce_device.h | 216 u32 xrcdn; member 442 u32 xrcdn; member 622 u32 xrcdn; member
|
D | hns_roce_qp.c | 1286 hr_qp->xrcdn = to_hr_xrcd(init_attr->xrcd)->xrcdn; in hns_roce_create_qp()
|
D | hns_roce_hw_v2.c | 4437 context->qkey_xrcd = cpu_to_le32(hr_qp->xrcdn); in modify_qp_reset_to_init() 5762 hr_reg_write(ctx, SRQC_XRCD, srq->xrcdn); in hns_roce_v2_write_srqc()
|
/drivers/infiniband/hw/mlx5/ |
D | cmd.h | 56 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid); 57 int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid);
|
D | cmd.c | 149 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid) in mlx5_cmd_xrcd_alloc() argument 159 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_cmd_xrcd_alloc() 163 int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid) in mlx5_cmd_xrcd_dealloc() argument 168 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_cmd_xrcd_dealloc()
|
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);
|
D | qpc.c | 528 int mlx5_core_xrcd_alloc(struct mlx5_ib_dev *dev, u32 *xrcdn) in mlx5_core_xrcd_alloc() argument 537 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_core_xrcd_alloc() 541 int mlx5_core_xrcd_dealloc(struct mlx5_ib_dev *dev, u32 xrcdn) in mlx5_core_xrcd_dealloc() argument 546 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_core_xrcd_dealloc()
|
D | srq.c | 257 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
|
D | mlx5_ib.h | 426 u16 xrcdn; member 606 u32 xrcdn; member
|
D | qp.c | 1954 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(attr->xrcd)->xrcdn); in create_xrc_tgt_qp() 1983 qp->trans_qp.xrcdn = to_mxrcd(attr->xrcd)->xrcdn; in create_xrc_tgt_qp() 5054 return mlx5_cmd_xrcd_alloc(dev->mdev, &xrcd->xrcdn, 0); in mlx5_ib_alloc_xrcd() 5060 u32 xrcdn = to_mxrcd(xrcd)->xrcdn; in mlx5_ib_dealloc_xrcd() local 5062 return mlx5_cmd_xrcd_dealloc(dev->mdev, xrcdn, 0); in mlx5_ib_dealloc_xrcd()
|
/drivers/infiniband/hw/mlx4/ |
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()
|
D | mlx4_ib.h | 99 u32 xrcdn; member 344 u16 xrcdn; member
|
D | qp.c | 1487 u16 xrcdn = 0; in _mlx4_ib_create_qp() local 1527 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in _mlx4_ib_create_qp() 1546 qp->xrcdn = xrcdn; in _mlx4_ib_create_qp() 2189 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
|
D | main.c | 1226 err = mlx4_xrcd_alloc(dev->dev, &xrcd->xrcdn); in mlx4_ib_alloc_xrcd() 1248 mlx4_xrcd_free(dev->dev, xrcd->xrcdn); in mlx4_ib_alloc_xrcd() 1256 mlx4_xrcd_free(to_mdev(xrcd->device)->dev, to_mxrcd(xrcd)->xrcdn); in mlx4_ib_dealloc_xrcd()
|