Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dgsi.c119 mutex_lock(&dev->devr.mutex); in mlx5_ib_create_gsi()
121 if (dev->devr.ports[port_num - 1].gsi) { in mlx5_ib_create_gsi()
169 dev->devr.ports[attr->port_num - 1].gsi = gsi; in mlx5_ib_create_gsi()
171 mutex_unlock(&dev->devr.mutex); in mlx5_ib_create_gsi()
178 mutex_unlock(&dev->devr.mutex); in mlx5_ib_create_gsi()
193 mutex_lock(&dev->devr.mutex); in mlx5_ib_destroy_gsi()
198 mutex_unlock(&dev->devr.mutex); in mlx5_ib_destroy_gsi()
201 dev->devr.ports[port_num - 1].gsi = NULL; in mlx5_ib_destroy_gsi()
202 mutex_unlock(&dev->devr.mutex); in mlx5_ib_destroy_gsi()
347 mutex_lock(&dev->devr.mutex); in setup_qps()
[all …]
Dmain.c2836 schedule_work(&ibdev->devr.ports[port - 1].pkey_change_work); in handle_port_change()
3044 struct mlx5_ib_resources *devr = &dev->devr; in mlx5_ib_dev_res_init() local
3056 mutex_init(&devr->mutex); in mlx5_ib_dev_res_init()
3058 devr->p0 = rdma_zalloc_drv_obj(ibdev, ib_pd); in mlx5_ib_dev_res_init()
3059 if (!devr->p0) in mlx5_ib_dev_res_init()
3062 devr->p0->device = ibdev; in mlx5_ib_dev_res_init()
3063 devr->p0->uobject = NULL; in mlx5_ib_dev_res_init()
3064 atomic_set(&devr->p0->usecnt, 0); in mlx5_ib_dev_res_init()
3066 ret = mlx5_ib_alloc_pd(devr->p0, NULL); in mlx5_ib_dev_res_init()
3070 devr->c0 = rdma_zalloc_drv_obj(ibdev, ib_cq); in mlx5_ib_dev_res_init()
[all …]
Dqp.c1847 struct mlx5_ib_resources *devr = &dev->devr; in create_xrc_tgt_qp() local
1868 MLX5_SET(qpc, qpc, pd, to_mpd(devr->p0)->pdn); in create_xrc_tgt_qp()
1881 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1882 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1883 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_xrc_tgt_qp()
1926 struct mlx5_ib_resources *devr = &dev->devr; in create_user_qp() local
2033 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_user_qp()
2034 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2035 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_user_qp()
2039 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_user_qp()
[all …]
Dsrq.c280 in.xrcd = dev->devr.xrcdn0; in mlx5_ib_create_srq()
297 in.cqn = to_mcq(dev->devr.c0)->mcq.cqn; in mlx5_ib_create_srq()
Dmlx5_ib.h984 struct mlx5_ib_resources devr; member
/kernel/linux/linux-5.10/drivers/base/
Ddevres.c1180 struct devres *devr = container_of(data, struct devres, data); in devm_percpu_match() local
1182 return *(void **)devr->data == p; in devm_percpu_match()