Home
last modified time | relevance | path

Searched refs:xrcd (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.15/drivers/infiniband/core/
Dverbs.c1037 srq->ext.xrc.xrcd = srq_init_attr->ext.xrc.xrcd; in ib_create_srq_user()
1038 if (srq->ext.xrc.xrcd) in ib_create_srq_user()
1039 atomic_inc(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq_user()
1050 if (srq->srq_type == IB_SRQT_XRC && srq->ext.xrc.xrcd) in ib_create_srq_user()
1051 atomic_dec(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq_user()
1094 if (srq->srq_type == IB_SRQT_XRC && srq->ext.xrc.xrcd) in ib_destroy_srq_user()
1095 atomic_dec(&srq->ext.xrc.xrcd->usecnt); in ib_destroy_srq_user()
1153 struct ib_qp *ib_open_qp(struct ib_xrcd *xrcd, in ib_open_qp() argument
1161 down_read(&xrcd->tgt_qps_rwsem); in ib_open_qp()
1162 real_qp = xa_load(&xrcd->tgt_qps, qp_open_attr->qp_num); in ib_open_qp()
[all …]
Duverbs_std_types_qp.c96 struct ib_xrcd *xrcd = NULL; in UVERBS_HANDLER() local
130 xrcd = (struct ib_xrcd *)xrcd_uobj->object; in UVERBS_HANDLER()
131 if (!xrcd) in UVERBS_HANDLER()
133 device = xrcd->device; in UVERBS_HANDLER()
236 attr.xrcd = xrcd; in UVERBS_HANDLER()
Duverbs_cmd.c482 struct ib_xrcd *xrcd; member
488 struct ib_xrcd *xrcd) in xrcd_table_insert() argument
498 entry->xrcd = xrcd; in xrcd_table_insert()
549 return entry->xrcd; in find_xrcd()
571 struct ib_xrcd *xrcd = NULL; in ib_uverbs_open_xrcd() local
593 xrcd = find_xrcd(ibudev, inode); in ib_uverbs_open_xrcd()
594 if (!xrcd && !(cmd.oflags & O_CREAT)) { in ib_uverbs_open_xrcd()
600 if (xrcd && cmd.oflags & O_EXCL) { in ib_uverbs_open_xrcd()
613 if (!xrcd) { in ib_uverbs_open_xrcd()
614 xrcd = ib_alloc_xrcd_user(ib_dev, inode, &attrs->driver_udata); in ib_uverbs_open_xrcd()
[all …]
Duverbs_std_types.c106 struct ib_xrcd *xrcd = uobject->object; in uverbs_free_xrcd() local
115 ret = ib_uverbs_dealloc_xrcd(uobject, xrcd, why, attrs); in uverbs_free_xrcd()
Duverbs_std_types_srq.c81 attr.ext.xrc.xrcd = (struct ib_xrcd *)xrcd_uobj->object; in UVERBS_HANDLER()
82 if (!attr.ext.xrc.xrcd) in UVERBS_HANDLER()
Duverbs.h241 int ib_uverbs_dealloc_xrcd(struct ib_uobject *uobject, struct ib_xrcd *xrcd,
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/
Dsrq.c162 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, in mlx4_srq_alloc() argument
191 srq_context->xrcd = cpu_to_be16(xrcd); in mlx4_srq_alloc()
Dresource_tracker.c5225 struct res_xrcdn *xrcd; in rem_slave_xrcdns() local
5236 list_for_each_entry_safe(xrcd, tmp, xrcdn_list, com.list) { in rem_slave_xrcdns()
5237 if (xrcd->com.owner == slave) { in rem_slave_xrcdns()
5238 xrcdn = xrcd->com.res_id; in rem_slave_xrcdns()
5239 rb_erase(&xrcd->com.node, &tracker->res_tree[RES_XRCD]); in rem_slave_xrcdns()
5240 list_del(&xrcd->com.list); in rem_slave_xrcdns()
5241 kfree(xrcd); in rem_slave_xrcdns()
/Linux-v5.15/drivers/infiniband/hw/hns/
Dhns_roce_pd.c160 struct hns_roce_xrcd *xrcd = to_hr_xrcd(ib_xrcd); in hns_roce_alloc_xrcd() local
166 ret = hns_roce_xrcd_alloc(hr_dev, &xrcd->xrcdn); in hns_roce_alloc_xrcd()
Dhns_roce_srq.c323 to_hr_xrcd(init_attr->ext.xrc.xrcd)->xrcdn : 0; in set_srq_ext_param()
/Linux-v5.15/drivers/infiniband/hw/mlx5/
Dsrq.c257 if (init_attr->srq_type == IB_SRQT_XRC && init_attr->ext.xrc.xrcd) in mlx5_ib_create_srq()
258 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
260 in.xrcd = dev->devr.xrcdn0; in mlx5_ib_create_srq()
Dsrq.h23 u32 xrcd; member
Dcmd.c159 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_cmd_xrcd_alloc()
168 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_cmd_xrcd_dealloc()
Dqpc.c538 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_core_xrcd_alloc()
547 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_core_xrcd_dealloc()
Dqp.c1949 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(attr->xrcd)->xrcdn); in create_xrc_tgt_qp()
1978 qp->trans_qp.xrcdn = to_mxrcd(attr->xrcd)->xrcdn; in create_xrc_tgt_qp()
2078 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_dci()
2082 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_dci()
2271 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2276 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_user_qp()
2279 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2418 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_kernel_qp()
2422 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_kernel_qp()
4995 struct mlx5_ib_xrcd *xrcd = to_mxrcd(ibxrcd); in mlx5_ib_alloc_xrcd() local
[all …]
Dsrq_cmd.c51 MLX5_SET(srqc, srqc, xrcd, in->xrcd); in set_srqc()
Dmlx5_ib.h1286 int mlx5_ib_alloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata);
1287 int mlx5_ib_dealloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata);
Dcq.c178 if (qp->ibqp.srq || qp->ibqp.xrcd) { in handle_responder()
181 if (qp->ibqp.xrcd) { in handle_responder()
/Linux-v5.15/drivers/infiniband/hw/mlx4/
Dmain.c1227 struct mlx4_ib_xrcd *xrcd = to_mxrcd(ibxrcd); in mlx4_ib_alloc_xrcd() local
1234 err = mlx4_xrcd_alloc(dev->dev, &xrcd->xrcdn); in mlx4_ib_alloc_xrcd()
1238 xrcd->pd = ib_alloc_pd(ibxrcd->device, 0); in mlx4_ib_alloc_xrcd()
1239 if (IS_ERR(xrcd->pd)) { in mlx4_ib_alloc_xrcd()
1240 err = PTR_ERR(xrcd->pd); in mlx4_ib_alloc_xrcd()
1245 xrcd->cq = ib_create_cq(ibxrcd->device, NULL, NULL, xrcd, &cq_attr); in mlx4_ib_alloc_xrcd()
1246 if (IS_ERR(xrcd->cq)) { in mlx4_ib_alloc_xrcd()
1247 err = PTR_ERR(xrcd->cq); in mlx4_ib_alloc_xrcd()
1254 ib_dealloc_pd(xrcd->pd); in mlx4_ib_alloc_xrcd()
1256 mlx4_xrcd_free(dev->dev, xrcd->xrcdn); in mlx4_ib_alloc_xrcd()
[all …]
Dsrq.c183 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq()
Dqp.c1304 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
1314 *send_cq = to_mcq(to_mxrcd(qp->ibqp.xrcd)->cq); in get_cqs()
1520 pd = to_mxrcd(init_attr->xrcd)->pd; in _mlx4_ib_create_qp()
1521 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in _mlx4_ib_create_qp()
1522 init_attr->send_cq = to_mxrcd(init_attr->xrcd)->cq; in _mlx4_ib_create_qp()
2183 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
/Linux-v5.15/include/linux/qed/
Dqed_rdma_if.h606 int (*rdma_alloc_xrcd)(void *rdma_cxt, u16 *xrcd);
607 void (*rdma_dealloc_xrcd)(void *rdma_cxt, u16 xrcd);
/Linux-v5.15/include/rdma/
Dib_verbs.h1057 struct ib_xrcd *xrcd; member
1157 struct ib_xrcd *xrcd; /* XRC TGT QPs only */ member
1610 struct ib_xrcd *xrcd; member
1760 struct ib_xrcd *xrcd; /* XRC TGT QPs only */ member
2493 int (*alloc_xrcd)(struct ib_xrcd *xrcd, struct ib_udata *udata);
2494 int (*dealloc_xrcd)(struct ib_xrcd *xrcd, struct ib_udata *udata);
3778 struct ib_qp *ib_open_qp(struct ib_xrcd *xrcd,
4276 int ib_dealloc_xrcd_user(struct ib_xrcd *xrcd, struct ib_udata *udata);
/Linux-v5.15/drivers/infiniband/hw/qedr/
Dverbs.c492 struct qedr_xrcd *xrcd = get_qedr_xrcd(ibxrcd); in qedr_alloc_xrcd() local
494 return dev->ops->rdma_alloc_xrcd(dev->rdma_ctx, &xrcd->xrcd_id); in qedr_alloc_xrcd()
1621 struct qedr_xrcd *xrcd = get_qedr_xrcd(init_attr->ext.xrc.xrcd); in qedr_create_srq() local
1625 in_params.xrcd_id = xrcd->xrcd_id; in qedr_create_srq()
1901 struct qedr_xrcd *xrcd = get_qedr_xrcd(attrs->xrcd); in qedr_create_user_qp() local
1903 in_params.xrcd_id = xrcd->xrcd_id; in qedr_create_user_qp()
2260 struct qedr_xrcd *xrcd = NULL; in qedr_create_qp() local
2271 xrcd = get_qedr_xrcd(attrs->xrcd); in qedr_create_qp()
2295 if (udata || xrcd) in qedr_create_qp()
/Linux-v5.15/include/linux/mlx4/
Dqp.h214 __be32 xrcd; member

12