Lines Matching full:_dp

171 #define dsa_lag_foreach_port(_dp, _dst, _lag)			\  argument
172 list_for_each_entry((_dp), &(_dst)->ports, list) \
173 if (dsa_port_offloads_lag((_dp), (_lag)))
175 #define dsa_hsr_foreach_port(_dp, _ds, _hsr) \ argument
176 list_for_each_entry((_dp), &(_ds)->dst->ports, list) \
177 if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr))
568 #define dsa_tree_for_each_user_port(_dp, _dst) \ argument
569 list_for_each_entry((_dp), &(_dst)->ports, list) \
570 if (dsa_port_is_user((_dp)))
572 #define dsa_tree_for_each_user_port_continue_reverse(_dp, _dst) \ argument
573 list_for_each_entry_continue_reverse((_dp), &(_dst)->ports, list) \
574 if (dsa_port_is_user((_dp)))
576 #define dsa_tree_for_each_cpu_port(_dp, _dst) \ argument
577 list_for_each_entry((_dp), &(_dst)->ports, list) \
578 if (dsa_port_is_cpu((_dp)))
580 #define dsa_switch_for_each_port(_dp, _ds) \ argument
581 list_for_each_entry((_dp), &(_ds)->dst->ports, list) \
582 if ((_dp)->ds == (_ds))
584 #define dsa_switch_for_each_port_safe(_dp, _next, _ds) \ argument
585 list_for_each_entry_safe((_dp), (_next), &(_ds)->dst->ports, list) \
586 if ((_dp)->ds == (_ds))
588 #define dsa_switch_for_each_port_continue_reverse(_dp, _ds) \ argument
589 list_for_each_entry_continue_reverse((_dp), &(_ds)->dst->ports, list) \
590 if ((_dp)->ds == (_ds))
592 #define dsa_switch_for_each_available_port(_dp, _ds) \ argument
593 dsa_switch_for_each_port((_dp), (_ds)) \
594 if (!dsa_port_is_unused((_dp)))
596 #define dsa_switch_for_each_user_port(_dp, _ds) \ argument
597 dsa_switch_for_each_port((_dp), (_ds)) \
598 if (dsa_port_is_user((_dp)))
600 #define dsa_switch_for_each_user_port_continue_reverse(_dp, _ds) \ argument
601 dsa_switch_for_each_port_continue_reverse((_dp), (_ds)) \
602 if (dsa_port_is_user((_dp)))
604 #define dsa_switch_for_each_cpu_port(_dp, _ds) \ argument
605 dsa_switch_for_each_port((_dp), (_ds)) \
606 if (dsa_port_is_cpu((_dp)))
608 #define dsa_switch_for_each_cpu_port_continue_reverse(_dp, _ds) \ argument
609 dsa_switch_for_each_port_continue_reverse((_dp), (_ds)) \
610 if (dsa_port_is_cpu((_dp)))