Home
last modified time | relevance | path

Searched refs:xrcdn (Results 1 – 20 of 20) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/mellanox/mlx4/
Dpd.c65 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 …]
Dresource_tracker.c2275 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 …]
Dmlx4.h1038 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1039 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
/linux-5.19.10/drivers/infiniband/hw/hns/
Dhns_roce_pd.c121 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()
Dhns_roce_srq.c323 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()
Dhns_roce_device.h214 u32 xrcdn; member
440 u32 xrcdn; member
621 u32 xrcdn; member
Dhns_roce_qp.c1200 hr_qp->xrcdn = to_hr_xrcd(init_attr->xrcd)->xrcdn; in hns_roce_create_qp()
Dhns_roce_hw_v2.c4291 context->qkey_xrcd = cpu_to_le32(hr_qp->xrcdn); in modify_qp_reset_to_init()
5597 hr_reg_write(ctx, SRQC_XRCD, srq->xrcdn); in hns_roce_v2_write_srqc()
/linux-5.19.10/drivers/infiniband/hw/mlx5/
Dcmd.h56 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);
Dqp.h44 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);
Dcmd.c149 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()
Dqpc.c529 int mlx5_core_xrcd_alloc(struct mlx5_ib_dev *dev, u32 *xrcdn) in mlx5_core_xrcd_alloc() argument
538 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_core_xrcd_alloc()
542 int mlx5_core_xrcd_dealloc(struct mlx5_ib_dev *dev, u32 xrcdn) in mlx5_core_xrcd_dealloc() argument
547 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_core_xrcd_dealloc()
Dsrq.c257 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
Dmlx5_ib.h409 u16 xrcdn; member
589 u32 xrcdn; member
Dqp.c1951 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(attr->xrcd)->xrcdn); in create_xrc_tgt_qp()
1980 qp->trans_qp.xrcdn = to_mxrcd(attr->xrcd)->xrcdn; in create_xrc_tgt_qp()
5003 return mlx5_cmd_xrcd_alloc(dev->mdev, &xrcd->xrcdn, 0); in mlx5_ib_alloc_xrcd()
5009 u32 xrcdn = to_mxrcd(xrcd)->xrcdn; in mlx5_ib_dealloc_xrcd() local
5011 return mlx5_cmd_xrcd_dealloc(dev->mdev, xrcdn, 0); in mlx5_ib_dealloc_xrcd()
/linux-5.19.10/drivers/infiniband/hw/mlx4/
Dsrq.c83 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()
Dmlx4_ib.h99 u32 xrcdn; member
344 u16 xrcdn; member
Dqp.c1483 u16 xrcdn = 0; in _mlx4_ib_create_qp() local
1523 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in _mlx4_ib_create_qp()
1542 qp->xrcdn = xrcdn; in _mlx4_ib_create_qp()
2185 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
Dmain.c1226 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()
/linux-5.19.10/include/linux/mlx4/
Ddevice.h1092 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,