MCPcopy Create free account
hub / github.com/F-Stack/f-stack / axgbe_update_tstamp_addend

Function axgbe_update_tstamp_addend

dpdk/drivers/net/axgbe/axgbe_ethdev.c:1629–1643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1627}
1628
1629static void
1630axgbe_update_tstamp_addend(struct axgbe_port *pdata,
1631 uint32_t addend)
1632{
1633 unsigned int count = 100;
1634
1635 AXGMAC_IOWRITE(pdata, MAC_TSAR, addend);
1636 AXGMAC_IOWRITE_BITS(pdata, MAC_TSCR, TSADDREG, 1);
1637
1638 /* Wait for addend update to complete */
1639 while (--count && AXGMAC_IOREAD_BITS(pdata, MAC_TSCR, TSADDREG))
1640 rte_delay_ms(1);
1641 if (!count)
1642 PMD_DRV_LOG(ERR, "Timed out updating timestamp addend register\n");
1643}
1644
1645static void
1646axgbe_set_tstamp_time(struct axgbe_port *pdata, unsigned int sec,

Callers 2

axgbe_adjfreqFunction · 0.85
axgbe_timesync_enableFunction · 0.85

Calls 1

rte_delay_msFunction · 0.85

Tested by

no test coverage detected