Lines Matching refs:rqp

4016 				struct res_qp *rqp, u8 *gid)  in find_gid()  argument
4020 list_for_each_entry(res, &rqp->mcg_list, list) { in find_gid()
4027 static int add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, in add_mcg_res() argument
4038 spin_lock_irq(&rqp->mcg_spl); in add_mcg_res()
4039 if (find_gid(dev, slave, rqp, gid)) { in add_mcg_res()
4047 list_add_tail(&res->list, &rqp->mcg_list); in add_mcg_res()
4050 spin_unlock_irq(&rqp->mcg_spl); in add_mcg_res()
4055 static int rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, in rem_mcg_res() argument
4062 spin_lock_irq(&rqp->mcg_spl); in rem_mcg_res()
4063 res = find_gid(dev, slave, rqp, gid); in rem_mcg_res()
4072 spin_unlock_irq(&rqp->mcg_spl); in rem_mcg_res()
4148 struct res_qp *rqp; in mlx4_QP_ATTACH_wrapper() local
4156 err = get_res(dev, slave, qpn, RES_QP, &rqp); in mlx4_QP_ATTACH_wrapper()
4168 err = add_mcg_res(dev, slave, rqp, gid, prot, type, reg_id); in mlx4_QP_ATTACH_wrapper()
4176 err = rem_mcg_res(dev, slave, rqp, gid, prot, type, &reg_id); in mlx4_QP_ATTACH_wrapper()
4291 struct res_qp *rqp; in mlx4_UPDATE_QP_wrapper() local
4315 err = get_res(dev, slave, qpn, RES_QP, &rqp); in mlx4_UPDATE_QP_wrapper()
4321 port = (rqp->sched_queue >> 6 & 1) + 1; in mlx4_UPDATE_QP_wrapper()
4377 struct res_qp *rqp; in mlx4_QP_FLOW_STEERING_ATTACH_wrapper() local
4394 err = get_res(dev, slave, qpn, RES_QP, &rqp); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4469 atomic_inc(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4506 struct res_qp *rqp; in mlx4_QP_FLOW_STEERING_DETACH_wrapper() local
4530 err = get_res(dev, slave, qpn, RES_QP, &rqp); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4553 atomic_dec(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4581 static void detach_qp(struct mlx4_dev *dev, int slave, struct res_qp *rqp) in detach_qp() argument
4587 list_for_each_entry_safe(rgid, tmp, &rqp->mcg_list, list) { in detach_qp()
4593 qp.qpn = rqp->local_qpn; in detach_qp()