Home
last modified time | relevance | path

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

1234

/Linux-v4.19/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-v4.19/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py23 def nsecs(secs, nsecs): function
24 return secs * NSECS_PER_SEC + nsecs
26 def nsecs_secs(nsecs): argument
27 return nsecs / NSECS_PER_SEC
29 def nsecs_nsecs(nsecs): argument
30 return nsecs % NSECS_PER_SEC
32 def nsecs_str(nsecs): argument
33 str = "%5u.%09u" % (nsecs_secs(nsecs), nsecs_nsecs(nsecs)),
/Linux-v4.19/drivers/spi/
Dspi-gpio.c136 #define spidelay(nsecs) do {} while (0) argument
155 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode0() argument
157 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in spi_gpio_txrx_word_mode0()
161 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode1() argument
163 return bitbang_txrx_be_cpha1(spi, nsecs, 0, flags, word, bits); in spi_gpio_txrx_word_mode1()
167 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode2() argument
169 return bitbang_txrx_be_cpha0(spi, nsecs, 1, flags, word, bits); in spi_gpio_txrx_word_mode2()
173 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_txrx_word_mode3() argument
175 return bitbang_txrx_be_cpha1(spi, nsecs, 1, flags, word, bits); in spi_gpio_txrx_word_mode3()
189 unsigned nsecs, u32 word, u8 bits, unsigned flags) in spi_gpio_spec_txrx_word_mode0() argument
[all …]
Dspi-bitbang-txrx.h48 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0() argument
64 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_be_cpha0()
67 spidelay(nsecs); in bitbang_txrx_be_cpha0()
80 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha1() argument
97 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_be_cpha1()
100 spidelay(nsecs); in bitbang_txrx_be_cpha1()
Dspi-bitbang.c50 unsigned nsecs; /* (clock cycle time)/2 */ member
51 u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs,
56 unsigned nsecs,
66 unsigned nsecs, in bitbang_txrx_8() argument
94 unsigned nsecs, in bitbang_txrx_16() argument
122 unsigned nsecs, in bitbang_txrx_32() argument
177 cs->nsecs = (1000000000/2) / hz; in spi_bitbang_setup_transfer()
178 if (cs->nsecs > (MAX_UDELAY_MS * 1000 * 1000)) in spi_bitbang_setup_transfer()
214 dev_dbg(&spi->dev, "%s, %u nsec/bit\n", __func__, 2 * cs->nsecs); in spi_bitbang_setup()
225 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
86 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in sh_sci_spi_txrx_mode0()
90 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode1() argument
93 return bitbang_txrx_be_cpha1(spi, nsecs, 0, flags, word, bits); in sh_sci_spi_txrx_mode1()
97 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode2() argument
100 return bitbang_txrx_be_cpha0(spi, nsecs, 1, flags, word, bits); in sh_sci_spi_txrx_mode2()
104 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode3() argument
107 return bitbang_txrx_be_cpha1(spi, nsecs, 1, flags, word, bits); in sh_sci_spi_txrx_mode3()
Dspi-ath79.c60 static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned int 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 int 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()
/Linux-v4.19/arch/s390/lib/
Ddelay.c117 void __ndelay(unsigned long long nsecs) in __ndelay() argument
121 nsecs <<= 9; in __ndelay()
122 do_div(nsecs, 125); in __ndelay()
123 end = get_tod_clock_fast() + nsecs; in __ndelay()
124 if (nsecs & ~0xfffUL) in __ndelay()
125 __udelay(nsecs >> 12); in __ndelay()
/Linux-v4.19/net/netfilter/
Dnft_limit.c26 u64 nsecs; member
68 limit->nsecs = unit * NSEC_PER_SEC; in nft_limit_init()
69 if (limit->rate == 0 || limit->nsecs < unit) in nft_limit_init()
82 tokens = div_u64(limit->nsecs, limit->rate) * limit->burst; in nft_limit_init()
88 tokens = div_u64(limit->nsecs * (limit->rate + limit->burst), in nft_limit_init()
111 u64 secs = div_u64(limit->nsecs, NSEC_PER_SEC); in nft_limit_dump()
161 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_pkts_init()
186 u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); in nft_limit_bytes_eval()
263 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_obj_pkts_init()
290 u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); in nft_limit_obj_bytes_eval()
/Linux-v4.19/arch/alpha/lib/
Dudelay.c51 ndelay(unsigned long nsecs) in ndelay() argument
53 nsecs *= (((unsigned long)HZ << 32) / 1000000000) * LPJ; in ndelay()
54 __delay((long)nsecs >> 32); in ndelay()
/Linux-v4.19/tools/perf/scripts/python/
Dnetdev-times.py231 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
237 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
243 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
248 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
253 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret)
258 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
264 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
270 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
276 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
282 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)
Dpowerpc-hcalls.py174 diff = nsecs(sec, nsec) - d_enter[cpu][opcode]
198 d_enter[cpu][opcode] = nsecs(sec, nsec)
200 d_enter[cpu] = {opcode: nsecs(sec, nsec)}
/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/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
/Linux-v4.19/arch/um/kernel/
Dtime.c126 long long nsecs = os_persistent_clock_emulation(); in read_persistent_clock64() local
128 set_normalized_timespec64(ts, nsecs / NSEC_PER_SEC, in read_persistent_clock64()
129 nsecs % NSEC_PER_SEC); in read_persistent_clock64()
/Linux-v4.19/arch/sh/lib64/
Dudelay.c46 void __ndelay(unsigned long nsecs) in __ndelay() argument
48 __const_udelay(nsecs * 0x00000005); in __ndelay()
/Linux-v4.19/arch/nds32/kernel/vdso/
Dgettimeofday.c139 u64 nsecs; in do_monotonic() local
146 nsecs = vdata->xtime_clock_nsec; in do_monotonic()
147 nsecs += vgetsns(vdata); in do_monotonic()
148 nsecs >>= vdata->cs_shift; in do_monotonic()
157 timespec_add_ns(ts, nsecs + tomono.tv_nsec); in do_monotonic()
/Linux-v4.19/arch/sh/lib/
Ddelay.c50 void __ndelay(unsigned long nsecs) in __ndelay() argument
52 __const_udelay(nsecs * 0x00000005); in __ndelay()
/Linux-v4.19/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-v4.19/arch/h8300/lib/
Ddelay.c37 void __ndelay(unsigned long nsecs) in __ndelay() argument
39 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/Linux-v4.19/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()

1234