Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 25 of 125) sorted by relevance

12345

/linux/kernel/time/
H A Dvsyscall.c46 u64 nsec, sec; in update_vdso_time_data()
55 nsec = tk->tkr_mono.xtime_nsec; in update_vdso_time_data()
56 nsec += ((u64)tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vdso_time_data()
57 vdso_ts->sec += __iter_div64_u64_rem(nsec, (u64)NSEC_PER_SEC << tk->tkr_mono.shift, in update_vdso_time_data()
58 &vdso_ts->nsec); in update_vdso_time_data()
62 nsec = vdso_ts->nsec; in update_vdso_time_data()
65 nsec += (u64)tk->monotonic_to_boot.tv_nsec << tk->tkr_mono.shift; in update_vdso_time_data()
70 vdso_ts->sec += __iter_div64_u64_rem(nsec, (u64)NSEC_PER_SEC << tk->tkr_mono.shift, in update_vdso_time_data()
71 &vdso_ts->nsec); in update_vdso_time_data()
33 u64 nsec, sec; update_vdso_time_data() local
83 u64 nsec; update_vsyscall() local
146 u64 nsec; vdso_time_update_aux() local
[all...]
/linux/Documentation/sound/designs/
H A Dtimestamping.rst152 playback: systime: 341121338 nsec, audio time 342000000 nsec, systime delta -878662
153 playback: systime: 426236663 nsec, audio time 427187500 nsec, systime delta -950837
154 playback: systime: 597080580 nsec, audio time 598000000 nsec, systime delta -919420
155 playback: systime: 682059782 nsec, audio time 683020833 nsec, systime delta -961051
156 playback: systime: 852896415 nsec, audio time 853854166 nsec, systime delta -957751
157 playback: systime: 937903344 nsec, audio time 938854166 nsec, systime delta -950822
163 playback: systime: 341053347 nsec, audio time 341062500 nsec, systime delta -9153
164 playback: systime: 426072447 nsec, audio time 426062500 nsec, systime delta 9947
165 playback: systime: 596899518 nsec, audio time 596895833 nsec, systime delta 3685
166 playback: systime: 681915317 nsec, audio time 681916666 nsec, systime delta -1349
[all …]
/linux/tools/testing/radix-tree/
H A Dbenchmark.c19 long long nsec; in benchmark_iter() local
38 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_iter()
42 if (loops == 1 && nsec * 5 < NSEC_PER_SEC) { in benchmark_iter()
43 loops = NSEC_PER_SEC / nsec / 4 + 1; in benchmark_iter()
48 nsec /= loops; in benchmark_iter()
49 return nsec; in benchmark_iter()
57 long long nsec; in benchmark_insert() local
66 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_insert()
70 size, step, nsec); in benchmark_insert()
78 long long nsec; in benchmark_tagging() local
[all …]
/linux/security/selinux/
H A Dnetnode.c46 struct netnode_security_struct nsec; member
122 if (node->nsec.family == family) in sel_netnode_find()
125 if (node->nsec.addr.ipv4 == *(const __be32 *)addr) in sel_netnode_find()
129 if (ipv6_addr_equal(&node->nsec.addr.ipv6, in sel_netnode_find()
150 switch (node->nsec.family) { in sel_netnode_insert()
152 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert()
155 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6); in sel_netnode_insert()
200 *sid = node->nsec.sid; in sel_netnode_sid_slow()
214 new->nsec.addr.ipv4 = *(const __be32 *)addr; in sel_netnode_sid_slow()
220 new->nsec.addr.ipv6 = *(const struct in6_addr *)addr; in sel_netnode_sid_slow()
[all …]
H A Dnetif.c35 struct netif_security_struct nsec; member
75 if (net_eq(netif->nsec.ns, ns) && in sel_netif_find()
76 netif->nsec.ifindex == ifindex) in sel_netif_find()
98 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); in sel_netif_insert()
153 *sid = netif->nsec.sid; in sel_netif_sid_slow()
166 new->nsec.ns = ns; in sel_netif_sid_slow()
167 new->nsec.ifindex = ifindex; in sel_netif_sid_slow()
168 new->nsec.sid = *sid; in sel_netif_sid_slow()
203 *sid = netif->nsec.sid; in sel_netif_sid()
/linux/tools/perf/scripts/python/
H A Dnetdev-times.py
H A Dpowerpc-hcalls.py
/linux/arch/xtensa/include/asm/
H A Ddelay.h55 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/tools/testing/selftests/ptp/
H A Dtestptp.c113 return t->sec * NSEC_PER_SEC + t->nsec; in pctns()
469 event.t.sec, event.t.nsec); in main()
521 perout_request.period.nsec = perout % NSEC_PER_SEC; in main()
526 perout_request.on.nsec = pulsewidth % NSEC_PER_SEC; in main()
531 perout_request.phase.nsec = perout_phase % NSEC_PER_SEC; in main()
534 perout_request.start.nsec = 0; in main()
581 (pct+2*i)->sec, (pct+2*i)->nsec); in main()
583 (pct+2*i+1)->sec, (pct+2*i+1)->nsec); in main()
585 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); in main()
615 soe->ts[i][0].nsec); in main()
[all …]
/linux/include/asm-generic/
H A Ddelay.h74 static __always_inline void ndelay(unsigned long nsec) in ndelay() argument
76 if (__builtin_constant_p(nsec)) { in ndelay()
77 if (nsec >= DELAY_CONST_MAX) in ndelay()
80 __const_udelay(nsec * NDELAY_CONST_MULT); in ndelay()
82 __ndelay(nsec); in ndelay()
/linux/tools/testing/selftests/mqueue/
H A Dmq_perf_tests.c359 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \
361 send_total.tv_nsec += nsec; \
366 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \
368 recv_total.tv_nsec += nsec; \
435 unsigned long long nsec; in perf_test_thread() local
467 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + in perf_test_thread()
469 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); in perf_test_thread()
472 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + in perf_test_thread()
474 printf("\t\t\t\t\t\t%lld nsec/msg\n", nsec); in perf_test_thread()
493 nsec = ((unsigned long long)(end.tv_sec - start.tv_sec) * in perf_test_thread()
[all …]
/linux/drivers/net/phy/
H A Dmicrochip_rds_ptp.c82 ts_period.tv_nsec = perout_request->period.nsec; in mchp_get_pulsewidth()
85 ts_on.tv_nsec = perout_request->on.nsec; in mchp_get_pulsewidth()
250 perout->start.nsec); in mchp_rds_ptp_perout()
255 perout->period.nsec); in mchp_rds_ptp_perout()
394 shhwtstamps->hwtstamp = ktime_set(rx_ts->seconds, rx_ts->nsec); in mchp_rds_ptp_match_skb()
437 shhwtstamps->hwtstamp = ktime_set(rx_ts->seconds, rx_ts->nsec); in mchp_rds_ptp_match_rx_skb()
649 u32 nsec; in mchp_rds_ptp_ltc_adjtime() local
654 * sec and 999999999 nsec, then we add 8ns to compensate the actual in mchp_rds_ptp_ltc_adjtime()
670 sec = div_u64_rem(abs(delta), NSEC_PER_SEC, &nsec); in mchp_rds_ptp_ltc_adjtime()
671 if (delta < 0 && nsec ! in mchp_rds_ptp_ltc_adjtime()
933 mchp_rds_ptp_match_tx_skb(struct mchp_rds_ptp_clock * clock,u32 seconds,u32 nsec,u16 seq_id) mchp_rds_ptp_match_tx_skb() argument
966 u32 sec, nsec; mchp_rds_ptp_get_rx_ts() local
1033 mchp_rds_ptp_get_tx_ts(struct mchp_rds_ptp_clock * clock,u32 * sec,u32 * nsec,u16 * seq) mchp_rds_ptp_get_tx_ts() argument
1078 u32 sec, nsec; mchp_rds_ptp_process_tx_ts() local
[all...]
H A Dmicrel.c138 * each nsec contains 4 clock cycles.
144 * each nsec contains 8 clock cycles.
427 u32 nsec; member
3462 rx_ts->nsec); in lan8814_match_rx_skb()
3498 time64_t sec, u32 nsec) in lan8814_ptp_clock_set() argument
3507 PTP_CLOCK_SET_NS_LO, lower_16_bits(nsec)); in lan8814_ptp_clock_set()
3509 PTP_CLOCK_SET_NS_HI, upper_16_bits(nsec)); in lan8814_ptp_clock_set()
3516 time64_t *sec, u32 *nsec) in lan8814_ptp_clock_get() argument
3530 *nsec = lanphy_read_page_reg(phydev, LAN8814_PAGE_COMMON_REGS, in lan8814_ptp_clock_get()
3532 *nsec << in lan8814_ptp_clock_get()
3670 u32 nsec; lan8814_ptp_clock_step() local
4122 lan8814_match_tx_skb(struct kszphy_ptp_priv * ptp_priv,u32 seconds,u32 nsec,u16 seq_id) lan8814_match_tx_skb() argument
4154 u32 seconds, nsec; lan8814_dequeue_tx_skb() local
4277 unsigned long nsec; lan8814_gpio_process_cap() local
4973 lan8841_ptp_get_tx_ts(struct kszphy_ptp_priv * ptp_priv,u32 * sec,u32 * nsec,u16 * seq) lan8841_ptp_get_tx_ts() argument
4995 u32 sec, nsec; lan8841_ptp_process_tx_ts() local
5035 s32 sec, nsec; lan8841_gpio_process_cap() local
5344 lan8841_ptp_set_target(struct kszphy_ptp_priv * ptp_priv,u8 event,s64 sec,u32 nsec) lan8841_ptp_set_target() argument
5383 lan8841_ptp_set_reload(struct kszphy_ptp_priv * ptp_priv,u8 event,s64 sec,u32 nsec) lan8841_ptp_set_reload() argument
5518 u32 nsec; lan8841_ptp_adjtime() local
[all...]
/linux/drivers/pps/
H A Dkapi.c29 ts->nsec += offset->nsec; in pps_add_offset()
30 while (ts->nsec >= NSEC_PER_SEC) { in pps_add_offset()
31 ts->nsec -= NSEC_PER_SEC; in pps_add_offset()
34 while (ts->nsec < 0) { in pps_add_offset()
35 ts->nsec += NSEC_PER_SEC; in pps_add_offset()
161 struct pps_ktime ts_real = { .sec = 0, .nsec = 0, .flags = 0 }; in pps_event()
/linux/tools/testing/selftests/net/tcp_ao/
H A Dbench-lookups.c96 uint64_t nsec; in measure_call() local
106 nsec = (end.tv_sec - start.tv_sec) * NSEC_PER_SEC; in measure_call()
108 nsec += end.tv_nsec - start.tv_nsec; in measure_call()
110 nsec -= start.tv_nsec - end.tv_nsec; in measure_call()
113 st->min = st->max = nsec; in measure_call()
115 if (st->min > nsec) in measure_call()
116 st->min = nsec; in measure_call()
117 if (st->max < nsec) in measure_call()
118 st->max = nsec; in measure_call()
123 delta = (double)nsec - st->mean; in measure_call()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ptp.c153 static u64 mlxsw_sp1_ptp_ns2cycles(const struct timecounter *tc, u64 nsec) in mlxsw_sp1_ptp_ns2cycles() argument
155 u64 cycles = (u64) nsec; in mlxsw_sp1_ptp_ns2cycles()
164 mlxsw_sp1_ptp_phc_settime(struct mlxsw_sp1_ptp_clock *clock, u64 nsec) in mlxsw_sp1_ptp_phc_settime() argument
172 next_sec = div_u64(nsec, NSEC_PER_SEC) + 1; in mlxsw_sp1_ptp_phc_settime()
209 u64 nsec; in mlxsw_sp1_ptp_adjtime() local
213 nsec = timecounter_read(&clock->tc); in mlxsw_sp1_ptp_adjtime()
216 return mlxsw_sp1_ptp_phc_settime(clock, nsec); in mlxsw_sp1_ptp_adjtime()
224 u64 cycles, nsec; in mlxsw_sp1_ptp_gettimex() local
228 nsec = timecounter_cyc2time(&clock->tc, cycles); in mlxsw_sp1_ptp_gettimex()
231 *ts = ns_to_timespec64(nsec); in mlxsw_sp1_ptp_gettimex()
[all …]
/linux/fs/adfs/
H A Dinode.c181 s64 nsec; in adfs_adfs2unix_time() local
192 nsec = (((s64) high << 32) | (s64) low) * 10000000; /* cs to ns */ in adfs_adfs2unix_time()
195 if (nsec < nsec_unix_epoch_diff_risc_os_epoch) in adfs_adfs2unix_time()
199 nsec -= nsec_unix_epoch_diff_risc_os_epoch; in adfs_adfs2unix_time()
201 *tv = ns_to_timespec64(nsec); in adfs_adfs2unix_time()
217 s64 cs, nsec = timespec64_to_ns(ts); in adfs_unix2adfs_time() local
220 nsec += nsec_unix_epoch_diff_risc_os_epoch; in adfs_unix2adfs_time()
223 cs = div_s64(nsec, 10000000); in adfs_unix2adfs_time()
/linux/drivers/ptp/
H A Dptp_chardev.c273 perout->on.nsec > perout->period.nsec)) in ptp_perout_request()
285 perout->phase.nsec >= perout->period.nsec)) in ptp_perout_request()
299 return ops->enable(ops, &req, perout->period.sec || perout->period.nsec); in ptp_perout_request()
335 precise_offset.device.nsec = ts.tv_nsec; in ptp_sys_offset_precise()
338 precise_offset.sys_realtime.nsec = ts.tv_nsec; in ptp_sys_offset_precise()
341 precise_offset.sys_monoraw.nsec = ts.tv_nsec; in ptp_sys_offset_precise()
393 extoff->ts[i][1].nsec = ts.tv_nsec; in ptp_sys_offset_extended()
397 extoff->ts[i][0].nsec = ts.tv_nsec; in ptp_sys_offset_extended()
401 extoff->ts[i][2].nsec = ts.tv_nsec; in ptp_sys_offset_extended()
427 pct->nsec = ts.tv_nsec; in ptp_sys_offset()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dmemx.c108 u32 addr, u32 mask, u32 data, u32 nsec) in nvkm_memx_wait() argument
111 addr, mask, data, nsec); in nvkm_memx_wait()
112 memx_cmd(memx, MEMX_WAIT, 4, (u32[]){ addr, mask, data, nsec }); in nvkm_memx_wait()
117 nvkm_memx_nsec(struct nvkm_memx *memx, u32 nsec) in nvkm_memx_nsec() argument
119 nvkm_debug(&memx->pmu->subdev, " DELAY = %d ns\n", nsec); in nvkm_memx_nsec()
120 memx_cmd(memx, MEMX_DELAY, 1, (u32[]){ nsec }); in nvkm_memx_nsec()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dbase.c54 nvkm_timer_wait_init(struct nvkm_device *device, u64 nsec, in nvkm_timer_wait_init() argument
58 wait->limit = nsec; in nvkm_timer_wait_init()
106 nvkm_timer_alarm(struct nvkm_timer *tmr, u32 nsec, struct nvkm_alarm *alarm) in nvkm_timer_alarm() argument
119 if (nsec) { in nvkm_timer_alarm()
121 alarm->timestamp = nvkm_timer_read(tmr) + nsec; in nvkm_timer_alarm()
/linux/drivers/net/ethernet/cavium/common/
H A Dcavium_ptp.c167 u64 nsec; in cavium_ptp_gettime() local
170 nsec = timecounter_read(&clock->time_counter); in cavium_ptp_gettime()
173 *ts = ns_to_timespec64(nsec); in cavium_ptp_gettime()
189 u64 nsec; in cavium_ptp_settime() local
191 nsec = timespec64_to_ns(ts); in cavium_ptp_settime()
194 timecounter_init(&clock->time_counter, &clock->cycle_counter, nsec); in cavium_ptp_settime()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dramfuc.h123 ramfuc_wait(struct ramfuc *ram, u32 addr, u32 mask, u32 data, u32 nsec) in ramfuc_wait() argument
125 nvkm_memx_wait(ram->memx, addr, mask, data, nsec); in ramfuc_wait()
129 ramfuc_nsec(struct ramfuc *ram, u32 nsec) in ramfuc_nsec() argument
131 nvkm_memx_nsec(ram->memx, nsec); in ramfuc_nsec()
/linux/drivers/gpu/drm/nouveau/nvif/
H A Dtimer.c50 nvif_timer_wait_init(struct nvif_device *device, u64 nsec, in nvif_timer_wait_init() argument
54 wait->limit = nsec; in nvif_timer_wait_init()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.c119 u64 nsec; in otx2_ptp_hw_settime() local
125 nsec = timespec64_to_ns(ts); in otx2_ptp_hw_settime()
135 req->clk = nsec; in otx2_ptp_hw_settime()
263 u64 nsec; in otx2_ptp_tc_settime() local
265 nsec = timespec64_to_ns(ts); in otx2_ptp_tc_settime()
268 timecounter_init(&ptp->time_counter, &ptp->cycle_counter, nsec); in otx2_ptp_tc_settime()
370 rq->perout.period.nsec; in otx2_ptp_enable()
/linux/arch/m68k/include/asm/
H A Ddelay.h116 static inline void ndelay(unsigned long nsec) in ndelay() argument
118 __delay(DIV_ROUND_UP(nsec * in ndelay()

12345