Home
last modified time | relevance | path

Searched refs:brightness (Results 1 – 25 of 80) sorted by relevance

1234

/arch/powerpc/platforms/powermac/
Dbacklight.c108 int brightness; in pmac_backlight_key_worker() local
112 brightness = props->brightness + in pmac_backlight_key_worker()
116 if (brightness < 0) in pmac_backlight_key_worker()
117 brightness = 0; 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()
121 props->brightness = brightness; in pmac_backlight_key_worker()
140 static int __pmac_backlight_set_legacy_brightness(int brightness) in __pmac_backlight_set_legacy_brightness() argument
149 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
153 if (props->brightness > props->max_brightness) in __pmac_backlight_set_legacy_brightness()
[all …]
/arch/arm/mach-s3c64xx/
Dmach-hmt.c87 static int hmt_bl_notify(struct device *dev, int brightness) in hmt_bl_notify() argument
93 if (brightness < 0x800) { in hmt_bl_notify()
95 brightness = (100*256 * brightness + 231245/2) / 231245; in hmt_bl_notify()
98 int t = (brightness*4 + 16*1024 + 58)/116; in hmt_bl_notify()
99 brightness = 25 * ((t * t * t + 0x100000/2) / 0x100000); in hmt_bl_notify()
102 gpio_set_value(S3C64XX_GPB(4), brightness); in hmt_bl_notify()
104 return brightness; in hmt_bl_notify()
/arch/powerpc/include/asm/
Dbacklight.h33 extern void pmac_backlight_set_legacy_brightness_pmu(int brightness);
34 extern int pmac_backlight_set_legacy_brightness(int brightness);
/arch/arm/boot/dts/
Dtegra30-colibri-eval-v3.dts120 brightness-levels = <255 128 64 32 16 8 4 0>;
121 default-brightness-level = <6>;
164 max-brightness = <255>;
169 max-brightness = <255>;
174 max-brightness = <255>;
Dimx6dl-tx6u-811x.dts34 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
45 default-brightness-level = <50>;
56 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
67 default-brightness-level = <50>;
Dimx6q-tx6q-1110.dts34 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
45 default-brightness-level = <50>;
56 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
67 default-brightness-level = <50>;
Dwm8850-w70v2.dts23 brightness-levels = <0 40 60 80 100 130 190 255>;
24 default-brightness-level = <5>;
Dtegra30-apalis-eval.dts180 brightness-levels = <255 231 223 207 191 159 127 0>;
181 default-brightness-level = <6>;
214 max-brightness = <255>;
220 max-brightness = <255>;
226 max-brightness = <255>;
Dimx53-tx53-x13x.dts30 brightness-levels = <
43 default-brightness-level = <50>;
50 brightness-levels = <
63 default-brightness-level = <50>;
Dimx6dl-aristainetos_7.dts58 brightness-levels = <0 4 8 16 32 64 128 255>;
59 default-brightness-level = <6>;
Dimx6dl-aristainetos_4.dts22 brightness-levels = <0 4 8 16 32 64 128 255>;
23 default-brightness-level = <7>;
Dimx6dl-tx6dl-comtft.dts32 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
43 default-brightness-level = <50>;
Dimx6q-tx6q-1010-comtft.dts32 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
43 default-brightness-level = <50>;
Dimx6q-tx6q-1020-comtft.dts32 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
43 default-brightness-level = <50>;
Dtegra20-medcom-wide.dts50 brightness-levels = <0 4 8 16 32 64 128 255>;
51 default-brightness-level = <6>;
Dimx28-cfa10058.dts141 brightness-levels = <0 4 8 16 32 64 128 255>;
142 default-brightness-level = <6>;
Drk3288-evb.dtsi23 brightness-levels = <
56 default-brightness-level = <128>;
Dimx23-evk.dts156 brightness-levels = <0 4 8 16 32 64 128 255>;
157 default-brightness-level = <6>;
Dimx6qdl-nitrogen6x.dtsi119 brightness-levels = <0 4 8 16 32 64 128 255>;
120 default-brightness-level = <7>;
128 brightness-levels = <0 4 8 16 32 64 128 255>;
129 default-brightness-level = <7>;
Dimx6qdl-sabrelite.dtsi118 brightness-levels = <0 4 8 16 32 64 128 255>;
119 default-brightness-level = <7>;
127 brightness-levels = <0 4 8 16 32 64 128 255>;
128 default-brightness-level = <7>;
Dimx28-cfa10055.dts164 brightness-levels = <0 4 8 16 32 64 128 255>;
165 default-brightness-level = <6>;
Dimx28-cfa10057.dts174 brightness-levels = <0 4 8 16 32 64 128 255>;
175 default-brightness-level = <7>;
/arch/arm/mach-pxa/
Dpalmte2.c151 static int palmte2_backlight_notify(struct device *dev, int brightness) in palmte2_backlight_notify() argument
153 gpio_set_value(GPIO_NR_PALMTE2_BL_POWER, brightness); in palmte2_backlight_notify()
154 gpio_set_value(GPIO_NR_PALMTE2_LCD_POWER, brightness); in palmte2_backlight_notify()
155 return brightness; in palmte2_backlight_notify()
Dpalm27x.c305 static int palm27x_backlight_notify(struct device *dev, int brightness) in palm27x_backlight_notify() argument
307 gpio_set_value(palm_bl_power, brightness); in palm27x_backlight_notify()
309 gpio_set_value(palm_lcd_power, brightness); in palm27x_backlight_notify()
310 return brightness; in palm27x_backlight_notify()
Dmagician.c359 static int magician_backlight_notify(struct device *dev, int brightness) in magician_backlight_notify() argument
361 gpio_set_value(EGPIO_MAGICIAN_BL_POWER, brightness); in magician_backlight_notify()
362 if (brightness >= 200) { in magician_backlight_notify()
364 return brightness - 72; in magician_backlight_notify()
367 return brightness; in magician_backlight_notify()

1234