Lines Matching refs:gptp_hdr

29 		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()
171 net_buf_add(pkt->buffer, sizeof(struct gptp_hdr) + extra_header); in setup_gptp_frame_debug()
189 struct gptp_hdr *hdr; in gptp_prepare_sync()
220 hdr->message_length = htons(sizeof(struct gptp_hdr) + in gptp_prepare_sync()
240 struct gptp_hdr *hdr, *sync_hdr; in gptp_prepare_follow_up()
274 hdr->message_length = htons(sizeof(struct gptp_hdr) + in gptp_prepare_follow_up()
294 struct gptp_hdr *hdr; in gptp_prepare_pdelay_req()
322 hdr->message_length = htons(sizeof(struct gptp_hdr) + in gptp_prepare_pdelay_req()
351 struct gptp_hdr *hdr, *query; in gptp_prepare_pdelay_resp()
380 hdr->message_length = htons(sizeof(struct gptp_hdr) + in gptp_prepare_pdelay_resp()
411 struct gptp_hdr *hdr, *resp_hdr; in gptp_prepare_pdelay_follow_up()
439 hdr->message_length = htons(sizeof(struct gptp_hdr) + in gptp_prepare_pdelay_follow_up()
476 struct gptp_hdr *hdr; in gptp_prepare_announce()
549 hdr->message_length = htons(sizeof(struct gptp_hdr) + in gptp_prepare_announce()
562 if (net_pkt_skip(pkt, sizeof(struct gptp_hdr) + in gptp_prepare_announce()
582 struct gptp_hdr *hdr; in gptp_handle_sync()
601 struct gptp_hdr *sync_hdr, *hdr; in gptp_handle_follow_up()
663 struct gptp_hdr *hdr, *req_hdr; in gptp_handle_pdelay_resp()
714 struct gptp_hdr *hdr, *req_hdr, *resp_hdr; in gptp_handle_pdelay_follow_up()
883 struct gptp_hdr *hdr; in gptp_send_pdelay_resp()
906 struct gptp_hdr *hdr; in gptp_send_pdelay_follow_up()