/kernel/linux/linux-5.10/net/dsa/ |
D | switch.c | 23 struct dsa_port *dp = dsa_to_port(ds, i); in dsa_switch_fastest_ageing_time() 135 if (dsa_to_port(ds, i)->bridge_dev == info->br) { in dsa_switch_bridge_leave() 145 err = dsa_port_vlan_filtering(dsa_to_port(ds, info->port), in dsa_switch_bridge_leave() 151 err = dsa_port_vlan_filtering(dsa_to_port(ds, info->port), in dsa_switch_bridge_leave()
|
D | dsa.c | 254 const struct dsa_port *dp = dsa_to_port(ds, p); in dsa_is_port_initialized() 268 ret = dsa_slave_suspend(dsa_to_port(ds, i)->slave); in dsa_switch_suspend() 295 ret = dsa_slave_resume(dsa_to_port(ds, i)->slave); in dsa_switch_resume() 432 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_devlink_port_region_create()
|
D | tag_8021q.c | 152 struct dsa_port *dp = dsa_to_port(ctx->ds, port); in dsa_8021q_vid_apply() 227 master = dsa_to_port(ctx->ds, port)->cpu_dp->master; in dsa_8021q_setup_port()
|
D | dsa2.c | 809 dp = dsa_to_port(ds, reg); in dsa_switch_parse_ports_of() 904 dp = dsa_to_port(ds, i); in dsa_switch_parse_ports()
|
D | slave.c | 1505 if (!dsa_to_port(ds, i)->slave) in dsa_slave_change_mtu() 1514 slave_mtu = dsa_to_port(ds, i)->slave->mtu; in dsa_slave_change_mtu() 1520 cpu_dp = dsa_to_port(ds, port)->cpu_dp; in dsa_slave_change_mtu() 1655 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()
|
D | port.c | 246 other_bridge = dsa_to_port(ds, i)->bridge_dev; in dsa_port_can_apply_vlan_filtering()
|
/kernel/linux/linux-5.10/include/net/ |
D | dsa.h | 339 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() function 353 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_UNUSED; in dsa_is_unused_port() 358 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_CPU; in dsa_is_cpu_port() 363 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_DSA; in dsa_is_dsa_port() 368 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_USER; in dsa_is_user_port() 409 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_upstream_port()
|
/kernel/linux/linux-5.10/drivers/net/dsa/microchip/ |
D | ksz_common.c | 87 const struct dsa_port *dp = dsa_to_port(dev->ds, i); in ksz_mib_read_work() 159 const struct dsa_port *dp = dsa_to_port(ds, port); in ksz_get_ethtool_stats()
|
D | ksz9477.c | 1625 phydev = dsa_to_port(dev->ds, i)->slave->phydev; in ksz9477_switch_register()
|
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
D | sja1105_devlink.c | 144 dp = dsa_to_port(ds, port); in sja1105_best_effort_vlan_filtering_set()
|
D | sja1105_main.c | 1621 if (dsa_to_port(ds, i)->bridge_dev != br) in sja1105_bridge_member() 1935 if (dsa_to_port(ds, port)->bridge_dev != br) in sja1105_crosschip_bridge_join() 1972 if (dsa_to_port(ds, port)->bridge_dev != br) in sja1105_crosschip_bridge_leave() 3072 slave = dsa_to_port(ds, port)->slave; in sja1105_port_enable() 3116 dsa_enqueue_skb(skb, dsa_to_port(ds, port)->slave); in sja1105_mgmt_xmit() 3550 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_probe()
|
/kernel/linux/linux-5.10/drivers/net/dsa/ |
D | mv88e6060.c | 144 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
|
D | bcm_sf2.c | 801 netif_carrier_off(dsa_to_port(ds, port)->slave); in bcm_sf2_sw_fixed_state() 873 struct net_device *p = dsa_to_port(ds, port)->cpu_dp->master; in bcm_sf2_sw_get_wol() 897 struct net_device *p = dsa_to_port(ds, port)->cpu_dp->master; in bcm_sf2_sw_set_wol() 899 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_sw_set_wol()
|
D | lantiq_gswip.c | 747 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_vlan_filtering() 1176 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_vlan_prepare() 1224 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_vlan_add() 1245 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_vlan_del() 1339 struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; in gswip_port_fdb()
|
D | bcm_sf2_cfp.c | 850 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_cfp_rule_insert() 1109 struct net_device *p = dsa_to_port(ds, port)->cpu_dp->master; in bcm_sf2_get_rxnfc() 1152 struct net_device *p = dsa_to_port(ds, port)->cpu_dp->master; in bcm_sf2_set_rxnfc()
|
D | mt7530.c | 1063 if (dsa_to_port(ds, i)->bridge_dev != bridge) in mt7530_port_bridge_join() 1104 dsa_port_is_vlan_filtering(dsa_to_port(ds, i))) { in mt7530_port_set_vlan_unaware() 1160 if (dsa_to_port(ds, i)->bridge_dev != bridge) in mt7530_port_bridge_leave() 1555 dn = dsa_to_port(ds, MT7530_CPU_PORT)->master->dev.of_node->parent; in mt7530_setup() 1644 ret = of_get_phy_mode(dsa_to_port(ds, 5)->dn, &interface); in mt7530_setup() 2103 dp = dsa_to_port(ds, port); in mt7531_mac_config()
|
D | lan9303-core.c | 1111 if (dsa_to_port(ds, 1)->bridge_dev == dsa_to_port(ds, 2)->bridge_dev) { in lan9303_port_bridge_join()
|
D | qca8k.c | 1147 if (dsa_to_port(ds, i)->bridge_dev != br) in qca8k_port_bridge_join() 1172 if (dsa_to_port(ds, i)->bridge_dev != br) in qca8k_port_bridge_leave()
|
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/ |
D | felix.c | 205 struct dsa_port *dp = dsa_to_port(ds, port); in felix_phylink_mac_config() 833 return dsa_to_port(ds, port)->slave; in felix_port_to_netdev()
|
/kernel/linux/linux-5.10/drivers/net/dsa/b53/ |
D | b53_common.c | 536 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port() 1806 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join() 1830 if (dsa_to_port(ds, i)->bridge_dev != br) in b53_br_join() 1860 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave() 1868 if (dsa_to_port(ds, i)->bridge_dev != br) in b53_br_leave()
|
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 1565 if (!dsa_to_port(ds, i)->slave) in mv88e6xxx_port_check_hw_vlan() 1572 if (dsa_to_port(ds, i)->bridge_dev == in mv88e6xxx_port_check_hw_vlan() 1573 dsa_to_port(ds, port)->bridge_dev) in mv88e6xxx_port_check_hw_vlan() 1576 if (!dsa_to_port(ds, i)->bridge_dev) in mv88e6xxx_port_check_hw_vlan() 1581 netdev_name(dsa_to_port(ds, i)->bridge_dev)); in mv88e6xxx_port_check_hw_vlan()
|