Home
last modified time | relevance | path

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

/drivers/infiniband/core/
Dverbs.c282 srq->ext.xrc.xrcd = srq_init_attr->ext.xrc.xrcd; in ib_create_srq()
284 atomic_inc(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq()
317 struct ib_xrcd *uninitialized_var(xrcd); in ib_destroy_srq()
327 xrcd = srq->ext.xrc.xrcd; in ib_destroy_srq()
335 atomic_dec(&xrcd->usecnt); in ib_destroy_srq()
355 static void __ib_insert_xrcd_qp(struct ib_xrcd *xrcd, struct ib_qp *qp) in __ib_insert_xrcd_qp() argument
357 mutex_lock(&xrcd->tgt_qp_mutex); in __ib_insert_xrcd_qp()
358 list_add(&qp->xrcd_list, &xrcd->tgt_qp_list); in __ib_insert_xrcd_qp()
359 mutex_unlock(&xrcd->tgt_qp_mutex); in __ib_insert_xrcd_qp()
388 struct ib_qp *ib_open_qp(struct ib_xrcd *xrcd, in ib_open_qp() argument
[all …]
Duverbs_cmd.c616 struct ib_xrcd *xrcd; member
622 struct ib_xrcd *xrcd) in xrcd_table_insert() argument
632 entry->xrcd = xrcd; in xrcd_table_insert()
683 return entry->xrcd; in find_xrcd()
707 struct ib_xrcd *xrcd = NULL; in ib_uverbs_open_xrcd() local
734 xrcd = find_xrcd(file->device, inode); in ib_uverbs_open_xrcd()
735 if (!xrcd && !(cmd.oflags & O_CREAT)) { in ib_uverbs_open_xrcd()
741 if (xrcd && cmd.oflags & O_EXCL) { in ib_uverbs_open_xrcd()
757 if (!xrcd) { in ib_uverbs_open_xrcd()
758 xrcd = file->device->ib_dev->alloc_xrcd(file->device->ib_dev, in ib_uverbs_open_xrcd()
[all …]
Duverbs.h177 void ib_uverbs_dealloc_xrcd(struct ib_uverbs_device *dev, struct ib_xrcd *xrcd);
Duverbs_main.c264 struct ib_xrcd *xrcd = uobj->object; in ib_uverbs_cleanup_ucontext() local
269 ib_uverbs_dealloc_xrcd(file->device, xrcd); in ib_uverbs_cleanup_ucontext()
/drivers/infiniband/hw/mlx4/
Dmain.c697 struct mlx4_ib_xrcd *xrcd; in mlx4_ib_alloc_xrcd() local
703 xrcd = kmalloc(sizeof *xrcd, GFP_KERNEL); in mlx4_ib_alloc_xrcd()
704 if (!xrcd) in mlx4_ib_alloc_xrcd()
707 err = mlx4_xrcd_alloc(to_mdev(ibdev)->dev, &xrcd->xrcdn); in mlx4_ib_alloc_xrcd()
711 xrcd->pd = ib_alloc_pd(ibdev); in mlx4_ib_alloc_xrcd()
712 if (IS_ERR(xrcd->pd)) { in mlx4_ib_alloc_xrcd()
713 err = PTR_ERR(xrcd->pd); in mlx4_ib_alloc_xrcd()
717 xrcd->cq = ib_create_cq(ibdev, NULL, NULL, xrcd, 1, 0); in mlx4_ib_alloc_xrcd()
718 if (IS_ERR(xrcd->cq)) { in mlx4_ib_alloc_xrcd()
719 err = PTR_ERR(xrcd->cq); in mlx4_ib_alloc_xrcd()
[all …]
Dsrq.c182 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq()
Dqp.c883 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
893 *send_cq = to_mcq(to_mxrcd(qp->ibqp.xrcd)->cq); in get_cqs()
1003 pd = to_mxrcd(init_attr->xrcd)->pd; in mlx4_ib_create_qp()
1004 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in mlx4_ib_create_qp()
1005 init_attr->send_cq = to_mxrcd(init_attr->xrcd)->cq; in mlx4_ib_create_qp()
1294 context->xrcd = cpu_to_be32((u32) qp->xrcdn); in __mlx4_ib_modify_qp()
/drivers/net/ethernet/mellanox/mlx4/
Dsrq.c165 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, in mlx4_srq_alloc() argument
196 srq_context->xrcd = cpu_to_be16(xrcd); in mlx4_srq_alloc()
Dresource_tracker.c3894 struct res_xrcdn *xrcd; in rem_slave_xrcdns() local
3905 list_for_each_entry_safe(xrcd, tmp, xrcdn_list, com.list) { in rem_slave_xrcdns()
3906 if (xrcd->com.owner == slave) { in rem_slave_xrcdns()
3907 xrcdn = xrcd->com.res_id; in rem_slave_xrcdns()
3908 rb_erase(&xrcd->com.node, &tracker->res_tree[RES_XRCD]); in rem_slave_xrcdns()
3909 list_del(&xrcd->com.list); in rem_slave_xrcdns()
3910 kfree(xrcd); in rem_slave_xrcdns()
Dmlx4.h354 __be16 xrcd; member