Home
last modified time | relevance | path

Searched refs:pwmstate (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/leds/
Dleds-pwm.c32 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()
56 led_dat->pwmstate.enabled = duty > 0; in led_pwm_set()
57 return pwm_apply_state(led_dat->pwm, &led_dat->pwmstate); in led_pwm_set()
85 pwm_get_state(led_data->pwm, &led_data->pwmstate); in led_pwm_add()
86 if (led_data->pwmstate.period) in led_pwm_add()
94 pwm_init_state(led_data->pwm, &led_data->pwmstate); in led_pwm_add()
108 brightness *= led_data->pwmstate.duty_cycle; in led_pwm_add()
[all …]
/Linux-v6.6/drivers/video/fbdev/
Dssd1307fb.c337 struct pwm_state pwmstate; in ssd1307fb_init() local
348 pwm_init_state(par->pwm, &pwmstate); in ssd1307fb_init()
349 pwm_set_relative_duty_cycle(&pwmstate, 50, 100); in ssd1307fb_init()
350 pwm_apply_state(par->pwm, &pwmstate); in ssd1307fb_init()
/Linux-v6.6/drivers/gpu/drm/solomon/
Dssd130x.c260 struct pwm_state pwmstate; in ssd130x_pwm_enable() local
268 pwm_init_state(ssd130x->pwm, &pwmstate); in ssd130x_pwm_enable()
269 pwm_set_relative_duty_cycle(&pwmstate, 50, 100); in ssd130x_pwm_enable()
270 pwm_apply_state(ssd130x->pwm, &pwmstate); in ssd130x_pwm_enable()