Lines Matching full:timestamp
23 /* Param mask for Hardware to detect/timestamp the L2/L4 unicast PTP packets */
102 /* Read Rx timestamp */
103 static int qed_ptp_hw_read_rx_ts(struct qed_dev *cdev, u64 *timestamp) in qed_ptp_hw_read_rx_ts() argument
109 *timestamp = 0; in qed_ptp_hw_read_rx_ts()
112 DP_INFO(p_hwfn, "Invalid Rx timestamp, buf_seqid = %d\n", val); in qed_ptp_hw_read_rx_ts()
117 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_MSB); in qed_ptp_hw_read_rx_ts()
118 *timestamp <<= 32; in qed_ptp_hw_read_rx_ts()
119 *timestamp |= val; in qed_ptp_hw_read_rx_ts()
121 /* Reset timestamp register to allow new timestamp */ in qed_ptp_hw_read_rx_ts()
128 /* Read Tx timestamp */
129 static int qed_ptp_hw_read_tx_ts(struct qed_dev *cdev, u64 *timestamp) in qed_ptp_hw_read_tx_ts() argument
135 *timestamp = 0; in qed_ptp_hw_read_tx_ts()
139 "Invalid Tx timestamp, buf_seqid = %08x\n", val); in qed_ptp_hw_read_tx_ts()
144 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_TX_LLH_PTP_BUF_TS_MSB); in qed_ptp_hw_read_tx_ts()
145 *timestamp <<= 32; in qed_ptp_hw_read_tx_ts()
146 *timestamp |= val; in qed_ptp_hw_read_tx_ts()
148 /* Reset timestamp register to allow new timestamp */ in qed_ptp_hw_read_tx_ts()