Searched refs:other_dp (Results 1 – 8 of 8) sorted by relevance
| /linux/net/dsa/ |
| H A D | port.c | 273 struct dsa_port *other_dp; in dsa_port_reset_vlan_filtering() local 296 dsa_switch_for_each_port(other_dp, ds) { in dsa_port_reset_vlan_filtering() 297 struct net_device *br = dsa_port_bridge_dev_get(other_dp); in dsa_port_reset_vlan_filtering() 730 struct dsa_port *other_dp; in dsa_port_can_apply_vlan_filtering() local 773 dsa_switch_for_each_port(other_dp, ds) { in dsa_port_can_apply_vlan_filtering() 774 struct net_device *other_br = dsa_port_bridge_dev_get(other_dp); in dsa_port_can_apply_vlan_filtering() 821 struct dsa_port *other_dp; in dsa_port_vlan_filtering() local 825 dsa_switch_for_each_user_port(other_dp, ds) { in dsa_port_vlan_filtering() 826 struct net_device *user = other_dp->user; in dsa_port_vlan_filtering()
|
| H A D | dsa.c | 1801 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in dsa_port_simple_hsr_join() local 1808 dsa_hsr_foreach_port(other_dp, ds, hsr) { in dsa_port_simple_hsr_join() 1809 if (other_dp != dp) { in dsa_port_simple_hsr_join() 1811 other_dp->user->features |= NETIF_F_HW_HSR_DUP; in dsa_port_simple_hsr_join() 1823 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in dsa_port_simple_hsr_leave() local 1825 dsa_hsr_foreach_port(other_dp, ds, hsr) { in dsa_port_simple_hsr_leave() 1826 if (other_dp != dp) { in dsa_port_simple_hsr_leave() 1828 other_dp->user->features &= ~NETIF_F_HW_HSR_DUP; in dsa_port_simple_hsr_leave()
|
| H A D | user.c | 2040 struct dsa_port *other_dp; in dsa_bridge_mtu_normalization() local 2055 list_for_each_entry(other_dp, &dst->ports, list) { in dsa_bridge_mtu_normalization() 2059 if (other_dp->type != DSA_PORT_TYPE_USER) in dsa_bridge_mtu_normalization() 2062 if (!dsa_port_bridge_same(dp, other_dp)) in dsa_bridge_mtu_normalization() 2065 if (!other_dp->ds->mtu_enforcement_ingress) in dsa_bridge_mtu_normalization() 2068 user = other_dp->user; in dsa_bridge_mtu_normalization() 2108 struct dsa_port *other_dp; in dsa_user_change_mtu() local 2120 dsa_tree_for_each_user_port(other_dp, ds->dst) { in dsa_user_change_mtu() 2127 if (!other_dp->user) in dsa_user_change_mtu() 2133 if (dp == other_dp) in dsa_user_change_mtu() [all …]
|
| H A D | tag_sja1105.c | 177 struct dsa_port *other_dp; in sja1105_xmit_tpid() local 190 dsa_switch_for_each_port(other_dp, ds) { in sja1105_xmit_tpid() 191 struct net_device *br = dsa_port_bridge_dev_get(other_dp); in sja1105_xmit_tpid()
|
| /linux/drivers/net/dsa/ |
| H A D | vitesse-vsc73xx-core.c | 1826 struct dsa_port *other_dp, *dp = dsa_to_port(ds, port); in vsc73xx_refresh_fwd_map() local 1838 dsa_switch_for_each_available_port(other_dp, ds) { in vsc73xx_refresh_fwd_map() 1839 if (other_dp == dp) in vsc73xx_refresh_fwd_map() 1842 VSC73XX_SRCMASKS + other_dp->index, in vsc73xx_refresh_fwd_map() 1857 dsa_switch_for_each_user_port(other_dp, ds) { in vsc73xx_refresh_fwd_map() 1858 int other_port = other_dp->index; in vsc73xx_refresh_fwd_map() 1860 if (port == other_port || !dsa_port_bridge_same(dp, other_dp) || in vsc73xx_refresh_fwd_map() 1861 other_dp->stp_state != BR_STATE_FORWARDING) in vsc73xx_refresh_fwd_map()
|
| /linux/drivers/net/dsa/ocelot/ |
| H A D | felix.c | 523 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in felix_tag_npi_change_conduit() local 536 dsa_switch_for_each_user_port(other_dp, ds) { in felix_tag_npi_change_conduit() 537 struct net_device *user = other_dp->user; in felix_tag_npi_change_conduit() 539 if (other_dp != dp && (user->flags & IFF_UP) && in felix_tag_npi_change_conduit() 540 dsa_port_to_conduit(other_dp) != conduit) { in felix_tag_npi_change_conduit()
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | chip.c | 1528 struct dsa_port *dp, *other_dp; in mv88e6xxx_port_vlan() local 1580 dsa_switch_for_each_port(other_dp, ds) in mv88e6xxx_port_vlan() 1581 if (other_dp->type == DSA_PORT_TYPE_CPU || in mv88e6xxx_port_vlan() 1582 other_dp->type == DSA_PORT_TYPE_DSA || in mv88e6xxx_port_vlan() 1583 dsa_port_bridge_same(dp, other_dp)) in mv88e6xxx_port_vlan() 1584 pvlan |= BIT(other_dp->index); in mv88e6xxx_port_vlan() 2111 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mv88e6xxx_port_check_hw_vlan() local 2127 dsa_switch_for_each_user_port(other_dp, ds) { in mv88e6xxx_port_check_hw_vlan() 2130 if (vlan.member[other_dp->index] == in mv88e6xxx_port_check_hw_vlan() 2134 if (dsa_port_bridge_same(dp, other_dp)) in mv88e6xxx_port_check_hw_vlan() [all …]
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz_common.c | 2419 const struct dsa_port *other_dp = dsa_to_port(ds, i); in ksz_update_port_member() local 2427 if (!dsa_port_bridge_same(dp, other_dp)) in ksz_update_port_member() 2469 if (dsa_port_bridge_same(other_dp, third_dp) && in ksz_update_port_member()
|