/linux-4.1.27/kernel/time/ |
H A D | timecounter.c | 27 tc->nsec = start_tstamp; timecounter_init() 67 u64 nsec; timecounter_read() local 70 nsec = timecounter_read_delta(tc); timecounter_read() 71 nsec += tc->nsec; timecounter_read() 72 tc->nsec = nsec; timecounter_read() 74 return nsec; timecounter_read() 96 u64 nsec = tc->nsec, frac = tc->frac; timecounter_cyc2time() local 105 nsec -= cc_cyc2ns_backwards(tc->cc, delta, tc->mask, frac); timecounter_cyc2time() 107 nsec += cyclecounter_cyc2ns(tc->cc, delta, tc->mask, &frac); timecounter_cyc2time() 110 return nsec; timecounter_cyc2time()
|
H A D | time.c | 346 * set_normalized_timespec - set timespec sec and nsec parts and normalize 350 * @nsec: nanoseconds to set 359 void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec) set_normalized_timespec() argument 361 while (nsec >= NSEC_PER_SEC) { set_normalized_timespec() 367 asm("" : "+rm"(nsec)); set_normalized_timespec() 368 nsec -= NSEC_PER_SEC; set_normalized_timespec() 371 while (nsec < 0) { set_normalized_timespec() 372 asm("" : "+rm"(nsec)); set_normalized_timespec() 373 nsec += NSEC_PER_SEC; set_normalized_timespec() 377 ts->tv_nsec = nsec; set_normalized_timespec() 383 * @nsec: the nanoseconds value to be converted 385 * Returns the timespec representation of the nsec parameter. 387 struct timespec ns_to_timespec(const s64 nsec) ns_to_timespec() argument 392 if (!nsec) ns_to_timespec() 395 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); ns_to_timespec() 408 * @nsec: the nanoseconds value to be converted 410 * Returns the timeval representation of the nsec parameter. 412 struct timeval ns_to_timeval(const s64 nsec) ns_to_timeval() argument 414 struct timespec ts = ns_to_timespec(nsec); ns_to_timeval() 426 * set_normalized_timespec - set timespec sec and nsec parts and normalize 430 * @nsec: nanoseconds to set 439 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) set_normalized_timespec64() argument 441 while (nsec >= NSEC_PER_SEC) { set_normalized_timespec64() 447 asm("" : "+rm"(nsec)); set_normalized_timespec64() 448 nsec -= NSEC_PER_SEC; set_normalized_timespec64() 451 while (nsec < 0) { set_normalized_timespec64() 452 asm("" : "+rm"(nsec)); set_normalized_timespec64() 453 nsec += NSEC_PER_SEC; set_normalized_timespec64() 457 ts->tv_nsec = nsec; set_normalized_timespec64() 463 * @nsec: the nanoseconds value to be converted 465 * Returns the timespec64 representation of the nsec parameter. 467 struct timespec64 ns_to_timespec64(const s64 nsec) ns_to_timespec64() argument 472 if (!nsec) ns_to_timespec64() 475 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); ns_to_timespec64() 561 * nsec -= nsec % TICK_NSEC; is NOT a correct resolution rounding. 569 * The >> (NSEC_JIFFIE_SC - SEC_JIFFIE_SC) converts the scaled nsec 573 __timespec_to_jiffies(unsigned long sec, long nsec) __timespec_to_jiffies() argument 575 nsec = nsec + TICK_NSEC - 1; __timespec_to_jiffies() 579 nsec = 0; __timespec_to_jiffies() 582 (((u64)nsec * NSEC_CONVERSION) >> __timespec_to_jiffies() 611 * different multiplier for usec instead of nsec). But this has a
|
H A D | ntp.c | 721 * pps_normtime.nsec has a range of ( -NSEC_PER_SEC / 2, NSEC_PER_SEC / 2 ] 725 long nsec; /* nanoseconds */ member in struct:pps_normtime 728 /* normalize the timestamp so that nsec is in the 734 .nsec = ts.tv_nsec pps_normalize_ts() 737 if (norm.nsec > (NSEC_PER_SEC >> 1)) { pps_normalize_ts() 738 norm.nsec -= NSEC_PER_SEC; pps_normalize_ts() 821 ftemp = div_s64(((s64)(-freq_norm.nsec)) << NTP_SCALE_SHIFT, hardpps_update_freq() 925 (freq_norm.nsec > MAXFREQ * freq_norm.sec) || __hardpps() 926 (freq_norm.nsec < -MAXFREQ * freq_norm.sec)) { __hardpps() 944 hardpps_update_phase(pts_norm.nsec); __hardpps()
|
H A D | timekeeping.c | 236 * Calculates a fixed cycle/nsec interval for a given clocksource/adjustment 315 s64 nsec; timekeeping_get_ns() local 319 nsec = (delta * tkr->mult + tkr->xtime_nsec) >> tkr->shift; timekeeping_get_ns() 322 return nsec + arch_gettimeoffset(); timekeeping_get_ns() 553 * Update the ktime_t based scalar nsec members of the timekeeper 558 u32 nsec; tk_update_ktime_data() local 562 * nsec = (xtime_sec + wtm_sec) * 1e9 + wtm_nsec + now(); tk_update_ktime_data() 564 * nsec = base_mono + now(); tk_update_ktime_data() 568 nsec = (u32) tk->wall_to_monotonic.tv_nsec; tk_update_ktime_data() 569 tk->tkr_mono.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec); tk_update_ktime_data() 579 nsec += (u32)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); tk_update_ktime_data() 580 if (nsec >= NSEC_PER_SEC) tk_update_ktime_data() 617 s64 nsec; timekeeping_forward_now() local 631 nsec = clocksource_cyc2ns(delta, tk->tkr_raw.mult, tk->tkr_raw.shift); timekeeping_forward_now() 632 timespec64_add_ns(&tk->raw_time, nsec); timekeeping_forward_now() 781 s64 nsec; ktime_get_ts64() local 789 nsec = timekeeping_get_ns(&tk->tkr_mono); ktime_get_ts64() 796 timespec64_add_ns(ts, nsec + tomono.tv_nsec); ktime_get_ts64() 1392 s64 nsec = 0; timekeeping_resume() local 1405 nsec = (((u64) max * mult) >> shift) * num; timekeeping_resume() 1408 nsec += ((u64) cycle_delta * mult) >> shift; timekeeping_resume() 1410 ts_delta = ns_to_timespec64(nsec); timekeeping_resume()
|
H A D | clockevents.c | 60 * from nsec to device ticks will be correct. cev_delta2ns() 229 "CE: %s increased min_delta_ns to %llu nsec\n", clockevents_increase_min_delta()
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | delay.h | 55 static inline void __ndelay(unsigned long nsec) __ndelay() argument 59 * for legitimate nsec values __ndelay() 61 unsigned long cycles = (nsec * (ccount_freq >> 15)) >> 15; __ndelay() 67 static inline void ndelay(unsigned long nsec) ndelay() argument 69 if (__builtin_constant_p(nsec) && nsec >= __MAX_NDELAY) ndelay() 72 __ndelay(nsec); ndelay()
|
/linux-4.1.27/fs/proc/ |
H A D | uptime.c | 15 u64 nsec; uptime_proc_show() local 24 nsec = cputime64_to_jiffies64(idletime) * TICK_NSEC; uptime_proc_show() 25 idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); uptime_proc_show()
|
H A D | array.c | 460 /* convert nsec -> ticks */ do_task_stat()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | base.c | 27 nvkm_timer_wait_eq(void *obj, u64 nsec, u32 addr, u32 mask, u32 data) nvkm_timer_wait_eq() argument 41 } while (ptimer->read(ptimer) - time0 < nsec); nvkm_timer_wait_eq() 47 nvkm_timer_wait_ne(void *obj, u64 nsec, u32 addr, u32 mask, u32 data) nvkm_timer_wait_ne() argument 61 } while (ptimer->read(ptimer) - time0 < nsec); nvkm_timer_wait_ne() 67 nvkm_timer_wait_cb(void *obj, u64 nsec, bool (*func)(void *), void *data) nvkm_timer_wait_cb() argument 76 } while (ptimer->read(ptimer) - time0 < nsec); nvkm_timer_wait_cb() 82 nvkm_timer_alarm(void *obj, u32 nsec, struct nvkm_alarm *alarm) nvkm_timer_alarm() argument 85 ptimer->alarm(ptimer, nsec, alarm); nvkm_timer_alarm()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
H A D | timer.h | 19 bool nvkm_timer_wait_eq(void *, u64 nsec, u32 addr, u32 mask, u32 data); 20 bool nvkm_timer_wait_ne(void *, u64 nsec, u32 addr, u32 mask, u32 data); 21 bool nvkm_timer_wait_cb(void *, u64 nsec, bool (*func)(void *), void *data); 22 void nvkm_timer_alarm(void *, u32 nsec, struct nvkm_alarm *);
|
H A D | pmu.h | 47 void nvkm_memx_wait(struct nvkm_memx *, u32 addr, u32 mask, u32 data, u32 nsec); 48 void nvkm_memx_nsec(struct nvkm_memx *, u32 nsec);
|
H A D | bus.h | 49 void nvkm_hwsq_nsec(struct nvkm_hwsq *, u32 nsec);
|
/linux-4.1.27/tools/perf/scripts/python/ |
H A D | netdev-times.py | 55 # Calculate a time interval(msec) from src(nsec) to dst(nsec) 227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): 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): 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): 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, 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): 252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret) 255 def napi__napi_poll(name, context, cpu, sec, nsec, pid, comm, callchain, napi, dev_name): 256 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 260 def net__netif_receive_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, 262 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 266 def net__netif_rx(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, 268 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 272 def net__net_dev_queue(name, context, cpu, sec, nsec, pid, comm, callchain, 274 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 278 def net__net_dev_xmit(name, context, cpu, sec, nsec, pid, comm, callchain, 280 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 284 def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, 286 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 290 def skb__consume_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr): 291 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 295 def skb__skb_copy_datagram_iovec(name, context, cpu, sec, nsec, pid, comm, callchain, 297 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
|
H A D | net_dropmonitor.py | 69 def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain,
|
/linux-4.1.27/security/selinux/ |
H A D | netnode.c | 55 struct netnode_security_struct nsec; member in struct:sel_netnode 132 if (node->nsec.family == family) sel_netnode_find() 135 if (node->nsec.addr.ipv4 == *(__be32 *)addr) sel_netnode_find() 139 if (ipv6_addr_equal(&node->nsec.addr.ipv6, sel_netnode_find() 160 switch (node->nsec.family) { sel_netnode_insert() 162 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); sel_netnode_insert() 165 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6); sel_netnode_insert() 209 *sid = node->nsec.sid; sel_netnode_sid_slow() 220 new->nsec.addr.ipv4 = *(__be32 *)addr; sel_netnode_sid_slow() 225 new->nsec.addr.ipv6 = *(struct in6_addr *)addr; sel_netnode_sid_slow() 234 new->nsec.family = family; sel_netnode_sid_slow() 235 new->nsec.sid = *sid; sel_netnode_sid_slow() 270 *sid = node->nsec.sid; sel_netnode_sid()
|
H A D | netif.c | 37 struct netif_security_struct nsec; member in struct:sel_netif 78 if (net_eq(netif->nsec.ns, ns) && sel_netif_find() 79 netif->nsec.ifindex == ifindex) sel_netif_find() 101 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); sel_netif_insert() 157 *sid = netif->nsec.sid; sel_netif_sid_slow() 166 ret = security_netif_sid(dev->name, &new->nsec.sid); sel_netif_sid_slow() 169 new->nsec.ns = ns; sel_netif_sid_slow() 170 new->nsec.ifindex = ifindex; sel_netif_sid_slow() 174 *sid = new->nsec.sid; sel_netif_sid_slow() 210 *sid = netif->nsec.sid; sel_netif_sid()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
H A D | memx.c | 106 u32 addr, u32 mask, u32 data, u32 nsec) nvkm_memx_wait() 109 addr, mask, data, nsec); nvkm_memx_wait() 110 memx_cmd(memx, MEMX_WAIT, 4, (u32[]){ addr, mask, data, nsec }); nvkm_memx_wait() 115 nvkm_memx_nsec(struct nvkm_memx *memx, u32 nsec) nvkm_memx_nsec() argument 117 nv_debug(memx->pmu, " DELAY = %d ns\n", nsec); nvkm_memx_nsec() 118 memx_cmd(memx, MEMX_DELAY, 1, (u32[]){ nsec }); nvkm_memx_nsec() 105 nvkm_memx_wait(struct nvkm_memx *memx, u32 addr, u32 mask, u32 data, u32 nsec) nvkm_memx_wait() argument
|
/linux-4.1.27/tools/testing/selftests/mqueue/ |
H A D | mq_perf_tests.c | 352 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \ 354 send_total.tv_nsec += nsec; \ 359 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \ 361 recv_total.tv_nsec += nsec; \ 427 unsigned long long nsec; perf_test_thread() local 443 printf("\t\tClock resolution:\t\t%lu nsec%s\n", res.tv_nsec, perf_test_thread() 459 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + perf_test_thread() 461 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); perf_test_thread() 464 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + perf_test_thread() 466 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); perf_test_thread() 485 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * perf_test_thread() 487 printf("done.\t\t%lld.%llds\n", nsec / 1000000000, perf_test_thread() 488 nsec % 1000000000); perf_test_thread() 498 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + perf_test_thread() 500 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); perf_test_thread() 503 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + perf_test_thread() 505 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); perf_test_thread() 511 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * perf_test_thread() 513 printf("done.\t\t%lld.%llds\n", nsec / 1000000000, perf_test_thread() 514 nsec % 1000000000); perf_test_thread()
|
/linux-4.1.27/arch/tile/gxio/ |
H A D | iorpc_mpipe.c | 414 uint64_t nsec; member in struct:get_timestamp_aux_param 419 uint64_t *nsec, uint64_t *cycles) gxio_mpipe_get_timestamp_aux() 429 *nsec = params->nsec; gxio_mpipe_get_timestamp_aux() 439 uint64_t nsec; member in struct:set_timestamp_aux_param 444 uint64_t nsec, uint64_t cycles) gxio_mpipe_set_timestamp_aux() 450 params->nsec = nsec; gxio_mpipe_set_timestamp_aux() 460 int64_t nsec; member in struct:adjust_timestamp_aux_param 463 int gxio_mpipe_adjust_timestamp_aux(gxio_mpipe_context_t *context, int64_t nsec) gxio_mpipe_adjust_timestamp_aux() argument 468 params->nsec = nsec; gxio_mpipe_adjust_timestamp_aux() 418 gxio_mpipe_get_timestamp_aux(gxio_mpipe_context_t *context, uint64_t *sec, uint64_t *nsec, uint64_t *cycles) gxio_mpipe_get_timestamp_aux() argument 443 gxio_mpipe_set_timestamp_aux(gxio_mpipe_context_t *context, uint64_t sec, uint64_t nsec, uint64_t cycles) gxio_mpipe_set_timestamp_aux() argument
|
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_hwtstamp.c | 54 static int stmmac_init_systime(void __iomem *ioaddr, u32 sec, u32 nsec) stmmac_init_systime() argument 60 writel(nsec, ioaddr + PTP_STNSUR); stmmac_init_systime() 103 static int stmmac_adjust_systime(void __iomem *ioaddr, u32 sec, u32 nsec, stmmac_adjust_systime() argument 110 writel(((add_sub << PTP_STNSUR_ADDSUB_SHIFT) | nsec), stmmac_adjust_systime()
|
H A D | stmmac_ptp.c | 77 u32 sec, nsec; stmmac_adjust_time() local 88 nsec = reminder; stmmac_adjust_time() 92 priv->hw->ptp->adjust_systime(priv->ioaddr, sec, nsec, neg_adj); stmmac_adjust_time()
|
H A 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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | ramfuc.h | 123 ramfuc_wait(struct ramfuc *ram, u32 addr, u32 mask, u32 data, u32 nsec) ramfuc_wait() argument 125 nvkm_memx_wait(ram->memx, addr, mask, data, nsec); ramfuc_wait() 129 ramfuc_nsec(struct ramfuc *ram, u32 nsec) ramfuc_nsec() argument 131 nvkm_memx_nsec(ram->memx, nsec); ramfuc_nsec()
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | cputime.h | 14 * If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in nsec.
|
/linux-4.1.27/arch/arm/common/ |
H A D | locomo.c | 634 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_sendbit() 635 udelay(DAC_DATA_HOLD_TIME); /* 300 nsec */ locomo_m62332_sendbit() 639 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_sendbit() 646 udelay(DAC_HIGH_SETUP_TIME); /* 1000 nsec */ locomo_m62332_sendbit() 651 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_sendbit() 654 udelay(DAC_DATA_SETUP_TIME); /* 250 nsec */ locomo_m62332_sendbit() 658 udelay(DAC_HIGH_SETUP_TIME); /* 1000 nsec */ locomo_m62332_sendbit() 678 udelay(DAC_HIGH_SETUP_TIME); /* 1000 nsec */ locomo_m62332_senddata() 684 udelay(DAC_DATA_HOLD_TIME); /* 300 nsec */ locomo_m62332_senddata() 696 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_senddata() 701 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_senddata() 705 udelay(DAC_HIGH_SETUP_TIME); /* 1000 nsec */ locomo_m62332_senddata() 724 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_senddata() 729 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_senddata() 733 udelay(DAC_HIGH_SETUP_TIME); /* 1000 nsec */ locomo_m62332_senddata() 749 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_senddata() 754 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_senddata() 758 udelay(DAC_HIGH_SETUP_TIME); /* 1000 nsec */ locomo_m62332_senddata() 769 udelay(DAC_LOW_SETUP_TIME); /* 300 nsec */ locomo_m62332_senddata() 774 udelay(DAC_HIGH_SETUP_TIME); /* 1000 nsec */ locomo_m62332_senddata() 779 udelay(DAC_HIGH_SETUP_TIME); /* 1000 nsec */ locomo_m62332_senddata() 785 udelay(DAC_LOW_SETUP_TIME); /* 1000 nsec */ locomo_m62332_senddata()
|
/linux-4.1.27/kernel/sched/ |
H A D | debug.c | 37 * Ease the printing of nsec fields: 39 static long long nsec_high(unsigned long long nsec) nsec_high() argument 41 if ((long long)nsec < 0) { nsec_high() 42 nsec = -nsec; nsec_high() 43 do_div(nsec, 1000000); nsec_high() 44 return -nsec; nsec_high() 46 do_div(nsec, 1000000); nsec_high() 48 return nsec; nsec_high() 51 static unsigned long nsec_low(unsigned long long nsec) nsec_low() argument 53 if ((long long)nsec < 0) nsec_low() 54 nsec = -nsec; nsec_low() 56 return do_div(nsec, 1000000); nsec_low()
|
/linux-4.1.27/drivers/misc/sgi-gru/ |
H A D | gruhandles.c | 44 unsigned long nsec; update_mcs_stats() local 46 nsec = CLKS2NSEC(clks); update_mcs_stats() 48 atomic_long_add(nsec, &mcs_op_statistics[op].total); update_mcs_stats() 49 if (mcs_op_statistics[op].max < nsec) update_mcs_stats() 50 mcs_op_statistics[op].max = nsec; update_mcs_stats()
|
/linux-4.1.27/drivers/pps/ |
H A D | kapi.c | 43 ts->nsec += offset->nsec; pps_add_offset() 44 while (ts->nsec >= NSEC_PER_SEC) { pps_add_offset() 45 ts->nsec -= NSEC_PER_SEC; pps_add_offset() 48 while (ts->nsec < 0) { pps_add_offset() 49 ts->nsec += NSEC_PER_SEC; pps_add_offset() 177 struct pps_ktime ts_real = { .sec = 0, .nsec = 0, .flags = 0 }; pps_event()
|
H A D | sysfs.c | 41 (long long) pps->assert_tu.sec, pps->assert_tu.nsec, assert_show() 55 (long long) pps->clear_tu.sec, pps->clear_tu.nsec, clear_show()
|
H A D | pps.c | 166 fdata.timeout.nsec); pps_cdev_ioctl() 168 ticks += fdata.timeout.nsec / (NSEC_PER_SEC / HZ); pps_cdev_ioctl()
|
/linux-4.1.27/include/linux/ |
H A D | time.h | 57 extern void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec); 211 * @nsec: the nanoseconds value to be converted 213 * Returns the timespec representation of the nsec parameter. 215 extern struct timespec ns_to_timespec(const s64 nsec); 219 * @nsec: the nanoseconds value to be converted 221 * Returns the timeval representation of the nsec parameter. 223 extern struct timeval ns_to_timeval(const s64 nsec);
|
H A D | time64.h | 98 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec); 168 * @nsec: the nanoseconds value to be converted 170 * Returns the timespec64 representation of the nsec parameter. 172 extern struct timespec64 ns_to_timespec64(const s64 nsec);
|
H A D | timecounter.h | 60 * @nsec: continuously increasing count 67 u64 nsec; member in struct:timecounter 95 tc->nsec += delta; timecounter_adjtime()
|
H A D | pps_kernel.h | 111 kt->nsec = ts.tv_nsec; timespec_to_pps_ktime()
|
H A D | clockchips.h | 159 div_sc(unsigned long ticks, unsigned long nsec, int shift) div_sc() argument 163 do_div(tmp, nsec); div_sc()
|
H A D | poll.h | 162 extern int poll_select_set_timeout(struct timespec *to, long sec, long nsec);
|
H A D | timex.h | 140 extern unsigned long tick_nsec; /* SHIFTED_HZ period (nsec) */
|
H A D | jiffies.h | 59 /* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */
|
H A D | sched.h | 1447 u64 start_time; /* monotonic time in nsec */ 1448 u64 real_start_time; /* boot based time in nsec */
|
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-ptp.c | 130 u64 nsec; xgbe_cc_read() local 132 nsec = pdata->hw_if.get_tstamp_time(pdata); xgbe_cc_read() 134 return nsec; xgbe_cc_read() 188 u64 nsec; xgbe_gettime() local 192 nsec = timecounter_read(&pdata->tstamp_tc); xgbe_gettime() 196 *ts = ns_to_timespec64(nsec); xgbe_gettime() 208 u64 nsec; xgbe_settime() local 210 nsec = timespec64_to_ns(ts); xgbe_settime() 214 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, nsec); xgbe_settime()
|
H A D | xgbe-dev.c | 1214 unsigned int nsec) xgbe_set_tstamp_time() 1218 XGMAC_IOWRITE(pdata, MAC_STNUR, nsec); xgbe_set_tstamp_time() 1228 u64 nsec; xgbe_get_tstamp_time() local 1230 nsec = XGMAC_IOREAD(pdata, MAC_STSR); xgbe_get_tstamp_time() 1231 nsec *= NSEC_PER_SEC; xgbe_get_tstamp_time() 1232 nsec += XGMAC_IOREAD(pdata, MAC_STNR); xgbe_get_tstamp_time() 1234 return nsec; xgbe_get_tstamp_time() 1240 u64 nsec; xgbe_get_tx_tstamp() local 1246 nsec = XGMAC_IOREAD(pdata, MAC_TXSSR); xgbe_get_tx_tstamp() 1247 nsec *= NSEC_PER_SEC; xgbe_get_tx_tstamp() 1248 nsec += tx_snr; xgbe_get_tx_tstamp() 1250 return nsec; xgbe_get_tx_tstamp() 1256 u64 nsec; xgbe_get_rx_tstamp() local 1260 nsec = le32_to_cpu(rdesc->desc1); xgbe_get_rx_tstamp() 1261 nsec <<= 32; xgbe_get_rx_tstamp() 1262 nsec |= le32_to_cpu(rdesc->desc0); xgbe_get_rx_tstamp() 1263 if (nsec != 0xffffffffffffffffULL) { xgbe_get_rx_tstamp() 1264 packet->rx_tstamp = nsec; xgbe_get_rx_tstamp() 1213 xgbe_set_tstamp_time(struct xgbe_prv_data *pdata, unsigned int sec, unsigned int nsec) xgbe_set_tstamp_time() argument
|
H A D | xgbe-drv.c | 1059 u64 nsec; xgbe_tx_tstamp() local 1063 nsec = timecounter_cyc2time(&pdata->tstamp_tc, xgbe_tx_tstamp() 1067 hwtstamps.hwtstamp = ns_to_ktime(nsec); xgbe_tx_tstamp() 2057 u64 nsec; xgbe_rx_poll() local 2059 nsec = timecounter_cyc2time(&pdata->tstamp_tc, xgbe_rx_poll() 2062 hwtstamps->hwtstamp = ns_to_ktime(nsec); xgbe_rx_poll()
|
H A D | xgbe.h | 199 * 50MHz => 20 nsec 579 unsigned int nsec);
|
/linux-4.1.27/arch/arm/vdso/ |
H A D | vgettimeofday.c | 124 u64 nsec; get_ns() local 130 nsec = (cycle_delta * vdata->cs_mult) + vdata->xtime_clock_snsec; get_ns() 131 nsec >>= vdata->cs_shift; get_ns() 133 return nsec; get_ns()
|
/linux-4.1.27/sound/core/seq/ |
H A D | seq_timer.h | 29 unsigned long resolution; /* time per tick in nsec */ 30 unsigned long fraction; /* current time per tick in nsec */ 116 static inline void snd_seq_inc_time_nsec(snd_seq_real_time_t *tm, unsigned long nsec) snd_seq_inc_time_nsec() argument 118 tm->tv_nsec += nsec; snd_seq_inc_time_nsec()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | hwsq.h | 137 hwsq_nsec(struct hwsq *ram, u32 nsec) hwsq_nsec() argument 139 nvkm_hwsq_nsec(ram->hwsq, nsec); hwsq_nsec()
|
H A D | hwsq.c | 133 nvkm_hwsq_nsec(struct nvkm_hwsq *hwsq, u32 nsec) nvkm_hwsq_nsec() argument 135 u8 shift = 0, usec = nsec / 1000; nvkm_hwsq_nsec() 141 nv_debug(hwsq->pbus, " DELAY = %d ns\n", nsec); nvkm_hwsq_nsec()
|
/linux-4.1.27/Documentation/ptp/ |
H A D | testptp.c | 109 return t->sec * 1000000000LL + t->nsec; pctns() 366 event.t.sec, event.t.nsec); main() 445 perout_request.start.nsec = 0; main() 447 perout_request.period.nsec = perout; main() 504 (pct+2*i)->sec, (pct+2*i)->nsec); main() 506 (pct+2*i+1)->sec, (pct+2*i+1)->nsec); main() 508 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); main()
|
/linux-4.1.27/fs/ |
H A D | utimes.c | 43 static bool nsec_valid(long nsec) nsec_valid() argument 45 if (nsec == UTIME_OMIT || nsec == UTIME_NOW) nsec_valid() 48 return nsec >= 0 && nsec <= 999999999; nsec_valid()
|
H A D | select.c | 265 * @nsec: nanoseconds (from user space) 270 * Returns -EINVAL if sec/nsec are not normalized. Otherwise 0. 272 int poll_select_set_timeout(struct timespec *to, long sec, long nsec) poll_select_set_timeout() argument 274 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; poll_select_set_timeout() 280 if (!sec && !nsec) { poll_select_set_timeout()
|
/linux-4.1.27/arch/tile/include/gxio/ |
H A D | iorpc_mpipe.h | 124 uint64_t *nsec, uint64_t *cycles); 127 uint64_t nsec, uint64_t cycles); 130 int64_t nsec);
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | binfmt_elfn32.c | 105 u64 nsec = (u64)jiffies * TICK_NSEC; jiffies_to_compat_timeval() local 107 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); jiffies_to_compat_timeval()
|
H A D | binfmt_elfo32.c | 126 u64 nsec = (u64)jiffies * TICK_NSEC; jiffies_to_compat_timeval() local 128 value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); jiffies_to_compat_timeval()
|
/linux-4.1.27/drivers/ptp/ |
H A D | ptp_chardev.c | 171 enable = req.perout.period.sec || req.perout.period.nsec; ptp_ioctl() 202 pct->nsec = ts.tv_nsec; ptp_ioctl() 206 pct->nsec = ts.tv_nsec; ptp_ioctl() 211 pct->nsec = ts.tv_nsec; ptp_ioctl()
|
H A D | ptp_sysfs.c | 122 event.index, event.t.sec, event.t.nsec); extts_fifo_show() 138 &req.perout.start.sec, &req.perout.start.nsec, period_store() 139 &req.perout.period.sec, &req.perout.period.nsec); period_store() 145 enable = req.perout.period.sec || req.perout.period.nsec; period_store()
|
H A D | ptp_clock.c | 68 dst->t.nsec = remainder; enqueue_external_timestamp()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | pvclock-abi.h | 39 u32 nsec; member in struct:pvclock_wall_clock
|
/linux-4.1.27/fs/adfs/ |
H A D | inode.c | 178 s64 nsec; adfs_adfs2unix_time() local 189 nsec = (((s64) high << 32) | (s64) low) * 10000000; /* cs to ns */ adfs_adfs2unix_time() 192 if (nsec < nsec_unix_epoch_diff_risc_os_epoch) adfs_adfs2unix_time() 196 nsec -= nsec_unix_epoch_diff_risc_os_epoch; adfs_adfs2unix_time() 198 *tv = ns_to_timespec(nsec); adfs_adfs2unix_time()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | bit.c | 56 i2c_delay(struct nvkm_i2c_port *port, u32 nsec) i2c_delay() argument 58 udelay((nsec + 500) / 1000); i2c_delay()
|
/linux-4.1.27/arch/arm/include/asm/xen/ |
H A D | interface.h | 78 u32 nsec; member in struct:pvclock_wall_clock
|
/linux-4.1.27/include/asm-generic/ |
H A D | cputime_nsecs.h | 74 * Convert cputime <-> timespec (nsec)
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_clock.c | 66 u64 nsec; mlx4_en_fill_hwtstamps() local 69 nsec = timecounter_cyc2time(&mdev->clock, timestamp); mlx4_en_fill_hwtstamps() 73 hwts->hwtstamp = ns_to_ktime(nsec); mlx4_en_fill_hwtstamps()
|
/linux-4.1.27/arch/powerpc/kernel/vdso32/ |
H A D | gettimeofday.S | 87 50: bl __do_get_tspec@local /* get sec/nsec from tb & kernel */ 97 * At this point, r3,r4 contain our sec/nsec values, r5 and r6 115 * which may cause funny results if nsec goes negative... is that
|
/linux-4.1.27/sound/pci/hda/ |
H A D | hda_controller.c | 232 u64 nsec; azx_timecounter_init() local 250 nsec = 0; /* audio time is elapsed time since trigger */ azx_timecounter_init() 251 timecounter_init(tc, cc, nsec); azx_timecounter_init() 268 u64 nsec) azx_adjust_codec_delay() 275 return nsec; azx_adjust_codec_delay() 282 return nsec + codec_nsecs; azx_adjust_codec_delay() 284 return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0; azx_adjust_codec_delay() 748 u64 nsec; azx_get_time_info() local 755 nsec = timecounter_read(&azx_dev->azx_tc); azx_get_time_info() 756 nsec = div_u64(nsec, 3); /* can be optimized */ azx_get_time_info() 758 nsec = azx_adjust_codec_delay(substream, nsec); azx_get_time_info() 760 *audio_ts = ns_to_timespec(nsec); azx_get_time_info() 267 azx_adjust_codec_delay(struct snd_pcm_substream *substream, u64 nsec) azx_adjust_codec_delay() argument
|
/linux-4.1.27/drivers/char/ |
H A D | mmtimer.c | 483 u64 nsec; sgi_clock_get() local 485 nsec = rtc_time() * sgi_clock_period sgi_clock_get() 487 *tp = ns_to_timespec(nsec); sgi_clock_get() 495 u64 nsec; sgi_clock_set() local 498 nsec = rtc_time() * sgi_clock_period; sgi_clock_set() 500 sgi_clock_offset.tv_sec = tp->tv_sec - div_u64_rem(nsec, NSEC_PER_SEC, &rem); sgi_clock_set()
|
/linux-4.1.27/drivers/ide/ |
H A D | palm_bk3710.c | 63 unsigned int rptime; /* tRP -- Ready to pause time (nsec) */ 64 unsigned int cycletime; /* tCYCTYP2/2 -- avg Cycle Time (nsec) */ 65 /* tENV is always a minimum of 20 nsec */
|
/linux-4.1.27/include/uapi/linux/ |
H A D | gfs2_ondisk.h | 287 __be32 di_atime_nsec; /* nsec portion of atime */ 288 __be32 di_mtime_nsec; /* nsec portion of mtime */ 289 __be32 di_ctime_nsec; /* nsec portion of ctime */
|
H A D | pps.h | 55 __s32 nsec; member in struct:pps_ktime
|
H A D | ptp_clock.h | 43 __u32 nsec; /* nanoseconds */ member in struct:ptp_clock_time
|
H A D | btrfs.h | 449 __u32 nsec; member in struct:btrfs_ioctl_timespec
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | pvclock.c | 131 now.tv_nsec = wall_clock->nsec; pvclock_read_wallclock()
|
/linux-4.1.27/drivers/char/mwave/ |
H A D | tp3780i.h | 68 #define TP_CFG_IsaMemCmdWidth 3 /* 295 nsec (16-bit) */
|
/linux-4.1.27/include/sound/ |
H A D | timer.h | 58 unsigned long resolution; /* average timer resolution for one tick in nsec */
|
/linux-4.1.27/kernel/ |
H A D | tsacct.c | 39 /* calculate task elapsed time in nsec */ bacct_add_tsk()
|
H A D | acct.c | 427 /* calculate run_time in nsec*/ fill_ac() 430 /* convert nsec -> AHZ */ fill_ac()
|
/linux-4.1.27/drivers/net/ethernet/intel/igb/ |
H A D | igb_ptp.c | 123 u32 sec, nsec; igb_ptp_read_i210() local 130 nsec = rd32(E1000_SYSTIML); igb_ptp_read_i210() 134 ts->tv_nsec = nsec; igb_ptp_read_i210() 511 ts.tv_nsec = rq->perout.period.nsec; igb_ptp_feature_enable_i210() 538 igb->perout[i].start.tv_nsec = rq->perout.start.nsec; igb_ptp_feature_enable_i210() 542 wr32(trgttiml, rq->perout.start.nsec); igb_ptp_feature_enable_i210()
|
H A D | igb_main.c | 5405 u32 ack = 0, tsauxc, sec, nsec, tsicr = rd32(E1000_TSICR); igb_tsync_interrupt() local 5451 nsec = rd32(E1000_AUXSTMPL0); igb_tsync_interrupt() 5455 event.timestamp = sec * 1000000000ULL + nsec; igb_tsync_interrupt() 5461 nsec = rd32(E1000_AUXSTMPL1); igb_tsync_interrupt() 5465 event.timestamp = sec * 1000000000ULL + nsec; igb_tsync_interrupt()
|
/linux-4.1.27/drivers/net/phy/ |
H A D | dp83640.c | 311 u32 sec, nsec, pwidth; periodic_output() local 341 nsec = clkreq->perout.start.nsec; periodic_output() 343 pwidth += clkreq->perout.period.nsec; periodic_output() 353 ext_write(0, phydev, PAGE4, PTP_TDR, nsec & 0xffff); /* ns[15:0] */ periodic_output() 354 ext_write(0, phydev, PAGE4, PTP_TDR, nsec >> 16); /* ns[31:16] */ periodic_output()
|
/linux-4.1.27/drivers/block/xen-blkback/ |
H A D | blkback.c | 954 seg[n].nsec = segments[i].last_sect - xen_blkbk_parse_indirect() 962 preq->nr_sects += seg[n].nsec; xen_blkbk_parse_indirect() 1261 seg[i].nsec = req->u.rw.seg[i].last_sect - dispatch_rw_block_io() 1268 preq.nr_sects += seg[i].nsec; dispatch_rw_block_io() 1291 if (((int)preq.sector_number|(int)seg[i].nsec) & dispatch_rw_block_io() 1325 seg[i].nsec << 9, dispatch_rw_block_io() 1340 preq.sector_number += seg[i].nsec; dispatch_rw_block_io()
|
H A D | common.h | 327 unsigned int nsec; member in struct:seg_buf
|
/linux-4.1.27/lib/ |
H A D | crc32.c | 983 u64 nsec; crc32c_test() local 1013 nsec = stop.tv_nsec - start.tv_nsec + crc32c_test() 1021 pr_info("crc32c: self tests passed, processed %d bytes in %lld nsec\n", crc32c_test() 1022 bytes, nsec); crc32c_test() 1069 u64 nsec; crc32_test() local 1106 nsec = stop.tv_nsec - start.tv_nsec + crc32_test() 1115 pr_info("crc32: self tests passed, processed %d bytes in %lld nsec\n", crc32_test() 1116 bytes, nsec); crc32_test()
|
/linux-4.1.27/arch/cris/arch-v10/kernel/ |
H A D | time.c | 67 /* Convert timer value to nsec */ cris_v10_gettimeoffset()
|
/linux-4.1.27/drivers/spi/ |
H A D | spi-txx9.c | 159 /* CS setup/hold/recovery time in nsec */ txx9spi_work_one()
|
H A D | spi-bitbang.c | 205 dev_dbg(&spi->dev, "%s, %u nsec/bit\n", __func__, 2 * cs->nsecs); spi_bitbang_setup()
|
/linux-4.1.27/drivers/scsi/aic7xxx/ |
H A D | aic7xxx_93cx6.c | 57 * 1 usec, with the clock high and low a minimum of 750 and 250 nsec
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_mad.c | 852 * nsec. 0 == 4 nsec., 1 == 8 nsec., ..., 255 == 1020 nsec. Sample recv_pma_get_portsamplescontrol()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_mad.h | 219 /* number of 4nsec cycles equaling 2secs */
|
H A D | qib_iba7220.c | 478 /* HW counter clock is at 4nsec */ 2422 * 0x00 = 10x link transfer rate or 4 nsec. for 2.5Gbs qib_7220_get_ib_cfg()
|
H A D | qib_iba7322.c | 226 /* HW counter clock is at 4nsec */ 4088 * 0x00 = 10x link transfer rate or 4 nsec. for 2.5Gbs qib_7322_get_ib_cfg()
|
/linux-4.1.27/drivers/clocksource/ |
H A D | tcb_clksrc.c | 21 * resolution better than 200 nsec).
|
/linux-4.1.27/drivers/ata/ |
H A D | pata_at91.c | 183 * cycles = x [nsec] * f [Hz] / 10^9 [ns in sec] = calc_mck_cycles()
|
/linux-4.1.27/include/net/ |
H A D | codel.h | 59 /* CoDel uses a 1024 nsec clock, encoded in u32
|
/linux-4.1.27/tools/perf/util/ |
H A D | util.c | 449 /* make it nsec precision */ parse_nsec_time()
|
/linux-4.1.27/fs/btrfs/ |
H A D | ioctl.c | 71 __u32 nsec; member in struct:btrfs_ioctl_timespec_32 5005 sa->rtime.nsec = ct.tv_nsec; _btrfs_ioctl_set_received_subvol() 5019 btrfs_set_stack_timespec_nsec(&root_item->stime, sa->stime.nsec); _btrfs_ioctl_set_received_subvol() 5021 btrfs_set_stack_timespec_nsec(&root_item->rtime, sa->rtime.nsec); _btrfs_ioctl_set_received_subvol() 5076 args64->stime.nsec = args32->stime.nsec; btrfs_ioctl_set_received_subvol_32() 5078 args64->rtime.nsec = args32->rtime.nsec; btrfs_ioctl_set_received_subvol_32() 5089 args32->stime.nsec = args64->stime.nsec; btrfs_ioctl_set_received_subvol_32() 5091 args32->rtime.nsec = args64->rtime.nsec; btrfs_ioctl_set_received_subvol_32()
|
H A D | ctree.h | 705 __le32 nsec; member in struct:btrfs_timespec 2507 BTRFS_SETGET_FUNCS(timespec_nsec, struct btrfs_timespec, nsec, 32); 2509 BTRFS_SETGET_STACK_FUNCS(stack_timespec_nsec, struct btrfs_timespec, nsec, 32);
|
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_ptp.c | 356 period = t->sec * 1000000000LL + t->nsec; fm10k_ptp_enable()
|
/linux-4.1.27/drivers/pci/pcie/ |
H A D | aspm.c | 37 u32 l0s; /* L0s latency (nsec) */ 38 u32 l1; /* L1 latency (nsec) */
|
/linux-4.1.27/drivers/crypto/ |
H A D | hifn_795x.c | 798 s64 nsec; hifn_rng_data_present() local 800 nsec = ktime_to_ns(ktime_sub(ktime_get(), dev->rngtime)); hifn_rng_data_present() 801 nsec -= dev->rng_wait_time; hifn_rng_data_present() 802 if (nsec <= 0) hifn_rng_data_present() 806 ndelay(nsec); hifn_rng_data_present()
|
/linux-4.1.27/arch/x86/lguest/ |
H A D | boot.c | 929 unsigned long sec, nsec; lguest_clock_read() local 947 nsec = lguest_data.time.tv_nsec; lguest_clock_read() 954 return sec*1000000000ULL + nsec; lguest_clock_read()
|
/linux-4.1.27/fs/fuse/ |
H A D | dir.c | 76 static u64 time_to_jiffies(unsigned long sec, unsigned long nsec) time_to_jiffies() argument 78 if (sec || nsec) { time_to_jiffies() 79 struct timespec ts = {sec, nsec}; time_to_jiffies()
|
/linux-4.1.27/drivers/net/can/softing/ |
H A D | softing_fw.c | 406 /* find nsec from card */ softing_raw2ktime()
|
/linux-4.1.27/drivers/sh/maple/ |
H A D | maple.c | 103 * bits 31 - 16 timeout in units of 20nsec maple_dma_reset()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | i8254.c | 343 pr_debug("create pit timer, interval is %llu nsec\n", interval); create_pit_timer()
|
H A D | x86.c | 1143 wc.nsec = boot.tv_nsec; kvm_write_wall_clock() 1207 static inline u64 nsec_to_cycles(struct kvm_vcpu *vcpu, u64 nsec) nsec_to_cycles() argument 1209 return pvclock_scale_delta(nsec, vcpu->arch.virtual_tsc_mult, nsec_to_cycles()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/ |
H A D | gf100.fuc3.h | 955 /* 0x007f: nsec */
|
H A D | gf110.fuc4.h | 948 /* 0x0067: nsec */
|
H A D | gk208.fuc5.h | 946 /* 0x005d: nsec */
|
H A D | gt215.fuc3.h | 955 /* 0x007f: nsec */
|
/linux-4.1.27/kernel/trace/ |
H A D | trace_output.c | 495 unsigned long long val; /* unit: nsec */
|
H A D | trace.c | 246 unsigned long long ns2usecs(cycle_t nsec) ns2usecs() argument 248 nsec += 500; ns2usecs() 249 do_div(nsec, 1000); ns2usecs() 250 return nsec; ns2usecs()
|
H A D | trace.h | 695 extern unsigned long long ns2usecs(cycle_t nsec);
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
H A D | device.c | 169 seq_printf(seq, "%04u: sec %lu nsec %lu qid %u opcode " wr_log_show() 170 "%u %s 0x%x host_wr_delta sec %lu nsec %lu " wr_log_show()
|
/linux-4.1.27/kernel/events/ |
H A D | core.c | 2856 static u64 perf_calculate_period(struct perf_event *event, u64 nsec, u64 count) perf_calculate_period() argument 2865 nsec_fls = fls64(nsec); perf_calculate_period() 2870 * We got @count in @nsec, with a target of sample_freq HZ perf_calculate_period() 2875 * @nsec * sample_freq perf_calculate_period() 2899 REDUCE_FLS(nsec, frequency); perf_calculate_period() 2904 divisor = nsec * frequency; perf_calculate_period() 2916 REDUCE_FLS(nsec, frequency); perf_calculate_period() 2920 divisor = nsec * frequency; perf_calculate_period() 2932 static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count, bool disable) perf_adjust_period() argument 2938 period = perf_calculate_period(event, nsec, count); perf_adjust_period()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | cmd.c | 648 "fw exec time for %s is %lld nsec\n", mlx5_cmd_invoke()
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | rx_desc.h | 968 * nsec. The value starts at 0 and increments to 79 and
|
/linux-4.1.27/drivers/cpufreq/ |
H A D | longhaul.c | 909 policy->cpuinfo.transition_latency = 200000; /* nsec */ longhaul_cpu_init()
|
/linux-4.1.27/drivers/media/dvb-core/ |
H A D | dvb_demux.c | 423 1000000); /* nsec -> usec */ dvb_dmx_swfilter_packet()
|
/linux-4.1.27/include/linux/usb/ |
H A D | hcd.h | 600 #define USB2_HOST_DELAY 5 /* nsec, guess */
|
/linux-4.1.27/fs/ext4/ |
H A D | ext4.h | 693 __le32 i_ctime_extra; /* extra Change time (nsec << 2 | epoch) */ 694 __le32 i_mtime_extra; /* extra Modification time(nsec << 2 | epoch) */ 695 __le32 i_atime_extra; /* extra Access time (nsec << 2 | epoch) */ 697 __le32 i_crtime_extra; /* extra FileCreationtime (nsec << 2 | epoch) */
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-kvm.c | 1353 kvm->duration *= NSEC_PER_USEC; /* convert usec to nsec */ kvm_events_live()
|
/linux-4.1.27/drivers/net/ethernet/dlink/ |
H A D | dl2k.c | 444 /* Set RIO to poll every N*320nsec. */ rio_open()
|
H A D | sundance.c | 888 /* Set the chip to poll every N*320nsec. */ netdev_open()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | ehci-q.c | 792 * - allowing for high bandwidth, how many nsec/uframe are used? qh_make()
|
H A D | oxu210hp-hcd.c | 1382 * - allowing for high bandwidth, how many nsec/uframe are used? qh_make()
|
H A D | fotg210-hcd.c | 2870 * - allowing for high bandwidth, how many nsec/uframe are used? qh_make()
|
H A D | fusbh200-hcd.c | 2817 * - allowing for high bandwidth, how many nsec/uframe are used? qh_make()
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs4xdr.c | 4032 uint32_t nsec; decode_attr_time() local 4038 nsec = be32_to_cpup(p); decode_attr_time() 4040 time->tv_nsec = (long)nsec; decode_attr_time()
|
/linux-4.1.27/fs/nfsd/ |
H A D | vfs.c | 1460 /* XXX someone who knows this better please fix it for nsec */ do_nfsd_create()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 6268 u64 nsec; tg3_ptp_enable() local 6270 nsec = rq->perout.start.sec * 1000000000ULL + tg3_ptp_enable() 6271 rq->perout.start.nsec; tg3_ptp_enable() 6273 if (rq->perout.period.sec || rq->perout.period.nsec) { tg3_ptp_enable() 6280 if (nsec & (1ULL << 63)) { tg3_ptp_enable() 6282 "Start value (nsec) is over limit. Maximum size of start is only 63 bits\n"); tg3_ptp_enable() 6287 tw32(TG3_EAV_WATCHDOG0_LSB, (nsec & 0xffffffff)); tg3_ptp_enable() 6290 ((nsec >> 32) & TG3_EAV_WATCHDOG_MSB_MASK)); tg3_ptp_enable()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | dlmglue.c | 2053 u32 nsec = spec->tv_nsec; ocfs2_pack_timespec() local 2055 res = (sec << OCFS2_SEC_SHIFT) | (nsec & OCFS2_NSEC_MASK); ocfs2_pack_timespec()
|
/linux-4.1.27/drivers/char/ipmi/ |
H A D | ipmi_si_intf.c | 1007 * Use -1 in the nsec value of the busy waiting timespec to tell that
|
/linux-4.1.27/kernel/printk/ |
H A D | printk.c | 180 * 0000 ff 8f 00 00 00 00 00 00 monotonic time in nsec
|