Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_ptp.c273 unsigned long *flags, u32 *ptp_cfg) in hclge_ptp_set_tx_mode() argument
281 *ptp_cfg |= HCLGE_PTP_TX_EN_B; in hclge_ptp_set_tx_mode()
291 unsigned long *flags, u32 *ptp_cfg) in hclge_ptp_set_rx_mode() argument
303 *ptp_cfg |= HCLGE_PTP_RX_EN_B; in hclge_ptp_set_rx_mode()
317 *ptp_cfg |= HCLGE_PTP_RX_EN_B; in hclge_ptp_set_rx_mode()
338 u32 ptp_cfg = 0; in hclge_ptp_set_ts_mode() local
342 ptp_cfg |= HCLGE_PTP_EN_B; in hclge_ptp_set_ts_mode()
344 ret = hclge_ptp_set_tx_mode(cfg, &flags, &ptp_cfg); in hclge_ptp_set_ts_mode()
348 ret = hclge_ptp_set_rx_mode(cfg, &flags, &ptp_cfg); in hclge_ptp_set_ts_mode()
352 ret = hclge_ptp_cfg(hdev, ptp_cfg); in hclge_ptp_set_ts_mode()
[all …]
H A Dhclge_ptp.h67 u32 ptp_cfg; member
H A Dhclge_debugfs.c3000 u32 sw_cfg = ptp->ptp_cfg; in hclge_dbg_dump_ptp_info()
/linux-6.15/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c80 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in __bnxt_refclk_read()
104 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read()
118 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read_low()
139 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_get_current_time()
204 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_update_current_time()
285 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_pps_event()
311 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_cfg_pin()
362 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_cfg_tstamp_filters()
400 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_reapply_pps()
572 ptp = bp->ptp_cfg; in bnxt_hwtstamp_set()
[all …]
H A Dbnxt.c5648 !bp->ptp_cfg) in bnxt_hwrm_func_drv_rgtr()
9521 bp->ptp_cfg = ptp; in __bnxt_hwrm_ptp_qcfg()
9549 bp->ptp_cfg = NULL; in __bnxt_hwrm_ptp_qcfg()
9663 kfree(bp->ptp_cfg); in __bnxt_hwrm_func_qcaps()
9664 bp->ptp_cfg = NULL; in __bnxt_hwrm_func_qcaps()
16051 kfree(bp->ptp_cfg); in bnxt_remove_one()
16052 bp->ptp_cfg = NULL; in bnxt_remove_one()
16699 kfree(bp->ptp_cfg); in bnxt_init_one()
16700 bp->ptp_cfg = NULL; in bnxt_init_one()
16806 kfree(bp->ptp_cfg); in bnxt_resume()
[all …]
H A Dbnxt.h2711 struct bnxt_ptp_cfg *ptp_cfg; member
H A Dbnxt_ethtool.c5234 ptp = bp->ptp_cfg; in bnxt_get_ts_info()
5450 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_get_ptp_stats()
/linux-6.15/drivers/net/ethernet/freescale/dpaa2/
H A Ddpni.c2121 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()
[all …]
H A Ddpni.h1103 struct dpni_single_step_cfg *ptp_cfg);
1108 struct dpni_single_step_cfg *ptp_cfg);
H A 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()