| /linux-6.15/net/mac802154/ |
| H A D | main.c | 133 duration = 50 * NSEC_PER_USEC; in ieee802154_configure_durations() 136 duration = 25 * NSEC_PER_USEC; in ieee802154_configure_durations() 139 duration = 16 * NSEC_PER_USEC; in ieee802154_configure_durations() 144 duration = 40 * NSEC_PER_USEC; in ieee802154_configure_durations() 147 duration = 16 * NSEC_PER_USEC; in ieee802154_configure_durations() 152 duration = 6 * NSEC_PER_USEC; in ieee802154_configure_durations() 165 (IEEE802154_LIFS_PERIOD * phy->symbol_duration) / NSEC_PER_USEC; in ieee802154_configure_durations() 167 (IEEE802154_SIFS_PERIOD * phy->symbol_duration) / NSEC_PER_USEC; in ieee802154_configure_durations() 190 wpan_phy->symbol_duration) / NSEC_PER_USEC; in ieee802154_setup_wpan_phy_pib() 192 wpan_phy->symbol_duration) / NSEC_PER_USEC; in ieee802154_setup_wpan_phy_pib()
|
| H A D | util.c | 133 hw->phy->lifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete() 137 hw->phy->sifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete()
|
| /linux-6.15/drivers/cpuidle/governors/ |
| H A D | menu.c | 27 #define MAX_INTERESTING (50000 * NSEC_PER_USEC) 85 if (duration_ns < 10ULL * NSEC_PER_USEC) in which_bucket() 87 if (duration_ns < 100ULL * NSEC_PER_USEC) in which_bucket() 89 if (duration_ns < 1000ULL * NSEC_PER_USEC) in which_bucket() 91 if (duration_ns < 10000ULL * NSEC_PER_USEC) in which_bucket() 93 if (duration_ns < 100000ULL * NSEC_PER_USEC) in which_bucket() 228 predicted_ns = get_typical_interval(data) * NSEC_PER_USEC; in menu_select() 243 timer_us = div_u64((RESOLUTION * DECAY * NSEC_PER_USEC) / 2 + in menu_select() 246 RESOLUTION * DECAY * NSEC_PER_USEC); in menu_select() 248 predicted_ns = min((u64)timer_us * NSEC_PER_USEC, predicted_ns); in menu_select()
|
| H A D | gov.h | 12 #define RESIDENCY_THRESHOLD_NS (15 * NSEC_PER_USEC)
|
| /linux-6.15/drivers/comedi/drivers/ |
| H A D | comedi_test.c | 295 NSEC_PER_USEC); in waveform_ai_cmdtest() 303 NSEC_PER_USEC); in waveform_ai_cmdtest() 324 rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ai_cmdtest() 325 arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC); in waveform_ai_cmdtest() 340 arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC); in waveform_ai_cmdtest() 576 NSEC_PER_USEC); in waveform_ao_cmdtest() 594 arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC); in waveform_ao_cmdtest() 664 data[2] = NSEC_PER_USEC; in waveform_ai_insn_config() 666 data[1] = NSEC_PER_USEC; in waveform_ai_insn_config() 668 data[2] = NSEC_PER_USEC; in waveform_ai_insn_config() [all …]
|
| /linux-6.15/kernel/ |
| H A D | tsacct.c | 36 do_div(delta, NSEC_PER_USEC); in bacct_add_tsk() 39 do_div(delta, NSEC_PER_USEC); in bacct_add_tsk() 69 stats->ac_utime = div_u64(utime, NSEC_PER_USEC); in bacct_add_tsk() 70 stats->ac_stime = div_u64(stime, NSEC_PER_USEC); in bacct_add_tsk() 73 stats->ac_utimescaled = div_u64(utimescaled, NSEC_PER_USEC); in bacct_add_tsk() 74 stats->ac_stimescaled = div_u64(stimescaled, NSEC_PER_USEC); in bacct_add_tsk()
|
| /linux-6.15/kernel/time/ |
| H A D | itimer.c | 40 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() 346 o->it_interval.tv_nsec = v.it_interval.tv_usec * NSEC_PER_USEC; in get_itimerval() 348 o->it_value.tv_nsec = v.it_value.tv_usec * NSEC_PER_USEC; in get_itimerval() 392 o->it_interval.tv_nsec = v32.it_interval.tv_usec * NSEC_PER_USEC; in get_old_itimerval32() 394 o->it_value.tv_nsec = v32.it_value.tv_usec * NSEC_PER_USEC; in get_old_itimerval32()
|
| H A D | ntp.c | 102 (((MAX_TICKADJ * NSEC_PER_USEC) << NTP_SCALE_SHIFT) / NTP_INTERVAL_FREQ) 203 txc->jitter = ntpdata->pps_jitter / NSEC_PER_USEC; in pps_fill_timex() 252 second_length = (u64)(tick_usec * NSEC_PER_USEC * USER_HZ) << NTP_SCALE_SHIFT; in ntp_update_frequency() 293 offset *= NSEC_PER_USEC; in ntp_update_offset() 446 ntpdata->time_maxerror += MAXFREQ / NSEC_PER_USEC; in second_overflow() 477 ntpdata->tick_length += (s64)(ntpdata->time_adjust * NSEC_PER_USEC / NTP_INTERVAL_FREQ) in second_overflow() 800 txc->offset = div_s64(txc->offset, NSEC_PER_USEC); in __do_adjtimex() 824 txc->time.tv_usec = ts->tv_nsec / NSEC_PER_USEC; in __do_adjtimex() 978 NSEC_PER_USEC) - ntpdata->pps_stabil) >> PPS_INTMIN; in hardpps_update_freq()
|
| H A D | clocksource-wdtest.c | 134 WARN_ON_ONCE(clocksource_wdtest_ktime.uncertainty_margin < NSEC_PER_USEC); in wdtest_func() 140 WARN_ONCE(time_before(j2, j1 + NSEC_PER_USEC), in wdtest_func()
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | ptp.c | 50 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() 138 new_diff = tmp_sys_time - ((u64)tmp_gp2 * NSEC_PER_USEC); in iwl_mvm_phc_get_crosstimestamp_loop() 180 gp2_ns = iwl_mvm_ptp_get_adj_time(mvm, (u64)gp2 * NSEC_PER_USEC); in iwl_mvm_phc_get_crosstimestamp() 216 ns = iwl_mvm_ptp_get_adj_time(mvm, gp2 * NSEC_PER_USEC); in iwl_mvm_ptp_gettime() 253 iwl_mvm_ptp_get_adj_time(mvm, gp2 * NSEC_PER_USEC); in iwl_mvm_ptp_adjfine()
|
| /linux-6.15/include/linux/ |
| H A D | ktime.h | 159 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()
|
| H A D | timex.h | 130 #define PPM_SCALE ((s64)NSEC_PER_USEC << (NTP_SCALE_SHIFT - SHIFT_USEC)) 140 #define NTP_PHASE_LIMIT ((MAXPHASE / NSEC_PER_USEC) << 5) /* beyond max. dispersion */
|
| H A D | iopoll.h | 88 s64 __left_ns = __timeout_us * NSEC_PER_USEC; \ 90 u64 __delay_ns = __delay_us * NSEC_PER_USEC; \
|
| /linux-6.15/drivers/cpuidle/ |
| H A D | driver.c | 184 s->target_residency_ns = s->target_residency * NSEC_PER_USEC; in __cpuidle_driver_init() 188 s->target_residency = div_u64(s->target_residency_ns, NSEC_PER_USEC); in __cpuidle_driver_init() 191 s->exit_latency_ns = mul_u32_u32(s->exit_latency, NSEC_PER_USEC); in __cpuidle_driver_init() 195 s->exit_latency = div_u64(s->exit_latency_ns, NSEC_PER_USEC); in __cpuidle_driver_init()
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | ptp.c | 62 u64 scale_time_gp2_ns = mld->ptp_data.scale_update_gp2 * NSEC_PER_USEC; in iwl_mld_ptp_get_adj_time() 70 div64_u64(base_time_ns, NSEC_PER_USEC)); in iwl_mld_ptp_get_adj_time() 73 (data->wrap_counter * IWL_PTP_GP2_WRAP * NSEC_PER_USEC); in iwl_mld_ptp_get_adj_time() 117 ns = iwl_mld_ptp_get_adj_time(mld, (u64)gp2 * NSEC_PER_USEC); in iwl_mld_ptp_gettime() 156 iwl_mld_ptp_get_adj_time(mld, gp2 * NSEC_PER_USEC); in iwl_mld_ptp_adjfine() 258 gp2_ns = iwl_mld_ptp_get_adj_time(mld, (u64)gp2 * NSEC_PER_USEC); in iwl_mld_phc_get_crosstimestamp()
|
| /linux-6.15/drivers/powercap/ |
| H A D | idle_inject.c | 136 hrtimer_forward_now(timer, ns_to_ktime(duration_us * NSEC_PER_USEC)); in idle_inject_timer_fn() 161 play_idle_precise(READ_ONCE(ii_dev->idle_duration_us) * NSEC_PER_USEC, in idle_inject_fn() 162 READ_ONCE(ii_dev->latency_us) * NSEC_PER_USEC); in idle_inject_fn() 236 NSEC_PER_USEC), in idle_inject_start()
|
| /linux-6.15/tools/testing/selftests/net/ |
| H A D | stress_reuseport_listen.c | 21 #define NSEC_PER_USEC 1000L macro 98 (end_ns - start_ns) / NSEC_PER_USEC); in main()
|
| /linux-6.15/kernel/cgroup/ |
| H A D | rstat.c | 566 do_div(forceidle_time, NSEC_PER_USEC); in cgroup_force_idle_show() 587 do_div(bstat.cputime.sum_exec_runtime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show() 588 do_div(bstat.cputime.utime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show() 589 do_div(bstat.cputime.stime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show() 590 do_div(bstat.ntime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
|
| /linux-6.15/drivers/pwm/ |
| H A D | pwm-visconti.c | 116 state->period = (period << pwmc0_clk) * NSEC_PER_USEC; in visconti_pwm_get_state() 117 state->duty_cycle = (duty << pwmc0_clk) * NSEC_PER_USEC; in visconti_pwm_get_state()
|
| H A D | pwm-crc.c | 44 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-6.15/net/sched/ |
| H A D | sch_codel.c | 120 ((u64)target * NSEC_PER_USEC) >> CODEL_SHIFT); in codel_change() 127 (val * NSEC_PER_USEC) >> CODEL_SHIFT); in codel_change() 134 ((u64)interval * NSEC_PER_USEC) >> CODEL_SHIFT); in codel_change()
|
| /linux-6.15/tools/include/linux/ |
| H A D | time64.h | 7 #define NSEC_PER_USEC 1000L macro
|
| /linux-6.15/include/vdso/ |
| H A D | time64.h | 8 #define NSEC_PER_USEC 1000L macro
|
| /linux-6.15/drivers/md/dm-vdo/ |
| H A D | time-utils.h | 25 return current_time_ns(CLOCK_REALTIME) / NSEC_PER_USEC; in current_time_us()
|
| /linux-6.15/arch/um/include/shared/ |
| H A D | common-offsets.h | 16 DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
|