Lines Matching refs:tstamp
566 struct igc_tx_timestamp_request *tstamp = &adapter->tx_tstamp[i]; in igc_ptp_clear_tx_tstamp() local
568 dev_kfree_skb_any(tstamp->skb); in igc_ptp_clear_tx_tstamp()
569 tstamp->skb = NULL; in igc_ptp_clear_tx_tstamp()
668 struct igc_tx_timestamp_request *tstamp) in igc_ptp_tx_timeout() argument
670 dev_kfree_skb_any(tstamp->skb); in igc_ptp_tx_timeout()
671 tstamp->skb = NULL; in igc_ptp_tx_timeout()
679 struct igc_tx_timestamp_request *tstamp; in igc_ptp_tx_hang() local
688 tstamp = &adapter->tx_tstamp[i]; in igc_ptp_tx_hang()
690 if (!tstamp->skb) in igc_ptp_tx_hang()
693 if (time_is_after_jiffies(tstamp->start + IGC_PTP_TX_TIMEOUT)) in igc_ptp_tx_hang()
696 igc_ptp_tx_timeout(adapter, tstamp); in igc_ptp_tx_hang()
711 struct igc_tx_timestamp_request *tstamp, u64 regval) in igc_ptp_tx_reg_to_stamp() argument
717 skb = tstamp->skb; in igc_ptp_tx_reg_to_stamp()
742 tstamp->skb = NULL; in igc_ptp_tx_reg_to_stamp()
809 struct igc_tx_timestamp_request *tstamp = &adapter->tx_tstamp[i]; in igc_ptp_tx_hwtstamp() local
811 if (!(tstamp->mask & mask)) in igc_ptp_tx_hwtstamp()
814 regval = rd32(tstamp->regl); in igc_ptp_tx_hwtstamp()
815 regval |= (u64)rd32(tstamp->regh) << 32; in igc_ptp_tx_hwtstamp()
817 igc_ptp_tx_reg_to_stamp(adapter, tstamp, regval); in igc_ptp_tx_hwtstamp()
911 static struct system_counterval_t igc_device_tstamp_to_system(u64 tstamp) in igc_device_tstamp_to_system() argument
914 return convert_art_ns_to_tsc(tstamp); in igc_device_tstamp_to_system()
1048 struct igc_tx_timestamp_request *tstamp; in igc_ptp_init() local
1052 tstamp = &adapter->tx_tstamp[0]; in igc_ptp_init()
1053 tstamp->mask = IGC_TSYNCTXCTL_TXTT_0; in igc_ptp_init()
1054 tstamp->regl = IGC_TXSTMPL_0; in igc_ptp_init()
1055 tstamp->regh = IGC_TXSTMPH_0; in igc_ptp_init()
1056 tstamp->flags = 0; in igc_ptp_init()
1058 tstamp = &adapter->tx_tstamp[1]; in igc_ptp_init()
1059 tstamp->mask = IGC_TSYNCTXCTL_TXTT_1; in igc_ptp_init()
1060 tstamp->regl = IGC_TXSTMPL_1; in igc_ptp_init()
1061 tstamp->regh = IGC_TXSTMPH_1; in igc_ptp_init()
1062 tstamp->flags = IGC_TX_FLAGS_TSTAMP_1; in igc_ptp_init()
1064 tstamp = &adapter->tx_tstamp[2]; in igc_ptp_init()
1065 tstamp->mask = IGC_TSYNCTXCTL_TXTT_2; in igc_ptp_init()
1066 tstamp->regl = IGC_TXSTMPL_2; in igc_ptp_init()
1067 tstamp->regh = IGC_TXSTMPH_2; in igc_ptp_init()
1068 tstamp->flags = IGC_TX_FLAGS_TSTAMP_2; in igc_ptp_init()
1070 tstamp = &adapter->tx_tstamp[3]; in igc_ptp_init()
1071 tstamp->mask = IGC_TSYNCTXCTL_TXTT_3; in igc_ptp_init()
1072 tstamp->regl = IGC_TXSTMPL_3; in igc_ptp_init()
1073 tstamp->regh = IGC_TXSTMPH_3; in igc_ptp_init()
1074 tstamp->flags = IGC_TX_FLAGS_TSTAMP_3; in igc_ptp_init()