| 61 | } |
| 62 | |
| 63 | int dpaa2_timesync_write_time(struct rte_eth_dev *dev, |
| 64 | const struct timespec *ts) |
| 65 | { |
| 66 | uint64_t ns; |
| 67 | int ret = 0; |
| 68 | |
| 69 | RTE_SET_USED(dev); |
| 70 | |
| 71 | ns = rte_timespec_to_ns(ts); |
| 72 | |
| 73 | ret = dprtc_set_time(&dprtc_dev->dprtc, CMD_PRI_LOW, |
| 74 | dprtc_dev->token, ns); |
| 75 | if (ret) { |
| 76 | DPAA2_PMD_ERR("dprtc_set_time failed ret: %d", ret); |
| 77 | return ret; |
| 78 | } |
| 79 | |
| 80 | return 0; |
| 81 | } |
| 82 | |
| 83 | int dpaa2_timesync_adjust_time(struct rte_eth_dev *dev, int64_t delta) |
| 84 | { |
nothing calls this directly
no test coverage detected