Lines Matching refs:duty_cycle
60 unsigned int duty_cycle; member
126 pwm->state.duty_cycle = duty; in pwm_set_duty_cycle()
135 return state.duty_cycle; in pwm_get_duty_cycle()
183 state->duty_cycle = 0; in pwm_init_state()
205 return DIV_ROUND_CLOSEST_ULL((u64)state->duty_cycle * scale, in pwm_get_relative_duty_cycle()
228 pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle, in pwm_set_relative_duty_cycle() argument
231 if (!scale || duty_cycle > scale) in pwm_set_relative_duty_cycle()
234 state->duty_cycle = DIV_ROUND_CLOSEST_ULL((u64)duty_cycle * in pwm_set_relative_duty_cycle()
313 unsigned int duty_cycle; member
343 if (state.duty_cycle == duty_ns && state.period == period_ns) in pwm_config()
346 state.duty_cycle = duty_ns; in pwm_config()