Lines Matching refs:_dp
185 #define dsa_lag_foreach_port(_dp, _dst, _lag) \ argument
186 list_for_each_entry((_dp), &(_dst)->ports, list) \
187 if (dsa_port_offloads_lag((_dp), (_lag)))
189 #define dsa_hsr_foreach_port(_dp, _ds, _hsr) \ argument
190 list_for_each_entry((_dp), &(_ds)->dst->ports, list) \
191 if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr))
559 #define dsa_tree_for_each_user_port(_dp, _dst) \ argument
560 list_for_each_entry((_dp), &(_dst)->ports, list) \
561 if (dsa_port_is_user((_dp)))
563 #define dsa_tree_for_each_user_port_continue_reverse(_dp, _dst) \ argument
564 list_for_each_entry_continue_reverse((_dp), &(_dst)->ports, list) \
565 if (dsa_port_is_user((_dp)))
567 #define dsa_tree_for_each_cpu_port(_dp, _dst) \ argument
568 list_for_each_entry((_dp), &(_dst)->ports, list) \
569 if (dsa_port_is_cpu((_dp)))
571 #define dsa_switch_for_each_port(_dp, _ds) \ argument
572 list_for_each_entry((_dp), &(_ds)->dst->ports, list) \
573 if ((_dp)->ds == (_ds))
575 #define dsa_switch_for_each_port_safe(_dp, _next, _ds) \ argument
576 list_for_each_entry_safe((_dp), (_next), &(_ds)->dst->ports, list) \
577 if ((_dp)->ds == (_ds))
579 #define dsa_switch_for_each_port_continue_reverse(_dp, _ds) \ argument
580 list_for_each_entry_continue_reverse((_dp), &(_ds)->dst->ports, list) \
581 if ((_dp)->ds == (_ds))
583 #define dsa_switch_for_each_available_port(_dp, _ds) \ argument
584 dsa_switch_for_each_port((_dp), (_ds)) \
585 if (!dsa_port_is_unused((_dp)))
587 #define dsa_switch_for_each_user_port(_dp, _ds) \ argument
588 dsa_switch_for_each_port((_dp), (_ds)) \
589 if (dsa_port_is_user((_dp)))
591 #define dsa_switch_for_each_cpu_port(_dp, _ds) \ argument
592 dsa_switch_for_each_port((_dp), (_ds)) \
593 if (dsa_port_is_cpu((_dp)))
595 #define dsa_switch_for_each_cpu_port_continue_reverse(_dp, _ds) \ argument
596 dsa_switch_for_each_port_continue_reverse((_dp), (_ds)) \
597 if (dsa_port_is_cpu((_dp)))