Home
last modified time | relevance | path

Searched refs:NSEC_PER_USEC (Results 1 – 25 of 131) sorted by relevance

123456

/linux/tools/testing/selftests/rseq/
H A Dslice_test.c45 #define NSEC_PER_USEC 1000L macro
71 .slice_nsecs = 2LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
72 .noise_nsecs = 2LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
73 .sleep_nsecs = 50LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
79 .slice_nsecs = 50LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
80 .noise_nsecs = 2LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
81 .sleep_nsecs = 50LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
87 .slice_nsecs = 2LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
88 .noise_nsecs = 2LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
89 .sleep_nsecs = 50LL * NSEC_PER_USEC, in FIXTURE_VARIANT_ADD()
/linux/drivers/comedi/drivers/
H A Dcomedi_test.c297 NSEC_PER_USEC); in waveform_ai_cmdtest()
305 NSEC_PER_USEC); in waveform_ai_cmdtest()
326 rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ai_cmdtest()
327 arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC); in waveform_ai_cmdtest()
331 limit = rounddown(limit, (unsigned int)NSEC_PER_USEC); in waveform_ai_cmdtest()
341 rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ai_cmdtest()
342 arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC); in waveform_ai_cmdtest()
373 devpriv->ai_convert_period = cmd->convert_arg / NSEC_PER_USEC; in waveform_ai_cmd()
379 devpriv->ai_scan_period = cmd->scan_begin_arg / NSEC_PER_USEC; in waveform_ai_cmd()
579 NSEC_PER_USEC); in waveform_ao_cmdtest()
[all …]
/linux/kernel/time/
H A Ditimer.c40 rem = NSEC_PER_USEC; in itimer_get_remtime()
106 v.it_interval.tv_usec = i->it_interval.tv_nsec / NSEC_PER_USEC; in put_itimerval()
108 v.it_value.tv_usec = i->it_value.tv_nsec / NSEC_PER_USEC; in put_itimerval()
135 v32.it_interval.tv_usec = i->it_interval.tv_nsec / NSEC_PER_USEC; in put_old_itimerval32()
137 v32.it_value.tv_usec = i->it_value.tv_nsec / NSEC_PER_USEC; in put_old_itimerval32()
345 o->it_interval.tv_nsec = v.it_interval.tv_usec * NSEC_PER_USEC; in get_itimerval()
347 o->it_value.tv_nsec = v.it_value.tv_usec * NSEC_PER_USEC; in get_itimerval()
391 o->it_interval.tv_nsec = v32.it_interval.tv_usec * NSEC_PER_USEC; in get_old_itimerval32()
393 o->it_value.tv_nsec = v32.it_value.tv_usec * NSEC_PER_USEC; in get_old_itimerval32()
H A Dntp.c115 #define ONE_US_NS ((s64)NSEC_PER_USEC << NTP_SCALE_SHIFT)
118 (((MAX_TICKADJ * NSEC_PER_USEC) << NTP_SCALE_SHIFT) / NTP_INTERVAL_FREQ)
219 txc->jitter = ntpdata->pps_jitter / NSEC_PER_USEC; in ntp_offset_chunk()
267 second_length = (u64)(tick_usec * NSEC_PER_USEC * USER_HZ) << NTP_SCALE_SHIFT; in ntp_update_frequency()
308 offset *= NSEC_PER_USEC; in ntp_update_offset()
661 ntpdata->time_maxerror += MAXFREQ / NSEC_PER_USEC; in sync_hw_clock()
1051 txc->offset = div_s64(txc->offset, NSEC_PER_USEC); in __hardpps()
1075 txc->time.tv_usec = ts->tv_nsec / NSEC_PER_USEC; in __hardpps()
1229 NSEC_PER_USEC) - ntpdata->pps_stabil) >> PPS_INTMIN;
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dptp.c50 u64 last_gp2_ns = mvm->ptp_data.scale_update_gp2 * NSEC_PER_USEC; in iwl_mvm_ptp_get_adj_time()
55 div64_u64(base_time_ns, NSEC_PER_USEC)); in iwl_mvm_ptp_get_adj_time()
61 (data->wrap_counter * IWL_PTP_GP2_WRAP * NSEC_PER_USEC); in iwl_mvm_ptp_get_adj_time()
140 new_diff = tmp_sys_time - ((u64)tmp_gp2 * NSEC_PER_USEC); in iwl_mvm_phc_get_crosstimestamp_loop()
183 gp2_ns = iwl_mvm_ptp_get_adj_time(mvm, (u64)gp2 * NSEC_PER_USEC); in iwl_mvm_phc_get_crosstimestamp()
219 ns = iwl_mvm_ptp_get_adj_time(mvm, gp2 * NSEC_PER_USEC); in iwl_mvm_ptp_gettime()
262 iwl_mvm_ptp_get_adj_time(mvm, gp2 * NSEC_PER_USEC); in iwl_mvm_ptp_adjfine()
/linux/include/linux/
H A Dktime.h159 return ktime_divns(kt, NSEC_PER_USEC); in ktime_to_us()
179 return ktime_add_ns(kt, usec * NSEC_PER_USEC); in ktime_add_us()
189 return ktime_sub_ns(kt, usec * NSEC_PER_USEC); in ktime_sub_us()
227 return us * NSEC_PER_USEC; in us_to_ktime()
/linux/drivers/cpuidle/
H A Ddriver.c186 s->target_residency_ns = s->target_residency * NSEC_PER_USEC; in __cpuidle_driver_init()
190 s->target_residency = div_u64(s->target_residency_ns, NSEC_PER_USEC); in __cpuidle_driver_init()
193 s->exit_latency_ns = mul_u32_u32(s->exit_latency, NSEC_PER_USEC); in __cpuidle_driver_init()
197 s->exit_latency = div_u64(s->exit_latency_ns, NSEC_PER_USEC); in __cpuidle_driver_init()
/linux/rust/kernel/
H A Dtime.rs34 pub const NSEC_PER_USEC: i64 = bindings::NSEC_PER_USEC as i64; constant
444 value: micros.saturating_mul(NSEC_PER_USEC), in from_micros()
506 n / NSEC_PER_USEC + add in as_micros_ceil()
/linux/tools/testing/selftests/net/
H A Dstress_reuseport_listen.c21 #define NSEC_PER_USEC 1000L macro
98 (end_ns - start_ns) / NSEC_PER_USEC); in main()
H A Dtxtimestamp.c53 #define NSEC_PER_USEC 1000L macro
110 return ts->tv_sec * USEC_PER_SEC + ts->tv_nsec / NSEC_PER_USEC; in timespec_to_us64()
179 fprintf(stderr, "%" PRId64 " us", ts_delta / NSEC_PER_USEC); in __print_ts_delta_formatted()
196 name, cur->tv_sec, cur->tv_nsec / NSEC_PER_USEC, in __print_timestamp()
684 usleep(100 * NSEC_PER_USEC); in do_test()
/linux/net/mac802154/
H A Dutil.c133 hw->phy->lifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete()
137 hw->phy->sifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete()
/linux/kernel/cgroup/
H A Drstat.c717 do_div(forceidle_time, NSEC_PER_USEC); in cgroup_force_idle_show()
738 do_div(bstat.cputime.sum_exec_runtime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
739 do_div(bstat.cputime.utime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
740 do_div(bstat.cputime.stime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
741 do_div(bstat.ntime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
/linux/net/sched/
H A Dsch_codel.c157 ((u64)target * NSEC_PER_USEC) >> CODEL_SHIFT); in codel_change()
164 (val * NSEC_PER_USEC) >> CODEL_SHIFT); in codel_init()
171 ((u64)interval * NSEC_PER_USEC) >> CODEL_SHIFT); in codel_init()
H A Dsch_fq.c1166 (u64)NSEC_PER_USEC * in fq_init()
1175 (u64)NSEC_PER_USEC * in fq_init()
1183 u64 offload_horizon = (u64)NSEC_PER_USEC * in fq_init()
1254 q->timer_slack = 10 * NSEC_PER_USEC; /* 10 usec of hrtimer slack */ in fq_dump()
1260 q->ce_threshold = (u64)NSEC_PER_USEC * ~0U; in fq_dump()
1292 do_div(ce_threshold, NSEC_PER_USEC); in fq_dump_stats()
1295 do_div(horizon, NSEC_PER_USEC); in fq_dump_stats()
1298 do_div(offload_horizon, NSEC_PER_USEC); in fq_dump_stats()
H A Dsch_pie.c163 PSCHED_NS2TICKS((u64)target * NSEC_PER_USEC)); in pie_change()
478 NSEC_PER_USEC) || in pie_dump()
504 NSEC_PER_USEC, in pie_dump_stats()
/linux/tools/include/linux/
H A Dtime64.h7 #define NSEC_PER_USEC 1000L macro
/linux/include/vdso/
H A Dtime64.h8 #define NSEC_PER_USEC 1000L macro
/linux/drivers/pwm/
H A Dpwm-crc.c44 clk_div = PWM_BASE_CLK_MHZ * period_ns / (256 * NSEC_PER_USEC); in crc_pwm_calc_clk_div()
145 DIV_ROUND_UP(clk_div * NSEC_PER_USEC * 256, PWM_BASE_CLK_MHZ); in crc_pwm_get_state()
/linux/drivers/md/dm-vdo/
H A Dtime-utils.h25 return current_time_ns(CLOCK_REALTIME) / NSEC_PER_USEC; in current_time_us()
/linux/arch/um/kernel/
H A Dasm-offsets.c31 DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC); in foo()
/linux/include/net/
H A Dcodel.h92 do_div(valns, NSEC_PER_USEC); in codel_time_to_us()
/linux/fs/xfs/scrub/
H A Dstats.c218 css->checktime_us += howmany_64(run->scrub_ns, NSEC_PER_USEC); in xchk_stats_merge_one()
224 css->repairtime_us += howmany_64(run->repair_ns, NSEC_PER_USEC); in xchk_stats_merge_one()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_clock.c25 return (u64)DIV_ROUND_CLOSEST_ULL(timespec64_to_ns(ts), NSEC_PER_USEC); in timespec_to_us()
/linux/io_uring/
H A Dnapi.c250 u64 sys_dt = READ_ONCE(sysctl_net_busy_poll) * NSEC_PER_USEC; in io_napi_init()
291 WRITE_ONCE(ctx->napi_busy_poll_dt, napi->busy_poll_to * NSEC_PER_USEC); in io_napi_register_napi()
/linux/kernel/
H A Dtorture.c109 ktime_t baset_ns = baset_us * NSEC_PER_USEC; in torture_hrtimeout_us()
124 if ((u32)~0U / NSEC_PER_USEC < fuzzt_us) in torture_hrtimeout_ms()
127 fuzzt_ns = fuzzt_us * NSEC_PER_USEC; in torture_hrtimeout_ms()

123456