| 3599 | } |
| 3600 | |
| 3601 | static int |
| 3602 | bnxt_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts) |
| 3603 | { |
| 3604 | uint64_t ns; |
| 3605 | struct bnxt *bp = dev->data->dev_private; |
| 3606 | struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; |
| 3607 | |
| 3608 | if (!ptp) |
| 3609 | return -ENOTSUP; |
| 3610 | |
| 3611 | ns = rte_timespec_to_ns(ts); |
| 3612 | /* Set the timecounters to a new value. */ |
| 3613 | ptp->tc.nsec = ns; |
| 3614 | ptp->tx_tstamp_tc.nsec = ns; |
| 3615 | ptp->rx_tstamp_tc.nsec = ns; |
| 3616 | |
| 3617 | return 0; |
| 3618 | } |
| 3619 | |
| 3620 | static int |
| 3621 | bnxt_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected