| 6441 | } |
| 6442 | |
| 6443 | static int |
| 6444 | ice_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 | |
| 6459 | static int |
| 6460 | ice_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected