Lines Matching refs:rqp

4017 				struct res_qp *rqp, u8 *gid)  in find_gid()  argument
4021 list_for_each_entry(res, &rqp->mcg_list, list) { in find_gid()
4028 static int add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, in add_mcg_res() argument
4039 spin_lock_irq(&rqp->mcg_spl); in add_mcg_res()
4040 if (find_gid(dev, slave, rqp, gid)) { in add_mcg_res()
4048 list_add_tail(&res->list, &rqp->mcg_list); in add_mcg_res()
4051 spin_unlock_irq(&rqp->mcg_spl); in add_mcg_res()
4056 static int rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, in rem_mcg_res() argument
4063 spin_lock_irq(&rqp->mcg_spl); in rem_mcg_res()
4064 res = find_gid(dev, slave, rqp, gid); in rem_mcg_res()
4073 spin_unlock_irq(&rqp->mcg_spl); in rem_mcg_res()
4149 struct res_qp *rqp; in mlx4_QP_ATTACH_wrapper() local
4157 err = get_res(dev, slave, qpn, RES_QP, &rqp); in mlx4_QP_ATTACH_wrapper()
4169 err = add_mcg_res(dev, slave, rqp, gid, prot, type, reg_id); in mlx4_QP_ATTACH_wrapper()
4177 err = rem_mcg_res(dev, slave, rqp, gid, prot, type, &reg_id); in mlx4_QP_ATTACH_wrapper()
4292 struct res_qp *rqp; in mlx4_UPDATE_QP_wrapper() local
4316 err = get_res(dev, slave, qpn, RES_QP, &rqp); in mlx4_UPDATE_QP_wrapper()
4322 port = (rqp->sched_queue >> 6 & 1) + 1; in mlx4_UPDATE_QP_wrapper()
4378 struct res_qp *rqp; in mlx4_QP_FLOW_STEERING_ATTACH_wrapper() local
4395 err = get_res(dev, slave, qpn, RES_QP, &rqp); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4470 atomic_inc(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4507 struct res_qp *rqp; in mlx4_QP_FLOW_STEERING_DETACH_wrapper() local
4531 err = get_res(dev, slave, qpn, RES_QP, &rqp); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4554 atomic_dec(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4582 static void detach_qp(struct mlx4_dev *dev, int slave, struct res_qp *rqp) in detach_qp() argument
4588 list_for_each_entry_safe(rgid, tmp, &rqp->mcg_list, list) { in detach_qp()
4594 qp.qpn = rqp->local_qpn; in detach_qp()