Home
last modified time | relevance | path

Searched refs:tstamp (Results 1 – 19 of 19) sorted by relevance

/dpdk/drivers/net/cnxk/
H A Dcnxk_ptp.c143 struct cnxk_timesync_info *tstamp = &dev->tstamp; in cnxk_nix_timesync_read_rx_timestamp() local
148 if (!tstamp->rx_ready) in cnxk_nix_timesync_read_rx_timestamp()
153 tstamp->rx_ready = 0; in cnxk_nix_timesync_read_rx_timestamp()
162 struct cnxk_timesync_info *tstamp = &dev->tstamp; in cnxk_nix_timesync_read_tx_timestamp() local
165 if (*tstamp->tx_tstamp == 0) in cnxk_nix_timesync_read_tx_timestamp()
170 *tstamp->tx_tstamp = 0; in cnxk_nix_timesync_read_tx_timestamp()
180 struct cnxk_timesync_info *tstamp = &dev->tstamp; in cnxk_nix_timesync_enable() local
212 tstamp->tx_tstamp = ts->addr; in cnxk_nix_timesync_enable()
215 &tstamp->rx_tstamp_dynflag); in cnxk_nix_timesync_enable()
251 dev->tstamp.tx_tstamp_iova = 0; in cnxk_nix_timesync_enable()
[all …]
H A Dcn10k_ethdev.c157 txq->ts_mem = dev->tstamp.tx_tstamp_iova; in nix_form_default_desc()
274 rxq->tstamp = &dev->tstamp; in cn10k_nix_rx_queue_setup()
463 struct cnxk_timesync_info *tstamp = &dev->tstamp; in cn10k_nix_timesync_read_tx_timestamp() local
466 if (*tstamp->tx_tstamp == 0) in cn10k_nix_timesync_read_tx_timestamp()
469 *tstamp->tx_tstamp = ((*tstamp->tx_tstamp >> 32) * NSEC_PER_SEC) + in cn10k_nix_timesync_read_tx_timestamp()
470 (*tstamp->tx_tstamp & 0xFFFFFFFFUL); in cn10k_nix_timesync_read_tx_timestamp()
471 ns = rte_timecounter_update(&dev->tx_tstamp_tc, *tstamp->tx_tstamp); in cn10k_nix_timesync_read_tx_timestamp()
473 *tstamp->tx_tstamp = 0; in cn10k_nix_timesync_read_tx_timestamp()
H A Dcn9k_ethdev.c157 txq->ts_mem = dev->tstamp.tx_tstamp_iova; in nix_form_default_desc()
267 rxq->tstamp = &dev->tstamp; in cn9k_nix_rx_queue_setup()
477 struct cnxk_timesync_info *tstamp = &dev->tstamp; in cn9k_nix_timesync_read_tx_timestamp() local
480 if (*tstamp->tx_tstamp == 0) in cn9k_nix_timesync_read_tx_timestamp()
483 ns = rte_timecounter_update(&dev->tx_tstamp_tc, *tstamp->tx_tstamp); in cn9k_nix_timesync_read_tx_timestamp()
485 *tstamp->tx_tstamp = 0; in cn9k_nix_timesync_read_tx_timestamp()
H A Dcn9k_rx.h440 struct cnxk_timesync_info *tstamp, in cn9k_nix_mbuf_to_tstamp() argument
450 *cnxk_nix_timestamp_dynfield(mbuf, tstamp) = in cn9k_nix_mbuf_to_tstamp()
456 tstamp->rx_tstamp = in cn9k_nix_mbuf_to_tstamp()
457 *cnxk_nix_timestamp_dynfield(mbuf, tstamp); in cn9k_nix_mbuf_to_tstamp()
458 tstamp->rx_ready = 1; in cn9k_nix_mbuf_to_tstamp()
461 tstamp->rx_tstamp_dynflag; in cn9k_nix_mbuf_to_tstamp()
494 cn9k_nix_mbuf_to_tstamp(mbuf, rxq->tstamp, in cn9k_nix_recv_pkts()
709 rxq->tstamp->rx_tstamp_dynflag; in cn9k_nix_recv_pkts_vector()
747 *cnxk_nix_timestamp_dynfield(mbuf0, rxq->tstamp) = in cn9k_nix_recv_pkts_vector()
780 rxq->tstamp->rx_ready = 1; in cn9k_nix_recv_pkts_vector()
[all …]
H A Dcn10k_rx.h827 struct cnxk_timesync_info *tstamp, in cn10k_nix_mbuf_to_tstamp() argument
845 tstamp->rx_tstamp = in cn10k_nix_mbuf_to_tstamp()
847 tstamp->rx_ready = 1; in cn10k_nix_mbuf_to_tstamp()
850 tstamp->rx_tstamp_dynflag; in cn10k_nix_mbuf_to_tstamp()
911 cn10k_nix_mbuf_to_tstamp(mbuf, rxq->tstamp, in cn10k_nix_recv_pkts()
986 struct cnxk_timesync_info *tstamp, in cn10k_nix_recv_pkts_vector() argument
1025 tstamp = rxq->tstamp; in cn10k_nix_recv_pkts_vector()
1586 tstamp->rx_tstamp_dynflag; in cn10k_nix_recv_pkts_vector()
1653 tstamp->rx_ready = 1; in cn10k_nix_recv_pkts_vector()
1804 struct cnxk_timesync_info *tstamp, in cn10k_nix_recv_pkts_vector() argument
[all …]
H A Dcn9k_ethdev.h41 struct cnxk_timesync_info *tstamp; member
H A Dcn10k_ethdev.h44 struct cnxk_timesync_info *tstamp; member
H A Dcnxk_ethdev.c1527 memset(&dev->tstamp, 0, sizeof(struct cnxk_timesync_info)); in cnxk_nix_dev_start()
1535 (&dev->tstamp.tstamp_dynfield_offset, in cnxk_nix_dev_start()
1536 &dev->tstamp.rx_tstamp_dynflag); in cnxk_nix_dev_start()
H A Dcnxk_ethdev.h407 struct cnxk_timesync_info tstamp; member
/dpdk/examples/ptpclient/
H A Dptpclient.c55 struct tstamp { struct
87 struct tstamp origin_tstamp;
92 struct tstamp precise_origin_tstamp;
98 struct tstamp origin_tstamp;
103 struct tstamp rx_tstamp;
391 struct tstamp *origin_tstamp; in parse_fup()
536 struct tstamp *rx_tstamp; in parse_drsp()
/dpdk/drivers/event/cnxk/
H A Dcn9k_eventdev.c126 struct cnxk_timesync_info *tstamp; in cn9k_sso_hws_flush_events() local
152 tstamp = dws->tstamp; in cn9k_sso_hws_flush_events()
157 tstamp = ws->tstamp; in cn9k_sso_hws_flush_events()
163 lookup_mem, tstamp); in cn9k_sso_hws_flush_events()
848 dev->dual_ws ? dws->tstamp : ws->tstamp); in cn9k_sso_port_quiesce()
956 dws->tstamp = tstmp_info; in cn9k_sso_set_priv_mem()
960 ws->tstamp = tstmp_info; in cn9k_sso_set_priv_mem()
987 tstmp_info = rxq->tstamp; in cn9k_sso_rx_adapter_queue_add()
H A Dcnxk_eventdev.h143 struct cnxk_timesync_info *tstamp; member
163 struct cnxk_timesync_info *tstamp; member
180 struct cnxk_timesync_info *tstamp; member
H A Dcn9k_worker.h175 struct cnxk_timesync_info *tstamp) in cn9k_sso_hws_post_process() argument
193 cn9k_nix_mbuf_to_tstamp((struct rte_mbuf *)mbuf, tstamp, in cn9k_sso_hws_post_process()
239 dws->tstamp); in cn9k_sso_hws_dual_get_work()
289 ws->tstamp); in cn9k_sso_hws_get_work()
301 struct cnxk_timesync_info *tstamp) in cn9k_sso_hws_get_work_empty() argument
336 tstamp); in cn9k_sso_hws_get_work_empty()
H A Dcn10k_worker.h113 void *lookup_mem, void *tstamp, uintptr_t lbase) in cn10k_process_vwqe() argument
139 tstamp, lbase); in cn10k_process_vwqe()
184 cn10k_nix_mbuf_to_tstamp((struct rte_mbuf *)mbuf, tstamp, in cn10k_process_vwqe()
252 cn10k_nix_mbuf_to_tstamp((struct rte_mbuf *)mbuf, ws->tstamp, in cn10k_sso_hws_post_process()
265 ws->tstamp, ws->lmt_base); in cn10k_sso_hws_post_process()
H A Dcn10k_eventdev.c705 ws->tstamp = tstmp_info; in cn10k_sso_set_priv_mem()
730 tstmp_info = rxq->tstamp; in cn10k_sso_rx_adapter_queue_add()
/dpdk/drivers/net/ice/base/
H A Dice_ptp_hw.c635 ice_read_phy_tstamp_e822(struct ice_hw *hw, u8 quad, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e822() argument
662 *tstamp = ((u64)hi) << TS_PHY_HIGH_S | ((u64)lo & TS_PHY_LOW_M); in ice_read_phy_tstamp_e822()
2762 ice_read_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e810() argument
2787 *tstamp = ((u64)hi) << TS_HIGH_S | ((u64)lo & TS_LOW_M); in ice_read_phy_tstamp_e810()
3629 ice_read_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx, u64 *tstamp) in ice_read_phy_tstamp() argument
3632 return ice_read_phy_tstamp_e810(hw, block, idx, tstamp); in ice_read_phy_tstamp()
3634 return ice_read_phy_tstamp_e822(hw, block, idx, tstamp); in ice_read_phy_tstamp()
H A Dice_ptp_hw.h140 ice_read_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx, u64 *tstamp);
/dpdk/drivers/net/octeontx/
H A Docteontx_rxtx.h47 uint64_t tstamp : 1; member
/dpdk/drivers/net/ice/
H A Dice_ethdev.c5771 uint64_t ts_ns, ns, tstamp; in ice_timesync_read_tx_timestamp() local
5777 ret = ice_read_phy_tstamp(hw, lport, 0, &tstamp); in ice_timesync_read_tx_timestamp()
5783 ts_ns = ice_tstamp_convert_32b_64b(hw, ad, 1, (tstamp >> 8) & mask); in ice_timesync_read_tx_timestamp()