Home
last modified time | relevance | path

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

/linux/net/dsa/
H A Dtag_8021q.c292 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_bridge_join()
317 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_bridge_leave()
342 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_port_setup()
372 struct dsa_port *dp = dsa_to_port(ds, port); in dsa_tag_8021q_port_teardown()
H A 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()
H A Duser.c1719 struct net_device *conduit = dsa_port_to_conduit(dsa_to_port(ds, port)); in dsa_user_setup_ft_block()
2585 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()
/linux/drivers/net/dsa/
H A Dvitesse-vsc73xx-core.c791 struct dsa_port *dp = dsa_to_port(ds, CPU_PORT); in vsc73xx_configure_rgmii_port_delay()
1288 struct dsa_port *dp = dsa_to_port(vsc->ds, port); in vsc73xx_vlan_commit_conf()
1336 struct dsa_port *dp = dsa_to_port(vsc->ds, port); in vsc73xx_vlan_commit_untagged()
1404 struct dsa_port *dp = dsa_to_port(vsc->ds, port); in vsc73xx_vlan_commit_pvid()
1634 struct dsa_port *dp = dsa_to_port(ds, port); in vsc73xx_port_vlan_add()
1739 commit_to_hardware = !vsc73xx_tag_8021q_active(dsa_to_port(ds, port)); in vsc73xx_port_vlan_del()
1763 commit_to_hardware = vsc73xx_tag_8021q_active(dsa_to_port(ds, port)); in vsc73xx_tag_8021q_vlan_add()
1782 struct dsa_port *dp = dsa_to_port(ds, port); in vsc73xx_tag_8021q_vlan_del()
1826 struct dsa_port *other_dp, *dp = dsa_to_port(ds, port); in vsc73xx_refresh_fwd_map()
1884 struct dsa_port *dp = dsa_to_port(ds, port); in vsc73xx_port_stp_state_set()
H A Dmt7530.c395 struct dsa_port *cpu_dp = dsa_to_port(ds, 6); in mt753x_preferred_default_local_cpu_port()
1175 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_enable()
1311 struct dsa_port *dp = dsa_to_port(priv->ds, port), *other_dp; in mt7530_update_port_member()
1392 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_bridge_flags()
1435 if (dsa_port_bridge_dev_get(dsa_to_port(ds, port))) in mt7530_port_set_vlan_unaware()
1451 dsa_port_is_vlan_filtering(dsa_to_port(ds, i))) { in mt7530_port_set_vlan_unaware()
1461 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_set_vlan_unaware()
1686 struct dsa_port *dp = dsa_to_port(ds, port); in mt7530_port_vlan_filtering()
1708 struct dsa_port *dp = dsa_to_port(priv->ds, entry->port); in mt7530_hw_vlan_add()
1824 if (dsa_port_is_vlan_filtering(dsa_to_port(ds, port))) in mt7530_port_vlan_add()
[all …]
H A Dlan9303-core.c1109 struct dsa_port *dp = dsa_to_port(ds, port); in lan9303_port_enable()
1122 struct dsa_port *dp = dsa_to_port(ds, port); in lan9303_port_disable()
1142 if (dsa_port_bridge_same(dsa_to_port(ds, 1), dsa_to_port(ds, 2))) { in lan9303_port_bridge_join()
H A Dbcm_sf2.c929 netif_carrier_off(dsa_to_port(ds, port)->user); in bcm_sf2_sw_fixed_state()
1003 struct net_device *p = dsa_port_to_conduit(dsa_to_port(ds, port)); in bcm_sf2_sw_get_wol()
1027 struct net_device *p = dsa_port_to_conduit(dsa_to_port(ds, port)); in bcm_sf2_sw_set_wol()
1029 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_sw_set_wol()
H A Dmv88e6060.c147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
/linux/drivers/net/dsa/mv88e6xxx/
H A Dswitchdev.c70 dp = dsa_to_port(chip->ds, port); in mv88e6xxx_handle_miss_violation()
H A Dchip.c1785 dp = ds ? dsa_to_port(ds, port) : NULL; in mv88e6xxx_pvt_map()
1831 if (dsa_to_port(chip->ds, port)->lag) in mv88e6xxx_port_fast_age_fid()
2071 struct dsa_port *dp = dsa_to_port(ds, port); in mv88e6xxx_port_mst_state_set()
2116 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in mv88e6xxx_port_check_hw_vlan()
2156 struct dsa_port *dp = dsa_to_port(chip->ds, port); in mv88e6xxx_port_commit_pvid()
2515 struct dsa_port *dp = dsa_to_port(chip->ds, port); in mv88e6xxx_broadcast_setup()
3561 dp = dsa_to_port(ds, port); in mv88e6xxx_setup_port()
/linux/include/net/
H A Ddsa.h510 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() function
550 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_UNUSED; in dsa_is_unused_port()
555 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_CPU; in dsa_is_cpu_port()
560 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_DSA; in dsa_is_dsa_port()
565 return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_USER; in dsa_is_user_port()
660 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_upstream_port()
/linux/drivers/net/dsa/ocelot/
H A Dfelix.c273 struct dsa_port *dp = dsa_to_port(ds, port); in felix_tag_8021q_vlan_add()
306 struct dsa_port *dp = dsa_to_port(ds, port); in felix_tag_8021q_vlan_del()
372 dp = dsa_to_port(ds, first_port); in felix_trap_get_cpu_port()
524 struct dsa_port *dp = dsa_to_port(ds, port), *other_dp; in felix_tag_npi_change_conduit()
878 struct dsa_port *dp = dsa_to_port(ds, port); in felix_fdb_add()
899 struct dsa_port *dp = dsa_to_port(ds, port); in felix_fdb_del()
1065 struct dsa_port *dp = dsa_to_port(ds, port); in felix_lag_change()
1231 struct dsa_port *dp = dsa_to_port(ds, port); in felix_port_enable()
2362 return dsa_to_port(ds, port)->user; in felix_port_to_netdev()
/linux/drivers/net/dsa/sja1105/
H A 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()
H A Dsja1105_main.c120 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_commit_pvid()
1915 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_fast_age()
2049 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in sja1105_bridge_member()
2075 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_bridge_stp_state_set()
2695 dsa_enqueue_skb(skb, dsa_to_port(ds, port)->user); in sja1105_mgmt_xmit()
/linux/drivers/net/dsa/qca/
H A Dqca8k-common.c584 struct dsa_port *dp = dsa_to_port(ds, port); in qca8k_port_stp_state_set()
622 struct dsa_port *dp = dsa_to_port(priv->ds, port), *other_dp; in qca8k_update_port_member()
632 other_dp = dsa_to_port(priv->ds, i); in qca8k_update_port_member()
688 struct dsa_port *dp = dsa_to_port(ds, port); in qca8k_port_bridge_flags()
/linux/drivers/net/dsa/microchip/
H A Dksz_common.c2189 dp = dsa_to_port(ds, port); in ksz_update_port_member()
2193 const struct dsa_port *other_dp = dsa_to_port(ds, i); in ksz_update_port_member()
2233 third_dp = dsa_to_port(ds, j); in ksz_update_port_member()
2918 const struct dsa_port *dp = dsa_to_port(dev->ds, i); in ksz_mib_read_work()
3046 const struct dsa_port *dp = dsa_to_port(ds, port); in ksz_get_ethtool_stats()
4389 struct dsa_port *dp = dsa_to_port(ds, port); in ksz_port_set_mac_address()
4429 struct net_device *user = dsa_to_port(ds, port)->user; in ksz_is_port_mac_global_usable()
4461 struct net_device *user = dsa_to_port(ds, port)->user; in ksz_switch_macaddr_get()
H A Dksz9477.c1311 user = dsa_to_port(ds, port)->user; in ksz9477_hsr_join()
H A Dksz8.c1667 struct dsa_port *cpu_dp = dsa_to_port(dev->ds, dev->cpu_port); in ksz88x3_config_rmii_clk()
/linux/drivers/net/dsa/b53/
H A Db53_common.c589 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port()
1909 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join()
1933 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in b53_br_join()
1961 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave()
1969 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in b53_br_leave()
/linux/drivers/net/dsa/realtek/
H A Drtl8366rb.c1451 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in rtl8366rb_port_bridge_join()
1483 if (!dsa_port_offloads_bridge(dsa_to_port(ds, i), &bridge)) in rtl8366rb_port_bridge_leave()
1866 if (dsa_port_is_vlan_filtering(dsa_to_port(ds, port))) in rtl8366rb_set_mc_index()
H A Drtl8365mb.c884 dp = dsa_to_port(ds, port); in rtl8365mb_ext_config_rgmii()