Home
last modified time | relevance | path

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

/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.c2022 u32 xrcdn; in xrcdn_alloc_res() local
2028 err = __mlx4_xrcd_alloc(dev, &xrcdn); in xrcdn_alloc_res()
2032 err = add_res_range(dev, slave, xrcdn, 1, RES_XRCD, 0); in xrcdn_alloc_res()
2034 __mlx4_xrcd_free(dev, xrcdn); in xrcdn_alloc_res()
2036 set_param_l(out_param, xrcdn); in xrcdn_alloc_res()
2337 int xrcdn; in xrcdn_free_res() local
2343 xrcdn = get_param_l(&in_param); in xrcdn_free_res()
2344 err = rem_res_range(dev, slave, xrcdn, 1, RES_XRCD, 0); in xrcdn_free_res()
2348 __mlx4_xrcd_free(dev, xrcdn); in xrcdn_free_res()
4744 int xrcdn; in rem_slave_xrcdns() local
[all …]
Dmlx4.h964 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
965 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
/drivers/net/ethernet/mellanox/mlx5/core/
Dqp.c283 int mlx5_core_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn) in mlx5_core_xrcd_alloc() argument
299 *xrcdn = be32_to_cpu(out.xrcdn); in mlx5_core_xrcd_alloc()
305 int mlx5_core_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn) in mlx5_core_xrcd_dealloc() argument
314 in.xrcdn = cpu_to_be32(xrcdn); in mlx5_core_xrcd_dealloc()
/drivers/infiniband/hw/mlx5/
Dsrq.c249 u32 flgs, xrcdn; in mlx5_ib_create_srq() local
295 xrcdn = 0; in mlx5_ib_create_srq()
297 xrcdn = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
300 xrcdn = to_mxrcd(dev->devr.x0)->xrcdn; in mlx5_ib_create_srq()
304 in->ctx.flags_xrcd = cpu_to_be32((flgs & 0xFF000000) | (xrcdn & 0xFFFFFF)); in mlx5_ib_create_srq()
Dqp.c943 in->ctx.xrcd = cpu_to_be32(to_mxrcd(init_attr->xrcd)->xrcdn); in create_qp_common()
947 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x1)->xrcdn); in create_qp_common()
952 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x0)->xrcdn); in create_qp_common()
955 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x1)->xrcdn); in create_qp_common()
1158 u16 xrcdn = 0; in mlx5_ib_create_qp() local
1184 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in mlx5_ib_create_qp()
1217 qp->xrcdn = xrcdn; in mlx5_ib_create_qp()
3015 err = mlx5_core_xrcd_alloc(dev->mdev, &xrcd->xrcdn); in mlx5_ib_alloc_xrcd()
3027 u32 xrcdn = to_mxrcd(xrcd)->xrcdn; in mlx5_ib_dealloc_xrcd() local
3030 err = mlx5_core_xrcd_dealloc(dev->mdev, xrcdn); in mlx5_ib_dealloc_xrcd()
[all …]
Dmlx5_ib.h171 u16 xrcdn; member
253 u32 xrcdn; member
/drivers/infiniband/hw/mlx4/
Dsrq.c80 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(pd)->pdn, cqn, xrcdn, &srq->mtt, in mlx4_ib_create_srq()
Dmlx4_ib.h87 u32 xrcdn; member
281 u16 xrcdn; member
Dqp.c1058 u16 xrcdn = 0; in mlx4_ib_create_qp() local
1091 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in mlx4_ib_create_qp()
1116 qp->xrcdn = xrcdn; in mlx4_ib_create_qp()
1489 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
Dmain.c762 err = mlx4_xrcd_alloc(to_mdev(ibdev)->dev, &xrcd->xrcdn); in mlx4_ib_alloc_xrcd()
783 mlx4_xrcd_free(to_mdev(ibdev)->dev, xrcd->xrcdn); in mlx4_ib_alloc_xrcd()
793 mlx4_xrcd_free(to_mdev(xrcd->device)->dev, to_mxrcd(xrcd)->xrcdn); in mlx4_ib_dealloc_xrcd()