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

Function ice_timesync_write_time

dpdk/drivers/net/ice/ice_ethdev.c:6443–6457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6441}
6442
6443static int
6444ice_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts)
6445{
6446 struct ice_adapter *ad =
6447 ICE_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private);
6448 uint64_t ns;
6449
6450 ns = rte_timespec_to_ns(ts);
6451
6452 ad->systime_tc.nsec = ns;
6453 ad->rx_tstamp_tc.nsec = ns;
6454 ad->tx_tstamp_tc.nsec = ns;
6455
6456 return 0;
6457}
6458
6459static int
6460ice_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts)

Callers

nothing calls this directly

Calls 1

rte_timespec_to_nsFunction · 0.85

Tested by

no test coverage detected