Lines Matching refs:duty_cycle
61 u64 duty_cycle; member
135 pwm->state.duty_cycle = duty; in pwm_set_duty_cycle()
144 return state.duty_cycle; in pwm_get_duty_cycle()
192 state->duty_cycle = 0; in pwm_init_state()
215 return DIV_ROUND_CLOSEST_ULL((u64)state->duty_cycle * scale, in pwm_get_relative_duty_cycle()
238 pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle, in pwm_set_relative_duty_cycle() argument
241 if (!scale || duty_cycle > scale) in pwm_set_relative_duty_cycle()
244 state->duty_cycle = DIV_ROUND_CLOSEST_ULL((u64)duty_cycle * in pwm_set_relative_duty_cycle()
258 unsigned int duty_cycle; member
337 if (state.duty_cycle == duty_ns && state.period == period_ns) in pwm_config()
340 state.duty_cycle = duty_ns; in pwm_config()