Lines Matching refs:ds

490 static int vsc73xx_phy_read(struct dsa_switch *ds, int phy, int regnum)
492 struct vsc73xx *vsc = ds->priv;
519 static int vsc73xx_phy_write(struct dsa_switch *ds, int phy, int regnum,
522 struct vsc73xx *vsc = ds->priv;
547 static enum dsa_tag_protocol vsc73xx_get_tag_protocol(struct dsa_switch *ds,
563 static int vsc73xx_setup(struct dsa_switch *ds)
565 struct vsc73xx *vsc = ds->priv;
756 struct vsc73xx *vsc = dp->ds->priv;
780 struct vsc73xx *vsc = dp->ds->priv;
803 struct vsc73xx *vsc = dp->ds->priv;
863 static int vsc73xx_port_enable(struct dsa_switch *ds, int port,
866 struct vsc73xx *vsc = ds->priv;
874 static void vsc73xx_port_disable(struct dsa_switch *ds, int port)
876 struct vsc73xx *vsc = ds->priv;
911 static void vsc73xx_get_strings(struct dsa_switch *ds, int port, u32 stringset,
915 struct vsc73xx *vsc = ds->priv;
961 static int vsc73xx_get_sset_count(struct dsa_switch *ds, int port, int sset)
970 static void vsc73xx_get_ethtool_stats(struct dsa_switch *ds, int port,
973 struct vsc73xx *vsc = ds->priv;
999 static int vsc73xx_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
1001 struct vsc73xx *vsc = ds->priv;
1012 static int vsc73xx_get_max_mtu(struct dsa_switch *ds, int port)
1189 vsc->ds = devm_kzalloc(dev, sizeof(*vsc->ds), GFP_KERNEL);
1190 if (!vsc->ds)
1193 vsc->ds->dev = dev;
1194 vsc->ds->num_ports = VSC73XX_MAX_NUM_PORTS;
1195 vsc->ds->priv = vsc;
1197 vsc->ds->ops = &vsc73xx_ds_ops;
1198 vsc->ds->phylink_mac_ops = &vsc73xx_phylink_mac_ops;
1199 ret = dsa_register_switch(vsc->ds);
1207 dsa_unregister_switch(vsc->ds);
1217 dsa_unregister_switch(vsc->ds);
1224 dsa_switch_shutdown(vsc->ds);