Lines Matching refs:pqp
129 struct mlx4_promisc_qp *pqp; in get_promisc_qp() local
136 list_for_each_entry(pqp, &s_steer->promisc_qps[steer], list) { in get_promisc_qp()
137 if (pqp->qpn == qpn) in get_promisc_qp()
138 return pqp; in get_promisc_qp()
157 struct mlx4_promisc_qp *pqp; in new_steering_entry() local
177 pqp = get_promisc_qp(dev, port, steer, qpn); in new_steering_entry()
178 if (pqp) { in new_steering_entry()
208 list_for_each_entry(pqp, &s_steer->promisc_qps[steer], list) { in new_steering_entry()
210 if (pqp->qpn == qpn) in new_steering_entry()
219 mgm->qp[members_count++] = cpu_to_be32(pqp->qpn & MGM_QPN_MASK); in new_steering_entry()
246 struct mlx4_promisc_qp *pqp; in existing_steering_entry() local
254 pqp = get_promisc_qp(dev, port, steer, qpn); in existing_steering_entry()
255 if (!pqp) in existing_steering_entry()
394 struct mlx4_promisc_qp *pqp, *tmp_pqp; in can_remove_steering_entry() local
400 list_for_each_entry_safe(pqp, tmp_pqp, in can_remove_steering_entry()
403 list_del(&pqp->list); in can_remove_steering_entry()
404 kfree(pqp); in can_remove_steering_entry()
426 struct mlx4_promisc_qp *pqp; in add_promisc_qp() local
447 pqp = kmalloc(sizeof *pqp, GFP_KERNEL); in add_promisc_qp()
448 if (!pqp) { in add_promisc_qp()
452 pqp->qpn = qpn; in add_promisc_qp()
516 list_add_tail(&pqp->list, &s_steer->promisc_qps[steer]); in add_promisc_qp()
539 list_del(&pqp->list); in add_promisc_qp()
543 kfree(pqp); in add_promisc_qp()
557 struct mlx4_promisc_qp *pqp; in remove_promisc_qp() local
571 pqp = get_promisc_qp(dev, port, steer, qpn); in remove_promisc_qp()
572 if (unlikely(!pqp)) { in remove_promisc_qp()
580 list_del(&pqp->list); in remove_promisc_qp()
672 list_add_tail(&pqp->list, &s_steer->promisc_qps[steer]); in remove_promisc_qp()
674 kfree(pqp); in remove_promisc_qp()