Lines Matching refs:xrcd
1224 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()
1257 static int mlx4_ib_dealloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata) in mlx4_ib_dealloc_xrcd() argument
1259 ib_destroy_cq(to_mxrcd(xrcd)->cq); in mlx4_ib_dealloc_xrcd()
1260 ib_dealloc_pd(to_mxrcd(xrcd)->pd); in mlx4_ib_dealloc_xrcd()
1261 mlx4_xrcd_free(to_mdev(xrcd->device)->dev, to_mxrcd(xrcd)->xrcdn); in mlx4_ib_dealloc_xrcd()