Lines Matching refs:igc

48 	struct igc_adapter *igc = container_of(ptp, struct igc_adapter,  in igc_ptp_adjfine_i225()  local
50 struct igc_hw *hw = &igc->hw; in igc_ptp_adjfine_i225()
74 struct igc_adapter *igc = container_of(ptp, struct igc_adapter, in igc_ptp_adjtime_i225() local
79 spin_lock_irqsave(&igc->tmreg_lock, flags); in igc_ptp_adjtime_i225()
81 igc_ptp_read(igc, &now); in igc_ptp_adjtime_i225()
83 igc_ptp_write_i225(igc, (const struct timespec64 *)&now); in igc_ptp_adjtime_i225()
85 spin_unlock_irqrestore(&igc->tmreg_lock, flags); in igc_ptp_adjtime_i225()
94 struct igc_adapter *igc = container_of(ptp, struct igc_adapter, in igc_ptp_gettimex64_i225() local
96 struct igc_hw *hw = &igc->hw; in igc_ptp_gettimex64_i225()
99 spin_lock_irqsave(&igc->tmreg_lock, flags); in igc_ptp_gettimex64_i225()
106 spin_unlock_irqrestore(&igc->tmreg_lock, flags); in igc_ptp_gettimex64_i225()
114 struct igc_adapter *igc = container_of(ptp, struct igc_adapter, in igc_ptp_settime_i225() local
118 spin_lock_irqsave(&igc->tmreg_lock, flags); in igc_ptp_settime_i225()
120 igc_ptp_write_i225(igc, ts); in igc_ptp_settime_i225()
122 spin_unlock_irqrestore(&igc->tmreg_lock, flags); in igc_ptp_settime_i225()
143 static void igc_pin_perout(struct igc_adapter *igc, int chan, int pin, int freq) in igc_pin_perout() argument
174 struct igc_hw *hw = &igc->hw; in igc_pin_perout()
209 static void igc_pin_extts(struct igc_adapter *igc, int chan, int pin) in igc_pin_extts() argument
220 struct igc_hw *hw = &igc->hw; in igc_pin_extts()
248 struct igc_adapter *igc = in igc_ptp_feature_enable_i225() local
250 struct igc_hw *hw = &igc->hw; in igc_ptp_feature_enable_i225()
273 pin = ptp_find_pin(igc->ptp_clock, PTP_PF_EXTTS, in igc_ptp_feature_enable_i225()
285 spin_lock_irqsave(&igc->tmreg_lock, flags); in igc_ptp_feature_enable_i225()
289 igc_pin_extts(igc, rq->extts.index, pin); in igc_ptp_feature_enable_i225()
298 spin_unlock_irqrestore(&igc->tmreg_lock, flags); in igc_ptp_feature_enable_i225()
307 pin = ptp_find_pin(igc->ptp_clock, PTP_PF_PEROUT, in igc_ptp_feature_enable_i225()
346 spin_lock_irqsave(&igc->tmreg_lock, flags); in igc_ptp_feature_enable_i225()
361 igc_pin_perout(igc, i, pin, use_freq); in igc_ptp_feature_enable_i225()
362 igc->perout[i].start.tv_sec = rq->perout.start.sec; in igc_ptp_feature_enable_i225()
363 igc->perout[i].start.tv_nsec = rq->perout.start.nsec; in igc_ptp_feature_enable_i225()
364 igc->perout[i].period.tv_sec = ts.tv_sec; in igc_ptp_feature_enable_i225()
365 igc->perout[i].period.tv_nsec = ts.tv_nsec; in igc_ptp_feature_enable_i225()
376 spin_unlock_irqrestore(&igc->tmreg_lock, flags); in igc_ptp_feature_enable_i225()
380 spin_lock_irqsave(&igc->tmreg_lock, flags); in igc_ptp_feature_enable_i225()
386 igc->pps_sys_wrap_on = on; in igc_ptp_feature_enable_i225()
388 spin_unlock_irqrestore(&igc->tmreg_lock, flags); in igc_ptp_feature_enable_i225()