Searched refs:tstamp_cc (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/drivers/net/dsa/mv88e6xxx/ |
D | ptp.c | 46 #define cc_to_chip(cc) container_of(cc, struct mv88e6xxx_chip, tstamp_cc) 220 chip->tstamp_cc.mult = neg_adj ? mult - diff : mult + diff; in mv88e6xxx_ptp_adjfine() 262 timecounter_init(&chip->tstamp_tc, &chip->tstamp_cc, ns); in mv88e6xxx_ptp_settime() 454 memset(&chip->tstamp_cc, 0, sizeof(chip->tstamp_cc)); in mv88e6xxx_ptp_setup() 455 chip->tstamp_cc.read = mv88e6xxx_ptp_clock_read; in mv88e6xxx_ptp_setup() 456 chip->tstamp_cc.mask = CYCLECOUNTER_MASK(32); in mv88e6xxx_ptp_setup() 457 chip->tstamp_cc.mult = ptp_ops->cc_mult; in mv88e6xxx_ptp_setup() 458 chip->tstamp_cc.shift = ptp_ops->cc_shift; in mv88e6xxx_ptp_setup() 460 timecounter_init(&chip->tstamp_tc, &chip->tstamp_cc, in mv88e6xxx_ptp_setup()
|
D | chip.h | 301 struct cyclecounter tstamp_cc; member
|
/Linux-v5.4/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ptp.c | 129 tstamp_cc); in xgbe_cc_read() 214 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, nsec); in xgbe_settime() 231 struct cyclecounter *cc = &pdata->tstamp_cc; in xgbe_ptp_register() 266 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, in xgbe_ptp_register()
|
D | xgbe.h | 1205 struct cyclecounter tstamp_cc; member
|
D | xgbe-dev.c | 1635 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, in xgbe_config_tstamp()
|
/Linux-v5.4/drivers/net/dsa/sja1105/ |
D | sja1105_ptp.c | 54 #define cc_to_sja1105(d) container_of((d), struct sja1105_private, tstamp_cc) 231 timecounter_init(&priv->tstamp_tc, &priv->tstamp_cc, in sja1105_ptp_reset() 261 timecounter_init(&priv->tstamp_tc, &priv->tstamp_cc, ns); in sja1105_ptp_settime() 305 priv->tstamp_cc.mult = SJA1105_CC_MULT + clkrate; in sja1105_ptp_adjfine() 365 priv->tstamp_cc = (struct cyclecounter) { in sja1105_ptp_clock_register()
|
D | sja1105.h | 99 struct cyclecounter tstamp_cc; member
|
D | sja1105_main.c | 1854 now = priv->tstamp_cc.read(&priv->tstamp_cc); in sja1105_port_deferred_xmit() 2015 now = priv->tstamp_cc.read(&priv->tstamp_cc); in sja1105_rxtstamp_work()
|