Lines Matching refs:tm
187 static int my_ptp_clock_set(const struct device *dev, struct net_ptp_time *tm) in my_ptp_clock_set() argument
196 memcpy(ð_ctx->time, tm, sizeof(struct net_ptp_time)); in my_ptp_clock_set()
201 static int my_ptp_clock_get(const struct device *dev, struct net_ptp_time *tm) in my_ptp_clock_get() argument
206 memcpy(tm, ð_ctx->time, sizeof(struct net_ptp_time)); in my_ptp_clock_get()
441 struct net_ptp_time tm = { in test_ptp_clock_iface() local
453 ptp_clock_set(clk, &tm); in test_ptp_clock_iface()
455 orig = timestamp_to_nsec(&tm); in test_ptp_clock_iface()
463 (void)memset(&tm, 0, sizeof(tm)); in test_ptp_clock_iface()
464 ptp_clock_get(clk, &tm); in test_ptp_clock_iface()
466 new_value = timestamp_to_nsec(&tm); in test_ptp_clock_iface()
530 static ZTEST_BMEM struct net_ptp_time tm; variable
542 (void)memset(&tm, 0, sizeof(tm)); in test_ptp_clock_get_by_xxx()
543 ptp_clock_get(clk_by_index, &tm); in test_ptp_clock_get_by_xxx()
545 ret = memcmp(&tm, &empty, sizeof(tm)); in test_ptp_clock_get_by_xxx()