/Linux-v5.15/drivers/infiniband/core/ |
D | verbs.c | 1037 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 …]
|
D | uverbs_std_types_qp.c | 96 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()
|
D | uverbs_cmd.c | 482 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 …]
|
D | uverbs_std_types.c | 106 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()
|
D | uverbs_std_types_srq.c | 81 attr.ext.xrc.xrcd = (struct ib_xrcd *)xrcd_uobj->object; in UVERBS_HANDLER() 82 if (!attr.ext.xrc.xrcd) in UVERBS_HANDLER()
|
D | uverbs.h | 241 int ib_uverbs_dealloc_xrcd(struct ib_uobject *uobject, struct ib_xrcd *xrcd,
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | srq.c | 162 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()
|
D | resource_tracker.c | 5225 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/ |
D | hns_roce_pd.c | 160 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()
|
D | hns_roce_srq.c | 323 to_hr_xrcd(init_attr->ext.xrc.xrcd)->xrcdn : 0; in set_srq_ext_param()
|
/Linux-v5.15/drivers/infiniband/hw/mlx5/ |
D | srq.c | 257 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()
|
D | srq.h | 23 u32 xrcd; member
|
D | cmd.c | 159 *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()
|
D | qpc.c | 538 *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()
|
D | qp.c | 1949 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 …]
|
D | srq_cmd.c | 51 MLX5_SET(srqc, srqc, xrcd, in->xrcd); in set_srqc()
|
D | mlx5_ib.h | 1286 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);
|
D | cq.c | 178 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/ |
D | main.c | 1227 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 …]
|
D | srq.c | 183 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq()
|
D | qp.c | 1304 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/ |
D | qed_rdma_if.h | 606 int (*rdma_alloc_xrcd)(void *rdma_cxt, u16 *xrcd); 607 void (*rdma_dealloc_xrcd)(void *rdma_cxt, u16 xrcd);
|
/Linux-v5.15/include/rdma/ |
D | ib_verbs.h | 1057 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/ |
D | verbs.c | 492 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/ |
D | qp.h | 214 __be32 xrcd; member
|