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

Function dpaa2_timesync_write_time

dpdk/drivers/net/dpaa2/dpaa2_ptp.c:63–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63int 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
83int dpaa2_timesync_adjust_time(struct rte_eth_dev *dev, int64_t delta)
84{

Callers

nothing calls this directly

Calls 2

rte_timespec_to_nsFunction · 0.85
dprtc_set_timeFunction · 0.85

Tested by

no test coverage detected