Home
last modified time | relevance | path

Searched refs:max_brightness (Results 1 – 25 of 262) sorted by relevance

1234567891011

/linux-6.6.21/drivers/video/backlight/
Dled_bl.c22 unsigned int max_brightness; member
77 unsigned int max_brightness; in led_bl_get_leds() local
104 max_brightness = leds[0]->max_brightness; in led_bl_get_leds()
106 if (max_brightness != leds[i]->max_brightness) { in led_bl_get_leds()
117 priv->max_brightness = max_brightness; in led_bl_get_leds()
161 priv->max_brightness = num_levels - 1; in led_bl_parse_levels()
167 if (!ret && value <= priv->max_brightness) in led_bl_parse_levels()
169 else if (!ret && value > priv->max_brightness) in led_bl_parse_levels()
201 props.max_brightness = priv->max_brightness; in led_bl_probe()
Dktd253-backlight.c148 u32 max_brightness; in ktd253_backlight_probe() local
157 ret = device_property_read_u32(dev, "max-brightness", &max_brightness); in ktd253_backlight_probe()
159 max_brightness = KTD253_MAX_RATIO; in ktd253_backlight_probe()
160 if (max_brightness > KTD253_MAX_RATIO) { in ktd253_backlight_probe()
163 max_brightness = KTD253_MAX_RATIO; in ktd253_backlight_probe()
169 if (brightness > max_brightness) { in ktd253_backlight_probe()
172 brightness = max_brightness; in ktd253_backlight_probe()
189 bl->props.max_brightness = max_brightness; in ktd253_backlight_probe()
Dpwm_bl.c205 data->max_brightness = in pwm_backlight_brightness_default()
208 data->levels = devm_kcalloc(dev, data->max_brightness, in pwm_backlight_brightness_default()
214 for (i = 0; i < data->max_brightness; i++) { in pwm_backlight_brightness_default()
216 data->max_brightness) * period; in pwm_backlight_brightness_default()
223 data->dft_brightness = data->max_brightness / 2; in pwm_backlight_brightness_default()
224 data->max_brightness--; in pwm_backlight_brightness_default()
355 data->max_brightness = num_levels - 1; in pwm_backlight_parse_dt()
385 unsigned int nlevels = data->max_brightness + 1; in pwm_backlight_is_linear()
548 for (i = 0; i <= data->max_brightness; i++) in pwm_backlight_probe()
556 } else if (!data->max_brightness) { in pwm_backlight_probe()
[all …]
Dda903x_bl.c102 int max_brightness; in da903x_backlight_probe() local
110 max_brightness = DA9030_MAX_BRIGHTNESS; in da903x_backlight_probe()
113 max_brightness = DA9034_MAX_BRIGHTNESS; in da903x_backlight_probe()
132 props.max_brightness = max_brightness; in da903x_backlight_probe()
141 bl->props.brightness = max_brightness; in da903x_backlight_probe()
Daat2870_bl.c35 val /= bd->props.max_brightness; in aat2870_brightness()
65 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status()
160 if (pdata->max_brightness > 0) in aat2870_bl_probe()
161 bd->props.max_brightness = pdata->max_brightness; in aat2870_bl_probe()
163 bd->props.max_brightness = 255; in aat2870_bl_probe()
167 bd->props.brightness = bd->props.max_brightness; in aat2870_bl_probe()
Das3711_bl.c223 unsigned int max_brightness, struct as3711_bl_data *su) in as3711_bl_register() argument
229 props.max_brightness = max_brightness; in as3711_bl_register()
241 bl->props.brightness = props.max_brightness; in as3711_bl_register()
376 unsigned int max_brightness; in as3711_backlight_probe() local
422 max_brightness = min(pdata->su1_max_uA, 31); in as3711_backlight_probe()
423 ret = as3711_bl_register(pdev, max_brightness, su); in as3711_backlight_probe()
444 max_brightness = min(pdata->su2_max_uA, 31); in as3711_backlight_probe()
450 max_brightness = min(pdata->su2_max_uA / 150, 255); in as3711_backlight_probe()
460 ret = as3711_bl_register(pdev, max_brightness, su); in as3711_backlight_probe()
/linux-6.6.21/drivers/leds/rgb/
Dleds-group-multicolor.c32 const unsigned int group_max_brightness = mc_cdev->led_cdev.max_brightness; in leds_gmc_set()
37 const unsigned int mono_max_brightness = mono->max_brightness; in leds_gmc_set()
71 unsigned int max_brightness = 0; in leds_gmc_probe() local
96 max_brightness = max(max_brightness, led_cdev->max_brightness); in leds_gmc_probe()
112 subled[i].intensity = max_brightness; in leds_gmc_probe()
119 cdev->max_brightness = max_brightness; in leds_gmc_probe()
/linux-6.6.21/drivers/leds/
Dleds-ti-lmu-common.c33 if (lmu_bank->max_brightness == MAX_BRIGHTNESS_11BIT) { in ti_lmu_common_update_brightness()
131 &lmu_data->max_brightness); in ti_lmu_common_get_brt_res()
135 &lmu_data->max_brightness); in ti_lmu_common_get_brt_res()
136 if (lmu_data->max_brightness <= 0) { in ti_lmu_common_get_brt_res()
137 lmu_data->max_brightness = MAX_BRIGHTNESS_8BIT; in ti_lmu_common_get_brt_res()
141 if (lmu_data->max_brightness > MAX_BRIGHTNESS_11BIT) in ti_lmu_common_get_brt_res()
142 lmu_data->max_brightness = MAX_BRIGHTNESS_11BIT; in ti_lmu_common_get_brt_res()
Dleds-pwm.c26 unsigned int max_brightness; member
46 unsigned int max = led_dat->cdev.max_brightness; in led_pwm_set()
71 led_data->cdev.max_brightness = led->max_brightness; in led_pwm_add()
101 led_data->cdev.brightness = led->max_brightness; in led_pwm_add()
107 brightness = led->max_brightness; in led_pwm_add()
156 &led.max_brightness); in led_pwm_create_fwnode()
Dleds-lm3530.c263 if (brightness > drvdata->led_dev.max_brightness) in lm3530_init_registers()
264 brightness = drvdata->led_dev.max_brightness; in lm3530_init_registers()
291 drvdata->led_dev.max_brightness); in lm3530_init_registers()
312 u8 max_brightness = led_cdev->max_brightness; in lm3530_brightness_set() local
342 pwm->pwm_set_intensity(brt_val, max_brightness); in lm3530_brightness_set()
374 u8 max_brightness; in mode_store() local
379 max_brightness = led_cdev->max_brightness; in mode_store()
390 pwm->pwm_set_intensity(0, max_brightness); in mode_store()
442 drvdata->led_dev.max_brightness = MAX_BRIGHTNESS; in lm3530_probe()
Dleds-max8997.c59 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode()
65 led->cdev.max_brightness = MAX8997_LED_MOVIE_MAX_BRIGHTNESS; in max8997_led_set_mode()
72 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode()
79 led->cdev.max_brightness = MAX8997_LED_MOVIE_MAX_BRIGHTNESS; in max8997_led_set_mode()
82 led->cdev.max_brightness = MAX8997_LED_NONE_MAX_BRIGHTNESS; in max8997_led_set_mode()
264 if (brightness > led->cdev.max_brightness) in max8997_led_probe()
265 brightness = led->cdev.max_brightness; in max8997_led_probe()
Dleds-nic78bx.c84 .max_brightness = 1,
94 .max_brightness = 1,
104 .max_brightness = 1,
114 .max_brightness = 1,
Dleds-bd2606mvv.c53 led_cdev->max_brightness == 1 ? in bd2606mvv_brightness_set()
115 led->ldev.max_brightness = BD2606_MAX_BRIGHTNESS; in bd2606mvv_probe()
127 priv->leds[i].ldev.max_brightness = 1; in bd2606mvv_probe()
Dleds-regulator.c105 if (led->cdev.max_brightness > 1) { in regulator_led_brightness_set()
145 led->cdev.max_brightness = led_regulator_get_max_brightness(vcc); in regulator_led_probe()
148 if (pdata->brightness > led->cdev.max_brightness) { in regulator_led_probe()
Dleds-mt6323.c118 u16 max_brightness; member
338 ret = mt6323_led_hw_on(cdev, cdev->max_brightness); in mt6323_led_set_blink()
341 led->current_brightness = cdev->max_brightness; in mt6323_led_set_blink()
510 ret = mt6323_led_set_brightness(cdev, cdev->max_brightness); in mt6323_led_set_dt_default()
595 leds->led[reg]->cdev.max_brightness = spec->max_brightness; in mt6323_led_probe()
690 .max_brightness = 6,
698 .max_brightness = 1024,
Duleds.c110 if (udev->user_dev.max_brightness <= 0) { in uleds_write()
114 udev->led_cdev.max_brightness = udev->user_dev.max_brightness; in uleds_write()
/linux-6.6.21/arch/powerpc/platforms/powermac/
Dbacklight.c114 (props->max_brightness / 15)); in pmac_backlight_key_worker()
118 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
119 brightness = props->max_brightness; in pmac_backlight_key_worker()
150 (props->max_brightness + 1) / in __pmac_backlight_set_legacy_brightness()
153 if (props->brightness > props->max_brightness) in __pmac_backlight_set_legacy_brightness()
154 props->brightness = props->max_brightness; in __pmac_backlight_set_legacy_brightness()
201 (props->max_brightness + 1); in pmac_backlight_get_legacy_brightness()
/linux-6.6.21/Documentation/leds/
Dleds-class-multicolor.rst36 -r--r--r-- 1 root root 4096 Oct 19 16:16 max_brightness
43 intensity setting divided by the global max_brightness setting multiplied by
46 led_brightness = brightness * multi_intensity/max_brightness
60 max_brightness = 255
63 max_brightness = 255
66 max_brightness = 255
69 global 'brightness' control. Assuming a max_brightness of 255 the user
74 cat /sys/class/leds/multicolor:status/max_brightness
Dleds-blinkm.rst27 brightness device max_brightness power subsystem trigger uevent
30 brightness device max_brightness power subsystem trigger uevent
33 brightness device max_brightness power subsystem trigger uevent
/linux-6.6.21/drivers/gpu/drm/renesas/shmobile/
Dshmob_drm_backlight.c59 if (!bdata->max_brightness) in shmob_drm_backlight_init()
70 backlight->props.max_brightness = bdata->max_brightness; in shmob_drm_backlight_init()
71 backlight->props.brightness = bdata->max_brightness; in shmob_drm_backlight_init()
/linux-6.6.21/drivers/gpu/drm/panel/
Dpanel-samsung-s6e63m0.c671 static int s6e63m0_backlight_register(struct s6e63m0 *ctx, u32 max_brightness) in s6e63m0_backlight_register() argument
675 .brightness = max_brightness, in s6e63m0_backlight_register()
676 .max_brightness = max_brightness, in s6e63m0_backlight_register()
698 u32 max_brightness; in s6e63m0_probe() local
715 ret = device_property_read_u32(dev, "max-brightness", &max_brightness); in s6e63m0_probe()
717 max_brightness = MAX_BRIGHTNESS; in s6e63m0_probe()
718 if (max_brightness > MAX_BRIGHTNESS) { in s6e63m0_probe()
720 max_brightness = MAX_BRIGHTNESS; in s6e63m0_probe()
742 ret = s6e63m0_backlight_register(ctx, max_brightness); in s6e63m0_probe()
/linux-6.6.21/drivers/platform/chrome/
Dcros_kbd_led_backlight.c47 enum led_brightness max_brightness; member
117 .max_brightness = KEYBOARD_BACKLIGHT_MAX,
187 .max_brightness = KEYBOARD_BACKLIGHT_MAX,
219 keyboard_led->cdev.max_brightness = drvdata->max_brightness; in keyboard_led_probe()
/linux-6.6.21/drivers/hid/
Dhid-led.c74 enum led_brightness max_brightness; member
256 .max_brightness = 255,
359 .max_brightness = 1,
369 .max_brightness = 63,
380 .max_brightness = 255,
391 .max_brightness = 100,
402 .max_brightness = 255,
422 led->cdev.max_brightness = config->max_brightness; in hidled_init_led()
/linux-6.6.21/drivers/macintosh/
Dvia-pmu-backlight.c156 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in pmu_backlight_init()
166 level = bd->props.max_brightness; in pmu_backlight_init()
176 bd->props.max_brightness / 15); in pmu_backlight_init()
/linux-6.6.21/include/linux/
Dled-lm3530.h76 void (*pwm_set_intensity) (int brightness, int max_brightness);
77 int (*pwm_get_intensity) (int max_brightness);

1234567891011