Home
last modified time | relevance | path

Searched refs:dsa_to_port (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/net/dsa/
Dtag_8021q.c291 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()
Dswitch.c494 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()
Ddsa.c1302 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()
Ddevlink.c277 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_devlink_port_region_create()
Dslave.c1691 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/
Dswitchdev.c70 dp = dsa_to_port(chip->ds, port); in mv88e6xxx_handle_miss_violation()
Dchip.c1599 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/
Ddsa.h491 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/
Dxrs700x.c511 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/
Dmt7530.c408 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 …]
Dlan9303-core.c1081 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()
Dbcm_sf2.c918 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()
Dmv88e6060.c147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
Dlantiq_gswip.c777 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()
Dbcm_sf2_cfp.c850 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()
Drzn1_a5psw.c245 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/
Dqca8k-common.c585 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()
Dqca8k-leds.c356 dp = dsa_to_port(priv->ds, qca8k_phy_to_port(led->port_num)); in qca8k_cled_hw_control_get_device()
Dqca8k-8xxx.c1160 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/
Dsja1105_vl.c411 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()
Dsja1105_main.c119 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/
Dfelix.c296 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/
Drtl8366rb.c1231 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/
Db53_common.c572 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/
Dksz_common.c1796 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()

12