Lines Matching defs:ns
64 u64 ns = timespec64_to_ns(ts);
67 return bnxt_ptp_cfg_settime(ptp->bp, ns);
70 timecounter_init(&ptp->tc, &ptp->cc, ns);
77 u64 *ns)
95 *ns = ((u64)high_now << 32) | low;
151 u64 ns, cycles;
160 ns = timecounter_cyc2time(&ptp->tc, cycles);
162 *ts = ns_to_timespec64(ns);
253 u64 ns, pps_ts;
257 ns = timecounter_cyc2time(&ptp->tc, pps_ts);
262 event.pps_times.ts_real = ns_to_timespec64(ns);
267 event.timestamp = ns;
671 u64 ns = 0;
673 bnxt_refclk_read(ptp->bp, NULL, &ns);
674 return ns;
682 u64 ts = 0, ns = 0;
695 ns = timecounter_cyc2time(&ptp->tc, ts);
697 timestamp.hwtstamp = ns_to_ktime(ns);
891 void bnxt_ptp_rtc_timecounter_init(struct bnxt_ptp_cfg *ptp, u64 ns)
893 timecounter_init(&ptp->tc, &ptp->cc, ns);
895 ptp->tc.cycle_last = ns & ptp->cc.mask;
901 u64 ns;
909 ns = timespec64_to_ns(&tsp);
910 rc = bnxt_ptp_cfg_settime(bp, ns);
915 &ns, 0);
920 bnxt_ptp_rtc_timecounter_init(bp->ptp_cfg, ns);