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

Function ngbe_read_systime_cyclecounter

dpdk/drivers/net/ngbe/ngbe_ethdev.c:2871–2881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2869}
2870
2871static uint64_t
2872ngbe_read_systime_cyclecounter(struct rte_eth_dev *dev)
2873{
2874 struct ngbe_hw *hw = ngbe_dev_hw(dev);
2875 uint64_t systime_cycles;
2876
2877 systime_cycles = (uint64_t)rd32(hw, NGBE_TSTIMEL);
2878 systime_cycles |= (uint64_t)rd32(hw, NGBE_TSTIMEH) << 32;
2879
2880 return systime_cycles;
2881}
2882
2883static uint64_t
2884ngbe_read_rx_tstamp_cyclecounter(struct rte_eth_dev *dev)

Callers 1

ngbe_timesync_read_timeFunction · 0.85

Calls 2

ngbe_dev_hwFunction · 0.85
rd32Function · 0.50

Tested by

no test coverage detected