Lines Matching refs:pres
196 unsigned long *cprd, u32 *pres) in atmel_pwm_calculate_cprd_and_pres() argument
217 *pres = shift; in atmel_pwm_calculate_cprd_and_pres()
218 cycles >>= *pres; in atmel_pwm_calculate_cprd_and_pres()
220 *pres = 0; in atmel_pwm_calculate_cprd_and_pres()
230 u32 pres, unsigned long *cdty) in atmel_pwm_calculate_cdty() argument
236 cycles >>= pres; in atmel_pwm_calculate_cdty()
300 u32 pres, val; in atmel_pwm_apply() local
315 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_apply()
317 atmel_pwm_calculate_cdty(state, clkrate, cprd, pres, &cdty); in atmel_pwm_apply()
323 &pres); in atmel_pwm_apply()
330 atmel_pwm_calculate_cdty(state, clkrate, cprd, pres, &cdty); in atmel_pwm_apply()
344 val = (val & ~PWM_CMR_CPRE_MSK) | (pres & PWM_CMR_CPRE_MSK); in atmel_pwm_apply()
370 u32 cdty, cprd, pres; in atmel_pwm_get_state() local
373 pres = cmr & PWM_CMR_CPRE_MSK; in atmel_pwm_get_state()
378 tmp <<= pres; in atmel_pwm_get_state()
387 tmp <<= pres; in atmel_pwm_get_state()