Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A 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
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 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()
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 Dmlx4.h1038 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 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()
A 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()
A Dhns_roce_device.h216 u32 xrcdn; member
442 u32 xrcdn; member
607 u32 xrcdn; member
A Dhns_roce_qp.c1206 hr_qp->xrcdn = to_hr_xrcd(init_attr->xrcd)->xrcdn; in hns_roce_create_qp()
A Dhns_roce_hw_v2.c4369 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 Dcmd.h55 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 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);
A Dcmd.c156 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 Dqpc.c532 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 Dsrq.c257 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
A Dmlx5_ib.h419 u16 xrcdn; member
599 u32 xrcdn; member
A Dqp.c2028 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 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()
A Dmlx4_ib.h99 u32 xrcdn; member
344 u16 xrcdn; member
A Dqp.c1518 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 Dmain.c1225 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 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,

Completed in 116 milliseconds