Home
last modified time | relevance | path

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

12

/drivers/infiniband/core/
Dverbs.c1031 srq->ext.xrc.xrcd = srq_init_attr->ext.xrc.xrcd; in ib_create_srq_user()
1032 if (srq->ext.xrc.xrcd) in ib_create_srq_user()
1033 atomic_inc(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq_user()
1044 if (srq->srq_type == IB_SRQT_XRC && srq->ext.xrc.xrcd) in ib_create_srq_user()
1045 atomic_dec(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq_user()
1088 if (srq->srq_type == IB_SRQT_XRC && srq->ext.xrc.xrcd) in ib_destroy_srq_user()
1089 atomic_dec(&srq->ext.xrc.xrcd->usecnt); in ib_destroy_srq_user()
1147 struct ib_qp *ib_open_qp(struct ib_xrcd *xrcd, in ib_open_qp() argument
1155 down_read(&xrcd->tgt_qps_rwsem); in ib_open_qp()
1156 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,
/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()
Dmlx4.h369 __be16 xrcd; member
/drivers/infiniband/hw/hns/
Dhns_roce_pd.c149 struct hns_roce_xrcd *xrcd = to_hr_xrcd(ib_xrcd); in hns_roce_alloc_xrcd() local
155 ret = hns_roce_xrcd_alloc(hr_dev, &xrcd->xrcdn); in hns_roce_alloc_xrcd()
Dhns_roce_srq.c324 to_hr_xrcd(init_attr->ext.xrc.xrcd)->xrcdn : 0; in set_srq_ext_param()
/drivers/infiniband/hw/mlx5/
Dsrq.c259 if (init_attr->srq_type == IB_SRQT_XRC && init_attr->ext.xrc.xrcd) in mlx5_ib_create_srq()
260 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
262 in.xrcd = dev->devr.xrcdn0; in mlx5_ib_create_srq()
Dsrq.h23 u32 xrcd; member
Dcmd.c166 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_cmd_xrcd_alloc()
175 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_cmd_xrcd_dealloc()
Dqp.c2035 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(attr->xrcd)->xrcdn); in create_xrc_tgt_qp()
2064 qp->trans_qp.xrcdn = to_mxrcd(attr->xrcd)->xrcdn; in create_xrc_tgt_qp()
2164 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_dci()
2168 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_dci()
2357 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2362 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_user_qp()
2365 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2504 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_kernel_qp()
2508 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_kernel_qp()
5135 struct mlx5_ib_xrcd *xrcd = to_mxrcd(ibxrcd); in mlx5_ib_alloc_xrcd() local
[all …]
Dqpc.c557 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_core_xrcd_alloc()
566 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_core_xrcd_dealloc()
Dsrq_cmd.c51 MLX5_SET(srqc, srqc, xrcd, in->xrcd); in set_srqc()
Dmlx5_ib.h1357 int mlx5_ib_alloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata);
1358 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()
Ddevx.c355 return MLX5_GET(alloc_xrcd_out, out, xrcd); in devx_get_created_obj_id()
1295 MLX5_SET(dealloc_xrcd_in, din, xrcd, *obj_id); in devx_obj_build_destroy_cmd()
/drivers/infiniband/hw/mlx4/
Dmain.c1224 struct mlx4_ib_xrcd *xrcd = to_mxrcd(ibxrcd); in mlx4_ib_alloc_xrcd() local
1231 err = mlx4_xrcd_alloc(dev->dev, &xrcd->xrcdn); in mlx4_ib_alloc_xrcd()
1235 xrcd->pd = ib_alloc_pd(ibxrcd->device, 0); in mlx4_ib_alloc_xrcd()
1236 if (IS_ERR(xrcd->pd)) { in mlx4_ib_alloc_xrcd()
1237 err = PTR_ERR(xrcd->pd); in mlx4_ib_alloc_xrcd()
1242 xrcd->cq = ib_create_cq(ibxrcd->device, NULL, NULL, xrcd, &cq_attr); in mlx4_ib_alloc_xrcd()
1243 if (IS_ERR(xrcd->cq)) { in mlx4_ib_alloc_xrcd()
1244 err = PTR_ERR(xrcd->cq); in mlx4_ib_alloc_xrcd()
1251 ib_dealloc_pd(xrcd->pd); in mlx4_ib_alloc_xrcd()
1253 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.c1345 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
1355 *send_cq = to_mcq(to_mxrcd(qp->ibqp.xrcd)->cq); in get_cqs()
1561 pd = to_mxrcd(init_attr->xrcd)->pd; in _mlx4_ib_create_qp()
1562 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in _mlx4_ib_create_qp()
1563 init_attr->send_cq = to_mxrcd(init_attr->xrcd)->cq; in _mlx4_ib_create_qp()
2224 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
/drivers/infiniband/hw/qedr/
Dverbs.c493 struct qedr_xrcd *xrcd = get_qedr_xrcd(ibxrcd); in qedr_alloc_xrcd() local
495 return dev->ops->rdma_alloc_xrcd(dev->rdma_ctx, &xrcd->xrcd_id); in qedr_alloc_xrcd()
1612 struct qedr_xrcd *xrcd = get_qedr_xrcd(init_attr->ext.xrc.xrcd); in qedr_create_srq() local
1616 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()
2262 struct qedr_xrcd *xrcd = NULL; in qedr_create_qp() local
2273 xrcd = get_qedr_xrcd(attrs->xrcd); in qedr_create_qp()
2297 if (udata || xrcd) in qedr_create_qp()
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c1037 init_attr->xrcd = NULL; in pvrdma_query_qp()

12