Lines Matching refs:duty_scale
40 unsigned int duty_scale; member
49 unsigned int duty_scale) in iqs620_pwm_init() argument
54 if (!duty_scale) in iqs620_pwm_init()
59 duty_scale - 1); in iqs620_pwm_init()
72 unsigned int duty_scale; in iqs620_pwm_apply() local
96 duty_scale = duty_cycle * 256 / IQS620_PWM_PERIOD_NS; in iqs620_pwm_apply()
99 duty_scale = 0; in iqs620_pwm_apply()
103 ret = iqs620_pwm_init(iqs620_pwm, duty_scale); in iqs620_pwm_apply()
105 iqs620_pwm->duty_scale = duty_scale; in iqs620_pwm_apply()
127 state->enabled = iqs620_pwm->duty_scale > 0; in iqs620_pwm_get_state()
128 state->duty_cycle = DIV_ROUND_UP(iqs620_pwm->duty_scale * in iqs620_pwm_get_state()
158 ret = iqs620_pwm_init(iqs620_pwm, iqs620_pwm->duty_scale); in iqs620_pwm_notifier()
213 iqs620_pwm->duty_scale = val + 1; in iqs620_pwm_probe()