Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx4/
H 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
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 …]
H A Dresource_tracker.c2268 u32 xrcdn; in xrcdn_alloc_res() local
2274 err = __mlx4_xrcd_alloc(dev, &xrcdn); in xrcdn_alloc_res()
2278 err = add_res_range(dev, slave, xrcdn, 1, RES_XRCD, 0); in xrcdn_alloc_res()
2280 __mlx4_xrcd_free(dev, xrcdn); in xrcdn_alloc_res()
2282 set_param_l(out_param, xrcdn); in xrcdn_alloc_res()
2585 int xrcdn; in xrcdn_free_res() local
2591 xrcdn = get_param_l(&in_param); in xrcdn_free_res()
2592 err = rem_res_range(dev, slave, xrcdn, 1, RES_XRCD, 0); in xrcdn_free_res()
2596 __mlx4_xrcd_free(dev, xrcdn); in xrcdn_free_res()
5220 int xrcdn; in rem_slave_xrcdns() local
[all …]
H A Dmlx4.h1045 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1046 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_pd.c120 static int hns_roce_xrcd_alloc(struct hns_roce_dev *hr_dev, u32 *xrcdn) in hns_roce_xrcd_alloc() argument
131 *xrcdn = (u32)id; in hns_roce_xrcd_alloc()
156 ret = hns_roce_xrcd_alloc(hr_dev, &xrcd->xrcdn); in hns_roce_alloc_xrcd()
168 u32 xrcdn = to_hr_xrcd(ib_xrcd)->xrcdn; in hns_roce_dealloc_xrcd() local
170 ida_free(&hr_dev->xrcd_ida.ida, (int)xrcdn); in hns_roce_dealloc_xrcd()
H A Dhns_roce_hw_v2.c4595 context->qkey_xrcd = cpu_to_le32(hr_qp->xrcdn); in modify_qp_reset_to_init()
6123 hr_reg_write(ctx, SRQC_XRCD, srq->xrcdn); in hns_roce_v2_write_srqc()
/linux/drivers/infiniband/hw/mlx5/
H 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);
H A Dqp.h54 int mlx5_core_xrcd_alloc(struct mlx5_ib_dev *dev, u32 *xrcdn);
55 int mlx5_core_xrcd_dealloc(struct mlx5_ib_dev *dev, u32 xrcdn);
H 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()
/linux/include/linux/mlx4/
H A Ddevice.h1112 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn);
1113 void mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn);
1158 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcdn,