Searched refs:devr (Results 1 – 5 of 5) sorted by relevance
/drivers/infiniband/hw/mlx5/ |
D | main.c | 2269 mutex_lock(&ports->devr->mutex); in pkey_change_handler() 2271 mutex_unlock(&ports->devr->mutex); in pkey_change_handler() 2373 schedule_work(&ibdev->devr.ports[port - 1].pkey_change_work); in mlx5_ib_event() 2591 static int create_dev_resources(struct mlx5_ib_resources *devr) in create_dev_resources() argument 2599 dev = container_of(devr, struct mlx5_ib_dev, devr); in create_dev_resources() 2601 mutex_init(&devr->mutex); in create_dev_resources() 2603 devr->p0 = mlx5_ib_alloc_pd(&dev->ib_dev, NULL, NULL); in create_dev_resources() 2604 if (IS_ERR(devr->p0)) { in create_dev_resources() 2605 ret = PTR_ERR(devr->p0); in create_dev_resources() 2608 devr->p0->device = &dev->ib_dev; in create_dev_resources() [all …]
|
D | gsi.c | 128 if (port_num > ARRAY_SIZE(dev->devr.ports) || port_num < 1) { in mlx5_ib_gsi_create_qp() 155 mutex_lock(&dev->devr.mutex); in mlx5_ib_gsi_create_qp() 157 if (dev->devr.ports[port_num - 1].gsi) { in mlx5_ib_gsi_create_qp() 195 dev->devr.ports[init_attr->port_num - 1].gsi = gsi; in mlx5_ib_gsi_create_qp() 197 mutex_unlock(&dev->devr.mutex); in mlx5_ib_gsi_create_qp() 204 mutex_unlock(&dev->devr.mutex); in mlx5_ib_gsi_create_qp() 223 mutex_lock(&dev->devr.mutex); in mlx5_ib_gsi_destroy_qp() 228 mutex_unlock(&dev->devr.mutex); in mlx5_ib_gsi_destroy_qp() 231 dev->devr.ports[port_num - 1].gsi = NULL; in mlx5_ib_gsi_destroy_qp() 232 mutex_unlock(&dev->devr.mutex); in mlx5_ib_gsi_destroy_qp()
|
D | srq.c | 304 in.xrcd = to_mxrcd(dev->devr.x0)->xrcdn; in mlx5_ib_create_srq() 305 in.cqn = to_mcq(dev->devr.c0)->mcq.cqn; in mlx5_ib_create_srq()
|
D | qp.c | 1512 struct mlx5_ib_resources *devr = &dev->devr; in create_qp_common() local 1668 MLX5_SET(qpc, qpc, pd, to_mpd(pd ? pd : devr->p0)->pdn); in create_qp_common() 1721 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_qp_common() 1722 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(devr->c0)->mcq.cqn); in create_qp_common() 1723 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_qp_common() 1727 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_qp_common() 1728 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x1)->xrcdn); in create_qp_common() 1729 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_qp_common() 1733 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x0)->xrcdn); in create_qp_common() 1736 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(devr->x1)->xrcdn); in create_qp_common() [all …]
|
D | mlx5_ib.h | 582 struct mlx5_ib_resources *devr; member 626 struct mlx5_ib_resources devr; member
|