Home
last modified time | relevance | path

Searched refs:ptp_cfg (Results 1 – 10 of 10) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_ptp.c281 unsigned long *flags, u32 *ptp_cfg) in hclge_ptp_set_tx_mode() argument
289 *ptp_cfg |= HCLGE_PTP_TX_EN_B; in hclge_ptp_set_tx_mode()
299 unsigned long *flags, u32 *ptp_cfg) in hclge_ptp_set_rx_mode() argument
311 *ptp_cfg |= HCLGE_PTP_RX_EN_B; in hclge_ptp_set_rx_mode()
312 *ptp_cfg |= HCLGE_PTP_UDP_FULL_TYPE << HCLGE_PTP_UDP_EN_SHIFT; in hclge_ptp_set_rx_mode()
325 *ptp_cfg |= HCLGE_PTP_RX_EN_B; in hclge_ptp_set_rx_mode()
326 *ptp_cfg |= HCLGE_PTP_UDP_FULL_TYPE << HCLGE_PTP_UDP_EN_SHIFT; in hclge_ptp_set_rx_mode()
327 *ptp_cfg |= HCLGE_PTP_MSG1_V2_DEFAULT << HCLGE_PTP_MSG1_SHIFT; in hclge_ptp_set_rx_mode()
328 *ptp_cfg |= HCLGE_PTP_MSG0_V2_EVENT << HCLGE_PTP_MSG0_SHIFT; in hclge_ptp_set_rx_mode()
329 *ptp_cfg |= HCLGE_PTP_MSG_TYPE_V2 << HCLGE_PTP_MSG_TYPE_SHIFT; in hclge_ptp_set_rx_mode()
[all …]
Dhclge_ptp.h67 u32 ptp_cfg; member
Dhclge_debugfs.c2277 u32 sw_cfg = ptp->ptp_cfg; in hclge_dbg_dump_ptp_info()
/linux-5.19.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c78 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read()
101 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_get_current_time()
125 req->ptp_seq_id = cpu_to_le32(bp->ptp_cfg->tx_seqid); in bnxt_hwrm_port_ts_query()
126 req->ptp_hdr_offset = cpu_to_le16(bp->ptp_cfg->tx_hdr_off); in bnxt_hwrm_port_ts_query()
163 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_update_current_time()
230 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_pps_event()
252 ptp_clock_event(bp->ptp_cfg->ptp_clock, &event); in bnxt_ptp_pps_event()
258 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_cfg_pin()
309 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_cfg_tstamp_filters()
343 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_reapply_pps()
[all …]
Dbnxt.c417 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_start_xmit()
428 atomic_inc(&bp->ptp_cfg->tx_avail); in bnxt_start_xmit()
624 atomic_inc(&bp->ptp_cfg->tx_avail); in bnxt_start_xmit()
697 atomic_inc(&bp->ptp_cfg->tx_avail); in bnxt_tx_int()
2049 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_rx_pkt()
2393 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_async_event_process()
7597 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in __bnxt_hwrm_ptp_qcfg()
7629 bp->ptp_cfg = ptp; in __bnxt_hwrm_ptp_qcfg()
7653 bp->ptp_cfg = NULL; in __bnxt_hwrm_ptp_qcfg()
7748 kfree(bp->ptp_cfg); in __bnxt_hwrm_func_qcaps()
[all …]
Dbnxt.h2135 struct bnxt_ptp_cfg *ptp_cfg; member
Dbnxt_ethtool.c3801 ptp = bp->ptp_cfg; in bnxt_get_ts_info()
/linux-5.19.10/drivers/net/ethernet/freescale/dpaa2/
Ddpni.c2117 struct dpni_single_step_cfg *ptp_cfg) in dpni_get_single_step_cfg() argument
2133 ptp_cfg->offset = le16_to_cpu(rsp_params->offset); in dpni_get_single_step_cfg()
2134 ptp_cfg->en = dpni_get_field(le16_to_cpu(rsp_params->flags), in dpni_get_single_step_cfg()
2136 ptp_cfg->ch_update = dpni_get_field(le16_to_cpu(rsp_params->flags), in dpni_get_single_step_cfg()
2138 ptp_cfg->peer_delay = le32_to_cpu(rsp_params->peer_delay); in dpni_get_single_step_cfg()
2139 ptp_cfg->ptp_onestep_reg_base = in dpni_get_single_step_cfg()
2161 struct dpni_single_step_cfg *ptp_cfg) in dpni_set_single_step_cfg() argument
2171 cmd_params->offset = cpu_to_le16(ptp_cfg->offset); in dpni_set_single_step_cfg()
2172 cmd_params->peer_delay = cpu_to_le32(ptp_cfg->peer_delay); in dpni_set_single_step_cfg()
2175 dpni_set_field(flags, PTP_ENABLE, !!ptp_cfg->en); in dpni_set_single_step_cfg()
[all …]
Ddpni.h1094 struct dpni_single_step_cfg *ptp_cfg);
1099 struct dpni_single_step_cfg *ptp_cfg);
Ddpaa2-eth.c79 struct dpni_single_step_cfg ptp_cfg; in dpaa2_ptp_onestep_reg_update_method() local
87 priv->mc_token, &ptp_cfg)) { in dpaa2_ptp_onestep_reg_update_method()
92 if (!ptp_cfg.ptp_onestep_reg_base) { in dpaa2_ptp_onestep_reg_update_method()
97 priv->onestep_reg_base = ioremap(ptp_cfg.ptp_onestep_reg_base, in dpaa2_ptp_onestep_reg_update_method()