Lines Matching refs:dqp
157 struct mlx4_promisc_qp *dqp = NULL; in new_steering_entry() local
178 dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); in new_steering_entry()
179 if (!dqp) { in new_steering_entry()
183 dqp->qpn = qpn; in new_steering_entry()
184 list_add_tail(&dqp->list, &new_entry->duplicates); in new_steering_entry()
229 if (dqp) { in new_steering_entry()
230 list_del(&dqp->list); in new_steering_entry()
231 kfree(dqp); in new_steering_entry()
246 struct mlx4_promisc_qp *dqp; in existing_steering_entry() local
271 list_for_each_entry(dqp, &entry->duplicates, list) { in existing_steering_entry()
272 if (qpn == dqp->qpn) in existing_steering_entry()
277 dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); in existing_steering_entry()
278 if (!dqp) in existing_steering_entry()
280 dqp->qpn = qpn; in existing_steering_entry()
281 list_add_tail(&dqp->list, &entry->duplicates); in existing_steering_entry()
294 struct mlx4_promisc_qp *dqp, *tmp_dqp; in check_duplicate_entry() local
317 list_for_each_entry_safe(dqp, tmp_dqp, &entry->duplicates, list) { in check_duplicate_entry()
318 if (dqp->qpn == qpn) { in check_duplicate_entry()
319 list_del(&dqp->list); in check_duplicate_entry()
320 kfree(dqp); in check_duplicate_entry()
426 struct mlx4_promisc_qp *dqp; in add_promisc_qp() local
482 dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); in add_promisc_qp()
483 if (!dqp) { in add_promisc_qp()
487 dqp->qpn = qpn; in add_promisc_qp()
488 list_add_tail(&dqp->list, in add_promisc_qp()
519 list_for_each_entry(dqp, &s_steer->promisc_qps[steer], list) { in add_promisc_qp()
525 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in add_promisc_qp()
557 struct mlx4_promisc_qp *dqp; in remove_promisc_qp() local
590 list_for_each_entry(dqp, &s_steer->promisc_qps[steer], list) in remove_promisc_qp()
591 mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); in remove_promisc_qp()
604 list_for_each_entry(dqp, &entry->duplicates, list) { in remove_promisc_qp()
605 if (dqp->qpn == qpn) { in remove_promisc_qp()
614 list_del(&dqp->list); in remove_promisc_qp()
615 kfree(dqp); in remove_promisc_qp()