Lines Matching defs:new_duty_cycle
457 // Return a duty cycle based on old_duty_cycle and new_duty_cycle, limiting the
460 unsigned int new_duty_cycle) {
462 assert(new_duty_cycle <= 100, "bad input value");
466 unsigned int damped_duty_cycle = new_duty_cycle;
467 if (new_duty_cycle < old_duty_cycle) {
469 if (new_duty_cycle + largest_delta < old_duty_cycle) {
472 } else if (new_duty_cycle > old_duty_cycle) {
474 if (new_duty_cycle > old_duty_cycle + largest_delta) {
482 old_duty_cycle, new_duty_cycle, damped_duty_cycle);
499 unsigned int new_duty_cycle = MIN2((unsigned int)duty_cycle_dbl, 100U);
500 if (new_duty_cycle > _icms_duty_cycle) {
502 if (new_duty_cycle > 2) {
504 new_duty_cycle);
508 new_duty_cycle = icms_damped_duty_cycle(_icms_duty_cycle, new_duty_cycle);
511 _icms_duty_cycle = MAX2(new_duty_cycle, min_duty_cycle);