Searched refs:one_cycle (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/pwm/
H A Dpwm-rcar.c111 unsigned long long one_cycle, tmp; /* 0.01 nanoseconds */ rcar_pwm_set_counter() local
115 one_cycle = (unsigned long long)NSEC_PER_SEC * 100ULL * (1 << div); rcar_pwm_set_counter()
116 do_div(one_cycle, clk_rate); rcar_pwm_set_counter()
119 do_div(tmp, one_cycle); rcar_pwm_set_counter()
123 do_div(tmp, one_cycle); rcar_pwm_set_counter()

Completed in 163 milliseconds