Lines Matching refs:dqp
158 struct mlx4_promisc_qp *dqp = NULL; in new_steering_entry() local
179 dqp = kmalloc(sizeof *dqp, GFP_KERNEL); in new_steering_entry()
180 if (!dqp) { in new_steering_entry()
184 dqp->qpn = qpn; in new_steering_entry()
185 list_add_tail(&dqp->list, &new_entry->duplicates); in new_steering_entry()
230 if (dqp) { in new_steering_entry()
231 list_del(&dqp->list); in new_steering_entry()
232 kfree(dqp); in new_steering_entry()
247 struct mlx4_promisc_qp *dqp; in existing_steering_entry() local
272 list_for_each_entry(dqp, &entry->duplicates, list) { in existing_steering_entry()
273 if (qpn == dqp->qpn) in existing_steering_entry()
278 dqp = kmalloc(sizeof *dqp, GFP_KERNEL); in existing_steering_entry()
279 if (!dqp) in existing_steering_entry()
281 dqp->qpn = qpn; in existing_steering_entry()
282 list_add_tail(&dqp->list, &entry->duplicates); in existing_steering_entry()
295 struct mlx4_promisc_qp *dqp, *tmp_dqp; in check_duplicate_entry() local
318 list_for_each_entry_safe(dqp, tmp_dqp, &entry->duplicates, list) { in check_duplicate_entry()
319 if (dqp->qpn == qpn) { in check_duplicate_entry()
320 list_del(&dqp->list); in check_duplicate_entry()
321 kfree(dqp); in check_duplicate_entry()
427 struct mlx4_promisc_qp *dqp; in add_promisc_qp() local
483 dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); in add_promisc_qp()
484 if (!dqp) { in add_promisc_qp()
488 dqp->qpn = qpn; in add_promisc_qp()
489 list_add_tail(&dqp->list, in add_promisc_qp()
520 list_for_each_entry(dqp, &s_steer->promisc_qps[steer], list) { in add_promisc_qp()
526 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in add_promisc_qp()
558 struct mlx4_promisc_qp *dqp; in remove_promisc_qp() local
591 list_for_each_entry(dqp, &s_steer->promisc_qps[steer], list) in remove_promisc_qp()
592 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in remove_promisc_qp()
605 list_for_each_entry(dqp, &entry->duplicates, list) { in remove_promisc_qp()
606 if (dqp->qpn == qpn) { in remove_promisc_qp()
615 list_del(&dqp->list); in remove_promisc_qp()
616 kfree(dqp); in remove_promisc_qp()