Home
last modified time | relevance | path

Searched refs:nsecs (Results 1 – 76 of 76) sorted by relevance

/linux-4.4.14/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
DUtil.pm32 sub nsecs subroutine
34 my ($secs, $nsecs) = @_;
36 return $secs * $NSECS_PER_SEC + $nsecs;
40 my ($nsecs) = @_;
42 return $nsecs / $NSECS_PER_SEC;
46 my ($nsecs) = @_;
48 return $nsecs % $NSECS_PER_SEC;
52 my ($nsecs) = @_;
54 my $str = sprintf("%5u.%09u", nsecs_secs($nsecs), nsecs_nsecs($nsecs));
/linux-4.4.14/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py22 def nsecs(secs, nsecs): function
23 return secs * NSECS_PER_SEC + nsecs
25 def nsecs_secs(nsecs): argument
26 return nsecs / NSECS_PER_SEC
28 def nsecs_nsecs(nsecs): argument
29 return nsecs % NSECS_PER_SEC
31 def nsecs_str(nsecs): argument
32 str = "%5u.%09u" % (nsecs_secs(nsecs), nsecs_nsecs(nsecs)),
DCore.py113 self.nsecs = common_nsecs
119 return (self.secs * (10 ** 9)) + self.nsecs
122 return "%d.%d" % (self.secs, int(self.nsecs / 1000))
/linux-4.4.14/drivers/spi/
Dspi-bitbang-txrx.h47 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0() argument
63 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_be_cpha0()
66 spidelay(nsecs); in bitbang_txrx_be_cpha0()
79 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha1() argument
96 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_be_cpha1()
99 spidelay(nsecs); in bitbang_txrx_be_cpha1()
Dspi-gpio.c134 #define spidelay(nsecs) do {} while (0) argument
153 unsigned nsecs, u32 word, u8 bits) in spi_gpio_txrx_word_mode0() argument
155 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); in spi_gpio_txrx_word_mode0()
159 unsigned nsecs, u32 word, u8 bits) in spi_gpio_txrx_word_mode1() argument
161 return bitbang_txrx_be_cpha1(spi, nsecs, 0, 0, word, bits); in spi_gpio_txrx_word_mode1()
165 unsigned nsecs, u32 word, u8 bits) in spi_gpio_txrx_word_mode2() argument
167 return bitbang_txrx_be_cpha0(spi, nsecs, 1, 0, word, bits); in spi_gpio_txrx_word_mode2()
171 unsigned nsecs, u32 word, u8 bits) in spi_gpio_txrx_word_mode3() argument
173 return bitbang_txrx_be_cpha1(spi, nsecs, 1, 0, word, bits); in spi_gpio_txrx_word_mode3()
187 unsigned nsecs, u32 word, u8 bits) in spi_gpio_spec_txrx_word_mode0() argument
[all …]
Dspi-bitbang.c50 unsigned nsecs; /* (clock cycle time)/2 */ member
51 u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs,
56 unsigned nsecs,
64 unsigned nsecs, in bitbang_txrx_8() argument
90 unsigned nsecs, in bitbang_txrx_16() argument
116 unsigned nsecs, in bitbang_txrx_32() argument
169 cs->nsecs = (1000000000/2) / hz; in spi_bitbang_setup_transfer()
170 if (cs->nsecs > (MAX_UDELAY_MS * 1000 * 1000)) in spi_bitbang_setup_transfer()
206 dev_dbg(&spi->dev, "%s, %u nsec/bit\n", __func__, 2 * cs->nsecs); in spi_bitbang_setup()
217 ndelay(cs->nsecs); in spi_bitbang_setup()
[all …]
Dspi-sh-sci.c83 unsigned nsecs, u32 word, u8 bits) in sh_sci_spi_txrx_mode0() argument
85 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); in sh_sci_spi_txrx_mode0()
89 unsigned nsecs, u32 word, u8 bits) in sh_sci_spi_txrx_mode1() argument
91 return bitbang_txrx_be_cpha1(spi, nsecs, 0, 0, word, bits); in sh_sci_spi_txrx_mode1()
95 unsigned nsecs, u32 word, u8 bits) in sh_sci_spi_txrx_mode2() argument
97 return bitbang_txrx_be_cpha0(spi, nsecs, 1, 0, word, bits); in sh_sci_spi_txrx_mode2()
101 unsigned nsecs, u32 word, u8 bits) in sh_sci_spi_txrx_mode3() argument
103 return bitbang_txrx_be_cpha1(spi, nsecs, 1, 0, word, bits); in sh_sci_spi_txrx_mode3()
Dspi-ath79.c60 static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned nsecs) in ath79_spi_delay() argument
62 if (nsecs > sp->rrw_delay) in ath79_spi_delay()
63 ndelay(nsecs - sp->rrw_delay); in ath79_spi_delay()
178 static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned nsecs, in ath79_spi_txrx_mode0() argument
195 ath79_spi_delay(sp, nsecs); in ath79_spi_txrx_mode0()
197 ath79_spi_delay(sp, nsecs); in ath79_spi_txrx_mode0()
Dspi-sh-hspi.c160 const int nsecs = 50; in hspi_transfer_one_message() local
171 ndelay(nsecs); in hspi_transfer_one_message()
205 ndelay(nsecs); in hspi_transfer_one_message()
207 ndelay(nsecs); in hspi_transfer_one_message()
213 ndelay(nsecs); in hspi_transfer_one_message()
Dspi-lm70llp.c188 static u32 lm70_txrx(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits) in lm70_txrx() argument
190 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); in lm70_txrx()
Dspi-butterfly.c153 unsigned nsecs, in butterfly_txrx_word_mode0() argument
156 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); in butterfly_txrx_word_mode0()
Dspi-fsl-spi.c362 const int nsecs = 50; in fsl_spi_do_one_msg() local
389 ndelay(nsecs); in fsl_spi_do_one_msg()
404 ndelay(nsecs); in fsl_spi_do_one_msg()
406 ndelay(nsecs); in fsl_spi_do_one_msg()
414 ndelay(nsecs); in fsl_spi_do_one_msg()
Dspi-fsl-lib.h60 unsigned nsecs; /* (clock cycle time)/2 */ member
Dspi-xtensa-xtfpga.c56 static u32 xtfpga_spi_txrx_word(struct spi_device *spi, unsigned nsecs, in xtfpga_spi_txrx_word() argument
/linux-4.4.14/arch/s390/lib/
Ddelay.c116 void __ndelay(unsigned long long nsecs) in __ndelay() argument
120 nsecs <<= 9; in __ndelay()
121 do_div(nsecs, 125); in __ndelay()
122 end = get_tod_clock_fast() + nsecs; in __ndelay()
123 if (nsecs & ~0xfffUL) in __ndelay()
124 __udelay(nsecs >> 12); in __ndelay()
/linux-4.4.14/arch/alpha/lib/
Dudelay.c50 ndelay(unsigned long nsecs) in ndelay() argument
52 nsecs *= (((unsigned long)HZ << 32) / 1000000000) * LPJ; in ndelay()
53 __delay((long)nsecs >> 32); in ndelay()
/linux-4.4.14/net/netfilter/
Dnft_limit.c27 u64 nsecs; member
65 limit->nsecs = unit * NSEC_PER_SEC; in nft_limit_init()
66 if (limit->rate == 0 || limit->nsecs < unit) in nft_limit_init()
68 limit->tokens = limit->tokens_max = limit->nsecs; in nft_limit_init()
89 u64 secs = div_u64(limit->nsecs, NSEC_PER_SEC); in nft_limit_dump()
136 priv->cost = div_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_pkts_init()
161 u64 cost = div_u64(priv->nsecs * pkt->skb->len, priv->rate); in nft_limit_pkt_bytes_eval()
/linux-4.4.14/arch/arm/plat-omap/
Dcounter_32k.c59 unsigned long long nsecs; in omap_read_persistent_clock64() local
65 nsecs = clocksource_cyc2ns(cycles - last_cycles, in omap_read_persistent_clock64()
68 timespec64_add_ns(&persistent_ts, nsecs); in omap_read_persistent_clock64()
/linux-4.4.14/arch/arm/vdso/
Dvgettimeofday.c138 u64 nsecs; in do_realtime() local
148 nsecs = get_ns(vdata); in do_realtime()
153 timespec_add_ns(ts, nsecs); in do_realtime()
161 u64 nsecs; in do_monotonic() local
171 nsecs = get_ns(vdata); in do_monotonic()
180 timespec_add_ns(ts, nsecs + tomono.tv_nsec); in do_monotonic()
/linux-4.4.14/tools/perf/scripts/python/
Dnetdev-times.py230 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
236 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
242 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret)
256 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
262 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
268 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
274 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
280 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
[all …]
Dcompaction-times.py96 def complete(self, secs, nsecs): argument
97 self.ns = ns(secs, nsecs) - self.ns
141 def complete_pending(cls, pid, secs, nsecs): argument
145 head.make_complete(secs, nsecs)
172 def mark_pending(self, secs, nsecs): argument
173 self.pending = cnode(ns(secs, nsecs))
178 def make_complete(self, secs, nsecs): argument
179 self.pending.complete(secs, nsecs)
Dfutex-contention.py32 thread_blocktime[tid] = nsecs(s, ns)
37 elapsed = nsecs(s, ns) - thread_blocktime[tid]
Dcheck-perf-trace.py60 def print_header(event_name, cpu, secs, nsecs, pid, comm): argument
62 (event_name, cpu, secs, nsecs, pid, comm),
/linux-4.4.14/arch/um/os-Linux/
Dtime.c170 void os_idle_sleep(unsigned long long nsecs) in os_idle_sleep() argument
174 if (nsecs <= 0) { in os_idle_sleep()
179 .tv_sec = nsecs / UM_NSEC_PER_SEC, in os_idle_sleep()
180 .tv_nsec = nsecs % UM_NSEC_PER_SEC in os_idle_sleep()
/linux-4.4.14/tools/perf/Documentation/
Dperf-script-perl.txt99 $common_nsecs the nsecs portion of the event timestamp
208 nsecs($secs, $nsecs) - returns total nsecs given secs/nsecs pair
209 nsecs_secs($nsecs) - returns whole secs portion given nsecs
210 nsecs_nsecs($nsecs) - returns nsecs remainder given nsecs
211 nsecs_str($nsecs) - returns printable string in the form secs.nsecs
Dperf-script-python.txt157 def print_header(event_name, cpu, secs, nsecs, pid, comm):
159 (event_name, cpu, secs, nsecs, pid, comm),
495 common_nsecs the nsecs portion of the event timestamp
612 nsecs(secs, nsecs) - returns total nsecs given secs/nsecs pair
613 nsecs_secs(nsecs) - returns whole secs portion given nsecs
614 nsecs_nsecs(nsecs) - returns nsecs remainder given nsecs
615 nsecs_str(nsecs) - returns printable string in the form secs.nsecs
Dperf-timechart.txt69 --io-min-time=<nsecs>::
74 --io-merge-dist=<nsecs>::
/linux-4.4.14/arch/sh/lib64/
Dudelay.c46 void __ndelay(unsigned long nsecs) in __ndelay() argument
48 __const_udelay(nsecs * 0x00000005); in __ndelay()
/linux-4.4.14/arch/um/kernel/
Dtime.c124 long long nsecs = os_persistent_clock_emulation(); in read_persistent_clock() local
126 set_normalized_timespec(ts, nsecs / NSEC_PER_SEC, in read_persistent_clock()
127 nsecs % NSEC_PER_SEC); in read_persistent_clock()
/linux-4.4.14/arch/sh/lib/
Ddelay.c49 void __ndelay(unsigned long nsecs) in __ndelay() argument
51 __const_udelay(nsecs * 0x00000005); in __ndelay()
/linux-4.4.14/arch/blackfin/include/asm/
Ddelay.h44 static inline void ndelay(unsigned long nsecs) in ndelay() argument
46 __delay(__to_delay(1) * nsecs / 1000); in ndelay()
/linux-4.4.14/arch/x86/um/
Ddelay.c56 void __ndelay(unsigned long nsecs) in __ndelay() argument
58 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/arch/h8300/lib/
Ddelay.c36 void __ndelay(unsigned long nsecs) in __ndelay() argument
38 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/tools/perf/util/
Ddebug.c59 u64 secs, usecs, nsecs = t; in __eprintf_time() local
61 secs = nsecs / NSECS_PER_SEC; in __eprintf_time()
62 nsecs -= secs * NSECS_PER_SEC; in __eprintf_time()
63 usecs = nsecs / NSECS_PER_USEC; in __eprintf_time()
/linux-4.4.14/arch/arm64/lib/
Ddelay.c51 void __ndelay(unsigned long nsecs) in __ndelay() argument
53 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/arch/nios2/lib/
Ddelay.c48 void __ndelay(unsigned long nsecs) in __ndelay() argument
50 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/arch/avr32/lib/
Ddelay.c54 void __ndelay(unsigned long nsecs) in __ndelay() argument
56 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/arch/tile/lib/
Ddelay.c30 void __ndelay(unsigned long nsecs) in __ndelay() argument
33 target += ns2cycles(nsecs); in __ndelay()
/linux-4.4.14/arch/openrisc/lib/
Ddelay.c56 void __ndelay(unsigned long nsecs) in __ndelay() argument
58 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/arch/metag/lib/
Ddelay.c52 void __ndelay(unsigned long nsecs) in __ndelay() argument
54 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/arch/m32r/lib/
Ddelay.c121 void __ndelay(unsigned long nsecs) in __ndelay() argument
123 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/tools/perf/bench/
Dfutex-lock-pi.c27 static unsigned int nsecs = 10; variable
40 OPT_UINTEGER('r', "runtime", &nsecs, "Specify runtime (in seconds)"),
166 getpid(), nthreads, nsecs); in bench_futex_lock_pi()
186 sleep(nsecs); in bench_futex_lock_pi()
Dfutex-hash.c25 static unsigned int nsecs = 10; variable
46 OPT_UINTEGER('r', "runtime", &nsecs, "Specify runtime (in seconds)"),
142 getpid(), nthreads, nfutexes, fshared ? "shared":"private", nsecs); in bench_futex_hash()
179 sleep(nsecs); in bench_futex_hash()
/linux-4.4.14/kernel/time/
Dtimekeeping.c629 s64 nsecs = 0; in __getnstimeofday64() local
635 nsecs = timekeeping_get_ns(&tk->tkr_mono); in __getnstimeofday64()
640 timespec64_add_ns(ts, nsecs); in __getnstimeofday64()
669 s64 nsecs; in ktime_get() local
676 nsecs = timekeeping_get_ns(&tk->tkr_mono); in ktime_get()
680 return ktime_add_ns(base, nsecs); in ktime_get()
688 u32 nsecs; in ktime_get_resolution_ns() local
694 nsecs = tk->tkr_mono.mult >> tk->tkr_mono.shift; in ktime_get_resolution_ns()
697 return nsecs; in ktime_get_resolution_ns()
712 s64 nsecs; in ktime_get_with_offset() local
[all …]
/linux-4.4.14/tools/perf/scripts/perl/
Dwakeup-latency.pl37 my $switch_ts = nsecs($common_secs, $common_nsecs);
57 $last_wakeup{$target_cpu}{ts} = nsecs($common_secs, $common_nsecs);
Dcheck-perf-trace.pl102 my ($event_name, $cpu, $secs, $nsecs, $pid, $comm) = @_;
105 $event_name, $cpu, $secs, $nsecs, $pid, $comm);
/linux-4.4.14/arch/x86/lib/
Ddelay.c177 void __ndelay(unsigned long nsecs) in __ndelay() argument
179 __const_udelay(nsecs * 0x00005); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux-4.4.14/arch/tile/kernel/
Dtime.c234 cycles_t ns2cycles(unsigned long nsecs) in ns2cycles() argument
247 u64 quot = (u64)nsecs >> dev->shift; in ns2cycles()
248 u64 rem = (u64)nsecs & ((1ULL << dev->shift) - 1); in ns2cycles()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Ddfs.c189 u32 nsecs; in dur_to_usecs() local
192 nsecs = dur * AR93X_NSECS_PER_DUR_FAST; in dur_to_usecs()
194 nsecs = dur * AR93X_NSECS_PER_DUR; in dur_to_usecs()
196 return (nsecs + 500) / 1000; in dur_to_usecs()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.h186 #define FLASH_MAX_SIZE(nsecs) ((nsecs) * SF_SEC_SIZE) argument
/linux-4.4.14/arch/alpha/include/asm/
Ddelay.h7 extern void ndelay(unsigned long nsecs);
/linux-4.4.14/arch/s390/include/asm/
Ddelay.h15 void __ndelay(unsigned long long nsecs);
/linux-4.4.14/arch/tile/include/asm/
Dtimex.h44 cycles_t ns2cycles(unsigned long nsecs);
Ddelay.h23 extern void __ndelay(unsigned long nsecs);
/linux-4.4.14/arch/sparc/include/asm/
Ddelay_32.h24 void __ndelay(unsigned long nsecs, unsigned long lpj);
/linux-4.4.14/arch/metag/include/asm/
Ddelay.h15 extern void __ndelay(unsigned long nsecs);
/linux-4.4.14/include/asm-generic/
Ddelay.h9 extern void __ndelay(unsigned long nsecs);
/linux-4.4.14/fs/omfs/
Dinode.c206 unsigned long nsecs; in omfs_iget() local
229 nsecs = do_div(ctime, 1000) * 1000L; in omfs_iget()
234 inode->i_atime.tv_nsec = nsecs; in omfs_iget()
235 inode->i_mtime.tv_nsec = nsecs; in omfs_iget()
236 inode->i_ctime.tv_nsec = nsecs; in omfs_iget()
/linux-4.4.14/include/linux/
Dktime.h50 static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs) in ktime_set() argument
55 return (ktime_t) { .tv64 = secs * NSEC_PER_SEC + (s64)nsecs }; in ktime_set()
/linux-4.4.14/include/linux/spi/
Dspi_bitbang.h31 unsigned nsecs,
/linux-4.4.14/tools/perf/util/scripting-engines/
Dtrace-event-perl.c260 unsigned long long nsecs = sample->time; in perl_process_tracepoint() local
278 s = nsecs / NSECS_PER_SEC; in perl_process_tracepoint()
279 ns = nsecs - s * NSECS_PER_SEC; in perl_process_tracepoint()
326 XPUSHs(sv_2mortal(newSVuv(nsecs))); in perl_process_tracepoint()
Dtrace-event-python.c397 unsigned long long nsecs = sample->time; in python_process_tracepoint() local
420 s = nsecs / NSECS_PER_SEC; in python_process_tracepoint()
421 ns = nsecs - s * NSECS_PER_SEC; in python_process_tracepoint()
/linux-4.4.14/net/mac80211/
Drc80211_minstrel_ht.c324 unsigned int nsecs = 0; in minstrel_ht_get_tp_avg() local
331 nsecs = 1000 * mi->overhead / MINSTREL_TRUNC(mi->avg_ampdu_len); in minstrel_ht_get_tp_avg()
333 nsecs += minstrel_mcs_groups[group].duration[rate]; in minstrel_ht_get_tp_avg()
342 / nsecs)); in minstrel_ht_get_tp_avg()
344 return MINSTREL_TRUNC(100000 * ((prob_ewma * 1000) / nsecs)); in minstrel_ht_get_tp_avg()
/linux-4.4.14/tools/perf/
Dbuiltin-script.c395 unsigned long long nsecs; in print_sample_start() local
421 nsecs = sample->time; in print_sample_start()
422 secs = nsecs / NSECS_PER_SEC; in print_sample_start()
423 nsecs -= secs * NSECS_PER_SEC; in print_sample_start()
424 usecs = nsecs / NSECS_PER_USEC; in print_sample_start()
426 printf("%5lu.%09llu: ", secs, nsecs); in print_sample_start()
Dbuiltin-sched.c187 static void burn_nsecs(struct perf_sched *sched, u64 nsecs) in burn_nsecs() argument
193 } while (T1 + sched->run_measurement_overhead < T0 + nsecs); in burn_nsecs()
196 static void sleep_nsecs(u64 nsecs) in sleep_nsecs() argument
200 ts.tv_nsec = nsecs % 999999999; in sleep_nsecs()
201 ts.tv_sec = nsecs / 999999999; in sleep_nsecs()
/linux-4.4.14/arch/um/include/shared/
Dos.h245 extern void os_idle_sleep(unsigned long long nsecs);
/linux-4.4.14/arch/mips/kernel/
Dvpe.c481 unsigned int nsecs, struct module *mod) in simplify_symbols() argument
489 for (i = 0; i < nsecs; i++) { in simplify_symbols()
/linux-4.4.14/sound/drivers/
Ddummy.c447 unsigned long nsecs; in dummy_hrtimer_prepare() local
454 nsecs = div_u64((u64)period * 1000000000UL + rate - 1, rate); in dummy_hrtimer_prepare()
455 dpcm->period_time = ktime_set(sec, nsecs); in dummy_hrtimer_prepare()
/linux-4.4.14/Documentation/timers/
Dtimers-howto.txt25 ndelay(unsigned long nsecs)
/linux-4.4.14/include/xen/interface/
Dplatform.h42 uint32_t nsecs; member
/linux-4.4.14/arch/x86/xen/
Dtime.c213 op.u.settime.nsecs = now.tv_nsec; in xen_pvclock_gtod_notify()
/linux-4.4.14/drivers/base/power/
Dmain.c209 s64 nsecs; in initcall_debug_report() local
212 nsecs = (s64) ktime_to_ns(ktime_sub(rettime, calltime)); in initcall_debug_report()
216 error, (unsigned long long)nsecs >> 10); in initcall_debug_report()
/linux-4.4.14/drivers/ata/
Dpata_octeon_cf.c74 static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs) in ns_to_tim_reg() argument
82 val = DIV_ROUND_UP(nsecs * (octeon_get_io_clock_rate() / 1000000), in ns_to_tim_reg()
/linux-4.4.14/kernel/trace/
Dtrace.h628 extern unsigned long nsecs_to_usecs(unsigned long nsecs);
Dtrace.c861 unsigned long nsecs_to_usecs(unsigned long nsecs) in nsecs_to_usecs() argument
863 return nsecs / 1000; in nsecs_to_usecs()
/linux-4.4.14/tools/lib/traceevent/
Devent-parse.c5338 unsigned long nsecs; in pevent_print_event() local
5351 nsecs = record->ts - secs * NSECS_PER_SEC; in pevent_print_event()
5379 usecs = nsecs; in pevent_print_event()
5382 usecs = (nsecs + 500) / NSECS_PER_USEC; in pevent_print_event()