Lines Matching full:ds
45 static enum dsa_tag_protocol mv88e6060_get_tag_protocol(struct dsa_switch *ds, in mv88e6060_get_tag_protocol() argument
121 if (dsa_is_unused_port(priv->ds, p)) in mv88e6060_setup_port()
130 dsa_is_cpu_port(priv->ds, p) ? in mv88e6060_setup_port()
145 (dsa_is_cpu_port(priv->ds, p) ? in mv88e6060_setup_port()
146 dsa_user_ports(priv->ds) : in mv88e6060_setup_port()
147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
187 static int mv88e6060_setup(struct dsa_switch *ds) in mv88e6060_setup() argument
189 struct mv88e6060_priv *priv = ds->priv; in mv88e6060_setup()
193 priv->ds = ds; in mv88e6060_setup()
225 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) in mv88e6060_phy_read() argument
227 struct mv88e6060_priv *priv = ds->priv; in mv88e6060_phy_read()
238 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) in mv88e6060_phy_write() argument
240 struct mv88e6060_priv *priv = ds->priv; in mv88e6060_phy_write()
261 struct dsa_switch *ds; in mv88e6060_probe() local
277 ds = devm_kzalloc(dev, sizeof(*ds), GFP_KERNEL); in mv88e6060_probe()
278 if (!ds) in mv88e6060_probe()
281 ds->dev = dev; in mv88e6060_probe()
282 ds->num_ports = MV88E6060_PORTS; in mv88e6060_probe()
283 ds->priv = priv; in mv88e6060_probe()
284 ds->dev = dev; in mv88e6060_probe()
285 ds->ops = &mv88e6060_switch_ops; in mv88e6060_probe()
287 dev_set_drvdata(dev, ds); in mv88e6060_probe()
289 return dsa_register_switch(ds); in mv88e6060_probe()
294 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_remove() local
296 if (!ds) in mv88e6060_remove()
299 dsa_unregister_switch(ds); in mv88e6060_remove()
304 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_shutdown() local
306 if (!ds) in mv88e6060_shutdown()
309 dsa_switch_shutdown(ds); in mv88e6060_shutdown()