Searched refs:other_dp (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/net/dsa/ |
H A D | port.c | 277 struct dsa_port *other_dp; in dsa_port_reset_vlan_filtering() local 300 dsa_switch_for_each_port(other_dp, ds) { in dsa_port_reset_vlan_filtering() 301 struct net_device *br = dsa_port_bridge_dev_get(other_dp); in dsa_port_reset_vlan_filtering() 734 struct dsa_port *other_dp; in dsa_port_can_apply_vlan_filtering() local 777 dsa_switch_for_each_port(other_dp, ds) { in dsa_port_can_apply_vlan_filtering() 778 struct net_device *other_br = dsa_port_bridge_dev_get(other_dp); in dsa_port_can_apply_vlan_filtering() 825 struct dsa_port *other_dp; in dsa_port_vlan_filtering() local 829 dsa_switch_for_each_user_port(other_dp, ds) { in dsa_port_vlan_filtering() 830 struct net_device *slave = other_dp->slave; in dsa_port_vlan_filtering()
|
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()
|
H A D | slave.c | 2007 struct dsa_port *other_dp; in dsa_bridge_mtu_normalization() local 2022 list_for_each_entry(other_dp, &dst->ports, list) { in dsa_bridge_mtu_normalization() 2026 if (other_dp->type != DSA_PORT_TYPE_USER) in dsa_bridge_mtu_normalization() 2029 if (!dsa_port_bridge_same(dp, other_dp)) in dsa_bridge_mtu_normalization() 2032 if (!other_dp->ds->mtu_enforcement_ingress) in dsa_bridge_mtu_normalization() 2035 slave = other_dp->slave; in dsa_bridge_mtu_normalization() 2075 struct dsa_port *other_dp; in dsa_slave_change_mtu() local 2087 dsa_tree_for_each_user_port(other_dp, ds->dst) { in dsa_slave_change_mtu() 2094 if (!other_dp->slave) in dsa_slave_change_mtu() 2100 if (dp == other_dp) in dsa_slave_change_mtu() [all …]
|
/openbmc/linux/drivers/net/dsa/ |
H A D | mt7530.c | 1424 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mt7530_port_bridge_join() local 1431 dsa_switch_for_each_user_port(other_dp, ds) { in mt7530_port_bridge_join() 1432 int other_port = other_dp->index; in mt7530_port_bridge_join() 1434 if (dp == other_dp) in mt7530_port_bridge_join() 1441 if (!dsa_port_offloads_bridge(other_dp, &bridge)) in mt7530_port_bridge_join() 1557 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mt7530_port_bridge_leave() local 1563 dsa_switch_for_each_user_port(other_dp, ds) { in mt7530_port_bridge_leave() 1564 int other_port = other_dp->index; in mt7530_port_bridge_leave() 1566 if (dp == other_dp) in mt7530_port_bridge_leave() 1573 if (!dsa_port_offloads_bridge(other_dp, &bridge)) in mt7530_port_bridge_leave()
|
/openbmc/linux/drivers/net/dsa/ocelot/ |
H A D | felix.c | 448 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in felix_tag_npi_change_master() local 461 dsa_switch_for_each_user_port(other_dp, ds) { in felix_tag_npi_change_master() 462 struct net_device *slave = other_dp->slave; in felix_tag_npi_change_master() 464 if (other_dp != dp && (slave->flags & IFF_UP) && in felix_tag_npi_change_master() 465 dsa_port_to_master(other_dp) != master) { in felix_tag_npi_change_master()
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.c | 1418 struct dsa_port *dp, *other_dp; in mv88e6xxx_port_vlan() local 1470 dsa_switch_for_each_port(other_dp, ds) in mv88e6xxx_port_vlan() 1471 if (other_dp->type == DSA_PORT_TYPE_CPU || in mv88e6xxx_port_vlan() 1472 other_dp->type == DSA_PORT_TYPE_DSA || in mv88e6xxx_port_vlan() 1473 dsa_port_bridge_same(dp, other_dp)) in mv88e6xxx_port_vlan() 1474 pvlan |= BIT(other_dp->index); in mv88e6xxx_port_vlan() 2017 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mv88e6xxx_port_check_hw_vlan() local 2033 dsa_switch_for_each_user_port(other_dp, ds) { in mv88e6xxx_port_check_hw_vlan() 2036 if (vlan.member[other_dp->index] == in mv88e6xxx_port_check_hw_vlan() 2040 if (dsa_port_bridge_same(dp, other_dp)) in mv88e6xxx_port_check_hw_vlan() [all …]
|
/openbmc/linux/drivers/net/dsa/microchip/ |
H A D | ksz_common.c | 1794 const struct dsa_port *other_dp = dsa_to_port(ds, i); in ksz_update_port_member() local 1802 if (!dsa_port_bridge_same(dp, other_dp)) in ksz_update_port_member() 1827 if (dsa_port_bridge_same(other_dp, third_dp)) in ksz_update_port_member()
|