Lines Matching refs:pwmstate
32 struct pwm_state pwmstate; member
47 unsigned long long duty = led_dat->pwmstate.period; in led_pwm_set()
53 duty = led_dat->pwmstate.period - duty; in led_pwm_set()
55 led_dat->pwmstate.duty_cycle = duty; in led_pwm_set()
62 led_dat->pwmstate.enabled = !(led_cdev->flags & LED_SUSPENDED); in led_pwm_set()
63 return pwm_apply_might_sleep(led_dat->pwm, &led_dat->pwmstate); in led_pwm_set()
91 pwm_get_state(led_data->pwm, &led_data->pwmstate); in led_pwm_add()
92 if (led_data->pwmstate.period) in led_pwm_add()
100 pwm_init_state(led_data->pwm, &led_data->pwmstate); in led_pwm_add()
114 brightness *= led_data->pwmstate.duty_cycle; in led_pwm_add()
115 do_div(brightness, led_data->pwmstate.period); in led_pwm_add()