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);
298 rc = sprintf(buf, "%d\n", bd->props.brightness);
310 if (WARN_ON(bd->props.scale > BACKLIGHT_SCALE_NON_LINEAR))
313 return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scale]);
326 bd->props.state |= BL_CORE_SUSPENDED;
340 bd->props.state &= ~BL_CORE_SUSPENDED;
386 bd->props.brightness = bd->ops->get_brightness(bd);
395 const struct backlight_properties *props)
416 if (props) {
417 memcpy(&new_bd->props, props,
419 if (props->type <= 0 || props->type >= BACKLIGHT_TYPE_MAX) {
421 new_bd->props.type = BACKLIGHT_RAW;
424 new_bd->props.type = BACKLIGHT_RAW;
475 if (bd->props.type == type) {
592 * @props: the backlight properties
595 * is registered the configuration must be specified in the @props
605 const struct backlight_properties *props)
615 props);