Searched refs:devr (Results 1 – 4 of 4) sorted by relevance
1185 static int create_dev_resources(struct mlx5_ib_resources *devr) in create_dev_resources() argument1192 dev = container_of(devr, struct mlx5_ib_dev, devr); in create_dev_resources()1194 devr->p0 = mlx5_ib_alloc_pd(&dev->ib_dev, NULL, NULL); in create_dev_resources()1195 if (IS_ERR(devr->p0)) { in create_dev_resources()1196 ret = PTR_ERR(devr->p0); in create_dev_resources()1199 devr->p0->device = &dev->ib_dev; in create_dev_resources()1200 devr->p0->uobject = NULL; in create_dev_resources()1201 atomic_set(&devr->p0->usecnt, 0); in create_dev_resources()1203 devr->c0 = mlx5_ib_create_cq(&dev->ib_dev, &cq_attr, NULL, NULL); in create_dev_resources()1204 if (IS_ERR(devr->c0)) { in create_dev_resources()[all …]
860 struct mlx5_ib_resources *devr = &dev->devr; in create_qp_common() local947 in->ctx.flags_pd = cpu_to_be32(to_mpd(pd ? pd : devr->p0)->pdn); in create_qp_common()992 in->ctx.cqn_recv = cpu_to_be32(to_mcq(devr->c0)->mcq.cqn); in create_qp_common()993 in->ctx.cqn_send = cpu_to_be32(to_mcq(devr->c0)->mcq.cqn); in create_qp_common()994 in->ctx.rq_type_srqn |= cpu_to_be32(to_msrq(devr->s0)->msrq.srqn); in create_qp_common()998 in->ctx.cqn_recv = cpu_to_be32(to_mcq(devr->c0)->mcq.cqn); in create_qp_common()999 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x1)->xrcdn); in create_qp_common()1000 in->ctx.rq_type_srqn |= cpu_to_be32(to_msrq(devr->s0)->msrq.srqn); 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()[all …]
297 xrcdn = to_mxrcd(dev->devr.x0)->xrcdn; in mlx5_ib_create_srq()298 in->ctx.pgoff_cqn |= cpu_to_be32(to_mcq(dev->devr.c0)->mcq.cqn); in mlx5_ib_create_srq()
422 struct mlx5_ib_resources devr; member