Lines Matching refs:mgmt
735 struct ptp_tlv_mgmt *mgmt; in port_management_resp_tlv_fill() local
749 mgmt = (struct ptp_tlv_mgmt *)container->tlv; in port_management_resp_tlv_fill()
750 mgmt->type = PTP_TLV_TYPE_MANAGEMENT; in port_management_resp_tlv_fill()
751 mgmt->id = req_mgmt->id; in port_management_resp_tlv_fill()
753 switch (mgmt->id) { in port_management_resp_tlv_fill()
755 tlv_dds = (struct ptp_tlv_default_ds *)mgmt->data; in port_management_resp_tlv_fill()
768 memcpy(mgmt->data, cds, sizeof(struct ptp_tlv_current_ds)); in port_management_resp_tlv_fill()
771 tlv_pds = (struct ptp_tlv_parent_ds *)mgmt->data; in port_management_resp_tlv_fill()
790 memcpy(mgmt->data, tpds, sizeof(struct ptp_tlv_time_prop_ds)); in port_management_resp_tlv_fill()
794 memcpy(mgmt->data, &port->port_ds, sizeof(struct ptp_tlv_port_ds)); in port_management_resp_tlv_fill()
798 *mgmt->data = dds->priority1; in port_management_resp_tlv_fill()
802 *mgmt->data = dds->priority2; in port_management_resp_tlv_fill()
806 *mgmt->data = dds->domain; in port_management_resp_tlv_fill()
810 *mgmt->data = dds->time_receiver_only; in port_management_resp_tlv_fill()
814 *mgmt->data = port->port_ds.log_announce_interval; in port_management_resp_tlv_fill()
818 *mgmt->data = port->port_ds.log_sync_interval; in port_management_resp_tlv_fill()
822 *mgmt->data = port->port_ds.version; in port_management_resp_tlv_fill()
826 *mgmt->data = dds->clk_quality.accuracy; in port_management_resp_tlv_fill()
830 *(uint16_t *)mgmt->data = port->port_ds.delay_mechanism; in port_management_resp_tlv_fill()
839 mgmt->data[length] = 0; in port_management_resp_tlv_fill()
843 container->tlv->length = sizeof(mgmt->id) + length; in port_management_resp_tlv_fill()
1473 struct ptp_tlv_mgmt *mgmt = (struct ptp_tlv_mgmt *)msg->management.suffix; in ptp_port_management_error() local
1492 mgmt_err->id = mgmt->id; in ptp_port_management_error()