Lines Matching refs:port
61 int sja1105_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr)
71 priv->hwts_tx_en &= ~BIT(port);
74 priv->hwts_tx_en |= BIT(port);
82 priv->hwts_rx_en &= ~BIT(port);
85 priv->hwts_rx_en |= BIT(port);
94 int sja1105_hwtstamp_get(struct dsa_switch *ds, int port, struct ifreq *ifr)
100 if (priv->hwts_tx_en & BIT(port))
104 if (priv->hwts_rx_en & BIT(port))
113 int sja1105_get_ts_info(struct dsa_switch *ds, int port,
247 static int sja1105_ptpegr_ts_poll(struct dsa_switch *ds, int port, u64 *ts)
258 rc = sja1105_xfer_buf(priv, SPI_READ, regs->ptpegr_ts[port],
375 bool sja1105_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
380 if (!(priv->hwts_rx_en & BIT(port)))
391 bool sja1110_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
405 bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
410 return priv->info->rxtstamp(ds, port, skb);
413 void sja1110_process_meta_tstamp(struct dsa_switch *ds, int port, u8 ts_id,
421 /* We don't care about RX timestamps on the CPU port */
450 void sja1110_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
476 void sja1105_port_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb)
481 if (!(priv->hwts_tx_en & BIT(port)))
491 priv->info->txtstamp(ds, port, skb);
940 void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int port,
953 rc = sja1105_ptpegr_ts_poll(ds, port, &ts);