Home
last modified time | relevance | path

Searched refs:NS_PER_SEC (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/dev/pwm/controller/rockchip/
H A Drk_pwm.c94 #define NS_PER_SEC 1000000000 macro
206 sc->period = NS_PER_SEC / in rk_pwm_attach()
209 sc->duty = NS_PER_SEC / in rk_pwm_attach()
277 period_freq = NS_PER_SEC / period; in rk_pwm_channel_config()
281 duty_freq = NS_PER_SEC / duty; in rk_pwm_channel_config()
294 period_out = (sc->clk_freq * period) / NS_PER_SEC; in rk_pwm_channel_config()
295 duty_out = (sc->clk_freq * duty) / NS_PER_SEC; in rk_pwm_channel_config()
/freebsd/sys/dev/pwm/controller/allwinner/
H A Daw_pwm.c64 #define NS_PER_SEC 1000000000 macro
178 sc->period = NS_PER_SEC / in aw_pwm_attach()
180 sc->duty = NS_PER_SEC / in aw_pwm_attach()
254 period_freq = NS_PER_SEC / period; in aw_pwm_channel_config()
271 duty_freq = NS_PER_SEC / duty; in aw_pwm_channel_config()
/freebsd/sys/arm/ti/am335x/
H A Dam335x_ehrpwm.c60 #define NS_PER_SEC 1000000000 macro
245 if (period < 2 * NS_PER_SEC / PWM_CLOCK) { in am335x_ehrpwm_cfg_period()
262 pwmtick = NS_PER_SEC / pwmclk; in am335x_ehrpwm_cfg_period()
/freebsd/sys/kern/
H A Dkern_time.c71 #define NS_PER_SEC 1000000000 macro
465 ts->tv_nsec = NS_PER_SEC / tc_getfrequency() + 1; in kern_clock_getres()
470 ts->tv_nsec = howmany(NS_PER_SEC, hz); in kern_clock_getres()
509 if (rqt->tv_nsec < 0 || rqt->tv_nsec >= NS_PER_SEC) in kern_clock_nanosleep()
1647 if ((UINT64_MAX - ts->tv_nsec) / NS_PER_SEC < ts->tv_sec) in itimespecfix()
1655 ((uint64_t)(tsp)->tv_sec * NS_PER_SEC + (tsp)->tv_nsec)
1657 .tv_sec = (ns) / NS_PER_SEC, \
1658 .tv_nsec = (ns) % NS_PER_SEC \