| /Zephyr-latest/include/zephyr/drivers/ |
| D | ptp_clock.h | 26 int (*set)(const struct device *dev, struct net_ptp_time *tm); 27 int (*get)(const struct device *dev, struct net_ptp_time *tm); 41 struct net_ptp_time *tm) in ptp_clock_set() 57 __syscall int ptp_clock_get(const struct device *dev, struct net_ptp_time *tm); 60 struct net_ptp_time *tm) in z_impl_ptp_clock_get()
|
| /Zephyr-latest/drivers/ptp_clock/ |
| D | ptp_clock.c | 12 struct net_ptp_time *tm) in z_vrfy_ptp_clock_get() 14 struct net_ptp_time ptp_time; in z_vrfy_ptp_clock_get() 18 K_OOPS(K_SYSCALL_MEMORY_WRITE(tm, sizeof(struct net_ptp_time))); in z_vrfy_ptp_clock_get()
|
| D | ptp_clock_nxp_enet.c | 38 struct net_ptp_time *tm) in ptp_clock_nxp_enet_set() 52 struct net_ptp_time *tm) in ptp_clock_nxp_enet_get()
|
| /Zephyr-latest/include/zephyr/net/ |
| D | ptp_time.h | 111 struct net_ptp_time { struct 210 static inline net_time_t net_ptp_time_to_ns(struct net_ptp_time *ts) in net_ptp_time_to_ns() 231 static inline struct net_ptp_time ns_to_net_ptp_time(net_time_t nsec) in ns_to_net_ptp_time() 233 struct net_ptp_time ts; in ns_to_net_ptp_time()
|
| D | gptp.h | 286 int gptp_event_capture(struct net_ptp_time *slave_time, bool *gm_present);
|
| D | net_pkt.h | 145 struct net_ptp_time timestamp; 1117 static inline struct net_ptp_time *net_pkt_timestamp(struct net_pkt *pkt) in net_pkt_timestamp() 1123 struct net_ptp_time *timestamp) in net_pkt_set_timestamp() 1139 static inline struct net_ptp_time *net_pkt_timestamp(struct net_pkt *pkt) in net_pkt_timestamp() 1147 struct net_ptp_time *timestamp) in net_pkt_set_timestamp()
|
| D | ethernet.h | 381 struct net_ptp_time cycle_time;
|
| /Zephyr-latest/tests/net/ptp/clock/src/ |
| D | main.c | 81 struct net_ptp_time time; 174 static uint64_t timestamp_to_nsec(struct net_ptp_time *ts) in timestamp_to_nsec() 187 static int my_ptp_clock_set(const struct device *dev, struct net_ptp_time *tm) in my_ptp_clock_set() 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() 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() 530 static ZTEST_BMEM struct net_ptp_time tm; 531 static ZTEST_BMEM struct net_ptp_time empty;
|
| /Zephyr-latest/subsys/net/l2/ethernet/gptp/ |
| D | gptp_md.h | 33 struct net_ptp_time precise_orig_ts;
|
| D | gptp_private.h | 111 static inline uint64_t gptp_timestamp_to_nsec(struct net_ptp_time *ts) in gptp_timestamp_to_nsec()
|
| D | gptp_user_api.c | 54 int gptp_event_capture(struct net_ptp_time *slave_time, bool *gm_present) in gptp_event_capture()
|
| D | gptp_messages.h | 481 struct net_ptp_time *treq); 491 struct net_ptp_time *tresp);
|
| D | gptp_state.h | 301 struct net_ptp_time last_precise_orig_ts;
|
| D | gptp_md.c | 39 struct net_ptp_time *sync_ts = net_pkt_timestamp(sync); in gptp_md_follow_up_prepare() 124 struct net_ptp_time *sync_ts; in gptp_set_md_sync_receive()
|
| D | gptp_messages.c | 882 struct net_ptp_time *treq) in gptp_send_pdelay_resp() 905 struct net_ptp_time *tresp) in gptp_send_pdelay_follow_up()
|
| D | gptp_mi.c | 339 struct net_ptp_time tm = {}; in gptp_get_current_time_nanosecond() 474 sizeof(struct net_ptp_time)); in gptp_mi_pss_store_last_pss() 751 struct net_ptp_time tm; in gptp_update_local_port_clock()
|
| /Zephyr-latest/subsys/net/lib/ptp/ |
| D | msg.h | 290 struct net_ptp_time protocol; 292 struct net_ptp_time host;
|
| D | ds.h | 51 struct net_ptp_time current_time;
|
| D | transport.c | 292 uint8_t ctrl[CMSG_SPACE(sizeof(struct net_ptp_time))] = {0}; in ptp_transport_recv() 312 memcpy(&msg->timestamp.host, CMSG_DATA(cmsg), sizeof(struct net_ptp_time)); in ptp_transport_recv()
|
| /Zephyr-latest/drivers/ethernet/ |
| D | eth_sam_gmac.c | 593 static inline struct net_ptp_time get_ptp_event_rx_ts(Gmac *gmac) in get_ptp_event_rx_ts() 595 struct net_ptp_time ts; in get_ptp_event_rx_ts() 604 static inline struct net_ptp_time get_ptp_peer_event_rx_ts(Gmac *gmac) in get_ptp_peer_event_rx_ts() 606 struct net_ptp_time ts; in get_ptp_peer_event_rx_ts() 615 static inline struct net_ptp_time get_ptp_event_tx_ts(Gmac *gmac) in get_ptp_event_tx_ts() 617 struct net_ptp_time ts; in get_ptp_event_tx_ts() 626 static inline struct net_ptp_time get_ptp_peer_event_tx_ts(Gmac *gmac) in get_ptp_peer_event_tx_ts() 628 struct net_ptp_time ts; in get_ptp_peer_event_tx_ts() 637 static inline struct net_ptp_time get_current_ts(Gmac *gmac) in get_current_ts() 639 struct net_ptp_time ts; in get_current_ts() [all …]
|
| D | eth_native_tap.c | 151 struct net_ptp_time timestamp; in update_gptp() 554 static int ptp_clock_set_native_tap(const struct device *clk, struct net_ptp_time *tm) in ptp_clock_set_native_tap() 566 static int ptp_clock_get_native_tap(const struct device *clk, struct net_ptp_time *tm) in ptp_clock_get_native_tap()
|
| D | eth_e1000.c | 332 struct net_ptp_time *tm) in ptp_clock_e1000_set() 343 struct net_ptp_time *tm) in ptp_clock_e1000_get()
|
| D | eth_xmc4xxx.c | 424 struct net_ptp_time timestamp = { in eth_xmc4xxx_rx_pkt() 532 struct net_ptp_time timestamp = { in eth_xmc4xxx_handle_tx() 1019 static int eth_xmc4xxx_ptp_clock_set(const struct device *dev, struct net_ptp_time *tm) in eth_xmc4xxx_ptp_clock_set() 1036 static int eth_xmc4xxx_ptp_clock_get(const struct device *dev, struct net_ptp_time *tm) in eth_xmc4xxx_ptp_clock_get()
|
| D | eth_stm32_hal.c | 599 struct net_ptp_time timestamp; in eth_rx() 1581 struct net_ptp_time *tm) in ptp_clock_stm32_set() 1612 struct net_ptp_time *tm) in ptp_clock_stm32_get()
|
| /Zephyr-latest/samples/net/sockets/txtime/src/ |
| D | main.c | 156 struct net_ptp_time time; in tx()
|