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()
250 static void mv88e6060_phylink_get_caps(struct dsa_switch *ds, int port, in mv88e6060_phylink_get_caps() argument
254 struct mv88e6060_priv *priv = ds->priv; in mv88e6060_phylink_get_caps()
260 dev_err(ds->dev, in mv88e6060_phylink_get_caps()
271 dev_warn(ds->dev, "port %d: SNI mode not supported\n", port); in mv88e6060_phylink_get_caps()
306 struct dsa_switch *ds; in mv88e6060_probe() local
322 ds = devm_kzalloc(dev, sizeof(*ds), GFP_KERNEL); in mv88e6060_probe()
323 if (!ds) in mv88e6060_probe()
326 ds->dev = dev; in mv88e6060_probe()
327 ds->num_ports = MV88E6060_PORTS; in mv88e6060_probe()
328 ds->priv = priv; in mv88e6060_probe()
329 ds->dev = dev; in mv88e6060_probe()
330 ds->ops = &mv88e6060_switch_ops; in mv88e6060_probe()
332 dev_set_drvdata(dev, ds); in mv88e6060_probe()
334 return dsa_register_switch(ds); in mv88e6060_probe()
339 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_remove() local
341 if (!ds) in mv88e6060_remove()
344 dsa_unregister_switch(ds); in mv88e6060_remove()
349 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_shutdown() local
351 if (!ds) in mv88e6060_shutdown()
354 dsa_switch_shutdown(ds); in mv88e6060_shutdown()