Lines Matching defs:ns
1200 static u64 intel_pt_ns_to_ticks(const struct intel_pt *pt, u64 ns)
1204 quot = ns / pt->tc.time_mult;
1205 rem = ns % pt->tc.time_mult;
3993 /* Find least TSC which converts to ns or later */
3994 static u64 intel_pt_tsc_start(u64 ns, struct intel_pt *pt)
3998 tsc = perf_time_to_tsc(ns, &pt->tc);
4002 if (tm < ns)
4007 while (tm < ns)
4013 /* Find greatest TSC which converts to ns or earlier */
4014 static u64 intel_pt_tsc_end(u64 ns, struct intel_pt *pt)
4018 tsc = perf_time_to_tsc(ns, &pt->tc);
4022 if (tm > ns)
4027 while (tm > ns)