Lines Matching refs:ns
171 u64 ns; in igb_ptp_systim_to_hwtstamp() local
180 ns = timecounter_cyc2time(&adapter->tc, systim); in igb_ptp_systim_to_hwtstamp()
185 hwtstamps->hwtstamp = ns_to_ktime(ns); in igb_ptp_systim_to_hwtstamp()
292 u64 ns; in igb_ptp_gettime_82576() local
296 ns = timecounter_read(&igb->tc); in igb_ptp_gettime_82576()
300 *ts = ns_to_timespec64(ns); in igb_ptp_gettime_82576()
327 u64 ns; in igb_ptp_settime_82576() local
329 ns = timespec64_to_ns(ts); in igb_ptp_settime_82576()
333 timecounter_init(&igb->tc, &igb->cc, ns); in igb_ptp_settime_82576()
484 s64 ns; in igb_ptp_feature_enable_i210() local
526 ns = timespec64_to_ns(&ts); in igb_ptp_feature_enable_i210()
527 ns = ns >> 1; in igb_ptp_feature_enable_i210()
528 if (on && ns <= 70000000LL) { in igb_ptp_feature_enable_i210()
529 if (ns < 8LL) in igb_ptp_feature_enable_i210()
533 ts = ns_to_timespec64(ns); in igb_ptp_feature_enable_i210()
577 wr32(freqout, ns); in igb_ptp_feature_enable_i210()