Searched refs:NS_PER_SEC (Results 1 – 4 of 4) sorted by relevance
94 #define NS_PER_SEC 1000000000 macro206 sc->period = NS_PER_SEC / in rk_pwm_attach()209 sc->duty = NS_PER_SEC / in rk_pwm_attach()278 period_freq = NS_PER_SEC / period; in rk_pwm_channel_config()282 duty_freq = NS_PER_SEC / duty; in rk_pwm_channel_config()295 period_out = (sc->clk_freq * period) / NS_PER_SEC; in rk_pwm_channel_config()296 duty_out = (sc->clk_freq * duty) / NS_PER_SEC; in rk_pwm_channel_config()
64 #define NS_PER_SEC 1000000000 macro178 sc->period = NS_PER_SEC / in aw_pwm_attach()180 sc->duty = NS_PER_SEC / in aw_pwm_attach()252 period_freq = NS_PER_SEC / period; in aw_pwm_channel_config()269 duty_freq = NS_PER_SEC / duty; in aw_pwm_channel_config()
60 #define NS_PER_SEC 1000000000 macro245 if (period < 2 * NS_PER_SEC / PWM_CLOCK) { in am335x_ehrpwm_cfg_period()262 pwmtick = NS_PER_SEC / pwmclk; in am335x_ehrpwm_cfg_period()
71 #define NS_PER_SEC 1000000000465 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 \70 #define NS_PER_SEC global() macro