• Home
  • Raw
  • Download

Lines Matching refs:pqp

128 	struct mlx4_promisc_qp *pqp;  in get_promisc_qp()  local
135 list_for_each_entry(pqp, &s_steer->promisc_qps[steer], list) { in get_promisc_qp()
136 if (pqp->qpn == qpn) in get_promisc_qp()
137 return pqp; in get_promisc_qp()
156 struct mlx4_promisc_qp *pqp; in new_steering_entry() local
176 pqp = get_promisc_qp(dev, port, steer, qpn); in new_steering_entry()
177 if (pqp) { in new_steering_entry()
207 list_for_each_entry(pqp, &s_steer->promisc_qps[steer], list) { in new_steering_entry()
209 if (pqp->qpn == qpn) in new_steering_entry()
218 mgm->qp[members_count++] = cpu_to_be32(pqp->qpn & MGM_QPN_MASK); in new_steering_entry()
245 struct mlx4_promisc_qp *pqp; in existing_steering_entry() local
253 pqp = get_promisc_qp(dev, port, steer, qpn); in existing_steering_entry()
254 if (!pqp) in existing_steering_entry()
393 struct mlx4_promisc_qp *pqp, *tmp_pqp; in can_remove_steering_entry() local
399 list_for_each_entry_safe(pqp, tmp_pqp, in can_remove_steering_entry()
402 list_del(&pqp->list); in can_remove_steering_entry()
403 kfree(pqp); in can_remove_steering_entry()
425 struct mlx4_promisc_qp *pqp; in add_promisc_qp() local
446 pqp = kmalloc(sizeof(*pqp), GFP_KERNEL); in add_promisc_qp()
447 if (!pqp) { in add_promisc_qp()
451 pqp->qpn = qpn; in add_promisc_qp()
515 list_add_tail(&pqp->list, &s_steer->promisc_qps[steer]); in add_promisc_qp()
538 list_del(&pqp->list); in add_promisc_qp()
542 kfree(pqp); in add_promisc_qp()
556 struct mlx4_promisc_qp *pqp; in remove_promisc_qp() local
570 pqp = get_promisc_qp(dev, port, steer, qpn); in remove_promisc_qp()
571 if (unlikely(!pqp)) { in remove_promisc_qp()
579 list_del(&pqp->list); in remove_promisc_qp()
671 list_add_tail(&pqp->list, &s_steer->promisc_qps[steer]); in remove_promisc_qp()
673 kfree(pqp); in remove_promisc_qp()