Lines Matching refs:pwm_state
48 struct pwm_state pwm_state; member
67 motor->pwm_state.period = motor->pwm->args.period; in motor_dev_parse_dt()
68 motor->pwm_state.polarity = motor->pwm->args.polarity; in motor_dev_parse_dt()
70 motor->pwm_state.period = PWM_PERIOD_DEF; in motor_dev_parse_dt()
71 motor->pwm_state.polarity = 0; in motor_dev_parse_dt()
93 motor->pwm_state.enabled = true; in motor_s_ctrl()
94 motor->pwm_state.duty_cycle = in motor_s_ctrl()
95 div64_u64((u64)motor->pwm_state.period * ctrl->val, IRIS_MAX_LOG); in motor_s_ctrl()
96 pwm_apply_state(motor->pwm, &motor->pwm_state); in motor_s_ctrl()
99 motor->pwm_state.duty_cycle, in motor_s_ctrl()
100 motor->pwm_state.period, in motor_s_ctrl()
101 motor->pwm_state.polarity); in motor_s_ctrl()