Lines Matching refs:igb

82 	struct igb_adapter *igb = container_of(cc, struct igb_adapter, cc);  in igb_ptp_read_82576()  local
83 struct e1000_hw *hw = &igb->hw; in igb_ptp_read_82576()
99 struct igb_adapter *igb = container_of(cc, struct igb_adapter, cc); in igb_ptp_read_82580() local
100 struct e1000_hw *hw = &igb->hw; in igb_ptp_read_82580()
202 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjfreq_82576() local
204 struct e1000_hw *hw = &igb->hw; in igb_ptp_adjfreq_82576()
231 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjfreq_82580() local
233 struct e1000_hw *hw = &igb->hw; in igb_ptp_adjfreq_82580()
257 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjtime_82576() local
261 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_adjtime_82576()
262 timecounter_adjtime(&igb->tc, delta); in igb_ptp_adjtime_82576()
263 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_adjtime_82576()
270 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjtime_i210() local
275 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_adjtime_i210()
277 igb_ptp_read_i210(igb, &now); in igb_ptp_adjtime_i210()
279 igb_ptp_write_i210(igb, (const struct timespec64 *)&now); in igb_ptp_adjtime_i210()
281 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_adjtime_i210()
289 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_gettime_82576() local
294 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_gettime_82576()
296 ns = timecounter_read(&igb->tc); in igb_ptp_gettime_82576()
298 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_gettime_82576()
308 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_gettime_i210() local
312 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_gettime_i210()
314 igb_ptp_read_i210(igb, ts); in igb_ptp_gettime_i210()
316 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_gettime_i210()
324 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_settime_82576() local
331 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_settime_82576()
333 timecounter_init(&igb->tc, &igb->cc, ns); in igb_ptp_settime_82576()
335 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_settime_82576()
343 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_settime_i210() local
347 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_settime_i210()
349 igb_ptp_write_i210(igb, ts); in igb_ptp_settime_i210()
351 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_settime_i210()
372 static void igb_pin_extts(struct igb_adapter *igb, int chan, int pin) in igb_pin_extts() argument
383 struct e1000_hw *hw = &igb->hw; in igb_pin_extts()
408 static void igb_pin_perout(struct igb_adapter *igb, int chan, int pin) in igb_pin_perout() argument
431 struct e1000_hw *hw = &igb->hw; in igb_pin_perout()
463 struct igb_adapter *igb = in igb_ptp_feature_enable_i210() local
465 struct e1000_hw *hw = &igb->hw; in igb_ptp_feature_enable_i210()
475 pin = ptp_find_pin(igb->ptp_clock, PTP_PF_EXTTS, in igb_ptp_feature_enable_i210()
487 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
491 igb_pin_extts(igb, rq->extts.index, pin); in igb_ptp_feature_enable_i210()
500 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
505 pin = ptp_find_pin(igb->ptp_clock, PTP_PF_PEROUT, in igb_ptp_feature_enable_i210()
530 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
536 igb_pin_perout(igb, i, pin); in igb_ptp_feature_enable_i210()
537 igb->perout[i].start.tv_sec = rq->perout.start.sec; in igb_ptp_feature_enable_i210()
538 igb->perout[i].start.tv_nsec = rq->perout.start.nsec; in igb_ptp_feature_enable_i210()
539 igb->perout[i].period.tv_sec = ts.tv_sec; in igb_ptp_feature_enable_i210()
540 igb->perout[i].period.tv_nsec = ts.tv_nsec; in igb_ptp_feature_enable_i210()
551 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
555 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
562 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
626 struct igb_adapter *igb = in igb_ptp_overflow_check() local
630 igb->ptp_caps.gettime64(&igb->ptp_caps, &ts); in igb_ptp_overflow_check()
635 schedule_delayed_work(&igb->ptp_overflow_work, in igb_ptp_overflow_check()