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

Function ngbe_read_tx_tstamp_cyclecounter

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

Source from the content-addressed store, hash-verified

2894}
2895
2896static uint64_t
2897ngbe_read_tx_tstamp_cyclecounter(struct rte_eth_dev *dev)
2898{
2899 struct ngbe_hw *hw = ngbe_dev_hw(dev);
2900 uint64_t tx_tstamp_cycles;
2901
2902 /* TSTXSTMPL stores ns and TSTXSTMPH stores seconds. */
2903 tx_tstamp_cycles = (uint64_t)rd32(hw, NGBE_TSTXSTMPL);
2904 tx_tstamp_cycles |= (uint64_t)rd32(hw, NGBE_TSTXSTMPH) << 32;
2905
2906 return tx_tstamp_cycles;
2907}
2908
2909static void
2910ngbe_start_timecounters(struct rte_eth_dev *dev)

Callers 1

Calls 2

ngbe_dev_hwFunction · 0.85
rd32Function · 0.50

Tested by

no test coverage detected