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