Lines Matching refs:xrcd
995 in->ctx.xrcd = cpu_to_be32(to_mxrcd(init_attr->xrcd)->xrcdn); in create_qp_common()
999 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x1)->xrcdn); in create_qp_common()
1004 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x0)->xrcdn); in create_qp_common()
1007 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x1)->xrcdn); in create_qp_common()
1236 dev = to_mdev(to_mxrcd(init_attr->xrcd)->ibxrcd.device); in mlx5_ib_create_qp()
1248 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in mlx5_ib_create_qp()
3129 struct mlx5_ib_xrcd *xrcd; in mlx5_ib_alloc_xrcd() local
3135 xrcd = kmalloc(sizeof(*xrcd), GFP_KERNEL); in mlx5_ib_alloc_xrcd()
3136 if (!xrcd) in mlx5_ib_alloc_xrcd()
3139 err = mlx5_core_xrcd_alloc(dev->mdev, &xrcd->xrcdn); in mlx5_ib_alloc_xrcd()
3141 kfree(xrcd); in mlx5_ib_alloc_xrcd()
3145 return &xrcd->ibxrcd; in mlx5_ib_alloc_xrcd()
3148 int mlx5_ib_dealloc_xrcd(struct ib_xrcd *xrcd) in mlx5_ib_dealloc_xrcd() argument
3150 struct mlx5_ib_dev *dev = to_mdev(xrcd->device); in mlx5_ib_dealloc_xrcd()
3151 u32 xrcdn = to_mxrcd(xrcd)->xrcdn; in mlx5_ib_dealloc_xrcd()
3160 kfree(xrcd); in mlx5_ib_dealloc_xrcd()