Lines Matching refs:ds

21 	struct dsa_switch *ds = priv->ds;
30 for (port = 0; port < ds->num_ports; port++) {
77 dev_err(ds->dev,
86 dev_dbg(ds->dev, "earliest base time %lld ns\n", earliest_base_time);
87 dev_dbg(ds->dev, "latest base time %lld ns\n", latest_base_time);
88 dev_dbg(ds->dev, "longest cycle time %lld ns\n", max_cycle_time);
167 struct dsa_switch *ds = priv->ds;
211 for (port = 0; port < ds->num_ports; port++) {
273 for (port = 0; port < ds->num_ports; port++) {
448 dev_warn(priv->ds->dev,
472 struct dsa_switch *ds = priv->ds;
496 for (port = 0; port < ds->num_ports; port++) {
509 int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port,
512 struct sja1105_private *priv = ds->priv;
555 dev_err(priv->ds->dev,
562 for (other_port = 0; other_port < ds->num_ports; other_port++) {
571 dev_err(ds->dev, "Conflict with tc-gate schedule\n");
587 struct dsa_switch *ds = priv->ds;
591 rc = sja1105_ptp_commit(ds, &cmd, SPI_READ);
634 struct dsa_switch *ds = priv->ds;
637 dev_dbg(ds->dev, "Starting the TAS\n");
641 dev_err(ds->dev, "TAS already started\n");
648 rc = sja1105_ptp_commit(ds, cmd, SPI_WRITE);
661 struct dsa_switch *ds = priv->ds;
664 dev_dbg(ds->dev, "Stopping the TAS\n");
667 dev_err(ds->dev, "TAS already disabled\n");
674 rc = sja1105_ptp_commit(ds, cmd, SPI_WRITE);
730 struct dsa_switch *ds = priv->ds;
747 rc = __sja1105_ptp_gettimex(ds, &now, NULL);
778 dev_dbg(ds->dev, "OPER base time %lld.%09ld (now %lld.%09ld)\n",
794 rc = __sja1105_ptp_gettimex(ds, &now, NULL);
801 dev_dbg(ds->dev, "time to start: [%lld.%09ld]",
813 dev_err(ds->dev,
830 dev_err(ds->dev, "TAS surprisingly stopped\n");
836 dev_err(ds->dev, "TAS in an invalid state (incorrect use of API)!\n");
840 dev_err(ds->dev, "An operation returned %d\n", rc);
845 void sja1105_tas_clockstep(struct dsa_switch *ds)
847 struct sja1105_private *priv = ds->priv;
857 void sja1105_tas_adjfreq(struct dsa_switch *ds)
859 struct sja1105_private *priv = ds->priv;
873 void sja1105_tas_setup(struct dsa_switch *ds)
875 struct sja1105_private *priv = ds->priv;
885 void sja1105_tas_teardown(struct dsa_switch *ds)
887 struct sja1105_private *priv = ds->priv;
893 for (port = 0; port < ds->num_ports; port++) {