Home
last modified time | relevance | path

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

/linux-6.1.9/net/dsa/
Dtag_8021q.c274 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()
Ddsa.c438 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()
Dswitch.c450 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()
Ddsa2.c1564 dp = dsa_to_port(ds, reg); in dsa_switch_parse_ports_of()
1671 dp = dsa_to_port(ds, i); in dsa_switch_parse_ports()
Dslave.c1548 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/
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.1.9/include/net/
Ddsa.h501 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/
Dmt7530.c1044 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 …]
Dlan9303-core.c1091 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()
Dmv88e6060.c147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
Dbcm_sf2.c912 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()
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.c229 struct dsa_port *dp = dsa_to_port(ds, port); in a5psw_phylink_mac_select_pcs()
/linux-6.1.9/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.c120 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/
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()
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/
Dqca8k-common.c636 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()
Dqca8k-8xxx.c1028 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/
Drtl8366rb.c1205 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()
Drtl8365mb.c889 dp = dsa_to_port(priv->ds, port); in rtl8365mb_ext_config_rgmii()
/linux-6.1.9/drivers/net/dsa/microchip/
Dksz_common.c1612 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/
Db53_common.c572 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/
Dchip.c1634 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()