• Home
  • Raw
  • Download

Lines Matching full:ds

27 static enum dsa_tag_protocol felix_get_tag_protocol(struct dsa_switch *ds,  in felix_get_tag_protocol()  argument
34 static int felix_set_ageing_time(struct dsa_switch *ds, in felix_set_ageing_time() argument
37 struct ocelot *ocelot = ds->priv; in felix_set_ageing_time()
44 static int felix_fdb_dump(struct dsa_switch *ds, int port, in felix_fdb_dump() argument
47 struct ocelot *ocelot = ds->priv; in felix_fdb_dump()
52 static int felix_fdb_add(struct dsa_switch *ds, int port, in felix_fdb_add() argument
55 struct ocelot *ocelot = ds->priv; in felix_fdb_add()
60 static int felix_fdb_del(struct dsa_switch *ds, int port, in felix_fdb_del() argument
63 struct ocelot *ocelot = ds->priv; in felix_fdb_del()
69 static int felix_mdb_prepare(struct dsa_switch *ds, int port, in felix_mdb_prepare() argument
75 static void felix_mdb_add(struct dsa_switch *ds, int port, in felix_mdb_add() argument
78 struct ocelot *ocelot = ds->priv; in felix_mdb_add()
83 static int felix_mdb_del(struct dsa_switch *ds, int port, in felix_mdb_del() argument
86 struct ocelot *ocelot = ds->priv; in felix_mdb_del()
91 static void felix_bridge_stp_state_set(struct dsa_switch *ds, int port, in felix_bridge_stp_state_set() argument
94 struct ocelot *ocelot = ds->priv; in felix_bridge_stp_state_set()
99 static int felix_bridge_join(struct dsa_switch *ds, int port, in felix_bridge_join() argument
102 struct ocelot *ocelot = ds->priv; in felix_bridge_join()
107 static void felix_bridge_leave(struct dsa_switch *ds, int port, in felix_bridge_leave() argument
110 struct ocelot *ocelot = ds->priv; in felix_bridge_leave()
116 static int felix_vlan_prepare(struct dsa_switch *ds, int port, in felix_vlan_prepare() argument
122 static int felix_vlan_filtering(struct dsa_switch *ds, int port, bool enabled, in felix_vlan_filtering() argument
125 struct ocelot *ocelot = ds->priv; in felix_vlan_filtering()
130 static void felix_vlan_add(struct dsa_switch *ds, int port, in felix_vlan_add() argument
133 struct ocelot *ocelot = ds->priv; in felix_vlan_add()
138 if (dsa_is_cpu_port(ds, port)) in felix_vlan_add()
146 dev_err(ds->dev, "Failed to add VLAN %d to port %d: %d\n", in felix_vlan_add()
153 static int felix_vlan_del(struct dsa_switch *ds, int port, in felix_vlan_del() argument
156 struct ocelot *ocelot = ds->priv; in felix_vlan_del()
163 dev_err(ds->dev, "Failed to remove VLAN %d from port %d: %d\n", in felix_vlan_del()
171 static int felix_port_enable(struct dsa_switch *ds, int port, in felix_port_enable() argument
174 struct ocelot *ocelot = ds->priv; in felix_port_enable()
181 static void felix_port_disable(struct dsa_switch *ds, int port) in felix_port_disable() argument
183 struct ocelot *ocelot = ds->priv; in felix_port_disable()
188 static void felix_phylink_validate(struct dsa_switch *ds, int port, in felix_phylink_validate() argument
192 struct ocelot *ocelot = ds->priv; in felix_phylink_validate()
199 static void felix_phylink_mac_config(struct dsa_switch *ds, int port, in felix_phylink_mac_config() argument
203 struct ocelot *ocelot = ds->priv; in felix_phylink_mac_config()
205 struct dsa_port *dp = dsa_to_port(ds, port); in felix_phylink_mac_config()
211 static void felix_phylink_mac_link_down(struct dsa_switch *ds, int port, in felix_phylink_mac_link_down() argument
215 struct ocelot *ocelot = ds->priv; in felix_phylink_mac_link_down()
237 static void felix_phylink_mac_link_up(struct dsa_switch *ds, int port, in felix_phylink_mac_link_up() argument
244 struct ocelot *ocelot = ds->priv; in felix_phylink_mac_link_up()
338 static void felix_get_strings(struct dsa_switch *ds, int port, in felix_get_strings() argument
341 struct ocelot *ocelot = ds->priv; in felix_get_strings()
346 static void felix_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data) in felix_get_ethtool_stats() argument
348 struct ocelot *ocelot = ds->priv; in felix_get_ethtool_stats()
353 static int felix_get_sset_count(struct dsa_switch *ds, int port, int sset) in felix_get_sset_count() argument
355 struct ocelot *ocelot = ds->priv; in felix_get_sset_count()
360 static int felix_get_ts_info(struct dsa_switch *ds, int port, in felix_get_ts_info() argument
363 struct ocelot *ocelot = ds->priv; in felix_get_ts_info()
582 static int felix_setup(struct dsa_switch *ds) in felix_setup() argument
584 struct ocelot *ocelot = ds->priv; in felix_setup()
588 err = felix_init_structs(felix, ds->num_ports); in felix_setup()
605 for (port = 0; port < ds->num_ports; port++) { in felix_setup()
608 if (dsa_is_cpu_port(ds, port)) in felix_setup()
626 ds->mtu_enforcement_ingress = true; in felix_setup()
627 ds->configure_vlan_while_not_filtering = true; in felix_setup()
632 static void felix_teardown(struct dsa_switch *ds) in felix_teardown() argument
634 struct ocelot *ocelot = ds->priv; in felix_teardown()
642 if (dsa_is_unused_port(ds, port)) in felix_teardown()
652 static int felix_hwtstamp_get(struct dsa_switch *ds, int port, in felix_hwtstamp_get() argument
655 struct ocelot *ocelot = ds->priv; in felix_hwtstamp_get()
660 static int felix_hwtstamp_set(struct dsa_switch *ds, int port, in felix_hwtstamp_set() argument
663 struct ocelot *ocelot = ds->priv; in felix_hwtstamp_set()
668 static bool felix_rxtstamp(struct dsa_switch *ds, int port, in felix_rxtstamp() argument
672 struct ocelot *ocelot = ds->priv; in felix_rxtstamp()
696 static bool felix_txtstamp(struct dsa_switch *ds, int port, in felix_txtstamp() argument
699 struct ocelot *ocelot = ds->priv; in felix_txtstamp()
711 static int felix_change_mtu(struct dsa_switch *ds, int port, int new_mtu) in felix_change_mtu() argument
713 struct ocelot *ocelot = ds->priv; in felix_change_mtu()
720 static int felix_get_max_mtu(struct dsa_switch *ds, int port) in felix_get_max_mtu() argument
722 struct ocelot *ocelot = ds->priv; in felix_get_max_mtu()
727 static int felix_cls_flower_add(struct dsa_switch *ds, int port, in felix_cls_flower_add() argument
730 struct ocelot *ocelot = ds->priv; in felix_cls_flower_add()
735 static int felix_cls_flower_del(struct dsa_switch *ds, int port, in felix_cls_flower_del() argument
738 struct ocelot *ocelot = ds->priv; in felix_cls_flower_del()
743 static int felix_cls_flower_stats(struct dsa_switch *ds, int port, in felix_cls_flower_stats() argument
746 struct ocelot *ocelot = ds->priv; in felix_cls_flower_stats()
751 static int felix_port_policer_add(struct dsa_switch *ds, int port, in felix_port_policer_add() argument
754 struct ocelot *ocelot = ds->priv; in felix_port_policer_add()
763 static void felix_port_policer_del(struct dsa_switch *ds, int port) in felix_port_policer_del() argument
765 struct ocelot *ocelot = ds->priv; in felix_port_policer_del()
770 static int felix_port_setup_tc(struct dsa_switch *ds, int port, in felix_port_setup_tc() argument
774 struct ocelot *ocelot = ds->priv; in felix_port_setup_tc()
778 return felix->info->port_setup_tc(ds, port, type, type_data); in felix_port_setup_tc()
828 struct dsa_switch *ds = felix->ds; in felix_port_to_netdev() local
830 if (!dsa_is_user_port(ds, port)) in felix_port_to_netdev()
833 return dsa_to_port(ds, port)->slave; in felix_port_to_netdev()