/linux/drivers/comedi/drivers/ |
A D | comedi_test.c | 289 NSEC_PER_USEC); in waveform_ai_cmdtest() 297 NSEC_PER_USEC); in waveform_ai_cmdtest() 318 rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ai_cmdtest() 319 arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC); in waveform_ai_cmdtest() 334 arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC); in waveform_ai_cmdtest() 557 NSEC_PER_USEC); in waveform_ao_cmdtest() 575 arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC); in waveform_ao_cmdtest() 642 data[2] = NSEC_PER_USEC; in waveform_ai_insn_config() 644 data[1] = NSEC_PER_USEC; in waveform_ai_insn_config() 646 data[2] = NSEC_PER_USEC; in waveform_ai_insn_config() [all …]
|
/linux/drivers/cpuidle/governors/ |
A D | menu.c | 27 #define MAX_INTERESTING (50000 * NSEC_PER_USEC) 133 if (duration_ns < 10ULL * NSEC_PER_USEC) in which_bucket() 135 if (duration_ns < 100ULL * NSEC_PER_USEC) in which_bucket() 137 if (duration_ns < 1000ULL * NSEC_PER_USEC) in which_bucket() 139 if (duration_ns < 10000ULL * NSEC_PER_USEC) in which_bucket() 141 if (duration_ns < 100000ULL * NSEC_PER_USEC) in which_bucket() 309 (RESOLUTION * DECAY * NSEC_PER_USEC) / 2, in menu_select() 310 RESOLUTION * DECAY * NSEC_PER_USEC); in menu_select() 314 NSEC_PER_USEC; in menu_select()
|
/linux/kernel/time/ |
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() 326 o->it_interval.tv_nsec = v.it_interval.tv_usec * NSEC_PER_USEC; in get_itimerval() 328 o->it_value.tv_nsec = v.it_value.tv_usec * NSEC_PER_USEC; in get_itimerval() 372 o->it_interval.tv_nsec = v32.it_interval.tv_usec * NSEC_PER_USEC; in get_old_itimerval32() 374 o->it_value.tv_nsec = v32.it_value.tv_usec * NSEC_PER_USEC; in get_old_itimerval32()
|
A D | ntp.c | 45 (((MAX_TICKADJ * NSEC_PER_USEC) << NTP_SCALE_SHIFT) / NTP_INTERVAL_FREQ) 199 txc->jitter = pps_jitter / NSEC_PER_USEC; in pps_fill_timex() 264 second_length = (u64)(tick_usec * NSEC_PER_USEC * USER_HZ) in ntp_update_frequency() 308 offset *= NSEC_PER_USEC; in ntp_update_offset() 458 time_maxerror += MAXFREQ / NSEC_PER_USEC; in second_overflow() 489 tick_length += (s64)(time_adjust * NSEC_PER_USEC / NTP_INTERVAL_FREQ) in second_overflow() 800 txc->offset = (u32)txc->offset / NSEC_PER_USEC; in __do_adjtimex() 825 txc->time.tv_usec = ts->tv_nsec / NSEC_PER_USEC; in __do_adjtimex() 975 NSEC_PER_USEC) - pps_stabil) >> PPS_INTMIN; in hardpps_update_freq()
|
A D | clocksource-wdtest.c | 133 WARN_ON_ONCE(clocksource_wdtest_ktime.uncertainty_margin < NSEC_PER_USEC); in wdtest_func() 139 WARN_ON_ONCE(time_before(j2, j1 + NSEC_PER_USEC)); in wdtest_func()
|
/linux/kernel/ |
A D | tsacct.c | 34 do_div(delta, NSEC_PER_USEC); in bacct_add_tsk() 64 stats->ac_utime = div_u64(utime, NSEC_PER_USEC); in bacct_add_tsk() 65 stats->ac_stime = div_u64(stime, NSEC_PER_USEC); in bacct_add_tsk() 68 stats->ac_utimescaled = div_u64(utimescaled, NSEC_PER_USEC); in bacct_add_tsk() 69 stats->ac_stimescaled = div_u64(stimescaled, NSEC_PER_USEC); in bacct_add_tsk()
|
/linux/drivers/powercap/ |
A D | idle_inject.c | 119 hrtimer_forward_now(timer, ns_to_ktime(duration_us * NSEC_PER_USEC)); in idle_inject_timer_fn() 144 play_idle_precise(READ_ONCE(ii_dev->idle_duration_us) * NSEC_PER_USEC, in idle_inject_fn() 145 READ_ONCE(ii_dev->latency_us) * NSEC_PER_USEC); in idle_inject_fn() 211 NSEC_PER_USEC), in idle_inject_start()
|
/linux/include/linux/ |
A D | ktime.h | 161 return ktime_divns(kt, NSEC_PER_USEC); in ktime_to_us() 181 return ktime_add_ns(kt, usec * NSEC_PER_USEC); in ktime_add_us() 191 return ktime_sub_ns(kt, usec * NSEC_PER_USEC); in ktime_sub_us()
|
A D | timex.h | 122 #define PPM_SCALE ((s64)NSEC_PER_USEC << (NTP_SCALE_SHIFT - SHIFT_USEC)) 132 #define NTP_PHASE_LIMIT ((MAXPHASE / NSEC_PER_USEC) << 5) /* beyond max. dispersion */
|
/linux/net/mac802154/ |
A D | util.c | 77 hw->phy->lifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete() 81 hw->phy->sifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete()
|
/linux/net/sched/ |
A D | sch_codel.c | 154 q->params.target = ((u64)target * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change() 160 q->params.ce_threshold = (val * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change() 166 q->params.interval = ((u64)interval * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change()
|
A D | sch_fq.c | 883 q->ce_threshold = (u64)NSEC_PER_USEC * in fq_change() 890 q->horizon = (u64)NSEC_PER_USEC * in fq_change() 948 q->timer_slack = 10 * NSEC_PER_USEC; /* 10 usec of hrtimer slack */ in fq_init() 954 q->ce_threshold = (u64)NSEC_PER_USEC * ~0U; in fq_init() 979 do_div(ce_threshold, NSEC_PER_USEC); in fq_dump() 980 do_div(horizon, NSEC_PER_USEC); in fq_dump()
|
A D | sch_pie.c | 162 q->params.target = PSCHED_NS2TICKS((u64)target * NSEC_PER_USEC); in pie_change() 473 NSEC_PER_USEC) || in pie_dump() 498 NSEC_PER_USEC, in pie_dump_stats()
|
/linux/drivers/pwm/ |
A D | pwm-visconti.c | 117 state->period = (period << pwmc0_clk) * NSEC_PER_USEC; in visconti_pwm_get_state() 118 state->duty_cycle = (duty << pwmc0_clk) * NSEC_PER_USEC; in visconti_pwm_get_state()
|
A D | pwm-crc.c | 46 clk_div = PWM_BASE_CLK_MHZ * period_ns / (256 * NSEC_PER_USEC); in crc_pwm_calc_clk_div() 147 DIV_ROUND_UP(clk_div * NSEC_PER_USEC * 256, PWM_BASE_CLK_MHZ); in crc_pwm_get_state()
|
/linux/kernel/cgroup/ |
A D | rstat.c | 458 do_div(usage, NSEC_PER_USEC); in cgroup_base_stat_cputime_show() 459 do_div(utime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show() 460 do_div(stime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
|
/linux/drivers/cpuidle/ |
A D | driver.c | 183 s->target_residency_ns = s->target_residency * NSEC_PER_USEC; in __cpuidle_driver_init() 188 s->exit_latency_ns = s->exit_latency * NSEC_PER_USEC; in __cpuidle_driver_init()
|
A D | governor.c | 119 return (s64)device_req * NSEC_PER_USEC; in cpuidle_governor_latency_req()
|
/linux/tools/testing/selftests/net/ |
A D | txtimestamp.c | 53 #define NSEC_PER_USEC 1000L macro 108 return ts->tv_sec * USEC_PER_SEC + ts->tv_nsec / NSEC_PER_USEC; in timespec_to_us64() 175 fprintf(stderr, "%lu us", ts_delta / NSEC_PER_USEC); in __print_ts_delta_formatted() 192 name, cur->tv_sec, cur->tv_nsec / NSEC_PER_USEC, in __print_timestamp() 662 usleep(100 * NSEC_PER_USEC); in do_test()
|
/linux/tools/include/linux/ |
A D | time64.h | 7 #define NSEC_PER_USEC 1000L macro
|
/linux/include/vdso/ |
A D | time64.h | 8 #define NSEC_PER_USEC 1000L macro
|
/linux/fs/proc/ |
A D | stat.c | 60 idle = idle_usecs * NSEC_PER_USEC; in get_idle_time() 76 iowait = iowait_usecs * NSEC_PER_USEC; in get_iowait_time()
|
/linux/drivers/base/power/ |
A D | domain_governor.c | 37 constraint_ns *= NSEC_PER_USEC; in dev_update_qos_constraint() 76 constraint_ns *= NSEC_PER_USEC; in default_suspend_ok()
|
/linux/arch/um/include/shared/ |
A D | common-offsets.h | 30 DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
|
/linux/include/media/ |
A D | v4l2-common.h | 551 (u32)buf->timestamp.tv_usec * NSEC_PER_USEC; in v4l2_buffer_get_timestamp() 560 buf->timestamp.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in v4l2_buffer_set_timestamp()
|