/linux-6.6.21/net/dsa/ |
D | tag_8021q.c | 291 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_bridge_join() 314 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_bridge_leave() 339 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_port_setup() 369 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_port_teardown()
|
D | switch.c | 494 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_switch_fdb_add() 506 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_switch_fdb_del() 595 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_switch_mdb_add() 607 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_switch_mdb_del()
|
D | dsa.c | 1302 dp = dsa_to_port(ds, reg); in dsa_switch_parse_ports_of() 1445 dp = dsa_to_port(ds, i); in dsa_switch_parse_ports() 1690 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_fdb_present_in_other_db() 1711 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_mdb_present_in_other_db()
|
D | devlink.c | 277 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_devlink_port_region_create()
|
D | slave.c | 1691 struct net_device *master = dsa_port_to_master(dsa_to_port(ds, port)); in dsa_slave_setup_ft_block() 2454 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()
|
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/ |
D | switchdev.c | 70 dp = dsa_to_port(chip->ds, port); in mv88e6xxx_handle_miss_violation()
|
D | chip.c | 1599 dp = ds ? dsa_to_port(ds, port) : NULL; in mv88e6xxx_pvt_map() 1645 if (dsa_to_port(chip->ds, port)->lag) in mv88e6xxx_port_fast_age_fid() 1912 struct dsa_port *dp = dsa_to_port(ds, port); in mv88e6xxx_port_mst_state_set() 1957 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mv88e6xxx_port_check_hw_vlan() 1997 struct dsa_port *dp = dsa_to_port(chip->ds, port); in mv88e6xxx_port_commit_pvid() 2356 struct dsa_port *dp = dsa_to_port(chip->ds, port); in mv88e6xxx_broadcast_setup() 3356 dp = dsa_to_port(ds, port); in mv88e6xxx_setup_port()
|
/linux-6.6.21/include/net/ |
D | dsa.h | 491 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() function 531 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_UNUSED; in dsa_is_unused_port() 536 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_CPU; in dsa_is_cpu_port() 541 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_DSA; in dsa_is_dsa_port() 546 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_USER; in dsa_is_user_port() 637 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_upstream_port()
|
/linux-6.6.21/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.6.21/drivers/net/dsa/ |
D | mt7530.c | 408 struct dsa_port *cpu_dp = dsa_to_port(ds, 6); in mt753x_preferred_default_local_cpu_port() 1067 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_enable() 1227 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mt7530_port_bridge_join() 1280 if (dsa_port_bridge_dev_get(dsa_to_port(ds, port))) in mt7530_port_set_vlan_unaware() 1296 dsa_port_is_vlan_filtering(dsa_to_port(ds, i))) { in mt7530_port_set_vlan_unaware() 1306 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_set_vlan_unaware() 1360 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mt7530_port_bridge_leave() 1558 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_vlan_filtering() 1580 struct dsa_port *dp = dsa_to_port(priv->ds, entry->port); in mt7530_hw_vlan_add() 1696 if (dsa_port_is_vlan_filtering(dsa_to_port(ds, port))) in mt7530_port_vlan_add() [all …]
|
D | lan9303-core.c | 1081 struct dsa_port *dp = dsa_to_port(ds, port); in lan9303_port_enable() 1094 struct dsa_port *dp = dsa_to_port(ds, port); in lan9303_port_disable() 1114 if (dsa_port_bridge_same(dsa_to_port(ds, 1), dsa_to_port(ds, 2))) { in lan9303_port_bridge_join()
|
D | bcm_sf2.c | 918 netif_carrier_off(dsa_to_port(ds, port)->slave); in bcm_sf2_sw_fixed_state() 992 struct net_device *p = dsa_port_to_master(dsa_to_port(ds, port)); in bcm_sf2_sw_get_wol() 1016 struct net_device *p = dsa_port_to_master(dsa_to_port(ds, port)); in bcm_sf2_sw_set_wol() 1018 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_sw_set_wol()
|
D | mv88e6060.c | 147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
|
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 | 245 struct dsa_port *dp = dsa_to_port(ds, port); in a5psw_phylink_mac_select_pcs() 439 struct dsa_port *dp = dsa_to_port(ds, port); in a5psw_port_stp_state_set()
|
/linux-6.6.21/drivers/net/dsa/qca/ |
D | qca8k-common.c | 585 struct dsa_port *dp = dsa_to_port(ds, port); in qca8k_port_stp_state_set() 653 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in qca8k_port_bridge_join() 659 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in qca8k_port_bridge_join() 686 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in qca8k_port_bridge_leave() 691 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in qca8k_port_bridge_leave()
|
D | qca8k-leds.c | 356 dp = dsa_to_port(priv->ds, qca8k_phy_to_port(led->port_num)); in qca8k_cled_hw_control_get_device()
|
D | qca8k-8xxx.c | 1160 dp = dsa_to_port(priv->ds, port); in qca8k_parse_port_config() 1682 struct dsa_port *dp = dsa_to_port(ds, port); in qca8k_get_ethtool_stats_eth()
|
/linux-6.6.21/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 | 119 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_commit_pvid() 1910 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_fast_age() 2044 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in sja1105_bridge_member() 2070 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_bridge_stp_state_set() 2691 dsa_enqueue_skb(skb, dsa_to_port(ds, port)->slave); in sja1105_mgmt_xmit()
|
/linux-6.6.21/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() 1112 struct dsa_port *dp = dsa_to_port(ds, port); in felix_port_enable() 2179 return dsa_to_port(ds, port)->slave; in felix_port_to_netdev()
|
/linux-6.6.21/drivers/net/dsa/realtek/ |
D | rtl8366rb.c | 1231 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in rtl8366rb_port_bridge_join() 1263 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in rtl8366rb_port_bridge_leave() 1638 if (dsa_port_is_vlan_filtering(dsa_to_port(priv->ds, port))) in rtl8366rb_set_mc_index()
|
/linux-6.6.21/drivers/net/dsa/b53/ |
D | b53_common.c | 572 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port() 1894 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join() 1918 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in b53_br_join() 1946 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave() 1954 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in b53_br_leave()
|
/linux-6.6.21/drivers/net/dsa/microchip/ |
D | ksz_common.c | 1796 dp = dsa_to_port(ds, port); in ksz_update_port_member() 1800 const struct dsa_port *other_dp = dsa_to_port(ds, i); in ksz_update_port_member() 1832 third_dp = dsa_to_port(ds, j); in ksz_update_port_member() 2276 const struct dsa_port *dp = dsa_to_port(dev->ds, i); in ksz_mib_read_work() 2390 const struct dsa_port *dp = dsa_to_port(ds, port); in ksz_get_ethtool_stats()
|