Lines Matching refs:duty_cycle
64 u64 duty_cycle; member
138 pwm->state.duty_cycle = duty; in pwm_set_duty_cycle()
147 return state.duty_cycle; in pwm_get_duty_cycle()
195 state->duty_cycle = 0; in pwm_init_state()
218 return DIV_ROUND_CLOSEST_ULL((u64)state->duty_cycle * scale, in pwm_get_relative_duty_cycle()
241 pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle, in pwm_set_relative_duty_cycle() argument
244 if (!scale || duty_cycle > scale) in pwm_set_relative_duty_cycle()
247 state->duty_cycle = DIV_ROUND_CLOSEST_ULL((u64)duty_cycle * in pwm_set_relative_duty_cycle()
322 unsigned int duty_cycle; member
352 if (state.duty_cycle == duty_ns && state.period == period_ns) in pwm_config()
355 state.duty_cycle = duty_ns; in pwm_config()