Lines Matching refs:ds

95 static enum dsa_tag_protocol a5psw_get_tag_protocol(struct dsa_switch *ds,
187 static void a5psw_port_disable(struct dsa_switch *ds, int port)
189 struct a5psw *a5psw = ds->priv;
195 static int a5psw_port_enable(struct dsa_switch *ds, int port,
198 struct a5psw *a5psw = ds->priv;
206 static int a5psw_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
208 struct a5psw *a5psw = ds->priv;
216 static int a5psw_port_max_mtu(struct dsa_switch *ds, int port)
221 static void a5psw_phylink_get_caps(struct dsa_switch *ds, int port,
228 if (dsa_is_cpu_port(ds, port)) {
246 struct a5psw *a5psw = dp->ds->priv;
265 struct a5psw *a5psw = dp->ds->priv;
284 struct a5psw *a5psw = dp->ds->priv;
300 static int a5psw_set_ageing_time(struct dsa_switch *ds, unsigned int msecs)
302 struct a5psw *a5psw = ds->priv;
357 static int a5psw_port_bridge_join(struct dsa_switch *ds, int port,
362 struct a5psw *a5psw = ds->priv;
379 static void a5psw_port_bridge_leave(struct dsa_switch *ds, int port,
382 struct a5psw *a5psw = ds->priv;
393 static int a5psw_port_pre_bridge_flags(struct dsa_switch *ds, int port,
405 a5psw_port_bridge_flags(struct dsa_switch *ds, int port,
409 struct a5psw *a5psw = ds->priv;
446 static void a5psw_port_stp_state_set(struct dsa_switch *ds, int port, u8 state)
449 struct dsa_port *dp = dsa_to_port(ds, port);
450 struct a5psw *a5psw = ds->priv;
471 dev_err(ds->dev, "invalid STP state: %d\n", state);
480 static void a5psw_port_fast_age(struct dsa_switch *ds, int port)
482 struct a5psw *a5psw = ds->priv;
506 static int a5psw_port_fdb_add(struct dsa_switch *ds, int port,
510 struct a5psw *a5psw = ds->priv;
557 static int a5psw_port_fdb_del(struct dsa_switch *ds, int port,
561 struct a5psw *a5psw = ds->priv;
616 static int a5psw_port_fdb_dump(struct dsa_switch *ds, int port,
619 struct a5psw *a5psw = ds->priv;
652 static int a5psw_port_vlan_filtering(struct dsa_switch *ds, int port,
659 struct a5psw *a5psw = ds->priv;
738 static int a5psw_port_vlan_add(struct dsa_switch *ds, int port,
744 struct a5psw *a5psw = ds->priv;
769 static int a5psw_port_vlan_del(struct dsa_switch *ds, int port,
772 struct a5psw *a5psw = ds->priv;
797 static void a5psw_get_strings(struct dsa_switch *ds, int port, u32 stringset,
811 static void a5psw_get_ethtool_stats(struct dsa_switch *ds, int port,
814 struct a5psw *a5psw = ds->priv;
821 static int a5psw_get_sset_count(struct dsa_switch *ds, int port, int sset)
829 static void a5psw_get_eth_mac_stats(struct dsa_switch *ds, int port,
832 struct a5psw *a5psw = ds->priv;
868 static void a5psw_get_rmon_stats(struct dsa_switch *ds, int port,
872 struct a5psw *a5psw = ds->priv;
891 static void a5psw_get_eth_ctrl_stats(struct dsa_switch *ds, int port,
894 struct a5psw *a5psw = ds->priv;
924 static int a5psw_setup(struct dsa_switch *ds)
926 struct a5psw *a5psw = ds->priv;
932 dsa_switch_for_each_cpu_port(dp, ds) {
976 dsa_switch_for_each_port(dp, ds) {
1210 struct dsa_switch *ds;
1265 ds = &a5psw->ds;
1266 ds->dev = dev;
1267 ds->num_ports = A5PSW_PORTS_NUM;
1268 ds->ops = &a5psw_switch_ops;
1269 ds->phylink_mac_ops = &a5psw_phylink_mac_ops;
1270 ds->priv = a5psw;
1272 ret = dsa_register_switch(ds);
1297 dsa_unregister_switch(&a5psw->ds);
1310 dsa_switch_shutdown(&a5psw->ds);