Lines Matching refs:ds
487 static int vsc73xx_phy_read(struct dsa_switch *ds, int phy, int regnum) in vsc73xx_phy_read() argument
489 struct vsc73xx *vsc = ds->priv; in vsc73xx_phy_read()
516 static int vsc73xx_phy_write(struct dsa_switch *ds, int phy, int regnum, in vsc73xx_phy_write() argument
519 struct vsc73xx *vsc = ds->priv; in vsc73xx_phy_write()
544 static enum dsa_tag_protocol vsc73xx_get_tag_protocol(struct dsa_switch *ds, in vsc73xx_get_tag_protocol() argument
559 static int vsc73xx_setup(struct dsa_switch *ds) in vsc73xx_setup() argument
561 struct vsc73xx *vsc = ds->priv; in vsc73xx_setup()
766 static void vsc73xx_adjust_link(struct dsa_switch *ds, int port, in vsc73xx_adjust_link() argument
769 struct vsc73xx *vsc = ds->priv; in vsc73xx_adjust_link()
887 static int vsc73xx_port_enable(struct dsa_switch *ds, int port, in vsc73xx_port_enable() argument
890 struct vsc73xx *vsc = ds->priv; in vsc73xx_port_enable()
898 static void vsc73xx_port_disable(struct dsa_switch *ds, int port) in vsc73xx_port_disable() argument
900 struct vsc73xx *vsc = ds->priv; in vsc73xx_port_disable()
935 static void vsc73xx_get_strings(struct dsa_switch *ds, int port, u32 stringset, in vsc73xx_get_strings() argument
939 struct vsc73xx *vsc = ds->priv; in vsc73xx_get_strings()
994 static int vsc73xx_get_sset_count(struct dsa_switch *ds, int port, int sset) in vsc73xx_get_sset_count() argument
1003 static void vsc73xx_get_ethtool_stats(struct dsa_switch *ds, int port, in vsc73xx_get_ethtool_stats() argument
1006 struct vsc73xx *vsc = ds->priv; in vsc73xx_get_ethtool_stats()
1181 vsc->ds = dsa_switch_alloc(dev, 8); in vsc73xx_probe()
1182 if (!vsc->ds) in vsc73xx_probe()
1184 vsc->ds->priv = vsc; in vsc73xx_probe()
1186 vsc->ds->ops = &vsc73xx_ds_ops; in vsc73xx_probe()
1187 ret = dsa_register_switch(vsc->ds); in vsc73xx_probe()
1195 dsa_unregister_switch(vsc->ds); in vsc73xx_probe()
1205 dsa_unregister_switch(vsc->ds); in vsc73xx_remove()