Lines Matching refs:ptp_cfg
2121 struct dpni_single_step_cfg *ptp_cfg) in dpni_get_single_step_cfg() argument
2137 ptp_cfg->offset = le16_to_cpu(rsp_params->offset); in dpni_get_single_step_cfg()
2138 ptp_cfg->en = dpni_get_field(le16_to_cpu(rsp_params->flags), in dpni_get_single_step_cfg()
2140 ptp_cfg->ch_update = dpni_get_field(le16_to_cpu(rsp_params->flags), in dpni_get_single_step_cfg()
2142 ptp_cfg->peer_delay = le32_to_cpu(rsp_params->peer_delay); in dpni_get_single_step_cfg()
2143 ptp_cfg->ptp_onestep_reg_base = in dpni_get_single_step_cfg()
2165 struct dpni_single_step_cfg *ptp_cfg) in dpni_set_single_step_cfg() argument
2175 cmd_params->offset = cpu_to_le16(ptp_cfg->offset); in dpni_set_single_step_cfg()
2176 cmd_params->peer_delay = cpu_to_le32(ptp_cfg->peer_delay); in dpni_set_single_step_cfg()
2179 dpni_set_field(flags, PTP_ENABLE, !!ptp_cfg->en); in dpni_set_single_step_cfg()
2180 dpni_set_field(flags, PTP_CH_UPDATE, !!ptp_cfg->ch_update); in dpni_set_single_step_cfg()