Lines Matching refs:xrcd
1004 in->ctx.xrcd = cpu_to_be32(to_mxrcd(init_attr->xrcd)->xrcdn); in create_qp_common()
1008 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x1)->xrcdn); in create_qp_common()
1013 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x0)->xrcdn); in create_qp_common()
1016 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x1)->xrcdn); in create_qp_common()
1245 dev = to_mdev(to_mxrcd(init_attr->xrcd)->ibxrcd.device); in mlx5_ib_create_qp()
1258 xrcdn = to_mxrcd(init_attr->xrcd)->xrcdn; in mlx5_ib_create_qp()
3139 struct mlx5_ib_xrcd *xrcd; in mlx5_ib_alloc_xrcd() local
3146 xrcd = kmalloc(sizeof(*xrcd), GFP_KERNEL); in mlx5_ib_alloc_xrcd()
3147 if (!xrcd) in mlx5_ib_alloc_xrcd()
3150 err = mlx5_core_xrcd_alloc(dev->mdev, &xrcd->xrcdn); in mlx5_ib_alloc_xrcd()
3152 kfree(xrcd); in mlx5_ib_alloc_xrcd()
3156 return &xrcd->ibxrcd; in mlx5_ib_alloc_xrcd()
3159 int mlx5_ib_dealloc_xrcd(struct ib_xrcd *xrcd) in mlx5_ib_dealloc_xrcd() argument
3161 struct mlx5_ib_dev *dev = to_mdev(xrcd->device); in mlx5_ib_dealloc_xrcd()
3162 u32 xrcdn = to_mxrcd(xrcd)->xrcdn; in mlx5_ib_dealloc_xrcd()
3171 kfree(xrcd); in mlx5_ib_dealloc_xrcd()