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

/linux-4.4.14/drivers/pwm/
H A Dpwm-atmel-hlcdc.c59 u64 pwmcval = duty_ns * 256; atmel_hlcdc_pwm_config() local
120 do_div(pwmcval, period_ns); atmel_hlcdc_pwm_config()
126 * Set it to 255 if pwmcval is greater than 256. atmel_hlcdc_pwm_config()
128 if (pwmcval > 255) atmel_hlcdc_pwm_config()
129 pwmcval = 255; atmel_hlcdc_pwm_config()
131 pwmcfg |= ATMEL_HLCDC_PWMCVAL(pwmcval); atmel_hlcdc_pwm_config()

Completed in 175 milliseconds