Lines Matching refs:_dp
172 #define dsa_lag_foreach_port(_dp, _dst, _lag) \ argument
173 list_for_each_entry((_dp), &(_dst)->ports, list) \
174 if (dsa_port_offloads_lag((_dp), (_lag)))
176 #define dsa_hsr_foreach_port(_dp, _ds, _hsr) \ argument
177 list_for_each_entry((_dp), &(_ds)->dst->ports, list) \
178 if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr))
549 #define dsa_tree_for_each_user_port(_dp, _dst) \ argument
550 list_for_each_entry((_dp), &(_dst)->ports, list) \
551 if (dsa_port_is_user((_dp)))
553 #define dsa_tree_for_each_user_port_continue_reverse(_dp, _dst) \ argument
554 list_for_each_entry_continue_reverse((_dp), &(_dst)->ports, list) \
555 if (dsa_port_is_user((_dp)))
557 #define dsa_tree_for_each_cpu_port(_dp, _dst) \ argument
558 list_for_each_entry((_dp), &(_dst)->ports, list) \
559 if (dsa_port_is_cpu((_dp)))
561 #define dsa_switch_for_each_port(_dp, _ds) \ argument
562 list_for_each_entry((_dp), &(_ds)->dst->ports, list) \
563 if ((_dp)->ds == (_ds))
565 #define dsa_switch_for_each_port_safe(_dp, _next, _ds) \ argument
566 list_for_each_entry_safe((_dp), (_next), &(_ds)->dst->ports, list) \
567 if ((_dp)->ds == (_ds))
569 #define dsa_switch_for_each_port_continue_reverse(_dp, _ds) \ argument
570 list_for_each_entry_continue_reverse((_dp), &(_ds)->dst->ports, list) \
571 if ((_dp)->ds == (_ds))
573 #define dsa_switch_for_each_available_port(_dp, _ds) \ argument
574 dsa_switch_for_each_port((_dp), (_ds)) \
575 if (!dsa_port_is_unused((_dp)))
577 #define dsa_switch_for_each_user_port(_dp, _ds) \ argument
578 dsa_switch_for_each_port((_dp), (_ds)) \
579 if (dsa_port_is_user((_dp)))
581 #define dsa_switch_for_each_cpu_port(_dp, _ds) \ argument
582 dsa_switch_for_each_port((_dp), (_ds)) \
583 if (dsa_port_is_cpu((_dp)))
585 #define dsa_switch_for_each_cpu_port_continue_reverse(_dp, _ds) \ argument
586 dsa_switch_for_each_port_continue_reverse((_dp), (_ds)) \
587 if (dsa_port_is_cpu((_dp)))