Lines Matching refs:ds

45 static enum dsa_tag_protocol mv88e6060_get_tag_protocol(struct dsa_switch *ds,  in mv88e6060_get_tag_protocol()  argument
127 dsa_is_cpu_port(priv->ds, p) ? in mv88e6060_setup_port()
142 (dsa_is_cpu_port(priv->ds, p) ? in mv88e6060_setup_port()
143 dsa_user_ports(priv->ds) : in mv88e6060_setup_port()
144 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
184 static int mv88e6060_setup(struct dsa_switch *ds) in mv88e6060_setup() argument
186 struct mv88e6060_priv *priv = ds->priv; in mv88e6060_setup()
190 priv->ds = ds; in mv88e6060_setup()
222 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) in mv88e6060_phy_read() argument
224 struct mv88e6060_priv *priv = ds->priv; in mv88e6060_phy_read()
235 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) in mv88e6060_phy_write() argument
237 struct mv88e6060_priv *priv = ds->priv; in mv88e6060_phy_write()
258 struct dsa_switch *ds; in mv88e6060_probe() local
274 ds = devm_kzalloc(dev, sizeof(*ds), GFP_KERNEL); in mv88e6060_probe()
275 if (!ds) in mv88e6060_probe()
278 ds->dev = dev; in mv88e6060_probe()
279 ds->num_ports = MV88E6060_PORTS; in mv88e6060_probe()
280 ds->priv = priv; in mv88e6060_probe()
281 ds->dev = dev; in mv88e6060_probe()
282 ds->ops = &mv88e6060_switch_ops; in mv88e6060_probe()
284 dev_set_drvdata(dev, ds); in mv88e6060_probe()
286 return dsa_register_switch(ds); in mv88e6060_probe()
291 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_remove() local
293 if (!ds) in mv88e6060_remove()
296 dsa_unregister_switch(ds); in mv88e6060_remove()
303 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_shutdown() local
305 if (!ds) in mv88e6060_shutdown()
308 dsa_switch_shutdown(ds); in mv88e6060_shutdown()