Searched refs:atmel_pwm (Results 1 – 1 of 1) sorted by relevance
117 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip); in atmel_pwm_calculate_cprd_and_pres() local121 cycles *= clk_get_rate(atmel_pwm->clk); in atmel_pwm_calculate_cprd_and_pres()150 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip); in atmel_pwm_update_cdty() local153 if (atmel_pwm->regs->duty_upd == in atmel_pwm_update_cdty()154 atmel_pwm->regs->period_upd) { in atmel_pwm_update_cdty()155 val = atmel_pwm_ch_readl(atmel_pwm, pwm->hwpwm, PWM_CMR); in atmel_pwm_update_cdty()157 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, PWM_CMR, val); in atmel_pwm_update_cdty()160 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, in atmel_pwm_update_cdty()161 atmel_pwm->regs->duty_upd, cdty); in atmel_pwm_update_cdty()168 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip); in atmel_pwm_set_cprd_cdty() local[all …]