Lines Matching refs:pwm_state

122 	struct pwm_state pwm_state;  member
563 struct pwm_state *pwm_state; in motor_timer_func() local
568 pwm_state = &motor->pwm_state; in motor_timer_func()
570 pwm_state->enabled = false; in motor_timer_func()
571 pwm_apply_state(motor->pwm_b1, pwm_state); in motor_timer_func()
572 pwm_apply_state(motor->pwm_b2, pwm_state); in motor_timer_func()
573 pwm_apply_state(motor->pwm_a1, pwm_state); in motor_timer_func()
574 pwm_apply_state(motor->pwm_a2, pwm_state); in motor_timer_func()
587 pwm_state->enabled = false; in motor_timer_func()
588 pwm_apply_state(motor->pwm_b1, pwm_state); in motor_timer_func()
589 pwm_apply_state(motor->pwm_b2, pwm_state); in motor_timer_func()
590 pwm_apply_state(motor->pwm_a1, pwm_state); in motor_timer_func()
591 pwm_apply_state(motor->pwm_a2, pwm_state); in motor_timer_func()
594 pwm_state->polarity = PWM_POLARITY_INVERSED; in motor_timer_func()
595 pwm_state->enabled = true; in motor_timer_func()
596 pwm_state->period = in motor_timer_func()
598 pwm_state->duty_cycle = in motor_timer_func()
600 pwm_apply_state(motor->pwm_b1, pwm_state); in motor_timer_func()
601 pwm_state->enabled = true; in motor_timer_func()
602 pwm_state->polarity = PWM_POLARITY_NORMAL; in motor_timer_func()
603 pwm_apply_state(motor->pwm_b2, pwm_state); in motor_timer_func()
604 pwm_state->polarity = PWM_POLARITY_NORMAL; in motor_timer_func()
605 pwm_state->enabled = true; in motor_timer_func()
606 pwm_apply_state(motor->pwm_a1, pwm_state); in motor_timer_func()
607 pwm_state->polarity = PWM_POLARITY_INVERSED; in motor_timer_func()
608 pwm_state->enabled = true; in motor_timer_func()
609 pwm_apply_state(motor->pwm_a2, pwm_state); in motor_timer_func()
613 pwm_state->enabled = false; in motor_timer_func()
614 pwm_apply_state(motor->pwm_b1, pwm_state); in motor_timer_func()
615 pwm_apply_state(motor->pwm_b2, pwm_state); in motor_timer_func()
616 pwm_apply_state(motor->pwm_a1, pwm_state); in motor_timer_func()
617 pwm_apply_state(motor->pwm_a2, pwm_state); in motor_timer_func()
620 pwm_state->polarity = PWM_POLARITY_INVERSED; in motor_timer_func()
621 pwm_state->enabled = true; in motor_timer_func()
622 pwm_state->period = in motor_timer_func()
624 pwm_state->duty_cycle = in motor_timer_func()
626 pwm_apply_state(motor->pwm_b1, pwm_state); in motor_timer_func()
627 pwm_state->polarity = PWM_POLARITY_NORMAL; in motor_timer_func()
628 pwm_state->enabled = true; in motor_timer_func()
629 pwm_apply_state(motor->pwm_b2, pwm_state); in motor_timer_func()
630 pwm_state->polarity = PWM_POLARITY_INVERSED; in motor_timer_func()
631 pwm_state->enabled = true; in motor_timer_func()
632 pwm_apply_state(motor->pwm_a1, pwm_state); in motor_timer_func()
633 pwm_state->polarity = PWM_POLARITY_NORMAL; in motor_timer_func()
634 pwm_state->enabled = true; in motor_timer_func()
635 pwm_apply_state(motor->pwm_a2, pwm_state); in motor_timer_func()