/linux-6.6.21/drivers/video/backlight/ |
D | led_bl.c | 22 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()
|
D | ktd253-backlight.c | 148 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()
|
D | pwm_bl.c | 205 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 …]
|
D | da903x_bl.c | 102 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()
|
D | aat2870_bl.c | 35 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()
|
D | as3711_bl.c | 223 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/ |
D | leds-group-multicolor.c | 32 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/ |
D | leds-ti-lmu-common.c | 33 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()
|
D | leds-pwm.c | 26 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()
|
D | leds-lm3530.c | 263 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()
|
D | leds-max8997.c | 59 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()
|
D | leds-nic78bx.c | 84 .max_brightness = 1, 94 .max_brightness = 1, 104 .max_brightness = 1, 114 .max_brightness = 1,
|
D | leds-bd2606mvv.c | 53 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()
|
D | leds-regulator.c | 105 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()
|
D | leds-mt6323.c | 118 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,
|
D | uleds.c | 110 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/ |
D | backlight.c | 114 (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/ |
D | leds-class-multicolor.rst | 36 -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
|
D | leds-blinkm.rst | 27 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/ |
D | shmob_drm_backlight.c | 59 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/ |
D | panel-samsung-s6e63m0.c | 671 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/ |
D | cros_kbd_led_backlight.c | 47 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/ |
D | hid-led.c | 74 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/ |
D | via-pmu-backlight.c | 156 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/ |
D | led-lm3530.h | 76 void (*pwm_set_intensity) (int brightness, int max_brightness); 77 int (*pwm_get_intensity) (int max_brightness);
|