Searched refs:period_c (Results 1 – 2 of 2) sorted by relevance
48 int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c, in pwm_imx_get_parms() argument61 *period_c = c; in pwm_imx_get_parms()63 *prescale = *period_c / 0x10000 + 1; in pwm_imx_get_parms()65 *period_c /= *prescale; in pwm_imx_get_parms()66 c = *period_c * (unsigned long long)duty_ns; in pwm_imx_get_parms()74 if (*period_c > 2) in pwm_imx_get_parms()75 *period_c -= 2; in pwm_imx_get_parms()77 *period_c = 0; in pwm_imx_get_parms()
13 int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c,
Completed in 4 milliseconds