Searched refs:pwmstate (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/drivers/leds/ |
D | leds-pwm.c | 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() [all …]
|
/linux-6.12.1/drivers/video/backlight/ |
D | mp3309c.c | 118 struct pwm_state pwmstate; in mp3309c_bl_update_status() local 126 pwm_get_state(chip->pwmd, &pwmstate); in mp3309c_bl_update_status() 127 pwm_set_relative_duty_cycle(&pwmstate, in mp3309c_bl_update_status() 130 pwmstate.enabled = true; in mp3309c_bl_update_status() 131 ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate); in mp3309c_bl_update_status() 325 struct pwm_state pwmstate; in mp3309c_probe() local 370 pwm_init_state(chip->pwmd, &pwmstate); in mp3309c_probe() 371 pwm_set_relative_duty_cycle(&pwmstate, in mp3309c_probe() 374 pwmstate.enabled = true; in mp3309c_probe() 375 ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate); in mp3309c_probe()
|
/linux-6.12.1/drivers/video/fbdev/ |
D | ssd1307fb.c | 337 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_might_sleep(par->pwm, &pwmstate); in ssd1307fb_init()
|
/linux-6.12.1/drivers/gpu/drm/solomon/ |
D | ssd130x.c | 338 struct pwm_state pwmstate; in ssd130x_pwm_enable() local 346 pwm_init_state(ssd130x->pwm, &pwmstate); in ssd130x_pwm_enable() 347 pwm_set_relative_duty_cycle(&pwmstate, 50, 100); in ssd130x_pwm_enable() 348 pwm_apply_might_sleep(ssd130x->pwm, &pwmstate); in ssd130x_pwm_enable()
|