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

Function ngbe_read_rx_tstamp_cyclecounter

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

Source from the content-addressed store, hash-verified

2881}
2882
2883static uint64_t
2884ngbe_read_rx_tstamp_cyclecounter(struct rte_eth_dev *dev)
2885{
2886 struct ngbe_hw *hw = ngbe_dev_hw(dev);
2887 uint64_t rx_tstamp_cycles;
2888
2889 /* TSRXSTMPL stores ns and TSRXSTMPH stores seconds. */
2890 rx_tstamp_cycles = (uint64_t)rd32(hw, NGBE_TSRXSTMPL);
2891 rx_tstamp_cycles |= (uint64_t)rd32(hw, NGBE_TSRXSTMPH) << 32;
2892
2893 return rx_tstamp_cycles;
2894}
2895
2896static uint64_t
2897ngbe_read_tx_tstamp_cyclecounter(struct rte_eth_dev *dev)

Callers 1

Calls 2

ngbe_dev_hwFunction · 0.85
rd32Function · 0.50

Tested by

no test coverage detected