Lines Matching refs:pwm_state
64 struct pwm_state pwm_state; member
84 led->pwm_state.duty_cycle = in rgb13h_set_output()
85 div_u64(led->intensity_torch * led->pwm_state.period, led->max_mm_current); in rgb13h_set_output()
87 led->pwm_state.duty_cycle = in rgb13h_set_output()
88 div_u64(led->intensity * led->pwm_state.period, led->max_flash_current); in rgb13h_set_output()
90 led->pwm_state.enabled = true; in rgb13h_set_output()
91 pwm_apply_state(led->pwm, &led->pwm_state); in rgb13h_set_output()
93 led->pwm_state.duty_cycle, led->pwm_state.period, led->pwm_state.polarity); in rgb13h_set_output()
95 led->pwm_state.enabled = false; in rgb13h_set_output()
96 pwm_apply_state(led->pwm, &led->pwm_state); in rgb13h_set_output()
222 led->pwm_state.period = led->pwm->args.period; in rgb13h_led_parse_dt()
223 led->pwm_state.polarity = led->pwm->args.polarity; in rgb13h_led_parse_dt()
225 led->pwm_state.period, led->pwm_state.polarity); in rgb13h_led_parse_dt()