Home
last modified time | relevance | path

Searched refs:net_ptp_time (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/include/zephyr/drivers/
Dptp_clock.h26 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/
Dptp_clock.c12 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()
Dptp_clock_nxp_enet.c38 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/
Dptp_time.h111 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()
Dgptp.h286 int gptp_event_capture(struct net_ptp_time *slave_time, bool *gm_present);
Dnet_pkt.h145 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()
Dethernet.h381 struct net_ptp_time cycle_time;
/Zephyr-latest/tests/net/ptp/clock/src/
Dmain.c81 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(&eth_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, &eth_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/
Dgptp_md.h33 struct net_ptp_time precise_orig_ts;
Dgptp_private.h111 static inline uint64_t gptp_timestamp_to_nsec(struct net_ptp_time *ts) in gptp_timestamp_to_nsec()
Dgptp_user_api.c54 int gptp_event_capture(struct net_ptp_time *slave_time, bool *gm_present) in gptp_event_capture()
Dgptp_messages.h481 struct net_ptp_time *treq);
491 struct net_ptp_time *tresp);
Dgptp_state.h301 struct net_ptp_time last_precise_orig_ts;
Dgptp_md.c39 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()
Dgptp_messages.c882 struct net_ptp_time *treq) in gptp_send_pdelay_resp()
905 struct net_ptp_time *tresp) in gptp_send_pdelay_follow_up()
Dgptp_mi.c339 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/
Dmsg.h290 struct net_ptp_time protocol;
292 struct net_ptp_time host;
Dds.h51 struct net_ptp_time current_time;
Dtransport.c292 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/
Deth_sam_gmac.c593 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 …]
Deth_native_tap.c151 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()
Deth_e1000.c332 struct net_ptp_time *tm) in ptp_clock_e1000_set()
343 struct net_ptp_time *tm) in ptp_clock_e1000_get()
Deth_xmc4xxx.c424 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()
Deth_stm32_hal.c599 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/
Dmain.c156 struct net_ptp_time time; in tx()

12