Home
last modified time | relevance | path

Searched refs:devr (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmain.c1086 static int create_dev_resources(struct mlx5_ib_resources *devr) in create_dev_resources() argument
1092 dev = container_of(devr, struct mlx5_ib_dev, devr); in create_dev_resources()
1094 devr->p0 = mlx5_ib_alloc_pd(&dev->ib_dev, NULL, NULL); in create_dev_resources()
1095 if (IS_ERR(devr->p0)) { in create_dev_resources()
1096 ret = PTR_ERR(devr->p0); in create_dev_resources()
1099 devr->p0->device = &dev->ib_dev; in create_dev_resources()
1100 devr->p0->uobject = NULL; in create_dev_resources()
1101 atomic_set(&devr->p0->usecnt, 0); in create_dev_resources()
1103 devr->c0 = mlx5_ib_create_cq(&dev->ib_dev, 1, 0, NULL, NULL); in create_dev_resources()
1104 if (IS_ERR(devr->c0)) { in create_dev_resources()
[all …]
Dqp.c868 struct mlx5_ib_resources *devr = &dev->devr; in create_qp_common() local
956 in->ctx.flags_pd = cpu_to_be32(to_mpd(pd ? pd : devr->p0)->pdn); in create_qp_common()
1001 in->ctx.cqn_recv = cpu_to_be32(to_mcq(devr->c0)->mcq.cqn); in create_qp_common()
1002 in->ctx.cqn_send = cpu_to_be32(to_mcq(devr->c0)->mcq.cqn); in create_qp_common()
1003 in->ctx.rq_type_srqn |= cpu_to_be32(to_msrq(devr->s0)->msrq.srqn); in create_qp_common()
1007 in->ctx.cqn_recv = cpu_to_be32(to_mcq(devr->c0)->mcq.cqn); in create_qp_common()
1008 in->ctx.xrcd = cpu_to_be32(to_mxrcd(devr->x1)->xrcdn); in create_qp_common()
1009 in->ctx.rq_type_srqn |= cpu_to_be32(to_msrq(devr->s0)->msrq.srqn); 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()
[all …]
Dsrq.c298 xrcdn = to_mxrcd(dev->devr.x0)->xrcdn; in mlx5_ib_create_srq()
299 in->ctx.pgoff_cqn |= cpu_to_be32(to_mcq(dev->devr.c0)->mcq.cqn); in mlx5_ib_create_srq()
Dmlx5_ib.h432 struct mlx5_ib_resources devr; member