Searched refs:nsec (Results 126 - 150 of 157) sorted by path

1234567

/linux-master/include/vdso/
H A Dtime.h9 u64 nsec; member in struct:timens_offset
/linux-master/kernel/events/
H A Dcore.c4024 static u64 perf_calculate_period(struct perf_event *event, u64 nsec, u64 count) argument
4033 nsec_fls = fls64(nsec);
4038 * We got @count in @nsec, with a target of sample_freq HZ
4043 * @nsec * sample_freq
4067 REDUCE_FLS(nsec, frequency);
4072 divisor = nsec * frequency;
4084 REDUCE_FLS(nsec, frequency);
4088 divisor = nsec * frequency;
4100 static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count, bool disable) argument
4106 period = perf_calculate_period(event, nsec, coun
[all...]
/linux-master/kernel/sched/
H A Ddebug.c23 * Ease the printing of nsec fields:
25 static long long nsec_high(unsigned long long nsec) argument
27 if ((long long)nsec < 0) {
28 nsec = -nsec;
29 do_div(nsec, 1000000);
30 return -nsec;
32 do_div(nsec, 1000000);
34 return nsec;
37 static unsigned long nsec_low(unsigned long long nsec) argument
[all...]
/linux-master/kernel/time/
H A Dclocksource.c837 u64 now, nsec = 0; local
853 nsec = cycles_to_nsec_safe(suspend_clocksource, suspend_start, now);
862 return nsec;
H A Dnamespace.c147 ret.nsec = off.tv_nsec;
H A Dntp.c852 * pps_normtime.nsec has a range of ( -NSEC_PER_SEC / 2, NSEC_PER_SEC / 2 ]
856 long nsec; /* nanoseconds */ member in struct:pps_normtime
859 /* normalize the timestamp so that nsec is in the
865 .nsec = ts.tv_nsec
868 if (norm.nsec > (NSEC_PER_SEC >> 1)) {
869 norm.nsec -= NSEC_PER_SEC;
952 ftemp = div_s64(((s64)(-freq_norm.nsec)) << NTP_SCALE_SHIFT,
1056 (freq_norm.nsec > MAXFREQ * freq_norm.sec) ||
1057 (freq_norm.nsec < -MAXFREQ * freq_norm.sec)) {
1075 hardpps_update_phase(pts_norm.nsec);
[all...]
H A Dtime.c470 struct __kernel_old_timeval ns_to_kernel_old_timeval(s64 nsec) argument
472 struct timespec64 ts = ns_to_timespec64(nsec);
483 * set_normalized_timespec64 - set timespec sec and nsec parts and normalize
487 * @nsec: nanoseconds to set
495 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) argument
497 while (nsec >= NSEC_PER_SEC) {
503 asm("" : "+rm"(nsec));
504 nsec -= NSEC_PER_SEC;
507 while (nsec < 0) {
508 asm("" : "+rm"(nsec));
523 ns_to_timespec64(s64 nsec) argument
620 long nsec = value->tv_nsec + TICK_NSEC - 1; local
[all...]
H A Dtimecounter.c14 tc->nsec = start_tstamp;
54 u64 nsec; local
57 nsec = timecounter_read_delta(tc);
58 nsec += tc->nsec;
59 tc->nsec = nsec;
61 return nsec;
83 u64 nsec = tc->nsec, fra local
[all...]
H A Dtimekeeping.c295 * Calculates a fixed cycle/nsec interval for a given clocksource/adjustment
721 * Update the ktime_t based scalar nsec members of the timekeeper
726 u32 nsec; local
730 * nsec = (xtime_sec + wtm_sec) * 1e9 + wtm_nsec + now();
732 * nsec = base_mono + now();
736 nsec = (u32) tk->wall_to_monotonic.tv_nsec;
737 tk->tkr_mono.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec);
744 nsec += (u32)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift);
745 if (nsec >= NSEC_PER_SEC)
976 u64 nsec; local
1786 u64 cycle_now, nsec; local
[all...]
H A Dvsyscall.c22 u64 nsec, sec; local
43 nsec = tk->tkr_mono.xtime_nsec;
44 nsec += ((u64)tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift);
45 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) {
46 nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift);
49 vdso_ts->nsec = nsec;
55 nsec += (u64)tk->monotonic_to_boot.tv_nsec << tk->tkr_mono.shift;
61 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) {
62 nsec
83 u64 nsec; local
[all...]
/linux-master/kernel/trace/
H A Dtrace.c332 unsigned long long ns2usecs(u64 nsec) argument
334 nsec += 500;
335 do_div(nsec, 1000);
336 return nsec;
7783 u32 nsec; local
7785 nsec = do_div(sec, NSEC_PER_SEC);
7786 seq_printf(m, "[%5llu.%06u] %s%s", sec, nsec / 1000,
H A Dtrace.h810 extern unsigned long long ns2usecs(u64 nsec);
/linux-master/lib/
H A Dcrc32test.c669 u64 nsec; local
687 nsec = ktime_get_ns();
693 nsec = ktime_get_ns() - nsec;
702 pr_info("crc32c: self tests passed, processed %d bytes in %lld nsec\n",
703 bytes, nsec);
749 u64 nsec; local
770 nsec = ktime_get_ns();
780 nsec = ktime_get_ns() - nsec;
[all...]
/linux-master/lib/vdso/
H A Dgettimeofday.c99 ns = vdso_calc_ns(vd, cycles, vdso_ts->nsec);
105 ns += offs->nsec;
167 ns = vdso_calc_ns(vd, cycles, vdso_ts->nsec);
188 u64 nsec; local
195 nsec = vdso_ts->nsec;
200 nsec += offs->nsec;
206 ts->tv_sec = sec + __iter_div_u64_rem(nsec, NSEC_PER_SEC, &nsec);
[all...]
/linux-master/security/selinux/
H A Dnetif.c34 struct netif_security_struct nsec; member in struct:sel_netif
74 if (net_eq(netif->nsec.ns, ns) &&
75 netif->nsec.ifindex == ifindex)
97 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex);
152 *sid = netif->nsec.sid;
161 new->nsec.ns = ns;
162 new->nsec.ifindex = ifindex;
163 new->nsec.sid = *sid;
198 *sid = netif->nsec
[all...]
H A Dnetnode.c45 struct netnode_security_struct nsec; member in struct:sel_netnode
121 if (node->nsec.family == family)
124 if (node->nsec.addr.ipv4 == *(const __be32 *)addr)
128 if (ipv6_addr_equal(&node->nsec.addr.ipv6,
149 switch (node->nsec.family) {
151 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4);
154 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6);
199 *sid = node->nsec.sid;
210 new->nsec.addr.ipv4 = *(__be32 *)addr;
216 new->nsec
[all...]
/linux-master/sound/core/seq/
H A Dseq_timer.h14 unsigned long resolution; /* time per tick in nsec */
15 unsigned long fraction; /* current time per tick in nsec */
101 static inline void snd_seq_inc_time_nsec(snd_seq_real_time_t *tm, unsigned long nsec) argument
103 tm->tv_nsec += nsec;
/linux-master/sound/hda/
H A Dhdac_stream.c633 u64 nsec; local
645 nsec = 0; /* audio time is elapsed time since trigger */
646 timecounter_init(tc, cc, nsec);
/linux-master/sound/pci/hda/
H A Dhda_controller.c65 u64 nsec)
72 return nsec;
79 return nsec + codec_nsecs;
81 return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0;
505 u64 nsec; local
512 nsec = timecounter_read(&azx_dev->core.tc);
514 nsec = azx_adjust_codec_delay(substream, nsec);
516 *audio_ts = ns_to_timespec64(nsec);
64 azx_adjust_codec_delay(struct snd_pcm_substream *substream, u64 nsec) argument
[all...]
/linux-master/sound/soc/intel/skylake/
H A Dskl-pcm.c1216 u64 nsec)
1223 return nsec;
1230 return nsec + codec_nsecs;
1232 return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0;
1244 u64 nsec; local
1251 nsec = timecounter_read(&hstr->tc);
1253 nsec = skl_adjust_codec_delay(substream, nsec);
1255 *audio_ts = ns_to_timespec64(nsec);
1215 skl_adjust_codec_delay(struct snd_pcm_substream *substream, u64 nsec) argument
[all...]
/linux-master/tools/arch/x86/include/asm/
H A Dpvclock-abi.h40 u32 nsec; member in struct:pvclock_wall_clock
/linux-master/tools/perf/
H A Dbuiltin-lock.c219 static void lock_stat_key_print_time(unsigned long long nsec, int len) argument
235 fprintf(lock_output, "%llu", nsec);
240 if (nsec < table[i].base)
243 fprintf(lock_output, "%*.2f %s", len - 3, nsec / table[i].base, table[i].unit);
247 fprintf(lock_output, "%*llu %s", len - 3, nsec, "ns");
H A Dbuiltin-script.c724 unsigned long nsec; local
748 nsec = tod_ns - sec * NSEC_PER_SEC;
756 snprintf(buf, buflen, "%s.%09lu", date, nsec);
759 date, nsec / NSEC_PER_USEC);
/linux-master/tools/perf/scripts/python/
H A Dcompaction-times.py48 def ns(sec, nsec):
49 return (sec * 1000000000) + nsec
H A Dnet_dropmonitor.py72 def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain,

Completed in 414 milliseconds

1234567