Home
last modified time | relevance | path

Searched refs:gptp_hdr (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.6.0/subsys/net/l2/ethernet/gptp/
Dgptp_messages.c29 struct gptp_hdr *one_hdr = GPTP_HDR(pkt); \
57 struct gptp_hdr *gptp_get_hdr(struct net_pkt *pkt) in gptp_get_hdr()
63 if (sizeof(struct gptp_hdr) <= buf->len) { in gptp_get_hdr()
64 return (struct gptp_hdr *)buf->data; in gptp_get_hdr()
75 return (struct gptp_hdr *)pkt->frags->data; in gptp_get_hdr()
78 return (struct gptp_hdr *)buf->data; in gptp_get_hdr()
85 struct gptp_hdr *hdr; in gptp_sync_timestamp_callback()
113 struct gptp_hdr *hdr; in gptp_pdelay_response_timestamp_callback()
159 pkt = net_pkt_alloc_with_buffer_debug(iface, sizeof(struct gptp_hdr) + in setup_gptp_frame_debug()
163 pkt = net_pkt_alloc_with_buffer(iface, sizeof(struct gptp_hdr) + in setup_gptp_frame_debug()
[all …]
Dgptp_messages.h52 (sizeof(struct gptp_hdr) + sizeof(struct gptp_sync))
54 (sizeof(struct gptp_hdr) + sizeof(struct gptp_follow_up))
56 (sizeof(struct gptp_hdr) + sizeof(struct gptp_pdelay_req))
58 (sizeof(struct gptp_hdr) + sizeof(struct gptp_pdelay_resp))
60 (sizeof(struct gptp_hdr) + sizeof(struct gptp_pdelay_resp_follow_up))
62 (sizeof(struct gptp_hdr) + sizeof(struct gptp_signaling))
69 (sizeof(struct gptp_hdr) + sizeof(struct gptp_announce) \
321 return (uint8_t *)GPTP_HDR(pkt) + sizeof(struct gptp_hdr); in gptp_data()
Dgptp_md.c19 struct gptp_hdr *hdr; in gptp_md_sync_prepare()
35 struct gptp_hdr *hdr; in gptp_md_follow_up_prepare()
77 struct gptp_hdr *sync_hdr, *fup_hdr; in gptp_set_md_sync_receive()
199 struct gptp_hdr *hdr; in gptp_md_compute_pdelay_rate_ratio()
265 struct gptp_hdr *hdr; in gptp_md_compute_prop_time()
334 struct gptp_hdr *hdr; in gptp_md_pdelay_compute()
Dgptp.c92 struct gptp_hdr *hdr = GPTP_HDR(pkt); in gptp_handle_critical_msg()
132 struct gptp_hdr *hdr = GPTP_HDR(pkt); in gptp_handle_msg()
325 struct gptp_hdr *hdr = GPTP_HDR(pkt); in net_gptp_recv()
Dgptp_mi.c1230 struct gptp_hdr *hdr; in gptp_mi_qualify_announce()
1316 struct gptp_hdr *hdr; in compare_priority_vectors()
1385 struct gptp_hdr *hdr; in record_other_announce_info()
1405 struct gptp_hdr *hdr; in copy_priority_vector()
1426 struct gptp_hdr *hdr; in gptp_mi_port_announce_information_state_machine()
/Zephyr-Core-3.6.0/drivers/ethernet/
Deth_native_posix.c80 static bool need_timestamping(struct gptp_hdr *hdr) in need_timestamping()
91 static struct gptp_hdr *check_gptp_msg(struct net_if *iface, in check_gptp_msg()
96 struct gptp_hdr *gptp_hdr; in check_gptp_msg() local
133 gptp_hdr = (struct gptp_hdr *)pkt->frags->frags->data; in check_gptp_msg()
135 gptp_hdr = (struct gptp_hdr *)(pkt->frags->data + eth_hlen); in check_gptp_msg()
138 return gptp_hdr; in check_gptp_msg()
141 static void update_pkt_priority(struct gptp_hdr *hdr, struct net_pkt *pkt) in update_pkt_priority()
154 struct gptp_hdr *hdr; in update_gptp()
Deth_sam_gmac.c539 static struct gptp_hdr *check_gptp_msg(struct net_if *iface, in check_gptp_msg()
545 struct gptp_hdr *gptp_hdr; in check_gptp_msg() local
584 gptp_hdr = (struct gptp_hdr *)pkt->frags->frags->data; in check_gptp_msg()
586 gptp_hdr = (struct gptp_hdr *)(pkt->frags->data + eth_hlen); in check_gptp_msg()
589 return gptp_hdr; in check_gptp_msg()
592 static bool need_timestamping(struct gptp_hdr *hdr) in need_timestamping()
603 static void update_pkt_priority(struct gptp_hdr *hdr, struct net_pkt *pkt) in update_pkt_priority()
667 static inline void timestamp_tx_pkt(Gmac *gmac, struct gptp_hdr *hdr, in timestamp_tx_pkt()
687 static inline void timestamp_rx_pkt(Gmac *gmac, struct gptp_hdr *hdr, in timestamp_rx_pkt()
742 struct gptp_hdr *hdr; in tx_completed()
[all …]
/Zephyr-Core-3.6.0/include/zephyr/net/
Dgptp.h143 struct gptp_hdr { struct
338 struct gptp_hdr *gptp_get_hdr(struct net_pkt *pkt);