Lines Matching defs:ds
45 static int felix_cpu_port_for_master(struct dsa_switch *ds, in felix_cpu_port_for_master()
67 static int felix_tag_8021q_vlan_add_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_rx()
107 static int felix_tag_8021q_vlan_del_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_del_rx()
129 static int felix_tag_8021q_vlan_add_tx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_tx()
196 static int felix_tag_8021q_vlan_del_tx(struct dsa_switch *ds, int port, u16 vid) in felix_tag_8021q_vlan_del_tx()
227 static int felix_tag_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid, in felix_tag_8021q_vlan_add()
259 static int felix_tag_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid) in felix_tag_8021q_vlan_del()
286 static int felix_trap_get_cpu_port(struct dsa_switch *ds, in felix_trap_get_cpu_port()
305 static int felix_update_trapping_destinations(struct dsa_switch *ds, in felix_update_trapping_destinations()
408 static int felix_tag_npi_setup(struct dsa_switch *ds) in felix_tag_npi_setup()
430 static void felix_tag_npi_teardown(struct dsa_switch *ds) in felix_tag_npi_teardown()
437 static unsigned long felix_tag_npi_get_host_fwd_mask(struct dsa_switch *ds) in felix_tag_npi_get_host_fwd_mask()
444 static int felix_tag_npi_change_master(struct dsa_switch *ds, int port, in felix_tag_npi_change_master()
492 static int felix_tag_8021q_setup(struct dsa_switch *ds) in felix_tag_8021q_setup()
538 static void felix_tag_8021q_teardown(struct dsa_switch *ds) in felix_tag_8021q_teardown()
561 static unsigned long felix_tag_8021q_get_host_fwd_mask(struct dsa_switch *ds) in felix_tag_8021q_get_host_fwd_mask()
566 static int felix_tag_8021q_change_master(struct dsa_switch *ds, int port, in felix_tag_8021q_change_master()
586 static void felix_set_host_flood(struct dsa_switch *ds, unsigned long mask, in felix_set_host_flood()
605 felix_migrate_host_flood(struct dsa_switch *ds, in felix_migrate_host_flood()
623 static int felix_migrate_mdbs(struct dsa_switch *ds, in felix_migrate_mdbs()
645 felix_tag_proto_setup_shared(struct dsa_switch *ds, in felix_tag_proto_setup_shared()
667 static int felix_change_tag_protocol(struct dsa_switch *ds, in felix_change_tag_protocol()
714 static enum dsa_tag_protocol felix_get_tag_protocol(struct dsa_switch *ds, in felix_get_tag_protocol()
724 static void felix_port_set_host_flood(struct dsa_switch *ds, int port, in felix_port_set_host_flood()
746 static int felix_port_change_master(struct dsa_switch *ds, int port, in felix_port_change_master()
756 static int felix_set_ageing_time(struct dsa_switch *ds, in felix_set_ageing_time()
766 static void felix_port_fast_age(struct dsa_switch *ds, int port) in felix_port_fast_age()
777 static int felix_fdb_dump(struct dsa_switch *ds, int port, in felix_fdb_dump()
785 static int felix_fdb_add(struct dsa_switch *ds, int port, in felix_fdb_add()
806 static int felix_fdb_del(struct dsa_switch *ds, int port, in felix_fdb_del()
827 static int felix_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag lag, in felix_lag_fdb_add()
840 static int felix_lag_fdb_del(struct dsa_switch *ds, struct dsa_lag lag, in felix_lag_fdb_del()
853 static int felix_mdb_add(struct dsa_switch *ds, int port, in felix_mdb_add()
873 static int felix_mdb_del(struct dsa_switch *ds, int port, in felix_mdb_del()
893 static void felix_bridge_stp_state_set(struct dsa_switch *ds, int port, in felix_bridge_stp_state_set()
901 static int felix_pre_bridge_flags(struct dsa_switch *ds, int port, in felix_pre_bridge_flags()
910 static int felix_bridge_flags(struct dsa_switch *ds, int port, in felix_bridge_flags()
924 static int felix_bridge_join(struct dsa_switch *ds, int port, in felix_bridge_join()
934 static void felix_bridge_leave(struct dsa_switch *ds, int port, in felix_bridge_leave()
942 static int felix_lag_join(struct dsa_switch *ds, int port, in felix_lag_join()
961 static int felix_lag_leave(struct dsa_switch *ds, int port, in felix_lag_leave()
975 static int felix_lag_change(struct dsa_switch *ds, int port) in felix_lag_change()
985 static int felix_vlan_prepare(struct dsa_switch *ds, int port, in felix_vlan_prepare()
1009 static int felix_vlan_filtering(struct dsa_switch *ds, int port, bool enabled, in felix_vlan_filtering()
1017 static int felix_vlan_add(struct dsa_switch *ds, int port, in felix_vlan_add()
1034 static int felix_vlan_del(struct dsa_switch *ds, int port, in felix_vlan_del()
1042 static void felix_phylink_get_caps(struct dsa_switch *ds, int port, in felix_phylink_get_caps()
1055 static void felix_phylink_mac_config(struct dsa_switch *ds, int port, in felix_phylink_mac_config()
1066 static struct phylink_pcs *felix_phylink_mac_select_pcs(struct dsa_switch *ds, in felix_phylink_mac_select_pcs()
1080 static void felix_phylink_mac_link_down(struct dsa_switch *ds, int port, in felix_phylink_mac_link_down()
1093 static void felix_phylink_mac_link_up(struct dsa_switch *ds, int port, in felix_phylink_mac_link_up()
1111 static int felix_port_enable(struct dsa_switch *ds, int port, in felix_port_enable()
1153 static void felix_get_stats64(struct dsa_switch *ds, int port, in felix_get_stats64()
1161 static void felix_get_pause_stats(struct dsa_switch *ds, int port, in felix_get_pause_stats()
1169 static void felix_get_rmon_stats(struct dsa_switch *ds, int port, in felix_get_rmon_stats()
1178 static void felix_get_eth_ctrl_stats(struct dsa_switch *ds, int port, in felix_get_eth_ctrl_stats()
1186 static void felix_get_eth_mac_stats(struct dsa_switch *ds, int port, in felix_get_eth_mac_stats()
1194 static void felix_get_eth_phy_stats(struct dsa_switch *ds, int port, in felix_get_eth_phy_stats()
1202 static void felix_get_strings(struct dsa_switch *ds, int port, in felix_get_strings()
1210 static void felix_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data) in felix_get_ethtool_stats()
1217 static int felix_get_sset_count(struct dsa_switch *ds, int port, int sset) in felix_get_sset_count()
1224 static int felix_get_ts_info(struct dsa_switch *ds, int port, in felix_get_ts_info()
1502 struct dsa_switch *ds = xmit_work->dp->ds; in felix_port_deferred_xmit() local
1535 static int felix_connect_tag_protocol(struct dsa_switch *ds, in felix_connect_tag_protocol()
1553 static int felix_setup(struct dsa_switch *ds) in felix_setup()
1623 static void felix_teardown(struct dsa_switch *ds) in felix_teardown()
1645 static int felix_hwtstamp_get(struct dsa_switch *ds, int port, in felix_hwtstamp_get()
1653 static int felix_hwtstamp_set(struct dsa_switch *ds, int port, in felix_hwtstamp_set()
1724 static bool felix_rxtstamp(struct dsa_switch *ds, int port, in felix_rxtstamp()
1771 static void felix_txtstamp(struct dsa_switch *ds, int port, in felix_txtstamp()
1791 static int felix_change_mtu(struct dsa_switch *ds, int port, int new_mtu) in felix_change_mtu()
1808 static int felix_get_max_mtu(struct dsa_switch *ds, int port) in felix_get_max_mtu()
1815 static int felix_cls_flower_add(struct dsa_switch *ds, int port, in felix_cls_flower_add()
1832 static int felix_cls_flower_del(struct dsa_switch *ds, int port, in felix_cls_flower_del()
1840 static int felix_cls_flower_stats(struct dsa_switch *ds, int port, in felix_cls_flower_stats()
1848 static int felix_port_policer_add(struct dsa_switch *ds, int port, in felix_port_policer_add()
1860 static void felix_port_policer_del(struct dsa_switch *ds, int port) in felix_port_policer_del()
1867 static int felix_port_mirror_add(struct dsa_switch *ds, int port, in felix_port_mirror_add()
1877 static void felix_port_mirror_del(struct dsa_switch *ds, int port, in felix_port_mirror_del()
1885 static int felix_port_setup_tc(struct dsa_switch *ds, int port, in felix_port_setup_tc()
1898 static int felix_sb_pool_get(struct dsa_switch *ds, unsigned int sb_index, in felix_sb_pool_get()
1907 static int felix_sb_pool_set(struct dsa_switch *ds, unsigned int sb_index, in felix_sb_pool_set()
1918 static int felix_sb_port_pool_get(struct dsa_switch *ds, int port, in felix_sb_port_pool_get()
1928 static int felix_sb_port_pool_set(struct dsa_switch *ds, int port, in felix_sb_port_pool_set()
1938 static int felix_sb_tc_pool_bind_get(struct dsa_switch *ds, int port, in felix_sb_tc_pool_bind_get()
1950 static int felix_sb_tc_pool_bind_set(struct dsa_switch *ds, int port, in felix_sb_tc_pool_bind_set()
1963 static int felix_sb_occ_snapshot(struct dsa_switch *ds, in felix_sb_occ_snapshot()
1971 static int felix_sb_occ_max_clear(struct dsa_switch *ds, in felix_sb_occ_max_clear()
1979 static int felix_sb_occ_port_pool_get(struct dsa_switch *ds, int port, in felix_sb_occ_port_pool_get()
1989 static int felix_sb_occ_tc_port_bind_get(struct dsa_switch *ds, int port, in felix_sb_occ_tc_port_bind_get()
2000 static int felix_mrp_add(struct dsa_switch *ds, int port, in felix_mrp_add()
2008 static int felix_mrp_del(struct dsa_switch *ds, int port, in felix_mrp_del()
2017 felix_mrp_add_ring_role(struct dsa_switch *ds, int port, in felix_mrp_add_ring_role()
2026 felix_mrp_del_ring_role(struct dsa_switch *ds, int port, in felix_mrp_del_ring_role()
2034 static int felix_port_get_default_prio(struct dsa_switch *ds, int port) in felix_port_get_default_prio()
2041 static int felix_port_set_default_prio(struct dsa_switch *ds, int port, in felix_port_set_default_prio()
2049 static int felix_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp) in felix_port_get_dscp_prio()
2056 static int felix_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, in felix_port_add_dscp_prio()
2064 static int felix_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, in felix_port_del_dscp_prio()
2072 static int felix_get_mm(struct dsa_switch *ds, int port, in felix_get_mm()
2080 static int felix_set_mm(struct dsa_switch *ds, int port, in felix_set_mm()
2089 static void felix_get_mm_stats(struct dsa_switch *ds, int port, in felix_get_mm_stats()
2185 struct dsa_switch *ds = felix->ds; in felix_port_to_netdev() local