/linux-4.4.14/kernel/time/ |
D | timecounter.c | 27 tc->nsec = start_tstamp; in timecounter_init() 67 u64 nsec; in timecounter_read() local 70 nsec = timecounter_read_delta(tc); in timecounter_read() 71 nsec += tc->nsec; in timecounter_read() 72 tc->nsec = nsec; in timecounter_read() 74 return nsec; in timecounter_read() 96 u64 nsec = tc->nsec, frac = tc->frac; in timecounter_cyc2time() local 105 nsec -= cc_cyc2ns_backwards(tc->cc, delta, tc->mask, frac); in timecounter_cyc2time() 107 nsec += cyclecounter_cyc2ns(tc->cc, delta, tc->mask, &frac); in timecounter_cyc2time() 110 return nsec; in timecounter_cyc2time()
|
D | time.c | 361 void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec) in set_normalized_timespec() argument 363 while (nsec >= NSEC_PER_SEC) { in set_normalized_timespec() 369 asm("" : "+rm"(nsec)); in set_normalized_timespec() 370 nsec -= NSEC_PER_SEC; in set_normalized_timespec() 373 while (nsec < 0) { in set_normalized_timespec() 374 asm("" : "+rm"(nsec)); in set_normalized_timespec() 375 nsec += NSEC_PER_SEC; in set_normalized_timespec() 379 ts->tv_nsec = nsec; in set_normalized_timespec() 389 struct timespec ns_to_timespec(const s64 nsec) in ns_to_timespec() argument 394 if (!nsec) in ns_to_timespec() [all …]
|
D | timekeeping.c | 304 s64 nsec; in timekeeping_get_ns() local 308 nsec = (delta * tkr->mult + tkr->xtime_nsec) >> tkr->shift; in timekeeping_get_ns() 311 return nsec + arch_gettimeoffset(); in timekeeping_get_ns() 533 u32 nsec; in tk_update_ktime_data() local 543 nsec = (u32) tk->wall_to_monotonic.tv_nsec; in tk_update_ktime_data() 544 tk->tkr_mono.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec); in tk_update_ktime_data() 554 nsec += (u32)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_update_ktime_data() 555 if (nsec >= NSEC_PER_SEC) in tk_update_ktime_data() 600 s64 nsec; in timekeeping_forward_now() local 614 nsec = clocksource_cyc2ns(delta, tk->tkr_raw.mult, tk->tkr_raw.shift); in timekeeping_forward_now() [all …]
|
D | ntp.c | 777 long nsec; /* nanoseconds */ member 786 .nsec = ts.tv_nsec in pps_normalize_ts() 789 if (norm.nsec > (NSEC_PER_SEC >> 1)) { in pps_normalize_ts() 790 norm.nsec -= NSEC_PER_SEC; in pps_normalize_ts() 873 ftemp = div_s64(((s64)(-freq_norm.nsec)) << NTP_SCALE_SHIFT, in hardpps_update_freq() 977 (freq_norm.nsec > MAXFREQ * freq_norm.sec) || in __hardpps() 978 (freq_norm.nsec < -MAXFREQ * freq_norm.sec)) { in __hardpps() 996 hardpps_update_phase(pts_norm.nsec); in __hardpps()
|
/linux-4.4.14/Documentation/sound/alsa/ |
D | timestamping.txt | 145 playback: systime: 341121338 nsec, audio time 342000000 nsec, systime delta -878662 146 playback: systime: 426236663 nsec, audio time 427187500 nsec, systime delta -950837 147 playback: systime: 597080580 nsec, audio time 598000000 nsec, systime delta -919420 148 playback: systime: 682059782 nsec, audio time 683020833 nsec, systime delta -961051 149 playback: systime: 852896415 nsec, audio time 853854166 nsec, systime delta -957751 150 playback: systime: 937903344 nsec, audio time 938854166 nsec, systime delta -950822 154 playback: systime: 341053347 nsec, audio time 341062500 nsec, systime delta -9153 155 playback: systime: 426072447 nsec, audio time 426062500 nsec, systime delta 9947 156 playback: systime: 596899518 nsec, audio time 596895833 nsec, systime delta 3685 157 playback: systime: 681915317 nsec, audio time 681916666 nsec, systime delta -1349 [all …]
|
/linux-4.4.14/arch/um/os-Linux/ |
D | time.c | 63 unsigned long long nsec; in os_timer_set_interval() local 71 nsec = UM_NSEC_PER_SEC / UM_HZ; in os_timer_set_interval() 78 its.it_value.tv_nsec = nsec; in os_timer_set_interval() 82 its.it_interval.tv_nsec = nsec; in os_timer_set_interval() 119 unsigned long long nsec; in os_timer_one_shot() local 122 nsec = (ticks + 1); in os_timer_one_shot() 123 sec = nsec / UM_NSEC_PER_SEC; in os_timer_one_shot() 124 nsec = nsec % UM_NSEC_PER_SEC; in os_timer_one_shot() 126 its.it_value.tv_sec = nsec / UM_NSEC_PER_SEC; in os_timer_one_shot() 127 its.it_value.tv_nsec = nsec; in os_timer_one_shot()
|
/linux-4.4.14/security/selinux/ |
D | netnode.c | 55 struct netnode_security_struct nsec; member 132 if (node->nsec.family == family) in sel_netnode_find() 135 if (node->nsec.addr.ipv4 == *(__be32 *)addr) in sel_netnode_find() 139 if (ipv6_addr_equal(&node->nsec.addr.ipv6, in sel_netnode_find() 160 switch (node->nsec.family) { in sel_netnode_insert() 162 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert() 165 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6); in sel_netnode_insert() 209 *sid = node->nsec.sid; in sel_netnode_sid_slow() 220 new->nsec.addr.ipv4 = *(__be32 *)addr; in sel_netnode_sid_slow() 225 new->nsec.addr.ipv6 = *(struct in6_addr *)addr; in sel_netnode_sid_slow() [all …]
|
D | netif.c | 37 struct netif_security_struct nsec; member 78 if (net_eq(netif->nsec.ns, ns) && in sel_netif_find() 79 netif->nsec.ifindex == ifindex) in sel_netif_find() 101 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); in sel_netif_insert() 157 *sid = netif->nsec.sid; in sel_netif_sid_slow() 166 ret = security_netif_sid(dev->name, &new->nsec.sid); in sel_netif_sid_slow() 169 new->nsec.ns = ns; in sel_netif_sid_slow() 170 new->nsec.ifindex = ifindex; in sel_netif_sid_slow() 174 *sid = new->nsec.sid; in sel_netif_sid_slow() 210 *sid = netif->nsec.sid; in sel_netif_sid()
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | delay.h | 55 static inline void __ndelay(unsigned long nsec) in __ndelay() argument 61 unsigned long cycles = (nsec * (ccount_freq >> 15)) >> 15; in __ndelay() 67 static inline void ndelay(unsigned long nsec) in ndelay() argument 69 if (__builtin_constant_p(nsec) && nsec >= __MAX_NDELAY) in ndelay() 72 __ndelay(nsec); in ndelay()
|
/linux-4.4.14/tools/perf/scripts/python/ |
D | netdev-times.py | 227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 230 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 233 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 236 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 239 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 242 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 245 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument 247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 251 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument 252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret) [all …]
|
D | net_dropmonitor.py | 69 def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, argument
|
D | compaction-times.py | 48 def ns(sec, nsec): argument 49 return (sec * 1000000000) + nsec
|
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ptp.c | 130 u64 nsec; in xgbe_cc_read() local 132 nsec = pdata->hw_if.get_tstamp_time(pdata); in xgbe_cc_read() 134 return nsec; in xgbe_cc_read() 188 u64 nsec; in xgbe_gettime() local 192 nsec = timecounter_read(&pdata->tstamp_tc); in xgbe_gettime() 196 *ts = ns_to_timespec64(nsec); in xgbe_gettime() 208 u64 nsec; in xgbe_settime() local 210 nsec = timespec64_to_ns(ts); in xgbe_settime() 214 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, nsec); in xgbe_settime()
|
D | xgbe-dev.c | 1203 unsigned int nsec) in xgbe_set_tstamp_time() argument 1207 XGMAC_IOWRITE(pdata, MAC_STNUR, nsec); in xgbe_set_tstamp_time() 1217 u64 nsec; in xgbe_get_tstamp_time() local 1219 nsec = XGMAC_IOREAD(pdata, MAC_STSR); in xgbe_get_tstamp_time() 1220 nsec *= NSEC_PER_SEC; in xgbe_get_tstamp_time() 1221 nsec += XGMAC_IOREAD(pdata, MAC_STNR); in xgbe_get_tstamp_time() 1223 return nsec; in xgbe_get_tstamp_time() 1229 u64 nsec; in xgbe_get_tx_tstamp() local 1235 nsec = XGMAC_IOREAD(pdata, MAC_TXSSR); in xgbe_get_tx_tstamp() 1236 nsec *= NSEC_PER_SEC; in xgbe_get_tx_tstamp() [all …]
|
D | xgbe-drv.c | 991 u64 nsec; in xgbe_tx_tstamp() local 995 nsec = timecounter_cyc2time(&pdata->tstamp_tc, in xgbe_tx_tstamp() 999 hwtstamps.hwtstamp = ns_to_ktime(nsec); in xgbe_tx_tstamp() 2011 u64 nsec; in xgbe_rx_poll() local 2013 nsec = timecounter_cyc2time(&pdata->tstamp_tc, in xgbe_rx_poll() 2016 hwtstamps->hwtstamp = ns_to_ktime(nsec); in xgbe_rx_poll()
|
D | xgbe.h | 671 unsigned int nsec);
|
/linux-4.4.14/tools/testing/selftests/mqueue/ |
D | mq_perf_tests.c | 353 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \ 355 send_total.tv_nsec += nsec; \ 360 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \ 362 recv_total.tv_nsec += nsec; \ 428 unsigned long long nsec; in perf_test_thread() local 460 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + in perf_test_thread() 462 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); in perf_test_thread() 465 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + in perf_test_thread() 467 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); in perf_test_thread() 486 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * in perf_test_thread() [all …]
|
/linux-4.4.14/drivers/pps/ |
D | kapi.c | 43 ts->nsec += offset->nsec; in pps_add_offset() 44 while (ts->nsec >= NSEC_PER_SEC) { in pps_add_offset() 45 ts->nsec -= NSEC_PER_SEC; in pps_add_offset() 48 while (ts->nsec < 0) { in pps_add_offset() 49 ts->nsec += NSEC_PER_SEC; in pps_add_offset() 177 struct pps_ktime ts_real = { .sec = 0, .nsec = 0, .flags = 0 }; in pps_event()
|
D | sysfs.c | 41 (long long) pps->assert_tu.sec, pps->assert_tu.nsec, in assert_show() 55 (long long) pps->clear_tu.sec, pps->clear_tu.nsec, in clear_show()
|
D | pps.c | 166 fdata.timeout.nsec); in pps_cdev_ioctl() 168 ticks += fdata.timeout.nsec / (NSEC_PER_SEC / HZ); in pps_cdev_ioctl()
|
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_hwtstamp.c | 54 static int stmmac_init_systime(void __iomem *ioaddr, u32 sec, u32 nsec) in stmmac_init_systime() argument 60 writel(nsec, ioaddr + PTP_STNSUR); in stmmac_init_systime() 103 static int stmmac_adjust_systime(void __iomem *ioaddr, u32 sec, u32 nsec, in stmmac_adjust_systime() argument 110 writel(((add_sub << PTP_STNSUR_ADDSUB_SHIFT) | nsec), in stmmac_adjust_systime()
|
D | stmmac_ptp.c | 77 u32 sec, nsec; in stmmac_adjust_time() local 88 nsec = reminder; in stmmac_adjust_time() 92 priv->hw->ptp->adjust_systime(priv->ioaddr, sec, nsec, neg_adj); in stmmac_adjust_time()
|
D | common.h | 417 int (*init_systime) (void __iomem *ioaddr, u32 sec, u32 nsec); 419 int (*adjust_systime) (void __iomem *ioaddr, u32 sec, u32 nsec,
|
/linux-4.4.14/arch/tile/gxio/ |
D | iorpc_mpipe.c | 414 uint64_t nsec; member 419 uint64_t *nsec, uint64_t *cycles) in gxio_mpipe_get_timestamp_aux() argument 429 *nsec = params->nsec; in gxio_mpipe_get_timestamp_aux() 439 uint64_t nsec; member 444 uint64_t nsec, uint64_t cycles) in gxio_mpipe_set_timestamp_aux() argument 450 params->nsec = nsec; in gxio_mpipe_set_timestamp_aux() 460 int64_t nsec; member 463 int gxio_mpipe_adjust_timestamp_aux(gxio_mpipe_context_t *context, int64_t nsec) in gxio_mpipe_adjust_timestamp_aux() argument 468 params->nsec = nsec; in gxio_mpipe_adjust_timestamp_aux()
|
/linux-4.4.14/fs/proc/ |
D | uptime.c | 15 u64 nsec; in uptime_proc_show() local 24 nsec = cputime64_to_jiffies64(idletime) * TICK_NSEC; in uptime_proc_show() 25 idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
|
/linux-4.4.14/drivers/misc/sgi-gru/ |
D | gruhandles.c | 44 unsigned long nsec; in update_mcs_stats() local 46 nsec = CLKS2NSEC(clks); in update_mcs_stats() 48 atomic_long_add(nsec, &mcs_op_statistics[op].total); in update_mcs_stats() 49 if (mcs_op_statistics[op].max < nsec) in update_mcs_stats() 50 mcs_op_statistics[op].max = nsec; in update_mcs_stats()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | memx.c | 107 u32 addr, u32 mask, u32 data, u32 nsec) in nvkm_memx_wait() argument 110 addr, mask, data, nsec); in nvkm_memx_wait() 111 memx_cmd(memx, MEMX_WAIT, 4, (u32[]){ addr, mask, data, nsec }); in nvkm_memx_wait() 116 nvkm_memx_nsec(struct nvkm_memx *memx, u32 nsec) in nvkm_memx_nsec() argument 118 nvkm_debug(&memx->pmu->subdev, " DELAY = %d ns\n", nsec); in nvkm_memx_nsec() 119 memx_cmd(memx, MEMX_DELAY, 1, (u32[]){ nsec }); in nvkm_memx_nsec()
|
/linux-4.4.14/kernel/sched/ |
D | debug.c | 39 static long long nsec_high(unsigned long long nsec) in nsec_high() argument 41 if ((long long)nsec < 0) { in nsec_high() 42 nsec = -nsec; in nsec_high() 43 do_div(nsec, 1000000); in nsec_high() 44 return -nsec; in nsec_high() 46 do_div(nsec, 1000000); in nsec_high() 48 return nsec; in nsec_high() 51 static unsigned long nsec_low(unsigned long long nsec) in nsec_low() argument 53 if ((long long)nsec < 0) in nsec_low() 54 nsec = -nsec; in nsec_low() [all …]
|
/linux-4.4.14/fs/ |
D | utimes.c | 43 static bool nsec_valid(long nsec) in nsec_valid() argument 45 if (nsec == UTIME_OMIT || nsec == UTIME_NOW) in nsec_valid() 48 return nsec >= 0 && nsec <= 999999999; in nsec_valid()
|
D | select.c | 272 int poll_select_set_timeout(struct timespec *to, long sec, long nsec) in poll_select_set_timeout() argument 274 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() 280 if (!sec && !nsec) { in poll_select_set_timeout()
|
/linux-4.4.14/Documentation/ptp/ |
D | testptp.c | 110 return t->sec * 1000000000LL + t->nsec; in pctns() 367 event.t.sec, event.t.nsec); in main() 446 perout_request.start.nsec = 0; in main() 448 perout_request.period.nsec = perout; in main() 505 (pct+2*i)->sec, (pct+2*i)->nsec); in main() 507 (pct+2*i+1)->sec, (pct+2*i+1)->nsec); in main() 509 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); in main()
|
/linux-4.4.14/arch/mips/vdso/ |
D | gettimeofday.c | 99 u64 cycle_now, delta, nsec; in get_ns() local 118 nsec = (delta * data->cs_mult) + data->xtime_nsec; in get_ns() 119 nsec >>= data->cs_shift; in get_ns() 121 return nsec; in get_ns()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | ramfuc.h | 122 ramfuc_wait(struct ramfuc *ram, u32 addr, u32 mask, u32 data, u32 nsec) in ramfuc_wait() argument 124 nvkm_memx_wait(ram->memx, addr, mask, data, nsec); in ramfuc_wait() 128 ramfuc_nsec(struct ramfuc *ram, u32 nsec) in ramfuc_nsec() argument 130 nvkm_memx_nsec(ram->memx, nsec); in ramfuc_nsec()
|
/linux-4.4.14/arch/arm/vdso/ |
D | vgettimeofday.c | 124 u64 nsec; in get_ns() local 130 nsec = (cycle_delta * vdata->cs_mult) + vdata->xtime_clock_snsec; in get_ns() 131 nsec >>= vdata->cs_shift; in get_ns() 133 return nsec; in get_ns()
|
/linux-4.4.14/sound/soc/intel/skylake/ |
D | skl-pcm.c | 821 u64 nsec) in skl_adjust_codec_delay() argument 828 return nsec; in skl_adjust_codec_delay() 835 return nsec + codec_nsecs; in skl_adjust_codec_delay() 837 return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0; in skl_adjust_codec_delay() 847 u64 nsec; in skl_get_time_info() local 854 nsec = timecounter_read(&hstr->tc); in skl_get_time_info() 855 nsec = div_u64(nsec, 3); /* can be optimized */ in skl_get_time_info() 857 nsec = skl_adjust_codec_delay(substream, nsec); in skl_get_time_info() 859 *audio_ts = ns_to_timespec(nsec); in skl_get_time_info()
|
/linux-4.4.14/include/linux/ |
D | timecounter.h | 67 u64 nsec; member 95 tc->nsec += delta; in timecounter_adjtime()
|
D | time.h | 57 extern void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec); 215 extern struct timespec ns_to_timespec(const s64 nsec); 223 extern struct timeval ns_to_timeval(const s64 nsec);
|
D | clockchips.h | 171 div_sc(unsigned long ticks, unsigned long nsec, int shift) in div_sc() argument 175 do_div(tmp, nsec); in div_sc()
|
D | time64.h | 135 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec); 209 extern struct timespec64 ns_to_timespec64(const s64 nsec);
|
D | pps_kernel.h | 111 kt->nsec = ts.tv_nsec; in timespec_to_pps_ktime()
|
D | poll.h | 162 extern int poll_select_set_timeout(struct timespec *to, long sec, long nsec);
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
D | base.c | 63 nvkm_timer_alarm(struct nvkm_timer *tmr, u32 nsec, struct nvkm_alarm *alarm) in nvkm_timer_alarm() argument 68 alarm->timestamp = nvkm_timer_read(tmr) + nsec; in nvkm_timer_alarm() 72 if (!nsec) { in nvkm_timer_alarm()
|
/linux-4.4.14/arch/tile/include/gxio/ |
D | iorpc_mpipe.h | 124 uint64_t *nsec, uint64_t *cycles); 127 uint64_t nsec, uint64_t cycles); 130 int64_t nsec);
|
/linux-4.4.14/fs/adfs/ |
D | inode.c | 178 s64 nsec; in adfs_adfs2unix_time() local 189 nsec = (((s64) high << 32) | (s64) low) * 10000000; /* cs to ns */ in adfs_adfs2unix_time() 192 if (nsec < nsec_unix_epoch_diff_risc_os_epoch) in adfs_adfs2unix_time() 196 nsec -= nsec_unix_epoch_diff_risc_os_epoch; in adfs_adfs2unix_time() 198 *tv = ns_to_timespec(nsec); in adfs_adfs2unix_time()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | pmu.h | 44 void nvkm_memx_wait(struct nvkm_memx *, u32 addr, u32 mask, u32 data, u32 nsec); 45 void nvkm_memx_nsec(struct nvkm_memx *, u32 nsec);
|
D | bus.h | 18 void nvkm_hwsq_nsec(struct nvkm_hwsq *, u32 nsec);
|
D | timer.h | 27 void nvkm_timer_alarm(struct nvkm_timer *, u32 nsec, struct nvkm_alarm *);
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
D | hwsq.c | 167 nvkm_hwsq_nsec(struct nvkm_hwsq *hwsq, u32 nsec) in nvkm_hwsq_nsec() argument 169 u8 shift = 0, usec = nsec / 1000; in nvkm_hwsq_nsec() 175 nvkm_debug(hwsq->subdev, " DELAY = %d ns\n", nsec); in nvkm_hwsq_nsec()
|
D | hwsq.h | 143 hwsq_nsec(struct hwsq *ram, u32 nsec) in hwsq_nsec() argument 145 nvkm_hwsq_nsec(ram->hwsq, nsec); in hwsq_nsec()
|
/linux-4.4.14/arch/mips/kernel/ |
D | binfmt_elfn32.c | 105 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_compat_timeval() local 107 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_compat_timeval()
|
D | binfmt_elfo32.c | 126 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_compat_timeval() local 128 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in jiffies_to_compat_timeval()
|
/linux-4.4.14/lib/ |
D | crc32.c | 983 u64 nsec; local 1013 nsec = stop.tv_nsec - start.tv_nsec + 1022 bytes, nsec); 1069 u64 nsec; local 1106 nsec = stop.tv_nsec - start.tv_nsec + 1116 bytes, nsec);
|
/linux-4.4.14/sound/pci/hda/ |
D | hda_controller.c | 68 u64 nsec) in azx_adjust_codec_delay() argument 75 return nsec; in azx_adjust_codec_delay() 82 return nsec + codec_nsecs; in azx_adjust_codec_delay() 84 return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0; in azx_adjust_codec_delay() 346 u64 nsec; in azx_get_time_info() local 353 nsec = timecounter_read(&azx_dev->core.tc); in azx_get_time_info() 354 nsec = div_u64(nsec, 3); /* can be optimized */ in azx_get_time_info() 356 nsec = azx_adjust_codec_delay(substream, nsec); in azx_get_time_info() 358 *audio_ts = ns_to_timespec(nsec); in azx_get_time_info()
|
/linux-4.4.14/sound/core/seq/ |
D | seq_timer.h | 116 static inline void snd_seq_inc_time_nsec(snd_seq_real_time_t *tm, unsigned long nsec) in snd_seq_inc_time_nsec() argument 118 tm->tv_nsec += nsec; in snd_seq_inc_time_nsec()
|
/linux-4.4.14/drivers/ptp/ |
D | ptp_chardev.c | 171 enable = req.perout.period.sec || req.perout.period.nsec; in ptp_ioctl() 202 pct->nsec = ts.tv_nsec; in ptp_ioctl() 206 pct->nsec = ts.tv_nsec; in ptp_ioctl() 211 pct->nsec = ts.tv_nsec; in ptp_ioctl()
|
D | ptp_sysfs.c | 122 event.index, event.t.sec, event.t.nsec); in extts_fifo_show() 138 &req.perout.start.sec, &req.perout.start.nsec, in period_store() 139 &req.perout.period.sec, &req.perout.period.nsec); in period_store() 145 enable = req.perout.period.sec || req.perout.period.nsec; in period_store()
|
D | ptp_clock.c | 68 dst->t.nsec = remainder; in enqueue_external_timestamp()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | en_clock.c | 66 u64 nsec; in mlx4_en_fill_hwtstamps() local 69 nsec = timecounter_cyc2time(&mdev->clock, timestamp); in mlx4_en_fill_hwtstamps() 73 hwts->hwtstamp = ns_to_ktime(nsec); in mlx4_en_fill_hwtstamps()
|
/linux-4.4.14/drivers/char/ |
D | mmtimer.c | 483 u64 nsec; in sgi_clock_get() local 485 nsec = rtc_time() * sgi_clock_period in sgi_clock_get() 487 *tp = ns_to_timespec(nsec); in sgi_clock_get() 495 u64 nsec; in sgi_clock_set() local 498 nsec = rtc_time() * sgi_clock_period; in sgi_clock_set() 500 sgi_clock_offset.tv_sec = tp->tv_sec - div_u64_rem(nsec, NSEC_PER_SEC, &rem); in sgi_clock_set()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | bit.c | 56 nvkm_i2c_delay(struct nvkm_i2c_bus *bus, u32 nsec) in nvkm_i2c_delay() argument 58 udelay((nsec + 500) / 1000); in nvkm_i2c_delay()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | pvclock-abi.h | 39 u32 nsec; member
|
/linux-4.4.14/include/uapi/linux/ |
D | pps.h | 55 __s32 nsec; member
|
D | ptp_clock.h | 43 __u32 nsec; /* nanoseconds */ member
|
D | btrfs.h | 474 __u32 nsec; member
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | sysfs-pps | 24 <secs>.<nsec>#<sequence> 36 <secs>.<nsec>#<sequence>
|
/linux-4.4.14/arch/arm/include/asm/xen/ |
D | interface.h | 78 u32 nsec; member
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 123 u32 sec, nsec; in igb_ptp_read_i210() local 130 nsec = rd32(E1000_SYSTIML); in igb_ptp_read_i210() 134 ts->tv_nsec = nsec; in igb_ptp_read_i210() 525 ts.tv_nsec = rq->perout.period.nsec; in igb_ptp_feature_enable_i210() 571 igb->perout[i].start.tv_nsec = rq->perout.start.nsec; in igb_ptp_feature_enable_i210() 575 wr32(trgttiml, rq->perout.start.nsec); in igb_ptp_feature_enable_i210()
|
D | igb_main.c | 5396 u32 ack = 0, tsauxc, sec, nsec, tsicr = rd32(E1000_TSICR); in igb_tsync_interrupt() local 5443 nsec = rd32(E1000_AUXSTMPL0); in igb_tsync_interrupt() 5447 event.timestamp = sec * 1000000000ULL + nsec; in igb_tsync_interrupt() 5453 nsec = rd32(E1000_AUXSTMPL1); in igb_tsync_interrupt() 5457 event.timestamp = sec * 1000000000ULL + nsec; in igb_tsync_interrupt()
|
/linux-4.4.14/drivers/block/xen-blkback/ |
D | blkback.c | 972 seg[n].nsec = last_sect - first_sect + 1; in xen_blkbk_parse_indirect() 974 preq->nr_sects += seg[n].nsec; in xen_blkbk_parse_indirect() 1274 seg[i].nsec = req->u.rw.seg[i].last_sect - in dispatch_rw_block_io() 1281 preq.nr_sects += seg[i].nsec; in dispatch_rw_block_io() 1304 if (((int)preq.sector_number|(int)seg[i].nsec) & in dispatch_rw_block_io() 1338 seg[i].nsec << 9, in dispatch_rw_block_io() 1353 preq.sector_number += seg[i].nsec; in dispatch_rw_block_io()
|
D | common.h | 338 unsigned int nsec; member
|
/linux-4.4.14/sound/hda/ |
D | hdac_stream.c | 480 u64 nsec; in azx_timecounter_init() local 498 nsec = 0; /* audio time is elapsed time since trigger */ in azx_timecounter_init() 499 timecounter_init(tc, cc, nsec); in azx_timecounter_init()
|
/linux-4.4.14/arch/x86/kernel/ |
D | pvclock.c | 131 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
|
/linux-4.4.14/drivers/net/ethernet/renesas/ |
D | ravb_ptp.c | 228 start_ns = req->start.sec * NSEC_PER_SEC + req->start.nsec; in ravb_ptp_perout() 229 period_ns = req->period.sec * NSEC_PER_SEC + req->period.nsec; in ravb_ptp_perout()
|
/linux-4.4.14/arch/x86/lguest/ |
D | boot.c | 935 unsigned long sec, nsec; in lguest_clock_read() local 953 nsec = lguest_data.time.tv_nsec; in lguest_clock_read() 960 return sec*1000000000ULL + nsec; in lguest_clock_read()
|
/linux-4.4.14/drivers/net/phy/ |
D | dp83640.c | 312 u32 sec, nsec, pwidth; in periodic_output() local 342 nsec = clkreq->perout.start.nsec; in periodic_output() 344 pwidth += clkreq->perout.period.nsec; in periodic_output() 354 ext_write(0, phydev, PAGE4, PTP_TDR, nsec & 0xffff); /* ns[15:0] */ in periodic_output() 355 ext_write(0, phydev, PAGE4, PTP_TDR, nsec >> 16); /* ns[31:16] */ in periodic_output()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/ |
D | memx.fuc | 262 call(nsec) 283 call(nsec)
|
D | i2c_.fuc | 131 */ call(nsec)
|
D | kernel.fuc | 100 nsec:
|
/linux-4.4.14/fs/btrfs/ |
D | ioctl.c | 71 __u32 nsec; member 5170 sa->rtime.nsec = ct.tv_nsec; in _btrfs_ioctl_set_received_subvol() 5184 btrfs_set_stack_timespec_nsec(&root_item->stime, sa->stime.nsec); in _btrfs_ioctl_set_received_subvol() 5186 btrfs_set_stack_timespec_nsec(&root_item->rtime, sa->rtime.nsec); in _btrfs_ioctl_set_received_subvol() 5241 args64->stime.nsec = args32->stime.nsec; in btrfs_ioctl_set_received_subvol_32() 5243 args64->rtime.nsec = args32->rtime.nsec; in btrfs_ioctl_set_received_subvol_32() 5254 args32->stime.nsec = args64->stime.nsec; in btrfs_ioctl_set_received_subvol_32() 5256 args32->rtime.nsec = args64->rtime.nsec; in btrfs_ioctl_set_received_subvol_32()
|
D | ctree.h | 705 __le32 nsec; member 2551 BTRFS_SETGET_FUNCS(timespec_nsec, struct btrfs_timespec, nsec, 32); 2553 BTRFS_SETGET_STACK_FUNCS(stack_timespec_nsec, struct btrfs_timespec, nsec, 32);
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ptp.c | 357 period = t->sec * 1000000000LL + t->nsec; in fm10k_ptp_enable()
|
/linux-4.4.14/Documentation/virtual/kvm/ |
D | msr.txt | 25 u32 nsec; 39 nsec: number of nanoseconds for wallclock at time of boot.
|
/linux-4.4.14/drivers/crypto/ |
D | hifn_795x.c | 796 s64 nsec; in hifn_rng_data_present() local 798 nsec = ktime_to_ns(ktime_sub(ktime_get(), dev->rngtime)); in hifn_rng_data_present() 799 nsec -= dev->rng_wait_time; in hifn_rng_data_present() 800 if (nsec <= 0) in hifn_rng_data_present() 804 ndelay(nsec); in hifn_rng_data_present()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | init.c | 454 unsigned long nsec = 1024 * ccti_timer; in cca_timer_fn() local 456 hrtimer_forward_now(t, ns_to_ktime(nsec)); in cca_timer_fn()
|
D | rc.c | 1913 unsigned long nsec = 1024 * ccti_timer; in process_becn() local 1915 hrtimer_start(&cca_timer->hrtimer, ns_to_ktime(nsec), in process_becn()
|
/linux-4.4.14/fs/fuse/ |
D | dir.c | 76 static u64 time_to_jiffies(unsigned long sec, unsigned long nsec) in time_to_jiffies() argument 78 if (sec || nsec) { in time_to_jiffies() 79 struct timespec ts = {sec, nsec}; in time_to_jiffies()
|
/linux-4.4.14/kernel/events/ |
D | core.c | 2884 static u64 perf_calculate_period(struct perf_event *event, u64 nsec, u64 count) in perf_calculate_period() argument 2893 nsec_fls = fls64(nsec); in perf_calculate_period() 2927 REDUCE_FLS(nsec, frequency); in perf_calculate_period() 2932 divisor = nsec * frequency; in perf_calculate_period() 2944 REDUCE_FLS(nsec, frequency); in perf_calculate_period() 2948 divisor = nsec * frequency; in perf_calculate_period() 2960 static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count, bool disable) in perf_adjust_period() argument 2966 period = perf_calculate_period(event, nsec, count); in perf_adjust_period()
|
/linux-4.4.14/kernel/trace/ |
D | trace.h | 702 extern unsigned long long ns2usecs(cycle_t nsec);
|
D | trace.c | 242 unsigned long long ns2usecs(cycle_t nsec) in ns2usecs() argument 244 nsec += 500; in ns2usecs() 245 do_div(nsec, 1000); in ns2usecs() 246 return nsec; in ns2usecs()
|
/linux-4.4.14/drivers/scsi/aic7xxx/ |
D | aic7xxx.reg | 561 * gives us an 800 nsec timer. After a write to the SEECTL register, 562 * the SEERDY goes high 800 nsec later. The one exception to this is
|
/linux-4.4.14/fs/ocfs2/ |
D | dlmglue.c | 2053 u32 nsec = spec->tv_nsec; in ocfs2_pack_timespec() local 2055 res = (sec << OCFS2_SEC_SHIFT) | (nsec & OCFS2_NSEC_MASK); in ocfs2_pack_timespec()
|
/linux-4.4.14/Documentation/networking/ |
D | timestamping.txt | 13 timestamp as struct timespec (nsec resolution).
|
D | filter.txt | 1280 including timings in nsec can be found in the kernel log (dmesg).
|
/linux-4.4.14/Documentation/filesystems/ |
D | ext4.txt | 89 * nsec timestamps for mtime, atime, ctime, create time
|
/linux-4.4.14/Documentation/scheduler/ |
D | sched-deadline.txt | 579 /* SCHED_DEADLINE (nsec) */
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | tg3.c | 6268 u64 nsec; in tg3_ptp_enable() local 6270 nsec = rq->perout.start.sec * 1000000000ULL + in tg3_ptp_enable() 6271 rq->perout.start.nsec; in tg3_ptp_enable() 6273 if (rq->perout.period.sec || rq->perout.period.nsec) { in tg3_ptp_enable() 6280 if (nsec & (1ULL << 63)) { in tg3_ptp_enable() 6287 tw32(TG3_EAV_WATCHDOG0_LSB, (nsec & 0xffffffff)); in tg3_ptp_enable() 6290 ((nsec >> 32) & TG3_EAV_WATCHDOG_MSB_MASK)); in tg3_ptp_enable()
|
/linux-4.4.14/fs/nfs/ |
D | nfs4xdr.c | 4063 uint32_t nsec; in decode_attr_time() local 4069 nsec = be32_to_cpup(p); in decode_attr_time() 4071 time->tv_nsec = (long)nsec; in decode_attr_time()
|
/linux-4.4.14/arch/x86/kvm/ |
D | x86.c | 1184 wc.nsec = boot.tv_nsec; in kvm_write_wall_clock() 1243 static inline u64 nsec_to_cycles(struct kvm_vcpu *vcpu, u64 nsec) in nsec_to_cycles() argument 1245 return pvclock_scale_delta(nsec, vcpu->arch.virtual_tsc_mult, in nsec_to_cycles()
|