Lines Matching refs:pres
197 unsigned long *cprd, u32 *pres) in atmel_pwm_calculate_cprd_and_pres() argument
218 *pres = shift; in atmel_pwm_calculate_cprd_and_pres()
219 cycles >>= *pres; in atmel_pwm_calculate_cprd_and_pres()
221 *pres = 0; in atmel_pwm_calculate_cprd_and_pres()
231 u32 pres, unsigned long *cdty) in atmel_pwm_calculate_cdty() argument
237 cycles >>= pres; in atmel_pwm_calculate_cdty()
301 u32 pres, val; in atmel_pwm_apply() local
316 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_apply()
318 atmel_pwm_calculate_cdty(state, clkrate, cprd, pres, &cdty); in atmel_pwm_apply()
324 &pres); in atmel_pwm_apply()
331 atmel_pwm_calculate_cdty(state, clkrate, cprd, pres, &cdty); in atmel_pwm_apply()
345 val = (val & ~PWM_CMR_CPRE_MSK) | (pres & PWM_CMR_CPRE_MSK); in atmel_pwm_apply()
371 u32 cdty, cprd, pres; in atmel_pwm_get_state() local
374 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_get_state()
379 tmp <<= pres; in atmel_pwm_get_state()
388 tmp <<= pres; in atmel_pwm_get_state()