Lines Matching refs:dsa_switch

45 static int felix_cpu_port_for_master(struct dsa_switch *ds,
67 static int felix_tag_8021q_vlan_add_rx(struct dsa_switch *ds, int port,
107 static int felix_tag_8021q_vlan_del_rx(struct dsa_switch *ds, int port,
129 static int felix_tag_8021q_vlan_add_tx(struct dsa_switch *ds, int port,
196 static int felix_tag_8021q_vlan_del_tx(struct dsa_switch *ds, int port, u16 vid)
227 static int felix_tag_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid,
259 static int felix_tag_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid)
286 static int felix_trap_get_cpu_port(struct dsa_switch *ds,
305 static int felix_update_trapping_destinations(struct dsa_switch *ds,
408 static int felix_tag_npi_setup(struct dsa_switch *ds)
430 static void felix_tag_npi_teardown(struct dsa_switch *ds)
437 static unsigned long felix_tag_npi_get_host_fwd_mask(struct dsa_switch *ds)
444 static int felix_tag_npi_change_master(struct dsa_switch *ds, int port,
492 static int felix_tag_8021q_setup(struct dsa_switch *ds)
536 static void felix_tag_8021q_teardown(struct dsa_switch *ds)
559 static unsigned long felix_tag_8021q_get_host_fwd_mask(struct dsa_switch *ds)
564 static int felix_tag_8021q_change_master(struct dsa_switch *ds, int port,
584 static void felix_set_host_flood(struct dsa_switch *ds, unsigned long mask,
603 felix_migrate_host_flood(struct dsa_switch *ds,
621 static int felix_migrate_mdbs(struct dsa_switch *ds,
643 felix_tag_proto_setup_shared(struct dsa_switch *ds,
665 static int felix_change_tag_protocol(struct dsa_switch *ds,
712 static enum dsa_tag_protocol felix_get_tag_protocol(struct dsa_switch *ds,
722 static void felix_port_set_host_flood(struct dsa_switch *ds, int port,
744 static int felix_port_change_master(struct dsa_switch *ds, int port,
754 static int felix_set_ageing_time(struct dsa_switch *ds,
764 static void felix_port_fast_age(struct dsa_switch *ds, int port)
775 static int felix_fdb_dump(struct dsa_switch *ds, int port,
783 static int felix_fdb_add(struct dsa_switch *ds, int port,
804 static int felix_fdb_del(struct dsa_switch *ds, int port,
825 static int felix_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag lag,
838 static int felix_lag_fdb_del(struct dsa_switch *ds, struct dsa_lag lag,
851 static int felix_mdb_add(struct dsa_switch *ds, int port,
871 static int felix_mdb_del(struct dsa_switch *ds, int port,
891 static void felix_bridge_stp_state_set(struct dsa_switch *ds, int port,
899 static int felix_pre_bridge_flags(struct dsa_switch *ds, int port,
908 static int felix_bridge_flags(struct dsa_switch *ds, int port,
922 static int felix_bridge_join(struct dsa_switch *ds, int port,
932 static void felix_bridge_leave(struct dsa_switch *ds, int port,
940 static int felix_lag_join(struct dsa_switch *ds, int port,
959 static int felix_lag_leave(struct dsa_switch *ds, int port,
973 static int felix_lag_change(struct dsa_switch *ds, int port)
983 static int felix_vlan_prepare(struct dsa_switch *ds, int port,
1007 static int felix_vlan_filtering(struct dsa_switch *ds, int port, bool enabled,
1015 static int felix_vlan_add(struct dsa_switch *ds, int port,
1032 static int felix_vlan_del(struct dsa_switch *ds, int port,
1040 static void felix_phylink_get_caps(struct dsa_switch *ds, int port,
1053 static void felix_phylink_mac_config(struct dsa_switch *ds, int port,
1064 static struct phylink_pcs *felix_phylink_mac_select_pcs(struct dsa_switch *ds,
1078 static void felix_phylink_mac_link_down(struct dsa_switch *ds, int port,
1091 static void felix_phylink_mac_link_up(struct dsa_switch *ds, int port,
1109 static int felix_port_enable(struct dsa_switch *ds, int port,
1151 static void felix_get_stats64(struct dsa_switch *ds, int port,
1159 static void felix_get_pause_stats(struct dsa_switch *ds, int port,
1167 static void felix_get_rmon_stats(struct dsa_switch *ds, int port,
1176 static void felix_get_eth_ctrl_stats(struct dsa_switch *ds, int port,
1184 static void felix_get_eth_mac_stats(struct dsa_switch *ds, int port,
1192 static void felix_get_eth_phy_stats(struct dsa_switch *ds, int port,
1200 static void felix_get_strings(struct dsa_switch *ds, int port,
1208 static void felix_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data)
1215 static int felix_get_sset_count(struct dsa_switch *ds, int port, int sset)
1222 static int felix_get_ts_info(struct dsa_switch *ds, int port,
1500 struct dsa_switch *ds = xmit_work->dp->ds;
1528 static int felix_connect_tag_protocol(struct dsa_switch *ds,
1546 static int felix_setup(struct dsa_switch *ds)
1616 static void felix_teardown(struct dsa_switch *ds)
1638 static int felix_hwtstamp_get(struct dsa_switch *ds, int port,
1646 static int felix_hwtstamp_set(struct dsa_switch *ds, int port,
1713 static bool felix_rxtstamp(struct dsa_switch *ds, int port,
1760 static void felix_txtstamp(struct dsa_switch *ds, int port,
1780 static int felix_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
1797 static int felix_get_max_mtu(struct dsa_switch *ds, int port)
1804 static int felix_cls_flower_add(struct dsa_switch *ds, int port,
1821 static int felix_cls_flower_del(struct dsa_switch *ds, int port,
1829 static int felix_cls_flower_stats(struct dsa_switch *ds, int port,
1837 static int felix_port_policer_add(struct dsa_switch *ds, int port,
1849 static void felix_port_policer_del(struct dsa_switch *ds, int port)
1856 static int felix_port_mirror_add(struct dsa_switch *ds, int port,
1866 static void felix_port_mirror_del(struct dsa_switch *ds, int port,
1874 static int felix_port_setup_tc(struct dsa_switch *ds, int port,
1887 static int felix_sb_pool_get(struct dsa_switch *ds, unsigned int sb_index,
1896 static int felix_sb_pool_set(struct dsa_switch *ds, unsigned int sb_index,
1907 static int felix_sb_port_pool_get(struct dsa_switch *ds, int port,
1917 static int felix_sb_port_pool_set(struct dsa_switch *ds, int port,
1927 static int felix_sb_tc_pool_bind_get(struct dsa_switch *ds, int port,
1939 static int felix_sb_tc_pool_bind_set(struct dsa_switch *ds, int port,
1952 static int felix_sb_occ_snapshot(struct dsa_switch *ds,
1960 static int felix_sb_occ_max_clear(struct dsa_switch *ds,
1968 static int felix_sb_occ_port_pool_get(struct dsa_switch *ds, int port,
1978 static int felix_sb_occ_tc_port_bind_get(struct dsa_switch *ds, int port,
1989 static int felix_mrp_add(struct dsa_switch *ds, int port,
1997 static int felix_mrp_del(struct dsa_switch *ds, int port,
2006 felix_mrp_add_ring_role(struct dsa_switch *ds, int port,
2015 felix_mrp_del_ring_role(struct dsa_switch *ds, int port,
2023 static int felix_port_get_default_prio(struct dsa_switch *ds, int port)
2030 static int felix_port_set_default_prio(struct dsa_switch *ds, int port,
2038 static int felix_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp)
2045 static int felix_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp,
2053 static int felix_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp,
2061 static int felix_get_mm(struct dsa_switch *ds, int port,
2069 static int felix_set_mm(struct dsa_switch *ds, int port,
2078 static void felix_get_mm_stats(struct dsa_switch *ds, int port,
2174 struct dsa_switch *ds = felix->ds;