Lines Matching refs:_dp
166 #define dsa_lag_foreach_port(_dp, _dst, _lag) \ argument
167 list_for_each_entry((_dp), &(_dst)->ports, list) \
168 if ((_dp)->lag_dev == (_lag))
170 #define dsa_hsr_foreach_port(_dp, _ds, _hsr) \ argument
171 list_for_each_entry((_dp), &(_ds)->dst->ports, list) \
172 if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr))
478 #define dsa_tree_for_each_user_port(_dp, _dst) \ argument
479 list_for_each_entry((_dp), &(_dst)->ports, list) \
480 if (dsa_port_is_user((_dp)))
482 #define dsa_switch_for_each_port(_dp, _ds) \ argument
483 list_for_each_entry((_dp), &(_ds)->dst->ports, list) \
484 if ((_dp)->ds == (_ds))
486 #define dsa_switch_for_each_port_safe(_dp, _next, _ds) \ argument
487 list_for_each_entry_safe((_dp), (_next), &(_ds)->dst->ports, list) \
488 if ((_dp)->ds == (_ds))
490 #define dsa_switch_for_each_port_continue_reverse(_dp, _ds) \ argument
491 list_for_each_entry_continue_reverse((_dp), &(_ds)->dst->ports, list) \
492 if ((_dp)->ds == (_ds))
494 #define dsa_switch_for_each_available_port(_dp, _ds) \ argument
495 dsa_switch_for_each_port((_dp), (_ds)) \
496 if (!dsa_port_is_unused((_dp)))
498 #define dsa_switch_for_each_user_port(_dp, _ds) \ argument
499 dsa_switch_for_each_port((_dp), (_ds)) \
500 if (dsa_port_is_user((_dp)))
502 #define dsa_switch_for_each_cpu_port(_dp, _ds) \ argument
503 dsa_switch_for_each_port((_dp), (_ds)) \
504 if (dsa_port_is_cpu((_dp)))