Lines Matching refs:tstamps
710 if (time_is_before_jiffies(tx->tstamps[idx].start + 2 * HZ)) { in ice_ptp_tx_tstamp()
732 ice_trace(tx_tstamp_fw_req, tx->tstamps[idx].skb, idx); in ice_ptp_tx_tstamp()
738 ice_trace(tx_tstamp_fw_done, tx->tstamps[idx].skb, idx); in ice_ptp_tx_tstamp()
746 raw_tstamp == tx->tstamps[idx].cached_tstamp) in ice_ptp_tx_tstamp()
756 tx->tstamps[idx].cached_tstamp = raw_tstamp; in ice_ptp_tx_tstamp()
758 skb = tx->tstamps[idx].skb; in ice_ptp_tx_tstamp()
759 tx->tstamps[idx].skb = NULL; in ice_ptp_tx_tstamp()
807 struct ice_tx_tstamp *tstamps; in ice_ptp_alloc_tx_tracker() local
809 tstamps = kcalloc(tx->len, sizeof(*tstamps), GFP_KERNEL); in ice_ptp_alloc_tx_tracker()
813 if (!tstamps || !in_use || !stale) { in ice_ptp_alloc_tx_tracker()
814 kfree(tstamps); in ice_ptp_alloc_tx_tracker()
821 tx->tstamps = tstamps; in ice_ptp_alloc_tx_tracker()
866 skb = tx->tstamps[idx].skb; in ice_ptp_flush_tx_tracker()
867 tx->tstamps[idx].skb = NULL; in ice_ptp_flush_tx_tracker()
918 kfree(tx->tstamps); in ice_ptp_release_tx_tracker()
919 tx->tstamps = NULL; in ice_ptp_release_tx_tracker()
2412 tx->tstamps[idx].start = jiffies; in ice_ptp_request_ts()
2413 tx->tstamps[idx].skb = skb_get(skb); in ice_ptp_request_ts()