Lines Matching refs:igb

76 	struct igb_adapter *igb = container_of(cc, struct igb_adapter, cc);  in igb_ptp_read_82576()  local
77 struct e1000_hw *hw = &igb->hw; in igb_ptp_read_82576()
93 struct igb_adapter *igb = container_of(cc, struct igb_adapter, cc); in igb_ptp_read_82580() local
94 struct e1000_hw *hw = &igb->hw; in igb_ptp_read_82580()
196 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjfreq_82576() local
198 struct e1000_hw *hw = &igb->hw; in igb_ptp_adjfreq_82576()
225 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjfine_82580() local
227 struct e1000_hw *hw = &igb->hw; in igb_ptp_adjfine_82580()
251 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjtime_82576() local
255 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_adjtime_82576()
256 timecounter_adjtime(&igb->tc, delta); in igb_ptp_adjtime_82576()
257 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_adjtime_82576()
264 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjtime_i210() local
269 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_adjtime_i210()
271 igb_ptp_read_i210(igb, &now); in igb_ptp_adjtime_i210()
273 igb_ptp_write_i210(igb, (const struct timespec64 *)&now); in igb_ptp_adjtime_i210()
275 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_adjtime_i210()
284 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_gettimex_82576() local
286 struct e1000_hw *hw = &igb->hw; in igb_ptp_gettimex_82576()
291 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_gettimex_82576()
298 ns = timecounter_cyc2time(&igb->tc, ((u64)hi << 32) | lo); in igb_ptp_gettimex_82576()
300 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_gettimex_82576()
311 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_gettimex_82580() local
313 struct e1000_hw *hw = &igb->hw; in igb_ptp_gettimex_82580()
318 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_gettimex_82580()
326 ns = timecounter_cyc2time(&igb->tc, ((u64)hi << 32) | lo); in igb_ptp_gettimex_82580()
328 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_gettimex_82580()
339 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_gettimex_i210() local
341 struct e1000_hw *hw = &igb->hw; in igb_ptp_gettimex_i210()
344 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_gettimex_i210()
352 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_gettimex_i210()
360 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_settime_82576() local
367 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_settime_82576()
369 timecounter_init(&igb->tc, &igb->cc, ns); in igb_ptp_settime_82576()
371 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_settime_82576()
379 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_settime_i210() local
383 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_settime_i210()
385 igb_ptp_write_i210(igb, ts); in igb_ptp_settime_i210()
387 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_settime_i210()
408 static void igb_pin_extts(struct igb_adapter *igb, int chan, int pin) in igb_pin_extts() argument
419 struct e1000_hw *hw = &igb->hw; in igb_pin_extts()
444 static void igb_pin_perout(struct igb_adapter *igb, int chan, int pin, int freq) in igb_pin_perout() argument
475 struct e1000_hw *hw = &igb->hw; in igb_pin_perout()
513 struct igb_adapter *igb = in igb_ptp_feature_enable_i210() local
515 struct e1000_hw *hw = &igb->hw; in igb_ptp_feature_enable_i210()
538 pin = ptp_find_pin(igb->ptp_clock, PTP_PF_EXTTS, in igb_ptp_feature_enable_i210()
550 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
554 igb_pin_extts(igb, rq->extts.index, pin); in igb_ptp_feature_enable_i210()
563 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
572 pin = ptp_find_pin(igb->ptp_clock, PTP_PF_PEROUT, in igb_ptp_feature_enable_i210()
611 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
623 igb_pin_perout(igb, i, pin, use_freq); in igb_ptp_feature_enable_i210()
624 igb->perout[i].start.tv_sec = rq->perout.start.sec; in igb_ptp_feature_enable_i210()
625 igb->perout[i].start.tv_nsec = rq->perout.start.nsec; in igb_ptp_feature_enable_i210()
626 igb->perout[i].period.tv_sec = ts.tv_sec; in igb_ptp_feature_enable_i210()
627 igb->perout[i].period.tv_nsec = ts.tv_nsec; in igb_ptp_feature_enable_i210()
637 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
641 spin_lock_irqsave(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
647 igb->pps_sys_wrap_on = !!on; in igb_ptp_feature_enable_i210()
649 spin_unlock_irqrestore(&igb->tmreg_lock, flags); in igb_ptp_feature_enable_i210()
717 struct igb_adapter *igb = in igb_ptp_overflow_check() local
723 ns = timecounter_read(&igb->tc); in igb_ptp_overflow_check()
729 schedule_delayed_work(&igb->ptp_overflow_work, in igb_ptp_overflow_check()