Lines Matching refs:mgmt_tlv

41 static int tlv_mgmt_post_recv(struct ptp_tlv_mgmt *mgmt_tlv, uint16_t length)  in tlv_mgmt_post_recv()  argument
51 enum ptp_mgmt_id id = (enum ptp_mgmt_id)mgmt_tlv->id; in tlv_mgmt_post_recv()
73 container = CONTAINER_OF((void *)mgmt_tlv, struct ptp_tlv_container, tlv); in tlv_mgmt_post_recv()
76 data = mgmt_tlv->data; in tlv_mgmt_post_recv()
185 container = CONTAINER_OF((void *)mgmt_tlv, struct ptp_tlv_container, tlv); in tlv_mgmt_post_recv()
190 container->clock_desc.user_desc = (struct ptp_text *)mgmt_tlv->data; in tlv_mgmt_post_recv()
196 default_ds = (struct ptp_tlv_default_ds *)mgmt_tlv->data; in tlv_mgmt_post_recv()
206 current_ds = (struct ptp_tlv_current_ds *)mgmt_tlv->data; in tlv_mgmt_post_recv()
216 parent_ds = (struct ptp_tlv_parent_ds *)mgmt_tlv->data; in tlv_mgmt_post_recv()
230 time_prop_ds = (struct ptp_tlv_time_prop_ds *)mgmt_tlv->data; in tlv_mgmt_post_recv()
238 port_ds = (struct ptp_tlv_port_ds *)mgmt_tlv->data; in tlv_mgmt_post_recv()
244 ts = *(struct ptp_timestamp *)mgmt_tlv->data; in tlv_mgmt_post_recv()
250 memcpy(mgmt_tlv->data, &ts, sizeof(ts)); in tlv_mgmt_post_recv()
259 static void tlv_mgmt_pre_send(struct ptp_tlv_mgmt *mgmt_tlv) in tlv_mgmt_pre_send() argument
261 enum ptp_mgmt_id id = (enum ptp_mgmt_id)mgmt_tlv->id; in tlv_mgmt_pre_send()
273 container = CONTAINER_OF((void *)mgmt_tlv, struct ptp_tlv_container, tlv); in tlv_mgmt_pre_send()
282 default_ds = (struct ptp_tlv_default_ds *)mgmt_tlv->data; in tlv_mgmt_pre_send()
289 current_ds = (struct ptp_tlv_current_ds *)mgmt_tlv->data; in tlv_mgmt_pre_send()
296 parent_ds = (struct ptp_tlv_parent_ds *)mgmt_tlv->data; in tlv_mgmt_pre_send()
307 time_prop_ds = (struct ptp_tlv_time_prop_ds *)mgmt_tlv->data; in tlv_mgmt_pre_send()
312 port_ds = (struct ptp_tlv_port_ds *)mgmt_tlv->data; in tlv_mgmt_pre_send()
318 ts = *(struct ptp_timestamp *)mgmt_tlv->data; in tlv_mgmt_pre_send()
324 memcpy(mgmt_tlv->data, &ts, sizeof(ts)); in tlv_mgmt_pre_send()