Lines Matching full:adjust
463 int adjust; in igc_ptp_rx_pktstamp() local
470 /* Adjust timestamp for the RX latency based on link speed */ in igc_ptp_rx_pktstamp()
473 adjust = IGC_I225_RX_LATENCY_10; in igc_ptp_rx_pktstamp()
476 adjust = IGC_I225_RX_LATENCY_100; in igc_ptp_rx_pktstamp()
479 adjust = IGC_I225_RX_LATENCY_1000; in igc_ptp_rx_pktstamp()
482 adjust = IGC_I225_RX_LATENCY_2500; in igc_ptp_rx_pktstamp()
485 adjust = 0; in igc_ptp_rx_pktstamp()
490 return ktime_sub_ns(timestamp, adjust); in igc_ptp_rx_pktstamp()
720 int adjust = 0; in igc_ptp_tx_reg_to_stamp() local
731 adjust = IGC_I225_TX_LATENCY_10; in igc_ptp_tx_reg_to_stamp()
734 adjust = IGC_I225_TX_LATENCY_100; in igc_ptp_tx_reg_to_stamp()
737 adjust = IGC_I225_TX_LATENCY_1000; in igc_ptp_tx_reg_to_stamp()
740 adjust = IGC_I225_TX_LATENCY_2500; in igc_ptp_tx_reg_to_stamp()
745 ktime_add_ns(shhwtstamps.hwtstamp, adjust); in igc_ptp_tx_reg_to_stamp()