/drivers/infiniband/core/ |
D | verbs.c | 632 srq->ext.xrc.xrcd = srq_init_attr->ext.xrc.xrcd; in ib_create_srq() 633 atomic_inc(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq() 665 struct ib_xrcd *uninitialized_var(xrcd); in ib_destroy_srq() 677 xrcd = srq->ext.xrc.xrcd; in ib_destroy_srq() 683 atomic_dec(&xrcd->usecnt); in ib_destroy_srq() 706 static void __ib_insert_xrcd_qp(struct ib_xrcd *xrcd, struct ib_qp *qp) in __ib_insert_xrcd_qp() argument 708 mutex_lock(&xrcd->tgt_qp_mutex); in __ib_insert_xrcd_qp() 709 list_add(&qp->xrcd_list, &xrcd->tgt_qp_list); in __ib_insert_xrcd_qp() 710 mutex_unlock(&xrcd->tgt_qp_mutex); in __ib_insert_xrcd_qp() 747 struct ib_qp *ib_open_qp(struct ib_xrcd *xrcd, in ib_open_qp() argument [all …]
|
D | uverbs_cmd.c | 389 struct ib_xrcd *xrcd; member 395 struct ib_xrcd *xrcd) in xrcd_table_insert() argument 405 entry->xrcd = xrcd; in xrcd_table_insert() 456 return entry->xrcd; in find_xrcd() 481 struct ib_xrcd *xrcd = NULL; in ib_uverbs_open_xrcd() local 509 xrcd = find_xrcd(file->device, inode); in ib_uverbs_open_xrcd() 510 if (!xrcd && !(cmd.oflags & O_CREAT)) { in ib_uverbs_open_xrcd() 516 if (xrcd && cmd.oflags & O_EXCL) { in ib_uverbs_open_xrcd() 522 obj = (struct ib_uxrcd_object *)uobj_alloc(uobj_get_type(xrcd), in ib_uverbs_open_xrcd() 529 if (!xrcd) { in ib_uverbs_open_xrcd() [all …]
|
D | uverbs_std_types.c | 165 struct ib_xrcd *xrcd = uobject->object; in uverbs_free_xrcd() local 175 xrcd, why); in uverbs_free_xrcd()
|
D | uverbs.h | 215 int ib_uverbs_dealloc_xrcd(struct ib_uverbs_device *dev, struct ib_xrcd *xrcd,
|
/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 | 5226 struct res_xrcdn *xrcd; in rem_slave_xrcdns() local 5237 list_for_each_entry_safe(xrcd, tmp, xrcdn_list, com.list) { in rem_slave_xrcdns() 5238 if (xrcd->com.owner == slave) { in rem_slave_xrcdns() 5239 xrcdn = xrcd->com.res_id; in rem_slave_xrcdns() 5240 rb_erase(&xrcd->com.node, &tracker->res_tree[RES_XRCD]); in rem_slave_xrcdns() 5241 list_del(&xrcd->com.list); in rem_slave_xrcdns() 5242 kfree(xrcd); in rem_slave_xrcdns()
|
D | mlx4.h | 368 __be16 xrcd; member
|
/drivers/infiniband/hw/mlx4/ |
D | main.c | 1341 struct mlx4_ib_xrcd *xrcd; in mlx4_ib_alloc_xrcd() local 1348 xrcd = kmalloc(sizeof *xrcd, GFP_KERNEL); in mlx4_ib_alloc_xrcd() 1349 if (!xrcd) in mlx4_ib_alloc_xrcd() 1352 err = mlx4_xrcd_alloc(to_mdev(ibdev)->dev, &xrcd->xrcdn); in mlx4_ib_alloc_xrcd() 1356 xrcd->pd = ib_alloc_pd(ibdev, 0); in mlx4_ib_alloc_xrcd() 1357 if (IS_ERR(xrcd->pd)) { in mlx4_ib_alloc_xrcd() 1358 err = PTR_ERR(xrcd->pd); in mlx4_ib_alloc_xrcd() 1363 xrcd->cq = ib_create_cq(ibdev, NULL, NULL, xrcd, &cq_attr); in mlx4_ib_alloc_xrcd() 1364 if (IS_ERR(xrcd->cq)) { in mlx4_ib_alloc_xrcd() 1365 err = PTR_ERR(xrcd->cq); in mlx4_ib_alloc_xrcd() [all …]
|
D | srq.c | 184 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq()
|
D | qp.c | 1377 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd() 1387 *send_cq = to_mcq(to_mxrcd(qp->ibqp.xrcd)->cq); in get_cqs() 1587 pd = to_mxrcd(init_attr->xrcd)->pd; in _mlx4_ib_create_qp() 1588 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in _mlx4_ib_create_qp() 1589 init_attr->send_cq = to_mxrcd(init_attr->xrcd)->cq; in _mlx4_ib_create_qp() 1659 struct ib_device *device = pd ? pd->device : init_attr->xrcd->device; in mlx4_ib_create_qp() 2252 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
|
/drivers/infiniband/hw/mlx5/ |
D | srq.c | 306 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq() 308 in.xrcd = to_mxrcd(dev->devr.x0)->xrcdn; in mlx5_ib_create_srq()
|
D | qp.c | 1760 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(init_attr->xrcd)->xrcdn); in create_qp_common() 1764 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x1)->xrcdn); in create_qp_common() 1769 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x0)->xrcdn); in create_qp_common() 1772 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x1)->xrcdn); in create_qp_common() 2086 dev = to_mdev(to_mxrcd(init_attr->xrcd)->ibxrcd.device); in mlx5_ib_create_qp() 2098 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in mlx5_ib_create_qp() 4650 struct mlx5_ib_xrcd *xrcd; in mlx5_ib_alloc_xrcd() local 4656 xrcd = kmalloc(sizeof(*xrcd), GFP_KERNEL); in mlx5_ib_alloc_xrcd() 4657 if (!xrcd) in mlx5_ib_alloc_xrcd() 4660 err = mlx5_core_xrcd_alloc(dev->mdev, &xrcd->xrcdn); in mlx5_ib_alloc_xrcd() [all …]
|
D | cq.c | 179 if (qp->ibqp.srq || qp->ibqp.xrcd) { in handle_responder() 182 if (qp->ibqp.xrcd) { in handle_responder()
|
D | mlx5_ib.h | 891 int mlx5_ib_dealloc_xrcd(struct ib_xrcd *xrcd);
|
D | main.c | 3242 attr.ext.xrc.xrcd = devr->x0; in create_dev_resources() 3255 devr->s0->ext.xrc.xrcd = devr->x0; in create_dev_resources() 3257 atomic_inc(&devr->s0->ext.xrc.xrcd->usecnt); in create_dev_resources()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | qp.c | 418 *xrcdn = MLX5_GET(alloc_xrcd_out, out, xrcd); in mlx5_core_xrcd_alloc() 429 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_core_xrcd_dealloc()
|
D | srq.c | 105 MLX5_SET(srqc, srqc, xrcd, in->xrcd); in set_srqc()
|
/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_qp.c | 969 init_attr->xrcd = NULL; in pvrdma_query_qp()
|