/linux-6.1.9/net/dsa/ |
D | tag_8021q.c | 274 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_bridge_join() 297 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_bridge_leave() 322 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_port_setup() 352 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_port_teardown()
|
D | dsa.c | 438 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_devlink_port_region_create() 483 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_fdb_present_in_other_db() 504 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_mdb_present_in_other_db()
|
D | switch.c | 450 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_switch_fdb_add() 462 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_switch_fdb_del() 551 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_switch_mdb_add() 563 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_switch_mdb_del()
|
D | dsa2.c | 1564 dp = dsa_to_port(ds, reg); in dsa_switch_parse_ports_of() 1671 dp = dsa_to_port(ds, i); in dsa_switch_parse_ports()
|
D | slave.c | 1548 struct net_device *master = dsa_port_to_master(dsa_to_port(ds, port)); in dsa_slave_setup_ft_block() 2233 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()
|
/linux-6.1.9/drivers/net/dsa/xrs700x/ |
D | xrs700x.c | 511 if (dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in xrs700x_bridge_common() 518 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in xrs700x_bridge_common() 635 slave = dsa_to_port(ds, hsr_pair[i])->slave; in xrs700x_hsr_join() 689 slave = dsa_to_port(ds, hsr_pair[i])->slave; in xrs700x_hsr_leave()
|
/linux-6.1.9/include/net/ |
D | dsa.h | 501 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() function 541 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_UNUSED; in dsa_is_unused_port() 546 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_CPU; in dsa_is_cpu_port() 551 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_DSA; in dsa_is_dsa_port() 556 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_USER; in dsa_is_user_port() 647 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_upstream_port()
|
/linux-6.1.9/drivers/net/dsa/ |
D | mt7530.c | 1044 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_enable() 1205 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mt7530_port_bridge_join() 1258 if (dsa_port_bridge_dev_get(dsa_to_port(ds, port))) in mt7530_port_set_vlan_unaware() 1274 dsa_port_is_vlan_filtering(dsa_to_port(ds, i))) { in mt7530_port_set_vlan_unaware() 1284 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_set_vlan_unaware() 1326 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mt7530_port_bridge_leave() 1524 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_vlan_filtering() 1546 struct dsa_port *dp = dsa_to_port(priv->ds, entry->port); in mt7530_hw_vlan_add() 1662 if (dsa_port_is_vlan_filtering(dsa_to_port(ds, port))) in mt7530_port_vlan_add() 1671 if (dsa_port_is_vlan_filtering(dsa_to_port(ds, port))) in mt7530_port_vlan_add() [all …]
|
D | lan9303-core.c | 1091 struct dsa_port *dp = dsa_to_port(ds, port); in lan9303_port_enable() 1104 struct dsa_port *dp = dsa_to_port(ds, port); in lan9303_port_disable() 1124 if (dsa_port_bridge_same(dsa_to_port(ds, 1), dsa_to_port(ds, 2))) { in lan9303_port_bridge_join()
|
D | mv88e6060.c | 147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
|
D | bcm_sf2.c | 912 netif_carrier_off(dsa_to_port(ds, port)->slave); in bcm_sf2_sw_fixed_state() 986 struct net_device *p = dsa_port_to_master(dsa_to_port(ds, port)); in bcm_sf2_sw_get_wol() 1010 struct net_device *p = dsa_port_to_master(dsa_to_port(ds, port)); in bcm_sf2_sw_set_wol() 1012 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_sw_set_wol()
|
D | lantiq_gswip.c | 777 struct net_device *bridge = dsa_port_bridge_dev_get(dsa_to_port(ds, port)); in gswip_port_vlan_filtering() 1203 struct net_device *bridge = dsa_port_bridge_dev_get(dsa_to_port(ds, port)); in gswip_port_vlan_prepare() 1249 struct net_device *bridge = dsa_port_bridge_dev_get(dsa_to_port(ds, port)); in gswip_port_vlan_add() 1274 struct net_device *bridge = dsa_port_bridge_dev_get(dsa_to_port(ds, port)); in gswip_port_vlan_del() 1360 struct net_device *bridge = dsa_port_bridge_dev_get(dsa_to_port(ds, port)); 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() 1105 struct net_device *p = dsa_port_to_master(dsa_to_port(ds, port)); in bcm_sf2_get_rxnfc() 1148 struct net_device *p = dsa_port_to_master(dsa_to_port(ds, port)); in bcm_sf2_set_rxnfc()
|
D | rzn1_a5psw.c | 229 struct dsa_port *dp = dsa_to_port(ds, port); in a5psw_phylink_mac_select_pcs()
|
/linux-6.1.9/drivers/net/dsa/sja1105/ |
D | sja1105_vl.c | 411 struct dsa_port *dp = dsa_to_port(priv->ds, port); in sja1105_init_virtual_links() 512 struct dsa_port *dp = dsa_to_port(priv->ds, port); in sja1105_vl_redirect() 588 struct dsa_port *dp = dsa_to_port(priv->ds, port); in sja1105_vl_gate()
|
D | sja1105_main.c | 120 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_commit_pvid() 1897 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_fast_age() 2027 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in sja1105_bridge_member() 2053 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_bridge_stp_state_set() 2641 dsa_enqueue_skb(skb, dsa_to_port(ds, port)->slave); in sja1105_mgmt_xmit()
|
/linux-6.1.9/drivers/net/dsa/ocelot/ |
D | felix.c | 296 dp = dsa_to_port(ds, first_port); in felix_trap_get_cpu_port() 448 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in felix_tag_npi_change_master() 788 struct dsa_port *dp = dsa_to_port(ds, port); in felix_fdb_add() 809 struct dsa_port *dp = dsa_to_port(ds, port); in felix_fdb_del() 975 struct dsa_port *dp = dsa_to_port(ds, port); in felix_lag_change() 1111 struct dsa_port *dp = dsa_to_port(ds, port); in felix_port_enable() 2124 return dsa_to_port(ds, port)->slave; in felix_port_to_netdev()
|
/linux-6.1.9/drivers/net/dsa/qca/ |
D | qca8k-common.c | 636 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in qca8k_port_bridge_join() 642 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in qca8k_port_bridge_join() 669 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in qca8k_port_bridge_leave() 674 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in qca8k_port_bridge_leave()
|
D | qca8k-8xxx.c | 1028 dp = dsa_to_port(priv->ds, port); in qca8k_parse_port_config() 1554 struct dsa_port *dp = dsa_to_port(ds, port); in qca8k_get_ethtool_stats_eth()
|
/linux-6.1.9/drivers/net/dsa/realtek/ |
D | rtl8366rb.c | 1205 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in rtl8366rb_port_bridge_join() 1237 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in rtl8366rb_port_bridge_leave() 1612 if (dsa_port_is_vlan_filtering(dsa_to_port(priv->ds, port))) in rtl8366rb_set_mc_index()
|
D | rtl8365mb.c | 889 dp = dsa_to_port(priv->ds, port); in rtl8365mb_ext_config_rgmii()
|
/linux-6.1.9/drivers/net/dsa/microchip/ |
D | ksz_common.c | 1612 dp = dsa_to_port(ds, port); in ksz_update_port_member() 1616 const struct dsa_port *other_dp = dsa_to_port(ds, i); in ksz_update_port_member() 1648 third_dp = dsa_to_port(ds, j); in ksz_update_port_member() 2075 const struct dsa_port *dp = dsa_to_port(dev->ds, i); in ksz_mib_read_work() 2175 const struct dsa_port *dp = dsa_to_port(ds, port); in ksz_get_ethtool_stats()
|
/linux-6.1.9/drivers/net/dsa/b53/ |
D | b53_common.c | 572 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port() 1850 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join() 1874 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in b53_br_join() 1902 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave() 1910 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in b53_br_leave()
|
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 1634 dp = ds ? dsa_to_port(ds, port) : NULL; in mv88e6xxx_pvt_map() 1680 if (dsa_to_port(chip->ds, port)->lag) in mv88e6xxx_port_fast_age_fid() 1947 struct dsa_port *dp = dsa_to_port(ds, port); in mv88e6xxx_port_mst_state_set() 1992 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mv88e6xxx_port_check_hw_vlan() 2032 struct dsa_port *dp = dsa_to_port(chip->ds, port); in mv88e6xxx_port_commit_pvid() 2391 struct dsa_port *dp = dsa_to_port(chip->ds, port); in mv88e6xxx_broadcast_setup() 3299 dp = dsa_to_port(ds, port); in mv88e6xxx_setup_port()
|