Home
last modified time | relevance | path

Searched refs:nsec (Results 101 - 125 of 347) sorted by relevance

12345678910>>...14

/third_party/node/lib/internal/process/
H A Dper_thread.js86 const nsec = hrValues[2] - time[1];
87 const needsBorrow = nsec < 0;
88 return [needsBorrow ? sec - 1 : sec, needsBorrow ? nsec + 1e9 : nsec];
/third_party/ltp/testcases/network/stress/ns-tools/
H A Dns-common.c332 unsigned long nsec = 0; in strtotimespec() local
342 nsec = strtoul(str + len - 9, NULL, 0); in strtotimespec()
344 nsec = strtoul(str, NULL, 0); in strtotimespec()
348 ts_p->tv_nsec = nsec; in strtotimespec()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/vpn_manager_test/
H A Dnetworkvpn_client_test.cpp192 int32_t nsec = 1; in HWTEST_F() local
193 int32_t ret = vpnInterface.ConnectControl(fd, nsec); in HWTEST_F()
198 ret = vpnInterface.ConnectControl(fd, nsec); in HWTEST_F()
/kernel/linux/linux-5.10/drivers/clocksource/
H A Djcore-pit.c47 u32 seclo, nsec, seclo0; in jcore_sched_clock_read() local
53 nsec = readl(base + REG_NSEC); in jcore_sched_clock_read()
57 return seclo * NSEC_PER_SEC + nsec; in jcore_sched_clock_read()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c66 u64 nsec; in mlx4_en_fill_hwtstamps() local
70 nsec = timecounter_cyc2time(&mdev->clock, timestamp); in mlx4_en_fill_hwtstamps()
74 hwts->hwtstamp = ns_to_ktime(nsec); in mlx4_en_fill_hwtstamps()
/kernel/linux/linux-6.6/drivers/clocksource/
H A Djcore-pit.c44 u32 seclo, nsec, seclo0; in jcore_sched_clock_read() local
50 nsec = readl(base + REG_NSEC); in jcore_sched_clock_read()
54 return seclo * NSEC_PER_SEC + nsec; in jcore_sched_clock_read()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c64 u64 nsec; in mlx4_en_get_hwtstamp() local
68 nsec = timecounter_cyc2time(&mdev->clock, timestamp); in mlx4_en_get_hwtstamp()
71 return ns_to_ktime(nsec); in mlx4_en_get_hwtstamp()
/kernel/linux/linux-5.10/sound/pci/hda/
H A Dhda_controller.c64 u64 nsec) in azx_adjust_codec_delay()
71 return nsec; in azx_adjust_codec_delay()
78 return nsec + codec_nsecs; in azx_adjust_codec_delay()
80 return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0; in azx_adjust_codec_delay()
516 u64 nsec; in azx_get_time_info() local
523 nsec = timecounter_read(&azx_dev->core.tc); in azx_get_time_info()
524 nsec = div_u64(nsec, 3); /* can be optimized */ in azx_get_time_info()
526 nsec in azx_get_time_info()
63 azx_adjust_codec_delay(struct snd_pcm_substream *substream, u64 nsec) azx_adjust_codec_delay() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
H A Dskl-pcm.c1225 u64 nsec) in skl_adjust_codec_delay()
1232 return nsec; in skl_adjust_codec_delay()
1239 return nsec + codec_nsecs; in skl_adjust_codec_delay()
1241 return (nsec > codec_nsecs) ? nsec - codec_nsecs : 0; in skl_adjust_codec_delay()
1253 u64 nsec; in skl_platform_soc_get_time_info() local
1260 nsec = timecounter_read(&hstr->tc); in skl_platform_soc_get_time_info()
1261 nsec = div_u64(nsec, 3); /* can be optimized */ in skl_platform_soc_get_time_info()
1263 nsec in skl_platform_soc_get_time_info()
1224 skl_adjust_codec_delay(struct snd_pcm_substream *substream, u64 nsec) skl_adjust_codec_delay() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.c204 clock_info->nsec = timer->tc.nsec; in mlx5_update_clock_info_page()
536 static u64 perout_conf_real_time(s64 sec, u32 nsec) in perout_conf_real_time() argument
538 return (u64)nsec | (u64)sec << 32; in perout_conf_real_time()
547 ts.tv_nsec = rq->perout.period.nsec; in perout_conf_1pps()
571 ts.tv_nsec = rq->perout.on.nsec; in mlx5_perout_conf_out_pulse_duration()
578 ts.tv_nsec = rq->perout.period.nsec; in mlx5_perout_conf_out_pulse_duration()
603 ts.tv_nsec = rq->perout.period.nsec; in perout_conf_npps_real_time()
609 *period = perout_conf_real_time(rq->perout.period.sec, rq->perout.period.nsec); in perout_conf_npps_real_time()
614 *time_stamp = perout_conf_real_time(time->sec, time->nsec); in perout_conf_npps_real_time()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth.h245 u32 nsec; member
250 u64 sec, nsec; in ns_to_ptp_tstamp() local
253 nsec = do_div(sec, 1000000000); in ns_to_ptp_tstamp()
257 tstamp->nsec = nsec; in ns_to_ptp_tstamp()
/kernel/linux/linux-5.10/include/linux/
H A Dtime64.h61 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
136 * @nsec: the nanoseconds value to be converted
138 * Returns the timespec64 representation of the nsec parameter.
140 extern struct timespec64 ns_to_timespec64(const s64 nsec);
H A Dclockchips.h172 div_sc(unsigned long ticks, unsigned long nsec, int shift) in div_sc() argument
176 do_div(tmp, nsec); in div_sc()
/kernel/linux/linux-5.10/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) in snd_seq_inc_time_nsec() argument
103 tm->tv_nsec += nsec; in snd_seq_inc_time_nsec()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.h144 hwsq_nsec(struct hwsq *ram, u32 nsec) in hwsq_nsec() argument
146 nvkm_hwsq_nsec(ram->hwsq, nsec); in hwsq_nsec()
/kernel/linux/linux-5.10/drivers/ptp/
H A Dptp_kvm.c69 tspec.tv_nsec = clock_pair.nsec; in ptp_kvm_get_time_fn()
129 tspec.tv_nsec = clock_pair.nsec; in ptp_kvm_gettime()
/kernel/linux/linux-6.6/include/linux/
H A Dclockchips.h172 div_sc(unsigned long ticks, unsigned long nsec, int shift) in div_sc() argument
176 do_div(tmp, nsec); in div_sc()
H A Dtime64.h66 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
144 * @nsec: the nanoseconds value to be converted
146 * Returns the timespec64 representation of the nsec parameter.
148 extern struct timespec64 ns_to_timespec64(s64 nsec);
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dtimer.h29 void nvkm_timer_alarm(struct nvkm_timer *, u32 nsec, struct nvkm_alarm *);
39 void nvkm_timer_wait_init(struct nvkm_device *, u64 nsec,
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.h144 hwsq_nsec(struct hwsq *ram, u32 nsec) in hwsq_nsec() argument
146 nvkm_hwsq_nsec(ram->hwsq, nsec); in hwsq_nsec()
/kernel/linux/linux-6.6/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) in snd_seq_inc_time_nsec() argument
103 tm->tv_nsec += nsec; in snd_seq_inc_time_nsec()
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c424 u32 nsec) in lan966x_get_hwtimestamp()
443 ts->tv_nsec = nsec; in lan966x_get_hwtimestamp()
446 if (curr_nsec < nsec) in lan966x_get_hwtimestamp()
840 rq->perout.period.nsec == 0) in lan966x_ptp_perout()
845 ts_phase.tv_nsec = rq->perout.phase.nsec; in lan966x_ptp_perout()
848 ts_phase.tv_nsec = rq->perout.start.nsec; in lan966x_ptp_perout()
861 ts_on.tv_nsec = rq->perout.on.nsec; in lan966x_ptp_perout()
886 ts_period.tv_nsec = rq->perout.period.nsec; in lan966x_ptp_perout()
422 lan966x_get_hwtimestamp(struct lan966x *lan966x, struct timespec64 *ts, u32 nsec) lan966x_get_hwtimestamp() argument
/kernel/linux/linux-6.6/drivers/net/phy/
H A Dbcm-phy-ptp.c391 u32 sec, nsec; in bcm_ptp_rxtstamp() local
404 nsec = get_unaligned_be32(data + 4); in bcm_ptp_rxtstamp()
407 hwts->hwtstamp = ktime_set(sec, nsec); in bcm_ptp_rxtstamp()
423 u32 sec, nsec; in bcm_ptp_get_tstamp() local
453 nsec = (ts[1] << 16) | ts[0]; in bcm_ptp_get_tstamp()
454 capts->hwtstamp = ktime_set(sec, nsec); in bcm_ptp_get_tstamp()
595 if (req->period.sec != 1 || req->period.nsec != 0) in bcm_ptp_perout_locked()
604 pulse = ktime_to_ns(ktime_set(req->on.sec, req->on.nsec)); in bcm_ptp_perout_locked()
883 /* use sec.nsec heartbeat capture */ in bcm_ptp_config_init()
/kernel/linux/linux-6.6/drivers/ptp/
H A Dptp_idt82p33.c59 s32 nsec; in idt82p33_byte_array_to_timespec() local
62 nsec = buf[3]; in idt82p33_byte_array_to_timespec()
64 nsec <<= 8; in idt82p33_byte_array_to_timespec()
65 nsec |= buf[2 - i]; in idt82p33_byte_array_to_timespec()
75 ts->tv_nsec = nsec; in idt82p33_byte_array_to_timespec()
82 s32 nsec; in idt82p33_timespec_to_byte_array() local
85 nsec = ts->tv_nsec; in idt82p33_timespec_to_byte_array()
89 buf[i] = nsec & 0xff; in idt82p33_timespec_to_byte_array()
90 nsec >>= 8; in idt82p33_timespec_to_byte_array()
959 else if (rq->perout.start.nsec || r in idt82p33_enable()
[all...]
/kernel/linux/linux-5.10/kernel/time/
H A Dtimekeeping.c304 * Calculates a fixed cycle/nsec interval for a given clocksource/adjustment
383 u64 nsec; in timekeeping_delta_to_ns() local
385 nsec = delta * tkr->mult + tkr->xtime_nsec; in timekeeping_delta_to_ns()
386 nsec >>= tkr->shift; in timekeeping_delta_to_ns()
389 return nsec + arch_gettimeoffset(); in timekeeping_delta_to_ns()
704 * Update the ktime_t based scalar nsec members of the timekeeper
709 u32 nsec; in tk_update_ktime_data() local
713 * nsec = (xtime_sec + wtm_sec) * 1e9 + wtm_nsec + now(); in tk_update_ktime_data()
715 * nsec = base_mono + now(); in tk_update_ktime_data()
719 nsec in tk_update_ktime_data()
961 u64 nsec; ktime_get_ts64() local
1758 u64 cycle_now, nsec; timekeeping_resume() local
[all...]

Completed in 19 milliseconds

12345678910>>...14