Lines Matching defs: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)
109 *timestamp = 0;
112 DP_INFO(p_hwfn, "Invalid Rx timestamp, buf_seqid = %d\n", val);
117 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_MSB);
118 *timestamp <<= 32;
119 *timestamp |= val;
121 /* Reset timestamp register to allow new timestamp */
128 /* Read Tx timestamp */
129 static int qed_ptp_hw_read_tx_ts(struct qed_dev *cdev, u64 *timestamp)
135 *timestamp = 0;
139 "Invalid Tx timestamp, buf_seqid = %08x\n", val);
144 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_TX_LLH_PTP_BUF_TS_MSB);
145 *timestamp <<= 32;
146 *timestamp |= val;
148 /* Reset timestamp register to allow new timestamp */