Lines Matching defs:props
120 bd->props.state &= ~BL_CORE_FBBLANK;
121 bd->props.fb_blank = FB_BLANK_UNBLANK;
127 bd->props.state |= BL_CORE_FBBLANK;
128 bd->props.fb_blank = fb_blank;
186 return sprintf(buf, "%d\n", bd->props.power);
204 if (bd->props.power != power) {
205 old_power = bd->props.power;
206 bd->props.power = power;
209 bd->props.power = old_power;
227 return sprintf(buf, "%d\n", bd->props.brightness);
237 if (brightness > bd->props.max_brightness)
241 bd->props.brightness = brightness;
275 return sprintf(buf, "%s\n", backlight_types[bd->props.type]);
284 return sprintf(buf, "%d\n", bd->props.max_brightness);
300 rc = sprintf(buf, "%d\n", bd->props.brightness);
313 if (WARN_ON(bd->props.scale > BACKLIGHT_SCALE_NON_LINEAR))
316 return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scale]);
329 bd->props.state |= BL_CORE_SUSPENDED;
343 bd->props.state &= ~BL_CORE_SUSPENDED;
393 bd->props.brightness = brightness;
407 const struct backlight_properties *props)
428 if (props) {
429 memcpy(&new_bd->props, props,
431 if (props->type <= 0 || props->type >= BACKLIGHT_TYPE_MAX) {
433 new_bd->props.type = BACKLIGHT_RAW;
436 new_bd->props.type = BACKLIGHT_RAW;
487 if (bd->props.type == type) {
604 * @props: the backlight properties
607 * is registered the configuration must be specified in the @props
617 const struct backlight_properties *props)
627 props);